Skip to content

Constellation: removed almost all opts::get - #23506

Merged
bors-servo merged 1 commit into
servo:masterfrom
oneturkmen:constellation-remove-opts-get
Jun 4, 2019
Merged

bors-servo merged 1 commit into
servo:masterfrom
oneturkmen:constellation-remove-opts-get

Conversation

@oneturkmen

@oneturkmen oneturkmen commented Jun 4, 2019 •

Copy link
Copy Markdown
Contributor

Removed almost all (except 1) "opts::get()" from constellation component. The one untouched is in pipeline.rs which uses "opts::get()" as a struct field that is set here.


  • There are tests for these changes OR
  • These changes do not require tests because no feature (or no bug) has been added (refactoring only).

This change is Reviewable

@highfive

highfive commented Jun 4, 2019

Copy link
Copy Markdown

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @SimonSapin (or someone else) soon.

@highfive

highfive commented Jun 4, 2019

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/constellation/pipeline.rs, components/constellation/Cargo.toml, components/constellation/constellation.rs
  • @cbrewster: components/constellation/pipeline.rs, components/constellation/Cargo.toml, components/constellation/constellation.rs
  • @paulrouget: components/constellation/pipeline.rs, components/constellation/Cargo.toml, components/constellation/constellation.rs, components/servo/lib.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jun 4, 2019
@oneturkmen

oneturkmen commented Jun 4, 2019 •

Copy link
Copy Markdown
Contributor Author

r? @jdm

@jdm

jdm commented Jun 4, 2019

Copy link
Copy Markdown
Member

Looks good! We should be able to remove remaining Opts usage from this code after we finish converting the remaining crates, since it's only used to call opts::set_options in components/servo/lib.rs.

@jdm

jdm commented Jun 4, 2019

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit cd153ef has been approved by jdm

@highfive highfive assigned jdm and unassigned SimonSapin Jun 4, 2019
@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 Jun 4, 2019
bors-servo pushed a commit that referenced this pull request Jun 4, 2019
Constellation: removed almost all opts::get

<!-- Please describe your changes on the following line: -->
Removed *almost* all (except 1) "opts::get()" from `constellation` component. The one untouched is in `pipeline.rs` which uses "opts::get()" as a [struct field](https://github.com/oneturkmen/servo/blob/cd153efb4acce81170927790653555c5f10929eb/components/constellation/pipeline.rs#L501) that is set [here](https://github.com/oneturkmen/servo/blob/cd153efb4acce81170927790653555c5f10929eb/components/constellation/pipeline.rs#L296).

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix *partially* #22854 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because no feature (or no bug) has been added (refactoring only).

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/23506)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit cd153ef with merge 47aefd4...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - status-taskcluster

@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 Jun 4, 2019
@oneturkmen

Copy link
Copy Markdown
Contributor Author

@jdm it seems that it failed when downloading cmake - Error downloading cmake-3.14.3: [Errno 10054] An existing connection was forcibly closed by the remote host. The failing URL was: https://servo-deps.s3.amazonaws.com/msvc-deps/cmake-3.14.3.zip. Is there any way to restart this?

@jdm

jdm commented Jun 4, 2019

Copy link
Copy Markdown
Member

@bors-servo retry

  • network issue

bors-servo pushed a commit that referenced this pull request Jun 4, 2019
Constellation: removed almost all opts::get

<!-- Please describe your changes on the following line: -->
Removed *almost* all (except 1) "opts::get()" from `constellation` component. The one untouched is in `pipeline.rs` which uses "opts::get()" as a [struct field](https://github.com/oneturkmen/servo/blob/cd153efb4acce81170927790653555c5f10929eb/components/constellation/pipeline.rs#L501) that is set [here](https://github.com/oneturkmen/servo/blob/cd153efb4acce81170927790653555c5f10929eb/components/constellation/pipeline.rs#L296).

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix *partially* #22854 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because no feature (or no bug) has been added (refactoring only).

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/23506)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit cd153ef with merge 2ad3066...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Jun 4, 2019
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - arm64, linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: jdm
Pushing 2ad3066 to master...

@bors-servo
bors-servo merged commit cd153ef into servo:master Jun 4, 2019
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jun 4, 2019
@bors-servo bors-servo mentioned this pull request Jun 4, 2019
2 tasks done
@oneturkmen
oneturkmen deleted the constellation-remove-opts-get branch June 4, 2019 23:26
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