Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store date of nightly version in separate field #2639

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

syphar
Copy link
Member

@syphar syphar commented Oct 18, 2024

this is helpful for two things I'm working on:

  1. automatic rebuilds for old releases. I want to configure a "max nightly date" to rebuild up to.
  2. a command to queue rebuilds for broken nightly versions, just via using the date.

@syphar syphar requested a review from a team as a code owner October 18, 2024 05:42
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Oct 18, 2024
@@ -244,6 +244,17 @@ pub(crate) async fn finish_build(
debug!("updating build after finishing");
let hostname = hostname::get()?;

let rustc_date = match parse_rustc_date(rustc_version) {
Copy link
Member

Choose a reason for hiding this comment

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

Do we not want to return early in case the date couldn't be parsed instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wasn't sure about the possible edge cases. While I tested the parsing with all existing rustc_version contents in our production builds table, we have a handful of records where the version is empty.

So for now I wanted to just log an error. In the end, the build finished, even when the version couldn't be parsed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants