Cache Nx outputs for the graphql-codegen CI check - #8296
Closed
isaacroldan wants to merge 1 commit into
Closed
Conversation
The required 'Check graphql-codegen has been run' job spends ~3.5 of its ~4 minutes regenerating types that rarely change. The Nx codegen targets are already cacheable, so persist .nx/cache with actions/cache. A warm-up job on main keeps a default-branch cache that every PR can restore; PR-branch caches only help repeat pushes to the same PR. Nx hashes the downloaded schemas and .graphql documents, so a schema or query change still recomputes instead of replaying stale output.
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Aug 11, 2026
Contributor
Author
|
Closing after reassessment: this repo is public so macOS runner minutes are free, and the codegen check is not the latency gate (unit-test jobs are slower even after sharding). The better long-term fix is making the codegen postfix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

WHY are these changes introduced?
Fixes #0000
WHAT is this pull request doing?
How to test your changes?
Post-release steps
Checklist
patchfor bug fixes ·minorfor new features ·majorfor breaking changes) and added a changeset withpnpm changeset add