8000 CI: don't use ``fetch-tags`` in wheel build jobs by rgommers · Pull Request #25995 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

CI: don't use fetch-tags in wheel build jobs #25995

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

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

rgommers
Copy link
Member
@rgommers rgommers commented Mar 11, 2024

This failed in combination with tag-based triggers:

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]

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 Author

Testing on my fork, all looking good: https://github.com/rgommers/numpy/actions/runs/8236127874 (modulo the Chocolatey issue that is apparently not resolved completely).

@charris if you push this to maintenance/2.0.x, then building wheels on pushing a tag should work.

@rgommers rgommers added this to the 2.1.0 release milestone Mar 11, 2024
@rgommers rgommers added the 09 - Backport-Candidate PRs tagged should be backported label Mar 11, 2024
@charris charris merged commit e7568e9 into numpy:main Mar 11, 2024
@charris
Copy link
Member
charris commented Mar 11, 2024

Thanks Ralf.

@charris charris added 03 - Maintenance and removed 09 - Backport-Candidate PRs tagged should be backported labels Mar 11, 2024
@charris charris changed the title CI: don't use fetch-tags in wheel build jobs CI: don't use fetch-tags in wheel build jobs Mar 11, 2024
@rgommers rgommers deleted the no-fetch-tags branch March 11, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0