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 — Delete python dependency installation code by RasmusWL · Pull Request #2224 · github/codeql-action

Conversation

@RasmusWL

@RasmusWL RasmusWL commented Apr 4, 2024 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Draft since we need to wait for 2.17.0 to be fully rolled out first.

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 9 commits April 4, 2024 17:12
@RasmusWL
Remove python dependency installation logic
c7eea24
I've left a few warning logging cases, but overall this feature is no
longer supported.
@RasmusWL
Autoformat
9ba21c3
@RasmusWL
Fix linting errors
d829366
@RasmusWL
build
6ab7733
@RasmusWL
Delete python-setup/
e0bc6b7
@RasmusWL
Restore python-setup/check_python12.ps1
f0a5e52
I think we can delete this logic too, but let's deal with that in a
separate PR
@RasmusWL
Merge branch 'main' into RasmusWL/remove-python-dep-inst
4e8e343
@RasmusWL
Python: suppress dependency extraction warning
e6b2c0d
See github/codeql#16127 (which will be released
as part of 2.17.1)
@RasmusWL
Update changelog
fcdff8b
@RasmusWL
RasmusWL marked this pull request as ready for review April 8, 2024 08:48
@RasmusWL
RasmusWL requested review from a team as code owners April 8, 2024 08:48
@henrymercer henrymercer added the Rebuild Re-transpile JS & re-generate workflows label Apr 8, 2024
@github-actions github-actions Bot removed the Rebuild Re-transpile JS & re-generate workflows label Apr 8, 2024
@github-actions
Rebuild
bcb5e6e
@github-actions

github-actions Bot commented Apr 8, 2024

Copy link
Copy Markdown
Contributor

Pushed a commit to rebuild the Action. Please mark the PR as ready for review to trigger PR checks.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions
github-actions Bot marked this pull request as draft April 8, 2024 09:27
@henrymercer
henrymercer marked this pull request as ready for review April 8, 2024 09:27
henrymercer
henrymercer reviewed Apr 8, 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.

Nice! A couple of comments, I suggest we also bump the version to v3.25.0 for this change (I'm happy to do that in a separate PR if you'd prefer).

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread CHANGELOG.md Resolved

Uh oh!

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

Comment thread src/analyze.ts
features: FeatureEnablement,
codeql: CodeQL,
) {
async function setupPythonExtractor(logger: Logger) {

@henrymercer henrymercer Apr 8, 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.

Could we print out a warning if the customer is trying to enable dependency installation via CODEQL_ACTION_DISABLE_PYTHON_DEPENDENCY_INSTALLATION or setup-python-dependencies stating that these are now ignored and pointing to the changelog blog post / relevant help?

Sorry, something went wrong.

Uh oh!

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

All reactions

@RasmusWL RasmusWL Apr 8, 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.

Sure. Done in d33e751

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/init-action.ts Resolved

Uh oh!

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

RasmusWL and others added 4 commits April 8, 2024 11:57
@RasmusWL
bump minor version
e94a917
@RasmusWL
Warn on deprecated Python dep inst config usage
d33e751
@RasmusWL @henrymercer
Improve Python dep inst warning
3f0cb87
Co-authored-by: Henry Mercer <[email protected]>
@RasmusWL @henrymercer
Update CHANGELOG wording
1401586
Co-authored-by: Henry Mercer <[email protected]>
@RasmusWL
RasmusWL requested a review from henrymercer April 8, 2024 10:02
RasmusWL added 3 commits April 8, 2024 12:02
@RasmusWL
fix comment
1f8d877
@RasmusWL
Rebuild
746a1af
@RasmusWL
Fix lint
7c23a5e
henrymercer
henrymercer previously approved these changes Apr 9, 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.

A question around the difference between CodeQL 2.13.1+ and 2.16.0+, and a couple of minor suggestions, but otherwise LGTM.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread init/action.yml Resolved

Uh oh!

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

Comment thread src/analyze.ts Resolved

Uh oh!

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

Comment thread src/init-action.ts
} else {
// From 2.16.0 the default for the python extractor is to not perform any library
// extraction, so we need to set this flag to enable it.
} else if (await codeQlVersionAbove(codeql, "2.13.1")) {

@henrymercer henrymercer Apr 9, 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.

Why is this a separate case to 2.16.0? Does the CLI generally expect that dependency extraction is enabled for CodeQL 2.13.1 and later but not 2.16.0 and later?

Sorry, something went wrong.

Uh oh!

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

All reactions

@RasmusWL RasmusWL Apr 9, 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.

Yep, spot on!

From 2.16.0 until 2.17.1, if the enrivonment variable is not set, the extractor will print a warning about this (which I wanted to suppress in codeql-action logs).

I guess my thinking was that once we drop support for the last 2.15.x we could drop one of the else if branches, but maybe it's OK to just merge them all together.

Sorry, something went wrong.

Uh oh!

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

All reactions
@RasmusWL @henrymercer
Apply suggestions from code review
3d026bc
Co-authored-by: Henry Mercer <[email protected]>
@RasmusWL
RasmusWL dismissed henrymercer’s stale review via 3d026bc April 9, 2024 10:28
@henrymercer
Merge branch 'main' into RasmusWL/remove-python-dep-inst
dd2106d
@henrymercer henrymercer added the Rebuild Re-transpile JS & re-generate workflows label Apr 9, 2024
@github-actions github-actions Bot removed the Rebuild Re-transpile JS & re-generate workflows label Apr 9, 2024
@github-actions
Rebuild
218c52e
@github-actions

github-actions Bot commented Apr 9, 2024

Copy link
Copy Markdown
Contributor

Pushed a commit to rebuild the Action. Please mark the PR as ready for review to trigger PR checks.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions
github-actions Bot marked this pull request as draft April 9, 2024 10:47
@henrymercer
henrymercer marked this pull request as ready for review April 9, 2024 10:47
henrymercer
henrymercer approved these changes Apr 9, 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.

Thanks again! 🧹

Sorry, something went wrong.

Uh oh!

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

RasmusWL reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@henrymercer
Merge branch 'main' into RasmusWL/remove-python-dep-inst
33e3a7c
@RasmusWL
RasmusWL merged commit 21eac7c into main Apr 9, 2024
@RasmusWL
RasmusWL deleted the RasmusWL/remove-python-dep-inst branch April 9, 2024 12:07
This was referenced Apr 15, 2024
Merge main into releases/v3 #2238
Merged
Merge releases/v3 into releases/v2 #2240
Merged
@KingOfKalk KingOfKalk mentioned this pull request Dec 8, 2025
chore(github): #174: Removes deprecated CODEQL_PYTHON and setup-python-dependencies. KingOfKalk/icsmerger#178
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Sep 16, 2026
ci(actions): bump github/codeql-action/analyze from 4.37.8 to 4.38.0 VBCreators/AI-RAG#34
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

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

2 participants

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