Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update github action #11

Merged
merged 12 commits into from
Oct 18, 2024
Merged

update github action #11

merged 12 commits into from
Oct 18, 2024

Conversation

samwaseda
Copy link
Member

No description provided.

Copy link

Binder 👈 Launch a binder notebook on branch pyiron/uniton/update_actions

@mbruns91
Copy link
Contributor

mbruns91 commented Oct 15, 2024

After some issues with my release (sorry, but I think it's ok now) another issue occurs https://github.com/pyiron/uniton/actions/runs/11348195667/job/31561387155

It seems that the newest ubuntu-runner (??? at least that's my impression) doesn't allow pip to be run casually to protect system-python.

so (as suggested in the error output) in the original write_docs.yml action it should be changed
pip install pyyaml -> apt install python3-yaml (I checked the name of the correct package on launchpad.net).

@liamhuber, what do you think?

@liamhuber
Copy link
Member

After some issues with my release (sorry, but I think it's ok now)

🚀

another issue occurs https://github.com/pyiron/uniton/actions/runs/11348195667/job/31561387155

It seems that the newest ubuntu-runner (??? at least that's my impression) doesn't allow pip to be run casually to protect system-python.

Can we confirm this? This can be tested by modifying the runner explicitly in the workflow to be an older image.

I found it via google, no need to confirm: actions/runner-images#10781

so (as suggested in the error output) in the original write_docs.yml action it should be changed pip install pyyaml -> apt install python3-yaml (I checked the name of the correct package on launchpad.net).

@liamhuber, what do you think?

IMO this is a problem with the image, not a problem with the workflow. In practice we only run this workflow on ubuntu, but in principle this is not specified in the action itself which specifies a using: "composite". Switching from pip to apt would make the action unusable on windows, yeah?

A better solution would be to manually specify the runner input. Thankfully, this is easily exposed in the reusable workflows we're leveraging. Please try specifying the runner input as "ubuntu-22.04" to override the default of "ubuntu-latest".

The downside is that we'll need to do this in each downstream repo, the upside is that there's nothing intrinsically wrong with specifying a particular runner, and we don't wind up messing around with our infrastructure just to accommodate the fact someone made a mistake upstream. I strongly prefer the verbosity over making an unnecessary structural change.

@mbruns91
Copy link
Contributor

Ok, so for this repo, I totally agree with you, @liamhuber. For the actions in gerneral I think it is worth to consider to go another route. But it's a better idea - I guess - to have this conversation here.

To wrap this one up here (@samwaseda: I can do this tomorrow):

@liamhuber
Copy link
Member

go back to [email protected]

[email protected]

@v3.3.2 will target the (mutable) branch rather than the release (an immutable tagged commit). In this case, we control the actions repo so realistically there is no security concern, but in principle we want the immutable one for safety.

@mbruns91
Copy link
Contributor

I don't know if it's an issue on my side, but I can't push to this repo.
(I just tested to push something to another repo of the pyiron organization and it works fine.)

@samwaseda
Copy link
Member Author

now?

Copy link

codacy-production bot commented Oct 16, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.42% (target: -1.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (781bfb0) 64 62 96.88%
Head commit (9ba255f) 74 (+10) 72 (+10) 97.30% (+0.42%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#11) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@mbruns91
Copy link
Contributor

mbruns91 commented Oct 16, 2024

preview-release.yml uses pyiron/actions/.github/workflows/[email protected], which doesn't expose the selection of a specific runner. I out-commented the respective line.

I think we should fix this upstream in pyiron/actions, i.e. exposing runner as optinal input in pyiron/actions/.github/workflows/pyproject-release.yml

@liamhuber
Copy link
Member

Super, glad to see this fix worked as expected. @mbruns91, I totally agree the other workflow should also expose the runner as an argument.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11400689592

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.297%

Totals Coverage Status
Change from base Build 11375358989: 0.0%
Covered Lines: 72
Relevant Lines: 74

💛 - Coveralls

@mbruns91 mbruns91 merged commit 9185ab5 into main Oct 18, 2024
18 checks passed
@mbruns91 mbruns91 deleted the update_actions branch October 18, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants