Skip to content

fix(deps): revert e2e js-yaml override to v3 for artillery compatibility - #829

Merged
scttbnsn merged 2 commits into
dev/v1.7from
fix/v1.7-jsyaml-override-artillery
Aug 21, 2026
Merged

scttbnsn merged 2 commits into
dev/v1.7from
fix/v1.7-jsyaml-override-artillery

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

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:

SyntaxError: The requested module 'js-yaml' does not provide an export named 'default'

#771 bumped the js-yaml npm override in e2e/package.json from 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 and safeLoad (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

  • Revert the override to 3.15.1 (artillery's own range is ^3.15.1).
  • Renovate exception scoped to e2e/package.json only: no major js-yaml bumps until artillery adopts the v4+ API. apps/web stays on js-yaml 5, which its build handles fine.
  • New PR-gating regression test e2e/tests/artillery-startup.test.js (runs in the Cucumber job's test: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 ci with a 1-VU phase: parses and executes, only ECONNREFUSED from the dead target.
  • Codex review: two findings, both addressed (regression test added; renovate description completed). Lockfile/scoping checks passed.

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

  • 🐛 Fixed Artillery compatibility by pinning e2e/package.json to js-yaml 3.15.1.
  • 🔧 Changed Renovate rules to block major js-yaml updates only for e2e/package.json.
  • ✨ Added a regression test for Artillery startup and YAML loading.

Concerns

  • Confirm the new test is included in the PR-gating test command.
  • Verify that the test asserts the expected Artillery phase log and rejects module-loading or syntax errors.
  • Keep apps/web on js-yaml 5.x.

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.
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deployment failed for project drydock-website with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/codeswhat?upgradeToPro=build-rate-limit

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the override revert and the PR-gating artillery startup test. Verified red/green evidence in the PR body.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scoped renovate exception looks right; apps/web unaffected.

@coderabbitai

coderabbitai Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 002c7930-e22b-4858-b4fb-e7992568abb8

📥 Commits

Reviewing files that changed from the base of the PR and between b984572 and a1c3cd3.

⛔ Files ignored due to path filters (1)
  • e2e/package-lock.json is excluded by !**/package-lock.json, !**/package-lock.json
📒 Files selected for processing (3)
  • e2e/package.json
  • e2e/tests/artillery-startup.test.js
  • renovate.json

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


📝 Walkthrough

Walkthrough

The e2e package now pins js-yaml to version 3.15.1. Renovate no longer proposes major js-yaml updates for that package. A new end-to-end test runs the CI Artillery scenario with a one-VU, one-second override and an unreachable local target. The test requires phase startup and rejects module-loading or syntax errors.

Merge Risk: ⚪ Minimal · up to a1c3c

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)
Check name Status Explanation
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 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/v1.7-jsyaml-override-artillery

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.

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn
scttbnsn merged commit fb86c38 into dev/v1.7 Aug 21, 2026
31 of 34 checks passed
@scttbnsn
scttbnsn deleted the fix/v1.7-jsyaml-override-artillery branch August 27, 2026 23:56
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.

3 participants