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

Include committer date in local version identifier of unstable builds #19179

Merged
merged 2 commits into from
May 31, 2023

Conversation

huonw
Copy link
Contributor

@huonw huonw commented May 28, 2023

Fixes #7399 by adjusting the local version identifier of 'unstable' wheels to also include a timestamp, so that builds with the same stable version can be sorted in a vaguely sensible way, without having to dereference the git hash manually.

The timestamp chosen is the committer date of the commit in question, formatted as a vaguely human readable number (yyyymmddHHMM). For example, this PR's CI built pantsbuild.pants-2.18.0.dev0+202305302357.git111f44db-cp39-cp39-macosx_11_0_arm64.whl, corresponding to 2023-05-30 23:57.

@huonw huonw added the category:internal CI, fixes for not-yet-released features, etc. label May 28, 2023
@huonw
Copy link
Contributor Author

huonw commented May 28, 2023

Given the push to more automated releases, I don't know if this is still a useful change; if not, I guess we can just close #7399 as wont-fix/no-longer-relevant.

@huonw huonw requested review from stuhood and Eric-Arellano May 28, 2023 03:08
@huonw huonw marked this pull request as ready for review May 28, 2023 03:36
Copy link
Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Thanks: no strong feelings about this one.

build-support/bin/release.py Outdated Show resolved Hide resolved
@huonw huonw merged commit 5458f24 into pantsbuild:main May 31, 2023
@huonw huonw deleted the bugfix/7399-orderable-wheel-build-tags branch May 31, 2023 03:24
@wisechengyi wisechengyi mentioned this pull request Jun 3, 2023
wisechengyi added a commit that referenced this pull request Jun 4, 2023
### Internal

* upgrade to Rust v1.70.0
([#19228](#19228))

* Remove the last mentions of NO_TOOL_LOCKFILE.
([#19229](#19229))

* Upgrade Helm unittest
([#19220](#19220))

* Prepare `2.17.0rc0`.
([#19226](#19226))

* Use a trait for remote action result caching
([#19097](#19097))

* Port `Field` to Rust
([#19143](#19143))

* Upgrade `pyo3` to `0.19`.
([#19223](#19223))

* Prepare `2.16.0rc5`.
([#19221](#19221))

* internal: Create dep inference request type
([#19001](#19001))

* Avoid requiring Python when trying to install Python (using Pyenv)
([#19208](#19208))

* Fix secondary ownership warning semantics
([#19191](#19191))

* Bump os_pipe from 1.1.3 to 1.1.4 in /src/rust/engine
([#19202](#19202))

* Include committer date in local version identifier of unstable builds
([#19179](#19179))

* Ensure we set the AWS region.
([#19178](#19178))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generate unstable package versions which can be ordered by timestamp in release.sh
2 participants