• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

99designs / gqlgen / 29043908640
0%
master: 0%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/integration/graphql-codegen/schema-ast-6.1.0
DEFAULT BRANCH: master
Ran 11 Jul 2026 01:26AM UTC
Jobs 1
Files 0
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Jul 2026 02:45PM UTC coverage: 0.0%. Remained the same
29043908640

Pull #4262

github

webel-crew
fix(codegen): write generated files atomically to survive interrupted generation

Generate() unlinked the exec + model outputs at the very start, before any schema load or render, so any interruption or failure during generation (OOM on the validation compile, a timeout, SIGKILL, or a failing schema mutator) left the output ABSENT — invisible to go build until the next regen. Reported as #2345 ('deleted the older model/generated.go file, did not create a new one') and #3505 ('it seems to delete the generated files'), both closed without addressing the delete-before-write.

Replace the upfront unlink + truncate-write with an atomic write: render to a temp file in the same directory, then os.Rename into place on success. os.Rename is atomic on the same filesystem, so a reader/build never observes a half-written file, and a mid-generation failure leaves the pre-existing file intact instead of absent. The upfront unlink is removed because the rename replaces the file atomically (no prior delete needed).

Add TestGenerateAtomicWritePreservesOutputOnFailure: a pre-existing generated file survives a mid-generation failure (fails on the old unlink-first code, passes with the fix).
Pull Request #4262: fix(codegen): write generated files atomically to survive interrupted generation

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29043908640.1 11 Jul 2026 01:26AM UTC 0
0.0
GitHub Action Run
Source Files on build 29043908640
Detailed source file information is not available for this build.
  • Back to Repo
  • Pull Request #4262
  • PR Base - master (#29026859304)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc