Repository navigation
fix(release): run the tag's own skill freshness inventory tests in the release gate - #22775
Conversation
…e release gate The skill-sharing release gate checks out the release tag, then restores main's copy of skill-freshness-inventory.test.ts. That file holds behaviour tests, so a behaviour test added on main runs against a tag that predates the behaviour: #22606 added one and failed the v1.4.211 gate on macOS and Linux. Keep restoring skill-provider-runtime-roots.test.ts from the workflow ref.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe skill-sharing release gates no longer restore Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to The gates use the release tag’s inventory test when present and skip it when absent, while retaining the runtime-roots test. No merge-blocking release-gate risk remains. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
ℹ️ No critical issues — the gate fix is correct; two notes on hardening its guard and on the sibling restored test file.
Reviewed changes
- Release gate runs the tag's own inventory test: both
skill-sharing-release-gateandskill-sharing-linux-floor-release-gatenow dropsrc/main/skills/skill-freshness-inventory.test.tsfrom the workflow-ref restore list, keeping onlyskill-provider-runtime-roots.test.ts. - Contract test inverted:
skill-sharing-release-workflow.test.mjsnow asserts the inventory file is absent from the checkout list rather than present.
This correctly resolves the v1.4.211 failure: main's inventory test asserted behaviour (#22606) the tag predates, and the tag's own copy is the right thing to gate on.
ℹ️ The same recurrence risk remains for skill-provider-runtime-roots.test.ts
The workflow still overlays main's skill-provider-runtime-roots.test.ts onto the tag. That file is not harness-only: it imports and asserts the production skill-provider-runtime-roots.ts (resolveEnvironmentSkillProviderRoots, resolveDefaultHermesSkillsRoot, resolveWslGrokSkillProviderRoot, …). A future PR that adds a behaviour test there — or a test for a newly exported function — will fail every cut whose tag predates it, exactly as the inventory file did here. The PR body's "that works for harness-only files" rationale does not hold for this file, so it may be worth either using the tag's own copy for it too (the Windows-specific fixture fix from #16984 is on the continue-on-error diagnostic leg anyway) or extracting the shared fixtures into a dedicated harness module so only fixtures, not behaviour tests, are restored.
Technical details
# Runtime-roots test is a behaviour test still restored from the workflow ref
## Affected sites
- `.github/workflows/release-cut.yml:987` — restores `src/main/skills/skill-provider-runtime-roots.test.ts` from `$WORKFLOW_SHA` (macOS/Windows gate)
- `.github/workflows/release-cut.yml:1039` — same restore on the Linux-floor gate
- `src/main/skills/skill-provider-runtime-roots.test.ts:1-125` — asserts production behavior, not a fixture-only harness
## Required outcome
- Decide whether `skill-provider-runtime-roots.test.ts` should also run the tag's own copy (dropping it from the restore list), or whether its restore is genuinely required; if the latter, correct the PR's explanatory comment/rationale so it does not claim this file is harness-only.
- If the restore stays, track the recurrence risk so a future behaviour test added there does not block an older tag's cut.
## Open questions for the human
- Is the runtime-roots overlay carrying any Windows-fixture fix that the tag's own copy lacks, given Windows is `continue-on-error`? If not, the inventory treatment could apply here too.DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| expect(restore.run.split('git checkout')[1]).not.toContain( | ||
| 'skill-freshness-inventory.test.ts' | ||
| ) |
There was a problem hiding this comment.
This guard depends on the explanatory comment sitting before the git checkout line, since the comment itself names skill-freshness-inventory.test.ts; moving the comment below the checkout, or adding a second git checkout, would make it false-fail or false-pass. Stripping comment lines and inspecting every checkout invocation makes the assertion robust to both.
| expect(restore.run.split('git checkout')[1]).not.toContain( | |
| 'skill-freshness-inventory.test.ts' | |
| ) | |
| const checkedOutPaths = restore.run | |
| .split('\n') | |
| .filter((line) => !line.trim().startsWith('#')) | |
| .join('\n') | |
| .split('git checkout') | |
| .slice(1) | |
| .join('\n') | |
| expect(checkedOutPaths).not.toContain('skill-freshness-inventory.test.ts') |

ELI5
When we cut a desktop release, one of the release checks runs the skill tests from
maininstead of the tests that belong to the release. One of those test files now includes a test for a skills fix that only exists onmain, so every release cut from an older daily build fails that check. This change makes the check run the release's own copy of that one file.What Changed
main's copy ofsrc/main/skills/skill-freshness-inventory.test.tsandskill-provider-runtime-roots.test.ts. On 09-24, fix(skills): recognize symlinked provider skill roots #22606 added a test to the inventory file for a fix (symlinked provider skills folders) that the v1.4.211 tag does not contain. The v1.4.211 cut failed the gate on macOS and Linux withexpected [...] to have a length of 1 but got 2, and nothing was built or published.skill-provider-runtime-roots.test.tsfrom the workflow ref, but runs the tag's ownskill-freshness-inventory.test.ts. The contract test now asserts that the inventory file is not in the restore list.Nothing in the app changes. Only which copy of one test file the release gate runs.
Why
Restoring test files from the workflow ref is deliberate: it lets harness fixes on
mainreach cuts from older daily bases (#16984, #21837). That works for harness-only files. The inventory file holds behaviour tests, so any new behaviour test there fails every cut whose base predates the behaviour. The fixes that first caused this file to be restored (08-28, Windows fixtures) are in every current release base, so the tag's own copy is safe to run.Alternatives considered:
Linked Issue
No ticket. Found while cutting v1.4.211. The failing run is https://github.com/stablyai/orca/actions/runs/36094574415.
Visual Proof
N/A. This only changes the release workflow and its contract test. There is no UI change.
Testing
Reproduced the failure locally against the v1.4.211 code: the tag's code plus
main's inventory test failed 1 of 40, the same test CI failed. The tag's own copy passed. The full skill gate suite on the tag passed with 720 tests.config/scripts/skill-sharing-release-workflow.test.mjspasses. Ablation: re-adding the inventory file to the restore list makes it fail.All 13 contract test files that read
release-cut.ymlpass (170 tests), and the YAML parses.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
A skills or release owner should confirm that the inventory file was never meant to carry harness-only fixes.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)