-
Notifications
You must be signed in to change notification settings - Fork 21
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
Test comment with WPT link for big metrics #147
Conversation
The point is that there is only one artifact link no matter how many more pages were tested. And since there is basically no unique content to put under the toggle, I got rid of them in favor of a bullet point. And maybe we just use original WPT results instead of messing with artifact file. Maybe this look is nicer? https://almanac.httparchive.org/en/2022/WPT test results {
"_css-variables": {
"summary": {}
}
} https://www.morgenpost.de/politik/article407241629/game-changer-fuer-die-ukraine-bahnt-sich-an-putin-droht.htmlWPT test results https://www.example.comWPT test results |
Ah gotcha. Didn’t think of that before. it kinda looked odd in the changes you’ve made here so far. And inconsistent between the tests that had changes (WPT link in summary) and that didn’t (WPT link not in summary).
Well the WPT test link is the unique bit of content.
Yeah to me link would be fine. And maybe instead of changed results it could be “Cannot display changed results due to GitHub comment limits. Use the link instead.” Or something like that.
I think it’s still a bit confusing that the “Change custom metric” doesn’t seem to belong to the first bullet. Honestly if just have them all under summary/details with the link, and the changed metric (or above message if can’t display those for that test). |
Updated example above (toggles, JSON links, no artifacts). |
LGTM! |
https://almanac.httparchive.org/en/2022/Changed custom metrics values: {
"_css-variables": {
"summary": {}
}
} https://www.morgenpost.de/politik/article407241629/game-changer-fuer-die-ukraine-bahnt-sich-an-putin-droht.htmlCannot display changed custom metrics due to comment size limits, use test JSON instead. |
@tunetheweb please review |
Interestingly add-pr-comment step removed the wrong comment:
Let's see if it will happen again in other PRs. |
Been a while since I looked at this, so was confused initially. I wanted to be linked to this screen: But neither of the above links does that directly (though fairly easy to get there from first link but I missed that as was distracted by the second link). WDYT about changing this:
To this:
|
A good idea about the details page! |
|
https://almanac.httparchive.org/en/2022/Changed custom metrics values: {
"_css-variables": {
"summary": {}
}
} https://www.morgenpost.de/politik/article407241629/game-changer-fuer-die-ukraine-bahnt-sich-an-putin-droht.htmlCannot display changed custom metrics due to comment size limits, view test JSON instead. |
@tunetheweb with new link we save 2 clicks :) At the same time I notice that I can get WPT results details page faster than huge JSON rendered @pmeenan So I thought maybe we could improve custom metrics rendering in WPT, and avoid needing to load full JSON. |
FWIW, the JSON API takes query params to strip out things and make it a lot smaller and faster.
|
https://webpagetest.httparchive.org/jsonResult.php?test=241014_2M_7&pretty=1&requests=0&average=0&standard=0 Seems these parameters require |
Resolves #146
css-variables.js
to trigger test resultsTest websites: