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 — Python: Don't install deps by default for all users by RasmusWL · Pull Request #2031 · github/codeql-action

Conversation

@RasmusWL

@RasmusWL RasmusWL commented Dec 13, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

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
RasmusWL added 6 commits December 13, 2023 11:33
@RasmusWL
Python: Don't install deps by default for all users
2f93dd4
@RasmusWL
Update changelog
1e69962
@RasmusWL
Did create feature-flag
84a9fc4
@RasmusWL
Add missing logic to force enable lib extraction
bc36e6c
@RasmusWL
prettier
a13f4b8
@RasmusWL
build
1e69b89
@RasmusWL

RasmusWL commented Dec 13, 2023

Copy link
Copy Markdown
Member Author

I think we can ignore Swift analysis using a custom build command as a spurious failure 😊

All reactions

Sorry, something went wrong.

Uh oh!

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

aeisenberg
aeisenberg reviewed Dec 13, 2023
View reviewed changes
Comment thread CHANGELOG.md Resolved

Uh oh!

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

RasmusWL and others added 2 commits December 13, 2023 20:28
@RasmusWL @aeisenberg
Safer wording of CHANGELOG entry
77f4e07
Co-authored-by: Andrew Eisenberg <[email protected]>
@RasmusWL
Merge branch 'main' into rasmuswl/no-dep-inst-default
dd20793
@aeisenberg

aeisenberg commented Dec 13, 2023

Copy link
Copy Markdown
Contributor

LGTM! I'll avoid approving this until you move this out of draft mode.

RasmusWL reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

RasmusWL added 3 commits January 4, 2024 15:28
@RasmusWL
Merge branch 'main' into rasmuswl/no-dep-inst-default
ce9d281
@RasmusWL
Update changelog wording to include january instead of now
aa95d4d
@RasmusWL
Update changelog wording
d98234a
To make it more clear what feature is being removed in the future
@RasmusWL
RasmusWL marked this pull request as ready for review January 4, 2024 15:08
@RasmusWL
RasmusWL requested a review from a team as a code owner January 4, 2024 15:08
@RasmusWL
RasmusWL requested a review from henrymercer January 4, 2024 15:08
henrymercer
henrymercer reviewed Jan 4, 2024
View reviewed changes

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

This looks great, just a couple of comments.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/analyze.ts Resolved

Uh oh!

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

Comment thread CHANGELOG.md

## [UNRELEASED]

- We are rolling out a feature in January 2024 that will disable Python dependency installation by default for all users. This improves the speed of analysis while having only a very minor impact on results. You can override this behavior by setting `CODEQL_ACTION_DISABLE_PYTHON_DEPENDENCY_INSTALLATION=false` in your workflow, however we plan to remove this ability in future versions of the CodeQL Action. [#2031](https://github.com/github/codeql-action/pull/2031)

@henrymercer henrymercer Jan 4, 2024

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.

[Non-blocking] Currently we disable Python dependency installation for CodeQL v2.16.0 and later, however the Action supports CodeQL versions all the way back to 2.11.6. Do we plan to keep supporting Python dependency installation for old CLIs in the Action until support for v2.15.5 is deprecated in about a year from now?

Sorry, something went wrong.

Uh oh!

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

All reactions

@RasmusWL RasmusWL Jan 5, 2024

Copy link
Copy Markdown
Member Author

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.

I had hoped to be able delete the python-setup folder and all the logic for dependency installation soon, but let's discuss this aspect some more 👍

Sorry, something went wrong.

Uh oh!

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

All reactions

@henrymercer henrymercer Jan 5, 2024

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.

👍 We can always start applying this to earlier CLI versions later on. Happy to discuss!

Sorry, something went wrong.

Uh oh!

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

RasmusWL reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread src/init-action.ts Resolved

Uh oh!

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

RasmusWL added 2 commits January 5, 2024 10:21
@RasmusWL
Add comment for force enabling dependency extraction
afef25e
@RasmusWL
Create helper isPythonDependencyInstallationDisabled
2e27b3c
@RasmusWL
RasmusWL requested a review from henrymercer January 5, 2024 09:24
@RasmusWL
Generate JS
9926570
henrymercer
henrymercer approved these changes Jan 5, 2024
View reviewed changes

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

Great, thank you! FYI, if after pushing commits you realize that you forgot to rebuild the Action, you can now apply the "Rebuild" label to have Actions rebuild it for you.

Sorry, something went wrong.

Uh oh!

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

RasmusWL reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@RasmusWL
RasmusWL merged commit 58ff74a into main Jan 5, 2024
@RasmusWL
RasmusWL deleted the rasmuswl/no-dep-inst-default branch January 5, 2024 10:18
@github-actions github-actions Bot mentioned this pull request Jan 8, 2024
Merge main into releases/v3 #2066
Merged
8 tasks
This was referenced Jan 8, 2024
Merge releases/v3 into releases/v2 #2068
Closed
Merge releases/v3 into releases/v2 #2069
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aeisenberg aeisenberg aeisenberg left review comments
@henrymercer henrymercer henrymercer approved these changes

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

@RasmusWL @aeisenberg @henrymercer
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.