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

BLD: push a tag builds a wheel #25981

Merged
merged 1 commit into from
Mar 10, 2024
Merged

BLD: push a tag builds a wheel #25981

merged 1 commit into from
Mar 10, 2024

Conversation

andyfaff
Copy link
Contributor

See #25979.

The logic here is that:

  1. Pushing to a maintenance branch starts a CI run.
  2. If the github.ref starts with refs/tags/v and doesn't end with dev0 then the wheel builder runs
  3. This sets the IS_PUSH variable.
  4. When it comes to the upload step, then the wheels are uploaded to multibuild-wheels-staging.

@github-actions github-actions bot added the 36 - Build Build related PR label Mar 10, 2024
@andyfaff
Copy link
Contributor Author

If if one triggers manually, or with a pull request containing [wheel build], then the wheels are uploaded to scientific-python-nightly-wheels.

.github/workflows/wheels.yml Outdated Show resolved Hide resolved
@charris
Copy link
Member

charris commented Mar 10, 2024

How about we put this in, backport it, and run a tag to see how it does?

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Mar 10, 2024
@charris
Copy link
Member

charris commented Mar 10, 2024

If if one triggers manually

It would make sense to upload to staging when manually building maintenance branches. The nightlies are for wheels of the ongoing development in the main branch.

@charris charris merged commit 2587501 into numpy:main Mar 10, 2024
63 checks passed
@charris
Copy link
Member

charris commented Mar 10, 2024

Going to give this a shot. Thanks Andrew.

@andyfaff andyfaff deleted the tagg branch March 10, 2024 22:32
@andyfaff
Copy link
Contributor Author

There are some things you only find out about in the heat of battle.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Mar 10, 2024
@charris
Copy link
Member

charris commented Mar 11, 2024

@andyfaff
Copy link
Contributor Author

I might see if I can debig this by pushing tags to my fork.

@njzjz
Copy link

njzjz commented Mar 11, 2024

@rgommers
Copy link
Member

Good catch, thanks @njzjz. The fetch-tags usage was just introduced in gh-25900, and generally fine I think - but it had negative cross-talk with this tag trigger it looks like. I'll revert it just for wheels.yml.

rgommers added a commit to rgommers/numpy that referenced this pull request 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 pushed a commit to charris/numpy that referenced this pull request 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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
36 - Build Build related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants