Skip to content

Cache Nx outputs for the graphql-codegen CI check - #8296

Closed
isaacroldan wants to merge 1 commit into
isaac/parallel-e2e-cleanup-jobsfrom
isaac/nx-cache-graphql-codegen
Closed

Cache Nx outputs for the graphql-codegen CI check#8296
isaacroldan wants to merge 1 commit into
isaac/parallel-e2e-cleanup-jobsfrom
isaac/nx-cache-graphql-codegen

Conversation

@isaacroldan

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Fixes #0000

WHAT is this pull request doing?

How to test your changes?

Post-release steps

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing — I've identified the correct bump type (patch for bug fixes · minor for new features · major for breaking changes) and added a changeset with pnpm changeset add

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.

isaacroldan commented Aug 11, 2026

Copy link
Copy Markdown
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.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Aug 11, 2026
@isaacroldan

Copy link
Copy Markdown
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 find command portable so the check can move to ubuntu-latest — no cache or warm-up job needed.

@isaacroldan
isaacroldan deleted the isaac/nx-cache-graphql-codegen branch August 11, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant