-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Allow hiding test state for first-contentful-paint tests #24170
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paint-timing change looks fine to me, although perhaps we want to apply this to all paint-timing tests and not just those using test_fcp?
@npm1 Agreed. PR updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'm fine with landing this % comment, but have someone from infra take a look?
resources/testharness.js
Outdated
@@ -2510,6 +2510,7 @@ policies and contribution forms [3]. | |||
this.test_done_callbacks = []; | |||
this.all_done_callbacks = []; | |||
|
|||
this.do_notify_test_state = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry I missed this before you added more but it probably makes sense to make this hide_test_state = false
since we generally want the default value for booleans to be false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out. Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paint-timing LGTM
This seems very reasonable to me, but I'm not sure if we should do an RFC @web-platform-tests/wpt-core-team . |
We probably should do an rfc, yeah |
Not sure what an rfc is, is there any action that I should take? |
Some tests are sensitive to the content of the document, thus show_status may interfere the test results. We add a new setup property to allow hiding the test state output.
The RFC is merged. I also updated the patch to follow @stephenmcgruer's suggestion, which makes sense because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks for following through the process, Sean!
Failed
From wpt.fyi history, looks like a previously existing flake but I'm a little interested here just because the goal of this PR was to remove unexpectedly-early FCPs (due to test infra involvement). @sefeng211 - I leave this up to you; should this PR be admin-merged, or is this flake something that is worth pausing to investigate? |
I think the flake there is caused by Chrome's failure to implement FCP properly for that particular testcase. If it's flaky it probably means that the timeout may not be long enough to guarantee that the incorrectly early FCP is always fired, but this is unrelated to this PR. |
Ack, admin-merging. :) |
If this is a Chromium bug, it'd be great to file an issue on crbug. |
There's already https://bugs.chromium.org/p/chromium/issues/detail?id=1062984 (apparently flakiness is not fixed though?) and https://bugs.chromium.org/p/chromium/issues/detail?id=1071450 |
The testharness'
show_status
function call interferethe tests result because it would display a text to the document
while the tests are running.
The issue is this text could be considered as the first-contentful-paint,
which is not what we expect.
We fix it by adding a new setup property to not displaying this text.
This PR intends to fix #24089