Skip to content

fix(release): run the tag's own skill freshness inventory tests in the release gate - #22775

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/release-gate-tag-owned-inventory-test
Sep 25, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/release-gate-tag-owned-inventory-test

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 0

ELI5

When we cut a desktop release, one of the release checks runs the skill tests from main instead of the tests that belong to the release. One of those test files now includes a test for a skills fix that only exists on main, 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

  • Before: the skill-sharing release gate checks out the release tag and then restores main's copy of src/main/skills/skill-freshness-inventory.test.ts and skill-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 with expected [...] to have a length of 1 but got 2, and nothing was built or published.
  • After: the gate keeps restoring skill-provider-runtime-roots.test.ts from the workflow ref, but runs the tag's own skill-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 main reach 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:

  • Cherry-pick fix(skills): recognize symlinked provider skill roots #22606 onto the release. It changes real skill classification behaviour, which should not ride into a release only to satisfy a test.
  • Stop restoring all test files from the workflow ref. That would break the harness-fix path the golden E2E and runtime-roots restores rely on.

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.mjs passes. Ablation: re-adding the inventory file to the restore list makes it fail.

  • All 13 contract test files that read release-cut.yml pass (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

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…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.
@coderabbitai

coderabbitai Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: e79315ed-7032-4ce5-a5b1-e0e12786c4d5

📥 Commits

Reviewing files that changed from the base of the PR and between 8fa5883 and cb1954b.

📒 Files selected for processing (2)
  • .github/workflows/release-cut.yml
  • config/scripts/skill-sharing-release-workflow.test.mjs

Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review.


📝 Walkthrough

Walkthrough

The skill-sharing release gates no longer restore skill-freshness-inventory.test.ts from the workflow ref. They continue to restore skill-provider-runtime-roots.test.ts. The harness test now checks that the restore command excludes the inventory test.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to cb195

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 Summary

Architecture risk: 🔵 Low · up to cb195

The change affects 1 system.

Changed systems: config

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — config (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in config/scripts/skill-sharing-release-workflow.test.mjs: The restore test replaces the check that the command contains skill-freshness-inventory.test.ts with a check that the portion after git checkout excludes that filename.
  • observed — Modified behavior in .github/workflows/release-cut.yml: Both skill-sharing test-harness checkout lists stop restoring src/main/skills/skill-freshness-inventory.test.ts from the workflow ref. The accompanying comment describes it as containing behavior tests that may be incompatible with older tags; the provider runtime roots test remains restored.
  • observed — Modified behavior in .github/workflows/release-cut.yml: The Linux floor release gate makes the same change: it no longer restores src/main/skills/skill-freshness-inventory.test.ts from the workflow ref, while continuing to restore the provider runtime roots test. Its comment gives the same compatibility explanation.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: using the release tag's own skill freshness inventory tests in the release gate.
Description check ✅ Passed The description is detailed and covers the required explanation, changes, rationale, testing, visual proof, review notes, and checklist. The required Linked Issue section is present but states that no…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot 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.

ℹ️ 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-gate and skill-sharing-linux-floor-release-gate now drop src/main/skills/skill-freshness-inventory.test.ts from the workflow-ref restore list, keeping only skill-provider-runtime-roots.test.ts.
  • Contract test inverted: skill-sharing-release-workflow.test.mjs now 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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Comment on lines +106 to +108
expect(restore.run.split('git checkout')[1]).not.toContain(
'skill-freshness-inventory.test.ts'
)

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.

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.

Suggested change
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')

@brennanb2025
brennanb2025 merged commit f9356d4 into main Sep 25, 2026
31 checks passed
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