8000 Fix peloton by pp-mo · Pull Request #281 · SciTools/.github · GitHub
[go: up one dir, main page]

Skip to content

Fix peloton - #281

Open
pp-mo wants to merge 1 commit into
SciTools:mainfrom
pp-mo:peloton_conda
Open

pp-mo wants to merge 1 commit into
SciTools:mainfrom
pp-mo:peloton_conda

Conversation

@pp-mo
@pp-mo pp-mo commented Nov 25, 2026
Copy link
Copy Markdown
Member

Broken since GHA environment stopped including conda as standard.
Updated peloton action to install it explicitly,

@pp-mo
pp-mo marked this pull request as draft November 25, 2026 11:35
@pp-mo
pp-mo force-pushed the peloton_conda branch 2 times, most recently from 7ce9cd5 to 0e2268c Compare November 25, 2026 11:44
@pp-mo
pp-mo commented Nov 25, 2026
Copy link
Copy Markdown
Member Author

In testing:
pushed branch 'peloton_conda' direct to this repo ("upstream"), now manually run against that branch,
seems to have worked : see action run

@pp-mo
pp-mo marked this pull request as ready for review November 25, 2026 12:13
@stephenworsley stephenworsley left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple minor suggestions to keep this in line with existing patterns. Otherwise this looks good.

@@ -1,3 +1,8 @@
# reference:
# - https://github.com/actions/checkout
# - https://github.com/marketplace/actions/setup-miniconda
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following the pattern in #280 this ought to be "https://github.com/conda-incubator/setup-miniconda"

@pp-mo pp-mo Nov 26, 2026 •
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I preferred the 'marketplace' version because I thought it was more "official", i.e. GHA approved.
This form is what you get if you go to conda-incubator/setup-miniconda and hit the "Use this GitHub action with your project : view in Marketplace" button which they provide, so I assumed they wanted to "promote" it that way.

Actually I now realise that this is also true of 'github-app-token' : it is also available from Marketplace, if we wanted to prefer that?
... and, if you go there, it suggests we should be using a newer "create-github-app-token" action instead ...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's maybe a case for that, but the same could be said for the other links in the reference section. If we were to make that change here it would make sense to make it across the board for all such links, which feels more like it deserves its own PR. For the time being, maintaining consistency makes more sense to me.

uses: actions/checkout@v3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1

- name: "Install miniconda"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following the pattern in #280 this ought to be "Conda install"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I thought that terminology was simply ill-chosen + confusing.
The steps there are named :

  • Checkout repo
  • Install run dependencies
  • Conda install
  • Cache environment directories
  • Benchmark this pull request
  • Run overnight benchmarks
  • Warn of failure
  • Upload any benchmark reports
  • Archive asv results

So "Conda install" is out of line with all the others, which use an active verb (like the numpydoc recommendation).
And it is ambiguous in my view : it could imply that we are running a "conda install" command.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that makes sense. I suppose it would be out of scope to change the other instances of "Conda install" in this PR but it might be worth capturing this as a follow up task in an issue (along with the above comment about changing the reference links to their marketplace versions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants

0