8000 Action wheel builds do not happen when a tag is pushed. · Issue #25979 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Action wheel builds do not happen when a tag is pushed. #25979

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

Closed
charris opened this issue Mar 9, 2024 · 7 comments
Closed

Action wheel builds do not happen when a tag is pushed. #25979

charris opened this issue Mar 9, 2024 · 7 comments

Comments

@charris
Copy link
Member
charris commented Mar 9, 2024

This turned up when building wheels for v2.0.0b1, I needed to trigger them manually. I assume this is because push: has been removed from .github/workflows/wheels.yml.

Another potential problem is that the commit has both a tag and [wheel build]. I also wonder why only use the first line of the commit when looking for [wheel build]. I note the git log -1 --grep '\[wheel build\]' will also find the directive.

@andyfaff
Copy link
Member

Xref #24535

@andyfaff
Copy link
Member

here's how I run a build when a tag is pushed, for a personal project.

@charris
Copy link
Member Author
charris commented Mar 10, 2024

Even after #24535 there are a ton of 15 second runs of the wheel builder action, it doesn't seem to have bought much. @rgommers.

@rgommers
Copy link
Member

Even after #24535 there are a ton of 15 second runs of the wheel builder action, it doesn't seem to have bought much. @rgommers.

That is not the case. There are way fewer triggers on this repo, and almost none on forks - it is now possible to find the actual runs on the first page of the action. And the email notifications went away completely. There are still some triggers on this repo, but that didn't seem avoidable given the setup.

@charris
Copy link
Member Author
charris commented Mar 11, 2024

I'm tempted to revert the changes in #24535 just to get a release out. It would also help if manually running builds in a maintenance branch uploaded to staging.

@rgommers
Copy link
Member

Please don't do that. The problem is #25981 (comment). I'll open a PR asap.

rgommers added a commit to rgommers/numpy that referenced this issue Mar 11, 2024
This failed in combination with tag-based triggers:
- issue: numpygh-25979
- cause: numpy#25981 (comment)

More importantly, we don't need to fetch either the tags or the whole
commit history, because:

(a) we don't derive the version number from the last tag, but from
    parsing pyproject.toml
(b) we don't use a commit count, but only yyyymmdd.git-hash

See `numpy/_build_utils/gitversion.py`

Done only in the wheel build job right now, because that's where the
problem is and we're in a hurry to solve it on the 2.0.x branch.
However, this change should be fine everywhere.

[skip cirrus] [skip circle] [skip azp]
@rgommers
Copy link
Member

It would also help if manually running builds in a maintenance branch uploaded to staging.

Good point. That requires some extra config. I just learned that it's possible to add options to manual triggers; https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs. Perhaps choosing nighty vs. staging manually is useful?

charris pushed a commit to charris/numpy that referenced this issue Mar 11, 2024
This failed in combination with tag-based triggers:
- issue: numpygh-25979
- cause: numpy#25981 (comment)

More importantly, we don't need to fetch either the tags or the whole
commit history, because:

(a) we don't derive the version number from the last tag, but from
    parsing pyproject.toml
(b) we don't use a commit count, but only yyyymmdd.git-hash

See `numpy/_build_utils/gitversion.py`

Done only in the wheel build job right now, because that's where the
problem is and we're in a hurry to solve it on the 2.0.x branch.
However, this change should be fine everywhere.

[skip cirrus] [skip circle] [skip azp]
@charris charris closed this as completed Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0