Skip to content

Reuse a single checkout across CWI Windows jobs - #54283

Merged
pelikhan merged 1 commit into
mainfrom
copilot/update-cwi-action-jobs-cache
Aug 20, 2026
Merged

Reuse a single checkout across CWI Windows jobs#54283
pelikhan merged 1 commit into
mainfrom
copilot/update-cwi-action-jobs-cache

Conversation

Copilot AI commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

CWI created separate repository checkouts for each Windows job. Align it with CGO/CJS by caching one checkout and restoring it across the Windows build and integration jobs.

  • Add a shared checkout-cache job using actions/cache/save.
  • Replace per-job actions/checkout steps with actions/cache/restore.
  • Ensure both Windows jobs depend on the shared cache.
- name: Restore checkout
  uses: actions/cache/restore@...
  with:
    path: .
    key: checkout-cwi-${{ github.sha }}
    fail-on-cache-miss: true

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Optimize CWI Windows job checkout reuse Reuse a single checkout across CWI Windows jobs Aug 20, 2026
Copilot AI requested a review from pelikhan August 20, 2026 15:58
@pelikhan
pelikhan marked this pull request as ready for review August 20, 2026 16:06
Copilot AI balanced review requested due to automatic review settings August 20, 2026 16:06
@pelikhan
pelikhan merged commit 8810b91 into main Aug 20, 2026
@pelikhan
pelikhan deleted the copilot/update-cwi-action-jobs-cache branch August 20, 2026 16:06

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

Adds a shared checkout cache for CWI’s Windows build and integration jobs.

Changes:

  • Adds a centralized checkout/cache job.
  • Restores the checkout in dependent Windows jobs.
Show a summary per file
File Description
.github/workflows/CWI.yml Replaces per-job checkouts with a shared cache.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Suppressed comments (1)

.github/workflows/CWI.yml:108

  • This Windows job cannot restore the Ubuntu-created cache with the default cache settings. Because cross-OS archives are opt-in and cache versions include the platform compression method, this exact-key lookup misses and fail-on-cache-miss fails the integration job. Enable cross-OS restore here as well (or save on Windows).
        uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9   # v6.1.0
        with:
          path: .
          key: checkout-cwi-${{ github.sha }}
          fail-on-cache-miss: true
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread .github/workflows/CWI.yml
Comment on lines +52 to +55
with:
path: .
key: checkout-cwi-${{ github.sha }}
fail-on-cache-miss: true
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants