Uh oh!
There was an error while loading. Please reload this page.
Refactor versions detection in build-manifest - #77145
Conversation
Mark-Simulacrum
commented
Sep 24, 2020
Hm, so we can just merge this, but I'm thinking it would be good to @bors try and try to release a dev-static nightly with it just to test that it works on RCS as well. Unfortunately our CI here doesn't run build manifest in any capacity :/ |
bors
commented
Sep 24, 2020
…versions, r=<try> Refactor versions detection in build-manifest This PR refactors how `build-manifest` handles versions, making the following changes: * `build-manifest` now detects the "package releases" on its own, without relying on rustbuild providing them through CLI arguments. This drastically simplifies calling the tool outside of `x.py`, and will allow to ship the prebuilt tool in a tarball in the future, with the goal of stopping to invoke `x.py` during `promote-release`. * The `tar` command is not used to extract the version and the git hash from tarballs anymore. The `flate2` and `tar` crates are used instead. This makes detecting those pieces of data way faster, as the archive is decompressed just once and we stop parsing the archive once all the information is retrieved. * The code to extract the version and the git hash now stores all the collected data dynamically, without requiring to add new fields to the `Builder` struct every time. I tested the changes locally and it should behave the same as before. r? `@Mark-Simulacrum`
bors
commented
Sep 24, 2020
☀️ Try build successful - checks-actions, checks-azure |
emilyalbini
commented
Sep 24, 2020
Kicked off promotion. |
emilyalbini
commented
Sep 24, 2020
Promotion ended, it seems to work? |
bb8430e to
73d9c24CompareMark-Simulacrum
commented
Sep 24, 2020
@bors r+ |
bors
commented
Sep 24, 2020
📌 Commit 73d9c24 has been approved by |
emilyalbini
commented
Sep 25, 2020
@bors r- Wait, there is actually a bug, this does not find the |
emilyalbini
commented
Sep 25, 2020
Addressed. |
emilyalbini
commented
Sep 29, 2020
@bors r=Mark-Simulacrum |
bors
commented
Sep 29, 2020
📌 Commit 0749ad0 has been approved by |
bors
commented
Sep 29, 2020
bors
commented
Sep 29, 2020
☀️ Test successful - checks-actions, checks-azure |
The version was removed in rust-lang#77145
This PR refactors how
build-manifesthandles versions, making the following changes:build-manifestnow detects the "package releases" on its own, without relying on rustbuild providing them through CLI arguments. This drastically simplifies calling the tool outside ofx.py, and will allow to ship the prebuilt tool in a tarball in the future, with the goal of stopping to invokex.pyduringpromote-release.tarcommand is not used to extract the version and the git hash from tarballs anymore. Theflate2andtarcrates are used instead. This makes detecting those pieces of data way faster, as the archive is decompressed just once and we stop parsing the archive once all the information is retrieved.Builderstruct every time.I tested the changes locally and it should behave the same as before.
r? @Mark-Simulacrum