Skip to content

CI: improve restore-keys order for nx cache#34139

Merged
EugeniyKiyashko merged 2 commits into
DevExpress:26_1from
EugeniyKiyashko:26_1_restore_keys
Jun 26, 2026
Merged

CI: improve restore-keys order for nx cache#34139
EugeniyKiyashko merged 2 commits into
DevExpress:26_1from
EugeniyKiyashko:26_1_restore_keys

Conversation

@EugeniyKiyashko

Copy link
Copy Markdown
Contributor

No description provided.

@EugeniyKiyashko EugeniyKiyashko self-assigned this Jun 26, 2026
Copilot AI review requested due to automatic review settings June 26, 2026 06:00
@EugeniyKiyashko EugeniyKiyashko requested a review from a team as a code owner June 26, 2026 06:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 key to ${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-…-${{ github.sha }}-… across workflows and one composite action.
  • Updated restore-keys to 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.

@EugeniyKiyashko EugeniyKiyashko merged commit ad64bdd into DevExpress:26_1 Jun 26, 2026
141 of 147 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants