Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

The Dependabot upgrade of d3-graphviz from 5.2.0 to 5.6.0 introduced a transitive dependency on @hpcc-js/wasm v2.31.0, which has a packaging bug: its bundled graphviz.cjs requires @hpcc-js/wasm-graphviz at runtime but only declares it as a devDependency.

Changes

  • Add explicit dependency: Added @hpcc-js/wasm-graphviz@^1.18.0 to package.json to satisfy the missing runtime requirement
  • Update Jest transform config: Added @hpcc-js scope to test/jest-config.ts transform patterns to handle ES modules in the package

This fixes the test failure in src/view/results/__tests__/results.spec.tsx where the module resolution failed during Jest execution.

Original prompt

Fix the failing GitHub Actions workflow Unit Test (ubuntu-latest)
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 59798632195
Job URL: https://github.com/github/vscode-codeql/actions/runs/20818028463/job/59798632195


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…d Jest transform config

Add @hpcc-js/wasm-graphviz as explicit dependency to work around upstream packaging issue in @hpcc-js/wasm package. Also add @hpcc-js scope to Jest transform patterns to handle ES modules.

Co-authored-by: d10c <9970661+d10c@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow for unit test Fix failing Unit Test workflow by adding missing @hpcc-js/wasm-graphviz dependency Jan 19, 2026
Copilot AI requested a review from d10c January 19, 2026 14:37
@d10c d10c marked this pull request as ready for review January 20, 2026 13:33
@d10c d10c requested a review from a team as a code owner January 20, 2026 13:33
Copilot AI review requested due to automatic review settings January 20, 2026 13:33
@d10c d10c merged commit 4c56a96 into dependabot/npm_and_yarn/extensions/ql-vscode/d3-graphviz-5.6.0 Jan 20, 2026
37 of 38 checks passed
@d10c d10c deleted the copilot/fix-workflow-unit-test branch January 20, 2026 13:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes failing unit tests by addressing a missing runtime dependency introduced by the d3-graphviz upgrade from 5.2.0 to 5.6.0. The newer version of d3-graphviz depends on @hpcc-js/wasm v2.31.0, which has a packaging bug where it requires @hpcc-js/wasm-graphviz at runtime but only declares it as a devDependency.

Changes:

  • Added explicit @hpcc-js/wasm-graphviz@^1.18.0 dependency to resolve module resolution failures during Jest test execution
  • Updated Jest transform configuration to handle ES modules from the @hpcc-js scope

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
extensions/ql-vscode/package.json Added @hpcc-js/wasm-graphviz dependency to satisfy runtime requirement of @hpcc-js/wasm v2.31.0
extensions/ql-vscode/package-lock.json Locked @hpcc-js/wasm-graphviz to version 1.20.0 (satisfies ^1.18.0 semver range)
extensions/ql-vscode/test/jest-config.ts Added @hpcc-js scope to transform patterns to handle ES modules during test execution
Files not reviewed (1)
  • extensions/ql-vscode/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"chokidar": "^3.6.0",
"d3": "^7.9.0",
"d3-graphviz": "^5.6.0",
"@hpcc-js/wasm-graphviz": "^1.18.0",
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

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

The dependency should be placed in alphabetical order. According to the existing ordering pattern in this file, entries starting with '@' symbols are sorted alphabetically, and '@hpcc-js/wasm-graphviz' should appear between '@floating-ui/react' and '@octokit/plugin-retry', not after 'd3-graphviz'.

Copilot uses AI. Check for mistakes.
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