Skip to content
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

Constellation: removed almost all opts::get #23506

Merged
merged 1 commit into from Jun 4, 2019

Conversation

@oneturkmen
Copy link
Contributor

oneturkmen commented Jun 4, 2019

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.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix partially #22854 (GitHub issue number if applicable)
  • 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
Copy link

highfive commented Jun 4, 2019

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
Copy link

highfive commented Jun 4, 2019

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
@oneturkmen
Copy link
Contributor Author

oneturkmen commented Jun 4, 2019

r? @jdm

@jdm
Copy link
Member

jdm commented Jun 4, 2019

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
Copy link
Member

jdm commented Jun 4, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Jun 4, 2019

📌 Commit cd153ef has been approved by jdm

@highfive highfive assigned jdm and unassigned SimonSapin Jun 4, 2019
bors-servo added 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
Contributor

bors-servo commented Jun 4, 2019

Testing commit cd153ef with merge 47aefd4...

@bors-servo
Copy link
Contributor

bors-servo commented Jun 4, 2019

💔 Test failed - status-taskcluster

@oneturkmen
Copy link
Contributor Author

oneturkmen commented Jun 4, 2019

@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
Copy link
Member

jdm commented Jun 4, 2019

@bors-servo retry

  • network issue
bors-servo added 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
Contributor

bors-servo commented Jun 4, 2019

Testing commit cd153ef with merge 2ad3066...

@bors-servo
Copy link
Contributor

bors-servo commented Jun 4, 2019

☀️ 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
4 checks passed
4 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@bors-servo bors-servo mentioned this pull request Jun 4, 2019
2 of 2 tasks complete
@oneturkmen oneturkmen deleted the oneturkmen:constellation-remove-opts-get branch Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.