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 — Upgrade workflows to `actions/upload-artifact@v4` by jsoref · Pull Request #2583 · github/codeql-action

Conversation

@jsoref

@jsoref jsoref commented Nov 8, 2024 •
edited by angelapwen
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor
  • Split from Remove node_modules and compile typescript into minified scripts #2578 per Remove node_modules and compile typescript into minified scripts #2578 (comment)

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows. -- This change is not backwards compatible with existing workflows (if they use the debug artifact feature which I've never seen outside of this repository)
  • 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
@jsoref
jsoref requested a review from a team as a code owner November 8, 2024 01:49
@jsoref jsoref mentioned this pull request Nov 8, 2024
Remove node_modules and compile typescript into minified scripts #2578
Closed
2 of 3 tasks
@jsoref

jsoref commented Nov 8, 2024

Copy link
Copy Markdown
Contributor Author

Note: I've left a file that tests the old v3 behavior. It's clearly called legacy, and I saw no particular reason to remove it yet as I'm not removing the code that it validates and someone who has access to GHES could conceivably want to test it.

This PR gave me enough insight that I could probably write some code to let that workflow skip doing real work unless it was running under GHES, although the lazy test would be to check the server URL as I did in my initial work.

All reactions

Sorry, something went wrong.

Uh oh!

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

@angelapwen

angelapwen commented Nov 12, 2024

Copy link
Copy Markdown
Contributor

👋 thanks again for splitting this out @jsoref!

The default value for the feature flag is only used when there is no corresponding feature flag value from the GitHub feature flag API: https://github.com/github/codeql-action/blob/main/src/feature-flags.ts#L276-L293 so the default value change won't actually enable the behavior here.

I've begun rolling out the feature flag to true (currently at 10% of repos) and once that rollout is complete, we can set the default value to true. We prefer to roll out with the GitHub internal feature flag API as we have a mechanism that allows us to roll back for specific repositories or organizations. So let's hold the default value change until the rollout via the internal flag API is complete.

Note that the PR checks you are updating can be changed to @v4 at any time: they are uploading SARIF rather than our debug artifacts so are unaffected by the feature flag.

(The PR checks related to debug artifacts, https://github.com/github/codeql-action/blob/main/.github/workflows/debug-artifacts-failure.yml using v4 and https://github.com/github/codeql-action/blob/main/.github/workflows/debug-artifacts-legacy.yml using v3 are unaffected by the default value/feature flag API value because I have set the CODEQL_ACTION_ARTIFACT_V4_UPGRADE environment variable in those workflows.)

All reactions

Sorry, something went wrong.

Uh oh!

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

@jsoref

jsoref commented Nov 12, 2024 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

Sigh. The naming is confusing. Actually, the branch name isn't tied either way, so let's make this PR just the workflow changes.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jsoref
Upgrade actions/upload-artifact to v4
1c83cd1
@jsoref
jsoref force-pushed the use-artifact-4 branch from 69d6d2c to 1c83cd1 Compare November 13, 2024 01:50
@jsoref jsoref changed the title Change Feature.ArtifactV4Upgrade default to true Upgrade workflows to actions/upload-artifact@v4 Nov 13, 2024
angelapwen
angelapwen approved these changes Nov 13, 2024
View reviewed changes

@angelapwen angelapwen 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.

Thank you for the contributions, as always 😄

Sorry, something went wrong.

Uh oh!

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

jsoref reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@angelapwen
angelapwen merged commit 6e3a010 into github:main Nov 13, 2024
@jsoref
jsoref deleted the use-artifact-4 branch November 13, 2024 19:48
This was referenced Nov 14, 2024
Merge main into releases/v3 #2605
Merged
Merge releases/v3 into releases/v2 #2607
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@angelapwen angelapwen angelapwen 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.

2 participants

@jsoref @angelapwen
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.