Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase strictness of tool caching threshold to avoid caching nightlies #1496

Merged
merged 3 commits into from
Jan 20, 2023

Conversation

henrymercer
Copy link
Contributor

If the CLI version number of a CodeQL Bundle is a pre-release, then we want to avoid versioning the bundle in the toolcache as <cliVersion>-<bundleVersion>, so we don't interpret this toolcache entry as containing a stable CLI release.

However, we currently version CodeQL nightlies as x.y.z+<timestamp>. Even though these are not pre-releases, we do not want bundles containing them to override CodeQL bundles containing stable versions of the CodeQL CLI.

Therefore this PR ensures we only version bundles as <cliVersion>-<bundleVersion> in the toolcache when cliVersion is of the form x.y.z. All other bundles will be versioned as 0.0.0-<bundleVersion> within the toolcache.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

@henrymercer henrymercer requested a review from a team as a code owner January 20, 2023 15:27
Base automatically changed from henrymercer/upgrade-typescript to main January 20, 2023 16:28
Copy link
Contributor

@angelapwen angelapwen 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 to me~

@henrymercer henrymercer merged commit 421a1b3 into main Jan 20, 2023
@henrymercer henrymercer deleted the henrymercer/no-cache-nightlies branch January 20, 2023 17:57
@github-actions github-actions bot mentioned this pull request Jan 26, 2023
6 tasks
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.

None yet

2 participants