New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 767597 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

[WPT Import] Importer fails to add a line to TestExpectations

Project Member Reported by robertma@chromium.org, Sep 21 2017

Issue description

https://build.chromium.org/p/chromium.infra.cron/builders/wpt-importer/builds/2118
https://chromium-review.googlesource.com/677267

This import is expected to introduce a new failure on mac bots. The import process ran as expected until writing new lines to TestExpectations. See the log:

2017-09-21 08:18:17,753 - Adding test expectations lines to LayoutTests/TestExpectations.
2017-09-21 08:18:28,870 - No tests to rebaseline.
2017-09-21 08:18:30,115 - Lines to write to TestExpectations:
2017-09-21 08:18:30,115 -   crbug.com/626703 [ Mac ] external/wpt/assumptions/ahem.html [ Failure ]
2017-09-21 08:18:30,822 - Triggering CQ try jobs.

It printed out the correct new line to add, but for some reason, either the line was not written to TestExpectations, or the change was not uploaded to Gerrit. The CL stayed at patchset 1 without this new expectation line. The CQ was triggered afterwards, and failed unsurprisingly.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Sep 21 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7754c77f5af465147885e57c6ba7fc4e9095d842

commit 7754c77f5af465147885e57c6ba7fc4e9095d842
Author: Robert Ma <robertma@chromium.org>
Date: Thu Sep 21 22:21:35 2017

Manual import wpt@1e241d879e55ef455684cd17cd8dd5e2102fc04a

Reason for manual import: importer fails to add an expectation line ( crbug.com/767597 )

Using wpt-import in Chromium 3561fad51acec26d7d223d93419f54f616ad5909.

Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
drott@chromium.org:
  external/wpt/css-fonts
foolip@chromium.org, robertma@chromium.org:
  external/wpt/assumptions
mkwst@chromium.org:
  external/wpt/content-security-policy

No-Export: true
Bug:  767597 
Change-Id: Iec2844bc1c0a102006bff5c75061696931db2301
Reviewed-on: https://chromium-review.googlesource.com/677545
Reviewed-by: Quinten Yearsley <qyearsley@chromium.org>
Commit-Queue: Quinten Yearsley <qyearsley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#503582}
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/TestExpectations
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/wpt/assumptions/ahem-ref.html
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/wpt/assumptions/ahem.html
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/wpt/assumptions/tools/ahem-generate-table.py
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/font-src/font-match-allowed.sub.html
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/font-src/font-mismatch-blocked.sub.html
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/font-src/font-none-blocked.sub.html
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/font-src/font-self-allowed.html
[delete] https://crrev.com/5890b651419a4f51a89a474ff6409146ce44d207/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/Ahem.ttf
[delete] https://crrev.com/5890b651419a4f51a89a474ff6409146ce44d207/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/Ahem2.ttf
[delete] https://crrev.com/5890b651419a4f51a89a474ff6409146ce44d207/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/Ahem2.ttf.sub.headers
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/fonts.css
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/wpt/css-fonts/font-display/font-display.html
[delete] https://crrev.com/5890b651419a4f51a89a474ff6409146ce44d207/third_party/WebKit/LayoutTests/external/wpt/css-fonts/font-display/resources/slow-ahem-loading.py
[delete] https://crrev.com/5890b651419a4f51a89a474ff6409146ce44d207/third_party/WebKit/LayoutTests/external/wpt/css/fonts/ahem/COPYING
[delete] https://crrev.com/5890b651419a4f51a89a474ff6409146ce44d207/third_party/WebKit/LayoutTests/external/wpt/css/fonts/ahem/README
[delete] https://crrev.com/5890b651419a4f51a89a474ff6409146ce44d207/third_party/WebKit/LayoutTests/external/wpt/css/fonts/ahem/ahem.ttf
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/wpt/fonts/Ahem.ttf
[modify] https://crrev.com/7754c77f5af465147885e57c6ba7fc4e9095d842/third_party/WebKit/LayoutTests/external/wpt/lint.whitelist

Labels: -Pri-1 Pri-2
P2 as the manual import unblocked automatic imports as expected.

Will look into the root cause.
Status: Started (was: Assigned)
Project Member

Comment 4 by bugdroid1@chromium.org, Oct 3 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6483150e3050742ae64920a6daf5ec9c186ef0f2

commit 6483150e3050742ae64920a6daf5ec9c186ef0f2
Author: Robert Ma <robertma@chromium.org>
Date: Tue Oct 03 20:37:41 2017

Do not skip expectation lines with existing test names

When adding new lines to TestExpectations during wpt-import, the tool
used to skip the lines with test names that already exist in
TestExpectations, which is unnecessary and causes bug:
* The new lines are created from tests that did not run as expected, so
  if an expectation is already covered by TestExpectations, it shouldn't
  have appeared in the first place (otherwise we have a bug when
  fetching the unexpected results).
* If the test name of a new line already exists, but the new line is for
  a different case (e.g. different platforms), then we should add this
  line to TestExpectations otherwise the import would fail ( bug 767597 ).

Ideally we could extend the existing expectations to cover the new
unexpected results, but that would probably need a larger refactor to
make heavy use of layout_tests.models.test_expectations.

Bug:  767597 
Change-Id: I13d46865fa6e06b8c101864f07b2cdae6af95d6e
Reviewed-on: https://chromium-review.googlesource.com/698784
Reviewed-by: Quinten Yearsley <qyearsley@chromium.org>
Commit-Queue: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#506160}
[modify] https://crrev.com/6483150e3050742ae64920a6daf5ec9c186ef0f2/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_expectations_updater.py
[modify] https://crrev.com/6483150e3050742ae64920a6daf5ec9c186ef0f2/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_expectations_updater_unittest.py

Status: Fixed (was: Started)

Sign in to add a comment