CI: improve restore-keys order for nx cache#34139
Merged
EugeniyKiyashko merged 2 commits intoJun 26, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts GitHub Actions Nx cache key/restore-key composition to prioritize workflow/job (and matrix dimensions) ahead of commit SHA, improving cache reuse across runs while keeping job- and framework-specific isolation where applicable.
Changes:
- Reordered Nx cache
keyto${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-…-${{ github.sha }}-…across workflows and one composite action. - Updated
restore-keysto try the most specific prefixes first (including matrix axes), then fall back to workflow/job-scoped keys before the generic${{ runner.os }}-nx-v2-.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/wrapper_tests.yml | Reorders Nx cache key/restore-keys (incl. matrix.framework) to prefer workflow/job-scoped restores. |
| .github/workflows/wrapper_tests_e2e.yml | Aligns Nx cache key/restore-keys ordering to workflow/job-first. |
| .github/workflows/visual-tests-demos.yml | Updates Nx cache key/restore-keys ordering for better reuse within the same workflow/job. |
| .github/workflows/themebuilder_tests.yml | Reorders Nx cache key/restore-keys to restore by workflow/job before generic fallback. |
| .github/workflows/testcafe_tests.yml | Updates Nx cache key/restore-keys ordering to improve cache hit rates. |
| .github/workflows/styles.yml | Reorders Nx cache key/restore-keys to prefer workflow/job-scoped restores. |
| .github/workflows/run-testcafe-on-gh-pages.yml | Reorders Nx cache key/restore-keys with matrix.CONSTEL/THEME preserved ahead of SHA. |
| .github/workflows/renovation.yml | Updates Nx cache key/restore-keys ordering to workflow/job-first. |
| .github/workflows/qunit_tests.yml | Reorders Nx cache key/restore-keys ordering for improved restore behavior. |
| .github/workflows/publish-demos.yml | Updates Nx cache key/restore-keys ordering to prefer workflow/job scope. |
| .github/workflows/pr-storybook-deploy.yml | Reorders Nx cache key/restore-keys to prefer workflow/job-scoped restores. |
| .github/workflows/pr-storybook-deploy-manual.yml | Reorders Nx cache key/restore-keys to prefer workflow/job-scoped restores. |
| .github/workflows/playgrounds_tests.yml | Reorders Nx cache key/restore-keys (incl. matrix.ARGS.platform) to prefer workflow/job-scoped restores. |
| .github/workflows/lint.yml | Applies the same Nx cache key/restore-keys ordering across multiple lint jobs/steps. |
| .github/workflows/demos_unit_tests.yml | Reorders Nx cache key/restore-keys ordering for unit test workflow. |
| .github/workflows/default_workflow.yml | Updates Nx cache key/restore-keys ordering for default workflow runs. |
| .github/workflows/build_all.yml | Reorders Nx cache key/restore-keys ordering for build-all workflow. |
| .github/actions/run-qunit-tests/action.yml | Updates embedded Nx cache restore configuration to match workflow/job-first key ordering. |
alexslavr
approved these changes
Jun 26, 2026
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.
No description provided.