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
Added ability to randomly kill pipelines to the constellation. #10179
Conversation
Things that we need to make sure about this PR:
|
9cfa85f
to
e661fa3
Compare
Argh, forgot to run test-tidy. |
There is a constellation hardening metabug: issue #10124. |
Looks good to me! I left a comment about the -S-awaiting-review +S-awaiting-answer Reviewed 4 of 6 files at r1, 1 of 2 files at r2. components/compositing/constellation.rs, line 370 [r2] (raw file): Renaming These are nits though, and I won't blame you for landing this as-is :P Comments from the review on Reviewable.io |
Review status: 5 of 6 files reviewed at latest revision, 1 unresolved discussion. components/compositing/constellation.rs, line 370 [r2] (raw file): Comments from the review on Reviewable.io |
@@ -347,6 +352,11 @@ impl<LTF: LayoutThreadFactory, STF: ScriptThreadFactory> Constellation<LTF, STF> | |||
child_processes: Vec::new(), | |||
document_states: HashMap::new(), | |||
webrender_api_sender: state.webrender_api_sender, | |||
random_pipeline_closure: opts::get().random_pipeline_closure_probability.map(|prob| { | |||
let seed = opts::get().random_pipeline_closure_seed.unwrap_or_else(random); |
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.
When it a random seed, perhaps it should log the seed.
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.
Done. Should we log using debug!
or something else?
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.
debug!
is compiled out in release builds of Servo, so use info!
if you want to use this feature in release.
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.
Will do.
Looks good to me, r=me with that typo fixed and the commits squashed :) -S-awaiting-answer -S-awaiting-answer +S-needs-code-changes +S-needs-squash Reviewed 1 of 2 files at r2, 1 of 1 files at r5. components/compositing/constellation.rs, line 370 [r2] (raw file): Comments from the review on Reviewable.io |
6e0863f
to
1ec222c
Compare
Squashed, typo fixed. Review status: 5 of 6 files reviewed at latest revision, 1 unresolved discussion. Comments from the review on Reviewable.io |
@bors-servo: r=emilio |
📌 Commit 1ec222c has been approved by |
Added ability to randomly kill pipelines to the constellation. Added flags: * `--random-pipeline-closure-probability`: probability of each event triggering a forced exit of a randomly chosen pipeline. * `--random-pipeline-closure-seed`: seed to use for the RNG (to remove a source of intermittent failure). These are designed for testing the hardness of the constellation. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10179) <!-- Reviewable:end -->
💔 Test failed - gonk |
Need to update the other lockfiles. |
Grr, I'll do this tomorrow. |
1ec222c
to
8f9b073
Compare
8f9b073
to
2c04724
Compare
2c04724
to
32c72f0
Compare
OK, fixed Cargo.lock files, Let's see if this works... @bors-servo try |
Added ability to randomly kill pipelines to the constellation. Added flags: * `--random-pipeline-closure-probability`: probability of each event triggering a forced exit of a randomly chosen pipeline. * `--random-pipeline-closure-seed`: seed to use for the RNG (to remove a source of intermittent failure). These are designed for testing the hardness of the constellation. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10179) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor |
@bors-servo: r=emilio |
📌 Commit 32c72f0 has been approved by |
Added ability to randomly kill pipelines to the constellation. Added flags: * `--random-pipeline-closure-probability`: probability of each event triggering a forced exit of a randomly chosen pipeline. * `--random-pipeline-closure-seed`: seed to use for the RNG (to remove a source of intermittent failure). These are designed for testing the hardness of the constellation. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10179) <!-- Reviewable:end -->
💔 Test failed - linux-rel |
⚡ Previous build results for android, arm32, gonk, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor are reusable. Rebuilding only linux-rel... |
☀️ Test successful - android, arm32, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor |
Added flags:
--random-pipeline-closure-probability
: probability of each event triggering a forced exit of a randomly chosen pipeline.--random-pipeline-closure-seed
: seed to use for the RNG (to remove a source of intermittent failure).These are designed for testing the hardness of the constellation.
This change is