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 — Install Python tools on self-hosted runners by edoardopirovano · Pull Request #618 · github/codeql-action

Conversation

@edoardopirovano

@edoardopirovano edoardopirovano commented Jul 13, 2021

Copy link
Copy Markdown
Contributor

This PR changes the init step to also install the Python packages that the Action requires when running on self-hosted runners, as we already do on GitHub ones. The rationale given in #155 for not doing this was that "we don't want our cli to be messing around with things in the system". On the one hand, this seems reasonable. However, I think we should try to make a best attempt to succeed with our analysis and in my opinion this means installing tools we require.

Notably, we are already messing around with things that are installed since the later step will install an arbitrary number of packages that are dependencies of the code so that we can analyse it. If we are happy to do this, I see no reason why we shouldn't also be happy to install the four Python packages that we need.

This PR was prompted by #615, where the user's workflow failed due to this (and one other issue).

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
@edoardopirovano
edoardopirovano requested a review from a team as a code owner July 13, 2021 07:34
aeisenberg
aeisenberg reviewed Jul 13, 2021
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.

One small suggestion. And looks like you need to fix some conflicts.

Sorry, something went wrong.

Uh oh!

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

edoardopirovano reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread src/init.ts Outdated
logger.endGroup();
logger.warning(
"We were unable to install your python dependencies. You can call this action with 'setup-python-dependencies: false' to disable this process."
"We were unable to automatically install your python dependencies. Please make sure any necessary " +

@aeisenberg aeisenberg Jul 13, 2021

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.

Do you also want to log the error here?

Sorry, something went wrong.

Uh oh!

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

All reactions

@edoardopirovano edoardopirovano Jul 13, 2021

Copy link
Copy Markdown
Contributor 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.

Thanks, done.

Sorry, something went wrong.

Uh oh!

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

All reactions
@edoardopirovano
Install Python tools on self-hosted runners
cc14f29
@edoardopirovano
edoardopirovano force-pushed the python-deps branch from ee46daf to cc14f29 Compare July 13, 2021 16:24
aeisenberg
aeisenberg approved these changes Jul 13, 2021
View reviewed changes
@aliscco

aliscco commented Jul 13, 2021

Copy link
Copy Markdown

__

All reactions

Sorry, something went wrong.

Uh oh!

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

@edoardopirovano
edoardopirovano merged commit 1137e7d into github:main Jul 13, 2021
@edoardopirovano
edoardopirovano deleted the python-deps branch July 13, 2021 16:56
@github-actions github-actions Bot mentioned this pull request Jul 19, 2021
Merge main into v1 #621
Merged
4 of 5 tasks
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

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

@edoardopirovano @aliscco @aeisenberg
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.