Closed Bug 1869653 Opened 2 years ago Closed 2 years ago

Add command to quickly check if vendored Rust dependencies are in sync with upstream

Categories

(Thunderbird :: Build Config, task)

Tracking

(thunderbird_esr115 wontfix, thunderbird122 wontfix)

RESOLVED FIXED
123 Branch
Tracking Status
thunderbird_esr115 --- wontfix
thunderbird122 --- wontfix

People

(Reporter: rjl, Assigned: rjl)

References

Details

Attachments

(5 files, 2 obsolete files)

In order to prevent hard to diagnose build bustage, Thunderbird sheriffs will need a quick way to verify that vendored Rust libraries are up-to-date with upstream.

This will have two parts:

  • Add mach tb-rust subcommand to do the check
  • Run this check at build time if --enable-thunderbird-rust is set; abort the build if necessary

The second part should not cause problems for most local development unless using autoland or in-progress mozilla central patches.

Provides a quick check to see if comm/third_party/rust is in sync with upstream.

Depends on D196380

m-c: 63aeef886ee6

Depends on D196237

If --enable-thunderbird-rust is set, make sure that vendored libs are in sync
with upstream to avoid non-obvious build failures.

Depends on D196383

Attachment #9368573 - Attachment description: WIP: Bug 1869653 - Ensure that cargo version is new enough for tb-rust vendor. → Bug 1869653 - Ensure that cargo version is new enough for tb-rust vendor. r=#thunderbird-build-system-reviewers
Attachment #9368312 - Attachment description: WIP: Bug 1869653 - Checksum upstream inputs to tb-rust vendor. → Bug 1869653 - Checksum upstream inputs to tb-rust vendor. r=ikey
Attachment #9368574 - Attachment description: WIP: Bug 1869653 - Run tb-rust vendor. → Bug 1869653 - Run tb-rust vendor. r=ikey
Attachment #9368575 - Attachment description: WIP: Bug 1869653 - Abort build early if vendored rust libs are out of sync with upstream. → Bug 1869653 - Abort build early if vendored rust libs are out of sync with upstream. r=#thunderbird-build-system-reviewers
Attachment #9368572 - Attachment is obsolete: true
Attachment #9368571 - Attachment description: WIP: Bug 1869653 - Generate valid TOML when processing workspace_dependencies. → Bug 1869653 - Generate valid TOML when processing workspace_dependencies. r=ikey
Attachment #9368571 - Attachment is obsolete: true
Attachment #9368575 - Attachment description: Bug 1869653 - Abort build early if vendored rust libs are out of sync with upstream. r=#thunderbird-build-system-reviewers → Bug 1869653 - Abort build when vendored rust libs are out of sync with upstream. r=#thunderbird-build-system-reviewers
Target Milestone: --- → 123 Branch

Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/7a7ca68d1ad4
Ensure that cargo version is new enough for tb-rust vendor. r=dandarnell
https://hg.mozilla.org/comm-central/rev/a9c2999de50f
Checksum upstream inputs to tb-rust vendor. r=ikey
https://hg.mozilla.org/comm-central/rev/442105034f47
Run tb-rust vendor. r=ikey
https://hg.mozilla.org/comm-central/rev/eaa486e01499
Abort build when vendored rust libs are out of sync with upstream. r=dandarnell

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/afe1d7e773e1
Fix missing sys import. r=dandarnell

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: