Skip to content

Comments

Add deterministic release version updater and pack fixes#42

Merged
enyil merged 1 commit intodd/update-release-v2-24-1from
dd/update-release-artifact-upload/2
Feb 10, 2026
Merged

Add deterministic release version updater and pack fixes#42
enyil merged 1 commit intodd/update-release-v2-24-1from
dd/update-release-artifact-upload/2

Conversation

@data-douser
Copy link
Collaborator

Summary of Changes

This pull request introduces an automated, deterministic approach for updating the release version across all version-bearing files in the repository, and integrates this process into the release workflow. It also improves documentation and workflow flexibility for publishing CodeQL packs. The most significant changes are grouped below.

Outline of Changes

Key changes:

Version Update Automation

  • Added server/scripts/update-release-version.sh, a comprehensive script to deterministically update, check, and validate the release version across .codeql-version, all package.json files, and all codeql-pack.yml files. The script supports dry-run, consistency checking, and CLI version validation.

Documentation Improvements

  • Updated .github/skills/upgrade-codeql-cli-and-packs/SKILL.md to document the new script, replacing manual version update instructions with automated commands, and clarified that codeql-pack.yml version fields are now handled by the script. [1] [2]

Release Workflow Enhancements

  • Modified .github/workflows/release.yml to:
    • Add a publish_codeql_packs input to allow skipping CodeQL pack publishing during workflow dispatch (manual runs). [1] [2]
    • Invoke the new version update script early in the release job to ensure all files are updated before building and publishing.
    • Switch to npm install (from npm ci) to allow regeneration of lock files after version updates.
    • Improve the release summary with a table format and step-by-step status, including whether CodeQL pack publishing was skipped or performed.

Add server/scripts/update-release-version.sh that deterministically
updates all 22 version-bearing files (.codeql-version, package.json
files, codeql-pack.yml files). Validates the base version (X.Y.Z)
matches the installed CodeQL CLI before updating.

Update release.yml workflow:
- Add publish_codeql_packs input to skip pack publishing
- Run update-release-version.sh to set tag version
- Move CodeQL setup before version update for CLI validation
- Use npm install (not npm ci) to sync lock file
- Improve summary output with tabular format

Update upgrade SKILL.md to reference the new script.
@data-douser data-douser self-assigned this Feb 10, 2026
@data-douser data-douser requested review from a team and enyil as code owners February 10, 2026 16:43
Copy link

@enyil enyil left a comment

Choose a reason for hiding this comment

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

Looks good!

@enyil enyil merged commit d89dce7 into dd/update-release-v2-24-1 Feb 10, 2026
1 check failed
@enyil enyil deleted the dd/update-release-artifact-upload/2 branch February 10, 2026 16:45
@data-douser data-douser restored the dd/update-release-artifact-upload/2 branch February 10, 2026 16:50
data-douser added a commit that referenced this pull request Feb 10, 2026
* Fix release workflow: use setup-codeql-environment action instead of codeql-action/init

Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>

* Add "fetch-tags" to release.yml workflow checkout

* Upgrade codeql and repo version to 2.24.1

* Upgrade NodeJS dependencies to latest

* Enhance MCP prompts with LSP tool guidance

This commit:

- updates 'server/src/prompts/*.prompt.md` files to provide better
  guidance to LLMs in relation to iterative and/or LSP-based tools;
- improves unit tests of MCP ^ "workflow prompts";
- adds an example workshop, focused on using LSP-based MCP server
  tools, under the existing create-codeql-query-development-workshop
  agent skill;
- updates .github/ instructions and prompts with lessons learned
  from tool validation via example workshop development.

* improve release.yml workflow_dispatch compatibility

* Improve prettier fix markdownlint required workflow

* Fix tests flagged in PR review comments

* Fix `release.yml` workflow for publishing CodeQL packs and npm package for `codeql-development-mcp-server` (#40)

* Initial plan

* Enable auto-creation of tags in release workflow for workflow_dispatch

Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>

* More fixes for release workflow

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* Add `advanced-security/ql-mcp-*-tools-src` query pack archives as uploaded release artifacts (#41)

* Initial plan

* Enable auto-creation of tags in release workflow for workflow_dispatch

Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>

* More fixes for release workflow

* Add CodeQL query packs as uploaded release artifacts

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* Add version update script & fix packs for release (#42)

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
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