Closed Bug 1957042 Opened 9 months ago Closed 9 months ago

Upgrade to UniFFI 0.29.1

Categories

(Toolkit :: UniFFI Bindings, task)

task

Tracking

()

RESOLVED FIXED
139 Branch

People

(Reporter: janerik, Assigned: ErichDonGubler)

References

Details

Attachments

(1 file)

In bug 1950665 we did try to upgrade to 0.29.1 straight away.
However that brought in #[unsafe()] annotations and those require Rust 1.82.0 and while we build Firefox on 1.82.0 the TSAN/ASAN tasks use a dev build of rust, to apply additional patches, that is kinda-but-not-really 1.82.0, just before #[unsafe()] got stable.

See also https://bugzilla.mozilla.org/show_bug.cgi?id=1945020#c8

We need that resolved before we can bring in uniffi 0.29.1 (and later). And probably other crates as they migrate to MSRV 1.82.0

try run where we hit that: https://treeherder.mozilla.org/jobs?repo=try&revision=ec5542a75471592a52811fa343f77ac97d2ed330
logs:

We might be able to unblock this by cherry picking patches for unsafe attributes against the nightly Rust toolchain versionwe use . I'm not sure if that would result in a correct toolchain, but we can at least try it; the patch for stabilizing applies cleanly, at any rate.

NI'ing :glandium for thoughts.

Flags: needinfo?(mh+mozilla)

It looks like rust#128771 stabilized unsafe attributes, and was only 3ish days after the commit that we're using for sanitizer builds. I strongly suspect this will work, if unsafe attributes are all that is necessary. I'll file a patch.

Aha, here's the Try push I just did with the patch I attached in comment 3: try:9bb5838dfd75

Looking good! I'll just punt the NI to a review from :glandium now.

Flags: needinfo?(mh+mozilla)
Assignee: nobody → egubler
Attachment #9475377 - Attachment description: WIP: Bug 1957042 - build(rust): patch stabilization of `unsafe` attributes in Rust for sanitizer builds r=glandium → Bug 1957042 - build(rust): patch stabilization of `unsafe` attributes in Rust for sanitizer builds r=glandium
Status: NEW → ASSIGNED
Keywords: leave-open
Pushed by egubler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/839829bda350 build(rust): patch stabilization of `unsafe` attributes in Rust for sanitizer builds r=glandium

I put a try run on today with the uniffi 0.29.1 update applied (among the other glean & a-s update): https://treeherder.mozilla.org/jobs?repo=try&revision=5c97b03666dfa646f9c111dec6c15cada3feb4a6

Both asan and tsan seems to be passing now. We can probably pull in 0.29.1 along with the Glean update. So I'll probably do that as part of re-landing bug 1953191

That sounds encouraging! I'm glad I could help. 🙂

Happened in bug 1950665

Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Depends on: 1950665
Target Milestone: --- → 139 Branch
No longer depends on: 1915537
See Also: → 1915537
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: