Skip to content

Add test to constellation to avoid writing reftest image if there are pending frames. - #8612

Merged
bors-servo merged 1 commit into
servo:masterfrom
glennw:pending-frames
Dec 17, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
glennw:pending-frames

Conversation

@glennw

@glennw glennw commented Nov 20, 2015

Copy link
Copy Markdown
Member

This changes several tests that contain <iframe></iframe> from FAIL to TIMEOUT. This is correct
since there is a bug that prevents these iframes from ever rendering.

may genuinely be fixed by this change.~~~

<!-- Reviewable:start -->

[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8612)

<!-- Reviewable:end -->

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 20, 2015
@glennw

glennw commented Nov 20, 2015

Copy link
Copy Markdown
Member Author

r? @jdm

@glennw

glennw commented Nov 20, 2015

Copy link
Copy Markdown
Member Author

@jdm I didn't do any timing, but it felt like this make the wpt tests take a lot longer to execute. Unfortunately it's necessary so there's not much we can do about that anyway.

@glennw

glennw commented Nov 20, 2015

Copy link
Copy Markdown
Member Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 89a9fab with merge 8909053...

bors-servo pushed a commit that referenced this pull request Nov 20, 2015
Add test to constellation to avoid writing reftest image if there are pending frames.

This changes several tests that contain <iframe></iframe> from FAIL to TIMEOUT. This is correct
since there is a bug that prevents these iframes from ever rendering.

There are also a few previous FAILs that changed to OK. These may be intermittents or they
may genuinely be fixed by this change.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8612)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 20, 2015
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Nov 20, 2015
@glennw

glennw commented Nov 20, 2015

Copy link
Copy Markdown
Member Author

@jdm I expect this will also fix some of our remaining intermittent failures.

@glennw

glennw commented Nov 20, 2015

Copy link
Copy Markdown
Member Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 1007fdc with merge 02c8871...

bors-servo pushed a commit that referenced this pull request Nov 20, 2015
Add test to constellation to avoid writing reftest image if there are pending frames.

This changes several tests that contain <iframe></iframe> from FAIL to TIMEOUT. This is correct
since there is a bug that prevents these iframes from ever rendering.

~~~There are also a few previous FAILs that changed to OK. These may be intermittents or they
may genuinely be fixed by this change.~~~

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8612)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 20, 2015
@jdm

jdm commented Nov 20, 2015

Copy link
Copy Markdown
Member

That panic is #8614.

@jdm

jdm commented Nov 20, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+
Good find!

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 1007fdc has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. S-tests-failed The changes caused existing tests to fail. labels Nov 20, 2015
@glennw

glennw commented Nov 20, 2015

Copy link
Copy Markdown
Member Author

@bors-servo try

1 similar comment
@glennw

glennw commented Nov 20, 2015

Copy link
Copy Markdown
Member Author

@bors-servo try

@larsbergstrom

Copy link
Copy Markdown
Contributor

@bors-servo r=jdm try- retry

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 1007fdc has been approved by jdm

bors-servo pushed a commit that referenced this pull request Nov 20, 2015
Add test to constellation to avoid writing reftest image if there are pending frames.

This changes several tests that contain <iframe></iframe> from FAIL to TIMEOUT. This is correct
since there is a bug that prevents these iframes from ever rendering.

~~~There are also a few previous FAILs that changed to OK. These may be intermittents or they
may genuinely be fixed by this change.~~~

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8612)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this pull request Dec 16, 2015
Add test to constellation to avoid writing reftest image if there are pending frames.

This changes several tests that contain <iframe></iframe> from FAIL to TIMEOUT. This is correct
since there is a bug that prevents these iframes from ever rendering.

~~~There are also a few previous FAILs that changed to OK. These may be intermittents or they
may genuinely be fixed by this change.~~~

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8612)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Dec 16, 2015
@jdm

jdm commented Dec 16, 2015

Copy link
Copy Markdown
Member

This design makes me worried about cases where we don't properly trigger reflow. I wonder if the following would work better:

  • the compositor assumes each frame is pending
  • when the compositor reaches the state where it needs to know if a frame is ready:
    • if the frame is marked pending, it sends an async message to the script thread and updates the frame state to awaiting reply
    • if the frame is marked awaiting reply, the compositor is not ready to take a screenshot
  • when the script thread receives the message, it sends an async message to the compositor based on the document ready state and the presence of reftest-wait
  • when the compositor receives the message, it updates the state of the relevant frame based on the contents of the message (ie. the frame is no longer marked awaiting reply)

@jdm

jdm commented Dec 16, 2015

Copy link
Copy Markdown
Member

-S-awaiting-review +S-needs-code-changes


Reviewed 1 of 1 files at r5.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.


components/script/dom/window.rs, line 1004 [r5] (raw file):
Let's have a comment that explains this block.


Comments from the review on Reviewable.io

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 16, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Dec 17, 2015
@glennw

glennw commented Dec 17, 2015

Copy link
Copy Markdown
Member Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit b387633 with merge bd2a00a...

bors-servo pushed a commit that referenced this pull request Dec 17, 2015
Add test to constellation to avoid writing reftest image if there are pending frames.

This changes several tests that contain <iframe></iframe> from FAIL to TIMEOUT. This is correct
since there is a bug that prevents these iframes from ever rendering.

~~~There are also a few previous FAILs that changed to OK. These may be intermittents or they
may genuinely be fixed by this change.~~~

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8612)
<!-- Reviewable:end -->
@jdm

jdm commented Dec 17, 2015

Copy link
Copy Markdown
Member

Good catch! I have no more comments here; this is ready to merge if it passes tests repeatably :)
-S-awaiting-review


Reviewed 1 of 1 files at r6.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from the review on Reviewable.io

@jdm jdm removed the S-awaiting-review There is new code that needs to be reviewed. label Dec 17, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

… pending frames.

Also change when pipelines become active.

This makes the constellation activate a pipeline as the current frame
when it is ready to do initial reflow, rather than when it is ready
to paint.

This fixes a number of intermittent failures that could previously occur
if an iframe was not visible - which would mean it was never moved from
a pending frame in the constellation to an active frame.

(It happens that webrender exposes these intermittents as permanent failures).
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 17, 2015
@glennw

glennw commented Dec 17, 2015

Copy link
Copy Markdown
Member Author

@jdm Try build succeeded, squashed down to 1 commit.

@Ms2ger

Ms2ger commented Dec 17, 2015

Copy link
Copy Markdown
Contributor

@bors-servo r=jdm

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit b670430 has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit b670430 with merge c6ae32a...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 17, 2015
bors-servo pushed a commit that referenced this pull request Dec 17, 2015
Add test to constellation to avoid writing reftest image if there are pending frames.

This changes several tests that contain <iframe></iframe> from FAIL to TIMEOUT. This is correct
since there is a bug that prevents these iframes from ever rendering.

~~~There are also a few previous FAILs that changed to OK. These may be intermittents or they
may genuinely be fixed by this change.~~~

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8612)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants