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

Iterating on human-readable AMP version numbers #27972

Closed
dreamofabear opened this issue Apr 23, 2020 · 6 comments
Closed

Iterating on human-readable AMP version numbers #27972

dreamofabear opened this issue Apr 23, 2020 · 6 comments

Comments

@dreamofabear
Copy link

Follow-up to #27793.

Can we consider changing the computation of the RTV from "time of release cut" to "time of most top commit"? This would be a nice property for human-readability.

I'm guessing this was originally decided against since cherry-picks can cause multiple releases to have the same RTV, but now cherry-picks onto a release preserves most of the base RTV so maybe we're good to go?

Context is I was recently bisecting releases to pinpoint a regression and I couldn't rely on the dates baked into the RTVs to determine ordering e.g. RTV 123 is not necessarily a subset of RTV 124. So I had to look up each nightly's commit SHA to figure out where it was relative to the stable RTV.

/cc @ampproject/wg-infra

@estherkim
Copy link
Collaborator

Makes sense to me!

@rcebulko
Copy link
Contributor

Slightly related: ampproject/error-tracker#125

I support this, especially because of the added benefit that developers can then look at the date embedded in an RTV and, with some confidence, say that their PR is/isn't in it based on the datetime their commit merged

@danielrozenberg
Copy link
Member

This is already how it's done since #16631. It takes the commit time, which is different from author time - basically it's the time somebody clicked the "squash" button on GitHub.

Before #27848, cherry-picks would cause that commit time to shift to when the release-on-duty ran git cherry-pick <sha>. After I merge #27848 the change would be that to figure out a build's version number it will move backwards until the first non-cherry-picked commit and use its commit time for the datetime part of the, and use the number of cherry-picked it iterated (which could be zero) to determine the last 3 digits

@dreamofabear
Copy link
Author

Oh yea!! 🎉

@estherkim
Copy link
Collaborator

Can we convert to Eastern or Pacific Time? Seems like it's in UTC.

For example, I created a cherry pick pick today, April 23, between 7:30 and 8:30 ET. The cherry pick instructions gave me a 20-04-24-* branch name and the new release is 2004240001480.

@danielrozenberg
Copy link
Member

UTC was a deliberate choice as it is never affected by DST. It's a 1:1,000,000,000 chance that someone will build two releases one after the in the one hour span during which DST ends, but why take the risk :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants