GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add a feature flag to use a bundle compressed using Zstandard when setting up the default tools by henrymercer · Pull Request #2502 · github/codeql-action

Conversation

@henrymercer

@henrymercer henrymercer commented Sep 23, 2024

Copy link
Copy Markdown
Contributor

This PR adds a feature flag to download a CodeQL Bundle compressed using Zstandard when setting up the default tools.

If we determine that tar is new enough, we will download the zstd-compressed bundle.

We add a fallback mechanism: if setting up the zstd-compressed bundle fails, we will fall back to the gzip-compressed bundle.

We add PR checks to validate both setting up a zstd-compressed bundle when the feature flag is enabled, and the fallback mechanism.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
henrymercer added 11 commits September 23, 2024 22:39
@henrymercer
Add feature flag for using zstd bundle
e7309d2
@henrymercer
Use zstd bundle by default when feature flag enabled
ac3fca3
@henrymercer
Catch gotcha in PR check workflow generator
990feb5
@henrymercer
Add PR check for zstd bundle
b1ca017
@henrymercer
Gate zstd enablement on tar version
db98c27
@henrymercer
Determine zstd availability earlier on to simplify log
a7a6a69
@henrymercer
Check telemetry in PR check to ensure .tar.zst downloaded
662c71a
@henrymercer
Fall back to gzip if zstd fails
4d015b8
@henrymercer
Capture reason if zstd fails unexpectedly
0abc1ec
@henrymercer
Merge branch 'main' into henrymercer/zstd-experiment
20bd6fe
@henrymercer
Add changelog note
37309b9
@henrymercer
henrymercer requested a review from a team as a code owner September 23, 2024 22:08
aeisenberg
aeisenberg reviewed Sep 23, 2024
View reviewed changes
Comment thread pr-checks/checks/zstd-bundle-fallback.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pr-checks/checks/zstd-bundle.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/setup-codeql.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

henrymercer and others added 5 commits September 24, 2024 17:21
@henrymercer
Run zstd checks against all operating systems
fa91789
@henrymercer @aeisenberg
Tweak description
67b30f7
Co-authored-by: Andrew Eisenberg <[email protected]>
@henrymercer
Extract constant for first std-compressed version
bc68dc9
@henrymercer
Use Node script to remove CodeQL cross-platform
af8e2bc
@henrymercer
Run PR checks using JS only
6b2f7e7
@henrymercer
henrymercer requested a review from aeisenberg September 24, 2024 18:39
aeisenberg
aeisenberg approved these changes Sep 26, 2024
View reviewed changes

@aeisenberg aeisenberg left a comment

Copy link
Copy Markdown
Contributor

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!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
NlightNFotis
NlightNFotis approved these changes Sep 27, 2024
View reviewed changes

@NlightNFotis NlightNFotis left a comment

Copy link
Copy Markdown
Contributor

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@henrymercer
henrymercer merged commit 2617ff2 into main Sep 27, 2024
@henrymercer
henrymercer deleted the henrymercer/zstd-experiment branch September 27, 2024 13:48
This was referenced Sep 30, 2024
Merge main into releases/v3 #2507
Merged
Merge releases/v3 into releases/v2 #2509
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aeisenberg aeisenberg aeisenberg approved these changes
+1 more reviewer
@NlightNFotis NlightNFotis NlightNFotis approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@henrymercer @aeisenberg @NlightNFotis
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.