Skip to content

Fix cooldown filtering for Rust toolchains - #15596

Open
eitsupi wants to merge 3 commits into
dependabot:mainfrom
eitsupi:fix/rust-toolchain-cooldown-release-dates
Open

eitsupi wants to merge 3 commits into
dependabot:mainfrom
eitsupi:fix/rust-toolchain-cooldown-release-dates

Conversation

@eitsupi

@eitsupi eitsupi commented Jul 16, 2026

Copy link
Copy Markdown

What are you trying to accomplish?

Rust toolchain releases currently have no released_at value. The shared cooldown filter skips releases without that value, so configured cooldowns do not affect Rust toolchain updates. This was observed in apache/arrow-adbc#4530, where a one-day-old nightly was proposed despite a seven-day cooldown.

Populate PackageRelease#released_at from the date already present in each manifests.txt URL. This enables the existing shared cooldown implementation for dated channels and versioned toolchains.

Anything you want to highlight for special attention from reviewers?

The manifest date is treated as UTC midnight. The updater already parses the same date from URLs when constructing dated channel versions.

How will you know you have accomplished your goal?

Added coverage that verifies manifest dates are retained for both nightly and versioned releases, and that a recent nightly is filtered by a seven-day cooldown while an older nightly remains eligible.

Checklist

  • Added tests
  • Ran all Rust toolchain specs (208 examples, 0 failures)
  • Ran RuboCop on changed files (no offenses)

Copilot AI review requested due to automatic review settings July 16, 2026 01:04
@eitsupi
eitsupi requested a review from a team as a code owner July 16, 2026 01:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds release timestamps to Rust toolchain manifests so shared cooldown filtering applies correctly.

Changes:

  • Parses manifest dates into PackageRelease#released_at.
  • Adds release-date and cooldown filtering coverage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
package_details_fetcher.rb Creates dated package releases.
package_details_fetcher_spec.rb Verifies retained release dates.
latest_version_finder_spec.rb Tests nightly cooldown filtering.

Comment thread rust_toolchain/lib/dependabot/rust_toolchain/package/package_details_fetcher.rb Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

@eitsupi
eitsupi force-pushed the fix/rust-toolchain-cooldown-release-dates branch from a8dbd08 to 9188ed2 Compare July 16, 2026 01:16
Copilot AI review requested due to automatic review settings July 16, 2026 01:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 17, 2026 23:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 25, 2026 23:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@v-robaiken v-robaiken self-assigned this Aug 12, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants