test: read the agent skill's example package on a CRLF checkout - #2144
Conversation
On Windows the checkout gives skills/quickadd/SKILL.md CRLF line endings, so the example's ```json\n fence never matched and the test parsed an empty package. Every master push has failed the Windows platform test on this since #1965, which also kept the release PR from refreshing.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
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: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe package-import test now matches the JSON code-fence opener when it is followed by LF or CRLF. ChangesSkill-file package import test
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Other Merge Risk: ⚪ Minimal · up to This test-only change supports both LF and CRLF checkouts while retaining the existing package-import assertions. No merge-blocking 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
🧪 Generate unit tests (beta)
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. A rabbit checks the fence with care Comment |
Every push to master has failed CI since #1965 (2026-09-30). Only the Windows platform test fails, and only on
tests/agent-skill.test.ts:The Windows checkout gives
skills/quickadd/SKILL.mdCRLF line endings, so the test's```json\nfence never matched and it parsed an empty package. PR CI skips the platform matrix, so no PR showed it. Because master CI never went green, the release-prepare workflow skipped every run and the release PR (#1904) is still planned from 81e95a1.The fix is test-only: the regex accepts
\r?\n. Checked locally: on a CRLF copy of SKILL.md the old regex finds nothing and the new one extracts the example, which parses. The CI run dispatched on this branch (with the Windows/macOS matrix) is linked in the checks. No release impact.Note
Fix JSON code-fence extraction in agent skill test to accept CRLF
The QuickAdd agent skill test failed to extract the example package when the skill file used Windows CRLF line endings. The extraction regex in the test now accepts either LF or CRLF after the opening fence, and the CRLF case is documented. Import assertions and package application flow are unchanged.
Macroscope summarized ac952e6.
Summary by CodeRabbit