Skip to content

Conversation

@gavindidrichsen
Copy link
Contributor

@gavindidrichsen gavindidrichsen commented Aug 8, 2025

Problems

The nightly CI workflow fails due to two separate but related issues:

  • Invalid npm version on scheduled runs - github.event.number is undefined for cron triggers, causing npm error Invalid version: 0.99.

    Changed BUILD_VERSION from '0.99.${{ github.event.number }}' to 0.99.${{ github.run_number }}. github.run_number is available for all workflow trigger types (scheduled, manual, PR) providing consistent versioning: 0.99.{run_number} across all triggers

  • Node.js/undici compatibility failure - vsce packaging fails with ReferenceError: File is not defined due to undici v7.13.0 requiring Node.js 20.18.1+

    Initially updated nightly.yml node-version: [18] to [20] and PR checks vscode-ci.yml. When these all passed, then I updated all the other workflows to node 20 too, e.g., mend.yml, release_prep.yml, and release.yml.

Resolves npm version error in scheduled runs where github.event.number
is undefined, causing invalid version string "0.99."

Signed-off-by: Gavin Didrichsen <gavin.didrichsen@gmail.com>
@gavindidrichsen gavindidrichsen requested a review from a team as a code owner August 8, 2025 10:48
@codecov
Copy link

codecov bot commented Aug 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.77%. Comparing base (34b1c8f) to head (5314644).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #921   +/-   ##
=======================================
  Coverage   77.77%   77.77%           
=======================================
  Files           1        1           
  Lines           9        9           
=======================================
  Hits            7        7           
  Misses          2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gavindidrichsen gavindidrichsen marked this pull request as draft August 8, 2025 10:56
Resolves undici dependency compatibility issue where vsce packaging
fails with "File is not defined" errors. The vsce tool's cheerio
dependency pulls in undici v7.13.0+ which requires Node.js 20.18.1+
but workflow was using Node.js 18.20.8.

Signed-off-by: Gavin Didrichsen <gavin.didrichsen@gmail.com>
- Changes vscode-ci.yml matrix from node-version [18] to [20]
- Resolves undici v7.13.0 compatibility issue in PR workflows
- Aligns PR workflow with nightly workflow Node.js version
- Fixes vsce packaging failure: 'File is not defined' error
Signed-off-by: Gavin Didrichsen <gavin.didrichsen@gmail.com>
@gavindidrichsen gavindidrichsen changed the title Fix nightly workflow BUILD_VERSION for scheduled runs Fix nightly workflow failures: BUILD_VERSION context and Node.js compatibility Aug 11, 2025
@gavindidrichsen gavindidrichsen force-pushed the fix_nightly_failure_npm_version branch from 0efb464 to 89a1cf6 Compare August 11, 2025 09:27
@gavindidrichsen gavindidrichsen marked this pull request as ready for review August 11, 2025 09:35
Signed-off-by: Gavin Didrichsen <gavin.didrichsen@gmail.com>
Copy link
Contributor

@LukasAud LukasAud left a comment

Choose a reason for hiding this comment

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

LGTM

@LukasAud LukasAud merged commit 98e727a into main Aug 11, 2025
7 checks passed
@LukasAud LukasAud deleted the fix_nightly_failure_npm_version branch August 11, 2025 10:51
@gavindidrichsen gavindidrichsen restored the fix_nightly_failure_npm_version branch August 12, 2025 13:39
@gavindidrichsen gavindidrichsen deleted the fix_nightly_failure_npm_version branch August 12, 2025 13:40
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