• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

99designs / gqlgen / 22832689581
0%

Build:
DEFAULT BRANCH: master
Ran 08 Mar 2026 11:52PM 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

08 Mar 2026 11:48PM UTC coverage: 0.0%. Remained the same
22832689581

push

github

web-flow
feat: add incremental code generation for follow-schema layout (#4042)

* feat: add incremental code generation for follow-schema layout

Add support for incremental code generation that only regenerates files
for schemas affected by changes. This significantly reduces generation
time for large schemas when only a subset of schema files have changed.

New features:
- DependencyGraph: tracks cross-schema type references
- GetAffectedSchemas: computes transitive closure of dependencies
- GenerateIncremental API: accepts changed schema list, regenerates only affected files
- Falls back to full generation for single-file layout or when no changes specified

Usage:
  api.GenerateIncremental(cfg, changedSchemas, verbose)

The changedSchemas can be obtained from git diff or other change detection.

Files:
- api/generate.go: Add GenerateIncremental() public API
- codegen/depgraph.go: Dependency graph implementation
- codegen/incremental.go: Incremental generation logic
- codegen/depgraph_test.go: Comprehensive dependency graph tests
- codegen/incremental_test.go: Integration and correctness tests

* fix: use content-based file writing for correct incremental generation

The previous approach of selectively regenerating only affected schema
files caused build errors because root_.generated.go references all
resolvers, but we weren't regenerating all the schema-specific files
that define those resolvers.

This fix simplifies the approach:
1. Add content-based file writing to templates.write() - only write
   files if their content has actually changed
2. Simplify GenerateCodeIncremental to perform full generation, relying
   on the content-based write to skip unchanged files

This preserves Go's build cache by not touching files whose content
hasn't changed, while ensuring all generated files remain consistent.

Tested results:
- No schema changes: build completes in <1s (cache hit)
- Isolated schema change: ~10s generation + instant build
- Full clean build: ~... (continued)

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22832689581.1 08 Mar 2026 11:52PM UTC 0
0.0
GitHub Action Run
Source Files on build 22832689581
Detailed source file information is not available for this build.
  • Back to Repo
  • c978f689 on github
  • Prev Build on master (#22788520399)
  • Next Build on master (#22833022762)
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