Skip to content

Fix npm optional dependencies not installed from cache in CI#25

Merged
data-douser merged 2 commits intodd/open-source-release-prep/2from
copilot/fix-github-actions-workflow-again
Feb 8, 2026
Merged

Fix npm optional dependencies not installed from cache in CI#25
data-douser merged 2 commits intodd/open-source-release-prep/2from
copilot/fix-github-actions-workflow-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 8, 2026

Build Server workflow failing with Cannot find module @rollup/rollup-linux-x64-gnu. Known npm bug (npm/cli#4828): optional dependencies aren't installed when npm ci restores from cache.

Changes

  • Add --include=optional flag to npm ci in affected workflows:
    • build-server.yml
    • copilot-setup-steps.yml
    • release.yml (2 instances)
- name: Build Server - Install dependencies
  run: npm ci --include=optional
  working-directory: .

Rollup's platform-specific native bindings are optional dependencies. Without the flag, vitest coverage fails since it depends on rollup.

Original prompt

Fix the failing GitHub Actions workflow Build Server
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 62905795915
Job URL: https://github.com/advanced-security/codeql-development-mcp-server/actions/runs/21804627557/job/62905795915


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix the failing GitHub Actions workflow Build Server Fix npm optional dependencies not installed from cache in CI Feb 8, 2026
Copilot AI requested a review from data-douser February 8, 2026 20:25
@data-douser data-douser marked this pull request as ready for review February 8, 2026 20:34
@data-douser data-douser requested review from a team and enyil as code owners February 8, 2026 20:34
@data-douser data-douser merged commit 83f6a62 into dd/open-source-release-prep/2 Feb 8, 2026
3 checks passed
@data-douser data-douser deleted the copilot/fix-github-actions-workflow-again branch February 8, 2026 20:34
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.

2 participants