-
Notifications
You must be signed in to change notification settings - Fork 91
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
Execute affected tests both with and without a PR's changes #708
Comments
This (executing both with and without) is a better solution to a problem that was mentioned in #745 - namely, as an interim we are comparing a PR's affected tests againts "the latest master run". cc @foolip |
@lukebjerring, can you send a PR for the Taskcluster changes? Here's what I'd planned to do for Azure Pipelines:
This is tragically convoluted, but I don't see how else to ensure differences between the two states of the trees were tested are only the changes from the PRs, and not also some random contribution of changes to master that happened as the tasks were queuing. @jgraham may have thouhts. |
I sent web-platform-tests/wpt#14093 for a thing I found confusing about the affected tests logic. I also just conducted an experiment on foolip/wpt to fetch |
This is a well known but undocumented feature: https://discourse.drone.io/t/github-claims-that-merge-refs-are-undocumented-feature/1100 It's so widely used (especially by CI services including Travis) that I don't think it will go away. That said, we shouldn't rely too heavily on the timeliness (usually, the merge ref is updated shortly after the PR is updated). Another caveat is that when there is a merge conflict, the merge ref is invalid. |
I just sent a PR to modify the Taskcluster configuration of wpt to run affected tests without patch: web-platform-tests/wpt#14382 (Note that we don't really have a "decision task" yet. Each task executes independently, so various race conditions may happen, especially if a PR is being updated quickly, e.g. different merge refs in the Firefox & Chrome tasks. But I think it's good enough for now.) In addition, we need to make some changes to wpt.fyi to accommodate this. #865 is the first step: collecting the "without patch" results. Then we can compare them against the "with patch" results. |
It sounds like the undocumented feature is simply refs/pull/1234/merge, which is what Azure Pipelines depends on and presumably Taskcluster as well. |
This change extends the set of valid task names to accept the "*-results-without-changes" tasks that are being added in web-platform-tests/wpt#14382 . The change also adds a "pr_base" label to these special runs, and "pr_head" to the PR runs with the changes to prepare for the next step: using these runs to calculate PR regressions (not implemented in this change). One more step towards #708 .
…t the patch, a=testonly Automatic update from web-platform-tests Run affected tests on Taskcluster without changes One step towards web-platform-tests/wpt.fyi#708 -- wpt-commits: fc87d9b363525fdcc5b5053a7c9624614c3fd730 wpt-pr: 14382
…t the patch, a=testonly Automatic update from web-platform-tests Run affected tests on Taskcluster without changes One step towards web-platform-tests/wpt.fyi#708 -- wpt-commits: fc87d9b363525fdcc5b5053a7c9624614c3fd730 wpt-pr: 14382
…t the patch, a=testonly Automatic update from web-platform-tests Run affected tests on Taskcluster without changes One step towards web-platform-tests/wpt.fyi#708 -- wpt-commits: fc87d9b363525fdcc5b5053a7c9624614c3fd730 wpt-pr: 14382 UltraBlame original commit: 8fa9cbffeb35f59aad1e164576afbffe737cde8d
…t the patch, a=testonly Automatic update from web-platform-tests Run affected tests on Taskcluster without changes One step towards web-platform-tests/wpt.fyi#708 -- wpt-commits: fc87d9b363525fdcc5b5053a7c9624614c3fd730 wpt-pr: 14382 UltraBlame original commit: 8fa9cbffeb35f59aad1e164576afbffe737cde8d
…t the patch, a=testonly Automatic update from web-platform-tests Run affected tests on Taskcluster without changes One step towards web-platform-tests/wpt.fyi#708 -- wpt-commits: fc87d9b363525fdcc5b5053a7c9624614c3fd730 wpt-pr: 14382 UltraBlame original commit: 8fa9cbffeb35f59aad1e164576afbffe737cde8d
This will allow a more apples-to-apples diff than comparing to a recent full run of the same product (see #707).
The text was updated successfully, but these errors were encountered: