Repository navigation
Add JavaScript, Ruby, and C++ extension packs - #254
Merged
Merged
Conversation
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
Contributor
There was a problem hiding this comment.
🟢 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.0extension 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
githubsecuritylab/codeql-javascript-extensions,githubsecuritylab/codeql-ruby-extensionsandgithubsecuritylab/codeql-cpp-extensions, version 0.9.0 like the otherextpacks. Each targetscodeql/<language>-all: '*'and loadsmanual/andgenerated/models. The packs are empty for now: no models are added here.extensionsCI job and theextensionspublish job build them, and the publish summary expects a result for them (EXT_LANGUAGES).extpack, so a model's test can sit next to the model.CONTRIBUTING.mdlists the new packs.Notes
extpacks, the new directories have nocodeql-pack.lock.yml, and noliborext-library-sourcespack is added.publish.ymlpublishes anextpack when its version differs from the published one, and there is no published version yet.Validation
codeql pack create <language>/extsucceeds for the three new packs with the pinned CLI (2.27.4).codeql pack install --additional-packs <language> <language>/testresolves the new dependency for each of the three test packs and leaves the lock files unchanged.codeql query compile --check-only --warnings=errorover the whole language directory) passes for JavaScript, Ruby and C++ with no diagnostics.bash -n.