Skip to content

Add JavaScript, Ruby, and C++ extension packs - #254

Merged
felickz merged 1 commit into
mainfrom
ext/add-javascript-ruby-cpp-extension-packs
Nov 18, 2026
Merged

felickz merged 1 commit into
mainfrom
ext/add-javascript-ruby-cpp-extension-packs

Conversation

@felickz

@felickz felickz commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a data extension pack for JavaScript, Ruby and C++, the same way #245 added one for Rust, so that models-as-data contributions for these languages have a place to land.

  • New packs githubsecuritylab/codeql-javascript-extensions, githubsecuritylab/codeql-ruby-extensions and githubsecuritylab/codeql-cpp-extensions, version 0.9.0 like the other ext packs. Each targets codeql/<language>-all: '*' and loads manual/ and generated/ models. The packs are empty for now: no models are added here.
  • The extensions CI job and the extensions publish job build them, and the publish summary expects a result for them (EXT_LANGUAGES).
  • The JavaScript, Ruby and C++ test packs depend on their extension pack, as CONTRIBUTING.md asks for languages that have an ext pack, so a model's test can sit next to the model.
  • CONTRIBUTING.md lists the new packs.

Notes

  • Like the existing ext packs, the new directories have no codeql-pack.lock.yml, and no lib or ext-library-sources pack is added.
  • The first release after this change publishes the three new packages: publish.yml publishes an ext pack when its version differs from the published one, and there is no published version yet.
  • Packs for other languages can follow the same pattern when there are models for them.

Validation

  • codeql pack create <language>/ext succeeds for the three new packs with the pinned CLI (2.27.4).
  • codeql pack install --additional-packs <language> <language>/test resolves the new dependency for each of the three test packs and leaves the lock files unchanged.
  • The strict compile that CI runs when a pack manifest changes (codeql query compile --check-only --warnings=error over the whole language directory) passes for JavaScript, Ruby and C++ with no diagnostics.
  • An existing JavaScript test and an existing Ruby test pass with the new dependency. The C++ tests need a C++ build environment, so CI covers them.
  • The workflow files parse as YAML and the edited shell script passes bash -n.

Add an empty data extension pack (<language>/ext) for JavaScript, Ruby and
C++, like the Rust one, so that models can be contributed for these
languages. Build and publish them in the extensions jobs, add them to the
publish summary, make the test packs depend on them, and list them in
CONTRIBUTING.md.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4124a708-0b20-41df-a2e2-c945fbf86752
Copilot AI balanced review requested due to automatic review settings November 18, 2026 21:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are identified for the new JavaScript, Ruby, and C++ extension packs.

No open issues 🎉

What changed in this PR

Adds empty JavaScript, Ruby, and C++ data-extension packs, following the Rust pack pattern from #245, to provide a home for future models-as-data contributions.

Changes:

  • Defines three version 0.9.0 extension packs with unconstrained language targets and manual/generated model directories.
  • Connects the packs to language tests, CI builds, publishing, and publish-summary reporting.
  • Updates contributor documentation to include the new packs. No models are added.
File Description
ruby/​test/​qlpack.yml Adds the Ruby extension-pack dependency.
ruby/​ext/​qlpack.yml Defines the Ruby extension pack and model paths.
ruby/​ext/​manual/​.gitkeep Reserves the manual Ruby model directory.
ruby/​ext/​generated/​.gitkeep Reserves the generated Ruby model directory.
javascript/​test/​qlpack.yml Adds the JavaScript extension-pack dependency.
javascript/​ext/​qlpack.yml Defines the JavaScript extension pack and model paths.
javascript/​ext/​manual/​.gitkeep Reserves the manual JavaScript model directory.
javascript/​ext/​generated/​.gitkeep Reserves the generated JavaScript model directory.
cpp/​test/​qlpack.yml Adds the C++ extension-pack dependency.
cpp/​ext/​qlpack.yml Defines the C++ extension pack and model paths.
cpp/​ext/​manual/​.gitkeep Reserves the manual C++ model directory.
cpp/​ext/​generated/​.gitkeep Reserves the generated C++ model directory.
CONTRIBUTING.md Lists the new packs in contribution and release guidance.
.github/​workflows/​publish.yml Adds all three packs to extension publishing.
.github/​workflows/​ci.yml Adds all three packs to extension CI builds.
.github/​scripts/​build-publish-summary.sh Expects publish results for the new packs.

Review effort: Balanced

@felickz
felickz marked this pull request as ready for review November 18, 2026 22:06
@felickz
felickz merged commit 54c268b into main Nov 18, 2026
31 checks passed
@felickz
felickz deleted the ext/add-javascript-ruby-cpp-extension-packs branch November 18, 2026 22:07
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