Skip to content

Always install correct version of rust in CI - #14992

Closed
alamb wants to merge 4 commits into
apache:mainfrom
alamb:alamb/job_cleanup
Closed

Always install correct version of rust in CI#14992
alamb wants to merge 4 commits into
apache:mainfrom
alamb:alamb/job_cleanup

Conversation

@alamb

@alambalamb commented Mar 3, 2025

Copy link
Copy Markdown
Contributor

TODO remove the unused parameter to setup builder sript

Which issue does this PR close?

Rationale for this change

We now use the rust-toolchain.toml file to specify what version of rust to use

However, the recently released rustup version no longer automatically installs this toolchain

https://github.com/rust-lang/rustup/blob/f00c3d1fbcbe8d3ae2411e63ca906bc9b69e43d1/CHANGELOG.md?plain=1#L9-L17

Thus to ensure we have the correct toolchain installed, we need to run rustup toolchain install

What changes are included in this PR?

  1. Call rustup toolchain install as part of the builder setup
  2. Let's move this change into the builder setup job and reduce some re

Are these changes tested?

By CI

Are there any user-facing changes?

@github-actionsgithub-actionsBot added the development-process Related to development process of DataFusion label Mar 3, 2025

name: Prepare Rust Builder
description: 'Prepare Rust Build Environment'
inputs:

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

This was only ever called with stable so the parameter is unecessary

"${RETRY[@]}" rustup default ${{ inputs.rust-version }}
echo "Installing Rust ..."
# install toolchain specified by rust-toolchain.toml
"${RETRY[@]}" rustup toolchain install

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

now this installs the version of rust specified by rust-toolchain.toml

runs:
using: "composite"
steps:
- uses: actions/checkout@v4

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

We need to checkout the code in the builder setup to get the rust-toolchain.toml file

@alambalamb changed the title Setup correct version of rust in CIAlways install correct version of rust in CIMar 3, 2025
@github-actions

Copy link
Copy Markdown

Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days.

@github-actionsgithub-actionsBot added the Stale PR has not had any activity for some time label May 6, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-processRelated to development process of DataFusionStalePR has not had any activity for some time

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@alamb