Skip to content

Make date of nightly in rustup match server TZ #21274

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

Merged
merged 1 commit into from
Jan 22, 2015
Merged

Conversation

estsauver
Copy link
Contributor

The timezone of the server that builds rustc nightlies
appears to be in UTC. From what I can tell, it builds
the nightlies at 0300 UTC, which takes about ~15 minutes.
So, there were a couple options here for which offset to use.

UTC+3 would ensure that you always got the latest rust, but it
would mean the script is broken ~15/20 minutes a day. UTC+4
means users get a stale nightly for 45 minutes, but that feels
okay to me.

Ideally, buildbot would publish the "current" nightly, but
that seems unneeded relative to fixing it for all Timezones
quickly.

Fixes #21270

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@sfackler
Copy link
Member

Nightly builds take ~4-5 hours.

@brson
Copy link
Contributor

brson commented Jan 18, 2015

@estsauver We talked about this at the workshop today, and although the ideal solution would be to have the metadata available for rustup to know the most recent archive date, we agreed on an offset that would hopefully work around the worst of the problem.

Is this PR updated for that offset?

Do you mind adding a FIXME saying that it would be better not to do this but to know concretely which date was available, and also renaming the commit from 'remove whitespace'?

@estsauver
Copy link
Contributor Author

Updated now.

@brson
Copy link
Contributor

brson commented Jan 20, 2015

@bors: r+ c034f4a

@alexcrichton
Copy link
Member

@bors: rollup

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 21, 2015
The timezone of the server that builds rustc nightlies
appears to be in UTC. From what I can tell, it builds
the nightlies at 0300 UTC, which takes about ~15 minutes.
So, there were a couple options here for which offset to use.

UTC+3 would ensure that you always got the latest rust, but it
would mean the script is broken ~15/20 minutes a day. UTC+4
means users get a stale nightly for 45 minutes, but that feels
okay to me.

Ideally, buildbot would publish the "current" nightly, but
that seems unneeded relative to fixing it for all Timezones
quickly.

Fixes rust-lang#21270
@bors bors merged commit c034f4a into rust-lang:master Jan 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustup: When local date is later than server date, nightly can't be downloaded
7 participants