wpt: add --diff flag that diffs a run against the latest main-branch results - #671
Open
nicoburns wants to merge 1 commit into
Open
wpt: add --diff flag that diffs a run against the latest main-branch results#671nicoburns wants to merge 1 commit into
nicoburns wants to merge 1 commit into
Conversation
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cargo run -rp wpt <suite> --diffnow compares the local run against the latestmainbranch results, so regressions/improvements are visible locally without going through CI.The baseline is
https://dioxuslabs.github.io/blitz/wptreport.json.zst(same artifact the website consumes). It is cached inwpt/cache/(gitignored) as the raw.zstbody plus the response'sLast-Modifiedvalue, and every--diffrun revalidates withIf-Modified-Since, so a 304 skips the download. Download failures fall back to the cache; if there's no cache either, the run still completes and only the diff is skipped.Diffing uses
wptreport::aggregate(bumpedwptreport0.0.5 -> 0.0.13, which addedaggregate/mergeandWptRunInfo::linux_distro). The baseline is filtered to the suites being run, so a partial run (e.g.css/css-flexbox/alignment) doesn't report every other test as removed. Tests whose subtest counts changed are printed with their before/after status, classified as improved or regressed by pass fraction, followed by a summary:Link to Devin session: https://dioxus.staging.devinenterprise.com/sessions/ea75dffa87234844b3902d8f14a202c7
Requested by: @nicoburns
WPT results
No changes in test results compared to
main.Generated by the WPT workflow.