Skip to content

Add font cache debugging to isolate cause of IPC failures in CI. - #20106

Merged
bors-servo merged 1 commit into
servo:masterfrom
jdm:font-thread-shutdown-debug
Feb 22, 2018
Merged

bors-servo merged 1 commit into
servo:masterfrom
jdm:font-thread-shutdown-debug

Conversation

@jdm

@jdm jdm commented Feb 22, 2018 •

Copy link
Copy Markdown
Member

This should help us better understand the actual underlying cause of frequent CI failures like #13509. In particular, we will be able to state with confidence whether an IPC message is being dropped while the font cache thread is still alive, or whether the dropped sender was in a message that was in the queue after the font cache thread was shutdown.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • There are tests for these changes

This change is Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 22, 2018
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify gfx code, but no tests are modified. Please consider adding a test!

Comment thread components/gfx/font_cache_thread.rs Outdated
panic!("Font cache thread has already exited.");
}
let reply = reply
.expect("failed to receive response to font request");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this now fits in one line.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, none of these need to use expect I guess, since we panic! on the line above... Want to either change it for unwrap(), or file an issue to revert this PR once we figure out the failures and reference it here?

Comment thread components/gfx/font_cache_thread.rs Outdated
assert!(font_thread_has_closed, "Failed to receive a response from live font cache");
panic!("Font cache thread has already exited.");
}
let reply = reply

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.

Comment thread components/gfx/font_cache_thread.rs Outdated
assert!(font_thread_has_closed, "Failed to receive a response from live font cache");
panic!("Font cache thread has already exited.");
}
let instance_key = instance_key

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably this too.

@jdm
jdm force-pushed the font-thread-shutdown-debug branch 2 times, most recently from 5810cb5 to 192b64c Compare February 22, 2018 16:04
@jdm

jdm commented Feb 22, 2018

Copy link
Copy Markdown
Member Author

@bors-servo r=emilio

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 192b64c has been approved by emilio

@highfive highfive assigned emilio and unassigned pcwalton Feb 22, 2018
@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 Feb 22, 2018
@jdm

jdm commented Feb 22, 2018

Copy link
Copy Markdown
Member Author

@bors-servo p=1

@bors-servo

Copy link
Copy Markdown
Contributor

🔒 Merge conflict

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #20021) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Feb 22, 2018
@jdm
jdm force-pushed the font-thread-shutdown-debug branch from 192b64c to 8d3b875 Compare February 22, 2018 16:51
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 22, 2018
@jdm

jdm commented Feb 22, 2018

Copy link
Copy Markdown
Member Author

@bors-servo r=emilio

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 8d3b875 has been approved by emilio

@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-needs-rebase There are merge conflict errors. labels Feb 22, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8d3b875 with merge 267f9db...

bors-servo pushed a commit that referenced this pull request Feb 22, 2018
Add font cache debugging to isolate cause of IPC failures in CI.

This should help us better understand the actual underlying cause of frequent CI failures like #13509. In particular, we will be able to state with confidence whether an IPC message is being dropped while the font cache thread is still alive, or whether the dropped sender was in a message that was in the queue after the font cache thread was shutdown.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20106)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: emilio
Pushing 267f9db to master...

@bors-servo
bors-servo merged commit 8d3b875 into servo:master Feb 22, 2018
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants