Comments (13)
To add some context - in free conversation we often talk about versions using their last 3 digits, which will become pretty useless after ampproject/amphtml#27848, so having another shorthand can help a lot!
from error-tracker.
- With a letter, an un-informed reader could easily misread it as a git commit SHA
We can use α/β/γ/δ instead of a/b/c/d to address this concern 😅😅😅😅
from error-tracker.
+1 Ryan's points. I'd like to see how the 000, 001, 002 syntax works out.
from error-tracker.
The most useful places for these strings to be used would be user- and developer-facing places:
- release infrastructure UIs
- error reporting UIs
- release-tracking issues
- GitHub releases
- "Powered by AMP ⚡ HTML - Version XXXXXXXXXX" log to console
Places that programatically consume/use the RTV should not be altered; this should be a purely cosmetic improvement
- https://cdn.ampproject.org/rtv/metadata
- version in
AMP_CONFIG
- most logging during build/release process
In some cases, the string will be useful while the raw RTV should still be included to allow for exact matching, such as between the console logged version and the RTVs in /rtv/metadata. GitHub releases and release-tracking issues should still include the raw RTV somewhere in the body, but the title could benefit from the readable string.
from error-tracker.
I agree with the intent, but I'm wary of making changes because the human readable name will change a lot when it goes through different channels.
Since we're already changing the format with @danielrozenberg's cherry pick I2I, can we let that breathe for a little before changing the name? I want to be careful not to cause extra confusion by moving too fast.
from error-tracker.
I agree with the intent, but I'm wary of making changes because the human readable name will change a lot when it goes through different channels.
Can you clarify what you mean by this?
Since we're already changing the format with
@danielrozenberg
's cherry pick I2I, can we let that breathe for a little before changing the name? I want to be careful not to cause extra confusion by moving too fast.
This has been planned for a couple months to change in error reporting by the end of April. As for the rest (ie. releases, issues, logging) since it's adding the string and the RTV will still be there, I don't see it causing much confusion, and could actually sync well with the cherry-pick changes.
@danielrozenberg WDYT re: confusion around this + cherry-pick changes?
from error-tracker.
I don't see a problem having a different format in the error reporting tool, as long as the full, standard version number is also available and easily reachable for display (e.g., for searching in page)
from error-tracker.
Last-minute opinion, how about the version with no cherry picks end with a
, with 1 → b
, 2 → c
, ..., 26 → aa
, 27 → ab
, ...
This way most versions will have a fingerprint such as (1234a)
, and cherry-picked releases will be (1234b)
, (1234c)
...
This could be easier to say out loud ("one two three for aye" and "one two three for bee" instead off "one two three four" and "one two three for plus one") and removes any ambiguity whether one refers to the base of a release branch, or to the specific (non-cherry-picked) release
Update: neat easter egg, the version number for cherry-pick 999 would be all
!
function x(n) {
const lsb = String.fromCharCode(97 + (n % 26));
if (n / 26 >= 1.0) {
return `${x(Math.floor(n / 26) - 1)}${lsb}`;
}
return lsb;
}
// x(999) -> 'all'
from error-tracker.
Hmm that's a really interesting idea. I do like it because, as you say, it's clearer to vocally say (plus that is an awesome easter egg).
I see two disadvantages:
- With a letter, an un-informed reader could easily misread it as a git commit SHA
- With the
+1
syntax, it seems a bit clearer that it's an extension/cherry-pick
I don't feel too strongly either way; very curious what @estherkim and @rsimha think about each of these options. Will defer to the thread/whichever option gets 2/3
from error-tracker.
I kinda like the +1
syntax.
from error-tracker.
+1 to the +1
syntax.
from error-tracker.
also prefer the +1 syntax 🕺
from error-tracker.
Part of #112
Implemented in #127
from error-tracker.
Related Issues (20)
- UnhandledPromiseRejectionWarning: Unhandled promise rejection
- I2I: Migrate error reporting handler to serverless deployment HOT 3
- Investigate if the `debug` or `spt` (singlePassType) params are used anywhere HOT 2
- allow for debug or bypass mode HOT 1
- I2I: Error Reporting Migration Plan HOT 4
- Move Stable throttling to client HOT 1
- I2I: Rename service bucket from "Development" to "1%"
- Rename the default branch of this repo to `main` HOT 4
- Possible bug or spec? HOT 1
- Dependency Dashboard
- Cannot read property 'includes' of undefined
- Is the README accurate? HOT 1
- Errors during logging
- Version 10 of node.js has been released
- Incorrect deobfuscated stack traces HOT 10
- Stack trace unminify throws "memory access out of bounds" in wasm code
- TypeError: Cannot read property 'startsWith' of undefined
- An in-range update of safe-decode-uri-component is breaking the build 🚨 HOT 2
- An in-range update of @google-cloud/logging is breaking the build 🚨 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from error-tracker.