Repository navigation
fix(deps): revert e2e js-yaml override to v3 for artillery compatibility - #829
Conversation
The js-yaml override in e2e/package.json is global, so bumping it to v5 (#771) forced an ESM-only js-yaml with named exports onto artillery's internals, which import it by default export. Every Artillery load-test job then died at module load with "does not provide an export named 'default'". The load-test jobs only run on main pushes and workflow_dispatch, never on PRs, so #771 merged green and the break surfaced on the rc.2 promotion push (run 32444352693), failing the release cut's CI wait. - build(deps): pin the override back to 3.15.1, matching artillery's own ^3.15.1 range; verified locally by running the ci scenario through artillery 2.0.34 - chore(renovate): disable major js-yaml bumps for e2e/package.json only; apps/web stays on v5, which its build handles fine
The load-test jobs never run on PRs, so an Artillery-breaking dependency change merges green and fails on the main push. This support test runs in the PR-gating Cucumber job: it executes one VU of the real ci scenario against a dead target, which walks Artillery's full startup path including YAML loading. Verified red against the js-yaml v5 override that caused run 32444352693, green on v3. Also completes the renovate exception's description: artillery uses safeLoad as well as the default import, so the constraint is <4 until artillery adopts the js-yaml v4+ API.
|
Deployment failed for project drydock-website with the following error: |
biggest-littlest
left a comment
There was a problem hiding this comment.
Reviewed the override revert and the PR-gating artillery startup test. Verified red/green evidence in the PR body.
ALARGECOMPANY
left a comment
There was a problem hiding this comment.
Scoped renovate exception looks right; apps/web unaffected.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe e2e package now pins Merge Risk: ⚪ Minimal · up to This dependency correction and startup regression test are merge-ready after normal checks and review; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
What
The rc.2 release cut (run 32444361346) failed because main's push-triggered CI Verify run (32444352693) died in both Artillery load-test jobs:
#771 bumped the
js-yamlnpm override ine2e/package.jsonfrom 3.15.1 to 5.3.0. Overrides are global, so that forced ESM-only js-yaml 5 onto artillery's internals, which use a default import andsafeLoad(both gone in v4+/v5). The load-test jobs only run on main pushes and workflow_dispatch, never on PRs, so #771 merged green and the break surfaced on the promotion push.Changes
^3.15.1).e2e/package.jsononly: no major js-yaml bumps until artillery adopts the v4+ API. apps/web stays on js-yaml 5, which its build handles fine.e2e/tests/artillery-startup.test.js(runs in the Cucumber job'stest:support): one VU of the real ci scenario against a dead target, exercising artillery's full startup path. Verified red on the js-yaml 5 override, green on v3.Verification
npx artillery run test/test.yml -e ciwith a 1-VU phase: parses and executes, only ECONNREFUSED from the dead target.After merge: dispatch ci-verify.yml on dev/v1.7 (dispatch runs the load-test jobs) to confirm green, then re-promote to main and re-dispatch the rc.2 cut.
Changelog
e2e/package.jsontojs-yaml3.15.1.js-yamlupdates only fore2e/package.json.Concerns
apps/webonjs-yaml5.x.