Skip to content

fix(ci): update the setup-workspace cache assertions to the widened path list - #9603

Merged
JSONbored merged 1 commit into
mainfrom
fix/ci-cache-path-test
Jul 28, 2026
Merged

fix(ci): update the setup-workspace cache assertions to the widened path list#9603
JSONbored merged 1 commit into
mainfrom
fix/ci-cache-path-test

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

The break

test/unit/ci-composite-setup-workspace.test.ts has been failing on main and on every open branch since #9596/#9597 merged:

AssertionError: expected 'node_modules\napps/*/node_modules\npa…' to contain 'apps/loopover-ui/node_modules'

My fault: those PRs changed the cache to glob every workspace and added a key salt, but I didn't update the test that pins the old literal path.

The fix

Assert the contract that now holds, and close two gaps the old test left open while I'm here:

Verified locally: 5/5 passing.

…ath list

#9596/#9597 changed the node_modules cache to glob every workspace and
added a generation salt to the key, but the composite-action test still
asserted the old literal `apps/loopover-ui/node_modules`, so it has been
failing on main and on every branch since.

Assert the contract that now holds, and tighten it in two places the old
test left open:
- both workspace globs, matching what package.json declares;
- the `npm-v2-` salt, asserted beside the paths, because widening the
  paths without bumping the salt is a no-op and the two must move
  together;
- the SAVE step's path list equals the RESTORE step's -- the save list
  decides what a future run can restore, so a narrowing there would stay
  invisible until some later job failed on a missing workspace.
@loopover-orb

loopover-orb Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Important

🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨

⏳ LoopOver is waiting…

LoopOver has seen this pull request and is waiting on CI checks to finish before reviewing it. This comment will update once the review runs.

🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed · 🟨 Waiting

@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@JSONbored JSONbored self-assigned this Jul 28, 2026
@JSONbored
JSONbored merged commit 26071f1 into main Jul 28, 2026
4 checks passed
@JSONbored
JSONbored deleted the fix/ci-cache-path-test branch July 28, 2026 21:51
@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.04%. Comparing base (ce1fdee) to head (b2963e0).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #9603       +/-   ##
===========================================
+ Coverage   75.56%   89.04%   +13.48%     
===========================================
  Files         276      880      +604     
  Lines       58198   111175    +52977     
  Branches     6241    26473    +20232     
===========================================
+ Hits        43975    98994    +55019     
+ Misses      13953    11155     -2798     
- Partials      270     1026      +756     
Flag Coverage Δ
backend 94.16% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 741 files with indirect coverage changes

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.

1 participant