Closed Bug 1944279 Opened 21 days ago Closed 21 days ago

Use nightly rust toolchain in GitHub action

Categories

(Webtools :: Searchfox, task)

task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: arai, Assigned: nicolas.guichard)

Details

Attachments

(1 file)

47 bytes, text/x-github-pull-request
Details | Review

It looks like the GitHub action's environment has ~/.cargo by default (or at least before common-provision-pre.sh checks it),
and apparently it's not the latest nightly.
https://github.com/arai-a/mozsearch/actions/runs/13009914725/job/36285122759

As explained in bug 1943521, the SCIP symbol syntax is changed in the latest rust-analyzer nightly and the test snapshot is updated to follow it.
In order to make the test pass, the GitHub action's env should also use the latest rust-analyzer nightly.

The provisioning scripts already try to install Rust nightly, but this is skipped over because the GitHub Actions runner already has $HOME/.cargo.

I think we can just extract this block from the if:

rustup install nightly
rustup default nightly
rustup uninstall stable
rustup component add rust-analyzer

I'll send a PR to test this.

Attached file GitHub Pull Request
Assignee: nobody → nicolas.guichard
Status: NEW → RESOLVED
Closed: 21 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: