New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure cli using latest version from the supported_cli_versions.json #1992
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main workflow also need an update:
vscode-codeql/.github/workflows/main.yml
Line 194 in b0168aa
| run: echo "cli-versions=$(cat ./supported_cli_versions.json | jq -rc)" >> $GITHUB_OUTPUT |
Otherwise, LGTM with just some minor comments! (I tried running the CLI tests locally too, and all good
| // CLI version to test. Hard code the latest as default. And be sure | ||
| // to update the env if it is not otherwise set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion to make the comment clearer. Something like this?
| // CLI version to test. Hard code the latest as default. And be sure | |
| // to update the env if it is not otherwise set. | |
| // CLI version to test. Use the latest supported version by default. | |
| // And be sure to update the env if it is not otherwise set. |
| @@ -38,7 +39,7 @@ const _10MB = _1MB * 10; | |||
|
|
|||
| // CLI version to test. Hard code the latest as default. And be sure | |||
| // to update the env if it is not otherwise set. | |||
| const CLI_VERSION = process.env.CLI_VERSION || "v2.11.6"; | |||
| const CLI_VERSION = process.env.CLI_VERSION || data[0]; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: we could make this variable name more descriptive
| const CLI_VERSION = process.env.CLI_VERSION || data[0]; | |
| const CLI_VERSION = process.env.CLI_VERSION || supportedCliVersions[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
closes this issue
The PR changes the bump-cli workflow to only edit the馃槃
supported_cli_versions.jsonfile and remove the need to editensureCli.tswhich used to include a hardcoded string of the latest version. Now however, it takes the latest version from thesupported_cli_versions.json(the first version in the array insupported_cli_versions.jsonis always going to be the latest version of the supported cli by design) removing the need to update theensureCli.tsfile