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

Honor SERVO_ENABLE_DEBUG_ASSERTIONS on the build machines. #13387

Merged
merged 4 commits into from
Oct 4, 2016

Conversation

emilio
Copy link
Member

@emilio emilio commented Sep 23, 2016

As part of #13127.

cc @aneeshusa


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors

This change is Reviewable

@highfive
Copy link

Heads up! This PR modifies the following files:

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 23, 2016
@emilio
Copy link
Member Author

emilio commented Sep 23, 2016

@bors-servo: try

Not sure if the new build config has been rolled out already.

@bors-servo
Copy link
Contributor

⌛ Trying commit 16771bc with merge de58d53...

bors-servo pushed a commit that referenced this pull request Sep 23, 2016
Honor SERVO_ENABLE_DEBUG_ASSERTIONS on the build machines.

<!-- Please describe your changes on the following line: -->

As part of #13127.

cc @aneeshusa

---
<!-- 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

<!-- 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/13387)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - arm64

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Sep 23, 2016
@Ms2ger
Copy link
Contributor

Ms2ger commented Sep 23, 2016

Do we really want an env var for this? Arguments to mach are easier to document and discover.

@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Sep 23, 2016
@emilio
Copy link
Member Author

emilio commented Sep 23, 2016

@bors-servo: try

@bors-servo
Copy link
Contributor

⌛ Trying commit 8266e40 with merge 4aa4372...

bors-servo pushed a commit that referenced this pull request Sep 23, 2016
Honor SERVO_ENABLE_DEBUG_ASSERTIONS on the build machines.

<!-- Please describe your changes on the following line: -->

As part of #13127.

cc @aneeshusa

---
<!-- 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

<!-- 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/13387)
<!-- Reviewable:end -->
@emilio
Copy link
Member Author

emilio commented Sep 23, 2016

@Ms2ger: You're right, see the TODO.

The reason why this is done this way is to prevent shipping a change in saltfs that could potentially cause a lot of perma-failures. We added the env var first, which is a no-op, then see the result of running the tests with debug assertions in another servo PR (this one).

@bors-servo
Copy link
Contributor

💔 Test failed - linux-rel

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Sep 23, 2016
@emilio
Copy link
Member Author

emilio commented Sep 23, 2016

@bors-servo: retry (build was interrupted)

@bors-servo
Copy link
Contributor

⌛ Trying commit 8266e40 with merge 7fab83e...

bors-servo pushed a commit that referenced this pull request Sep 23, 2016
Honor SERVO_ENABLE_DEBUG_ASSERTIONS on the build machines.

<!-- Please describe your changes on the following line: -->

As part of #13127.

cc @aneeshusa

---
<!-- 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

<!-- 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/13387)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-rel

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Sep 23, 2016
@highfive
Copy link

  ▶ Unexpected subtest result in /_mozilla/mozilla/promise.html:
  │ FAIL [expected PASS] Native promise from async callback can be resolved
  │   → assert_true: expected true got false
  │ 
  └ @http://web-platform.test:8000/_mozilla/mozilla/promise.html:58:11

@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Sep 23, 2016
@emilio
Copy link
Member Author

emilio commented Sep 23, 2016

@bors-servo: try

@bors-servo
Copy link
Contributor

⌛ Trying commit 537af57 with merge f147e4a...

bors-servo pushed a commit that referenced this pull request Sep 23, 2016
Honor SERVO_ENABLE_DEBUG_ASSERTIONS on the build machines.

<!-- Please describe your changes on the following line: -->

As part of #13127.

cc @aneeshusa

---
<!-- 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

<!-- 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/13387)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

⛄ The build was interrupted to prioritize another pull request.

@bors-servo
Copy link
Contributor

⌛ Trying commit 537af57 with merge e14d5a1...

bors-servo pushed a commit that referenced this pull request Sep 23, 2016
Honor SERVO_ENABLE_DEBUG_ASSERTIONS on the build machines.

<!-- Please describe your changes on the following line: -->

As part of #13127.

cc @aneeshusa

---
<!-- 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

<!-- 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/13387)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev

@emilio emilio removed the S-tests-failed The changes caused existing tests to fail. label Sep 28, 2016
@emilio
Copy link
Member Author

emilio commented Sep 28, 2016

@bors-servo: retry

  • Try with the new renderer, just in case.

@bors-servo
Copy link
Contributor

⌛ Trying commit 5d0c804 with merge 55334f7...

bors-servo pushed a commit that referenced this pull request Sep 28, 2016
Honor SERVO_ENABLE_DEBUG_ASSERTIONS on the build machines.

<!-- Please describe your changes on the following line: -->

As part of #13127.

cc @aneeshusa

---
<!-- 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

<!-- 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/13387)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💥 Test timed out

@jdm
Copy link
Member

jdm commented Sep 28, 2016

@bors-servo: retry

@bors-servo
Copy link
Contributor

⌛ Trying commit 5d0c804 with merge 4895d91...

bors-servo pushed a commit that referenced this pull request Sep 28, 2016
Honor SERVO_ENABLE_DEBUG_ASSERTIONS on the build machines.

<!-- Please describe your changes on the following line: -->

As part of #13127.

cc @aneeshusa

---
<!-- 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

<!-- 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/13387)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev

@emilio
Copy link
Member Author

emilio commented Oct 2, 2016

review ping @jdm / @Ms2ger for the image setter bits and and @pcwalton / @mbrubeck for the writing mode changes?

@@ -435,14 +435,24 @@ impl VirtualMethods for HTMLImageElement {
}

fn image_dimension_setter(element: &Element, attr: Atom, value: u32) {
use app_units::AU_PER_PX;
use std::i32;
Copy link
Member

Choose a reason for hiding this comment

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

Can we move these to the top of the file?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

// This setter is a bit weird: the IDL type is unsigned long, but it's parsed as
// a dimension for rendering.
let value = if value > UNSIGNED_LONG_MAX {
0
} else {
value
};
let dim = LengthOrPercentageOrAuto::Length(Au::from_px(value as i32));

let pixel_value = if value > (i32::MAX / AU_PER_PX) as u32 {
Copy link
Member

@jdm jdm Oct 2, 2016

Choose a reason for hiding this comment

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

I wonder if this belongs in Au::from_px, or whether Au::from_px should return an Option value instead? I don't think that I'm a good person to make that call.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I'll open an issue for this in app_units, and mention it from here.

I'd still like to land this before that is resolved, since that's potentially a big change, and I think the benefits of this are worth it.

Copy link
Member Author

Choose a reason for hiding this comment

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

… to that fragment.

Otherwise we might mix writing modes. Not totally sure this change is correct in
the case we're mixing them, we might need to just not checking that operation.
@emilio
Copy link
Member Author

emilio commented Oct 4, 2016

@bors-servo: r=aneeshusa,jdm,pcwalton

20:43 <•pcwalton> emilio: looks good
20:43 <•pcwalton> r=me if you need it
20:43 <emilio> jdm: do the changes to the image setter bits look ok to you?
20:44 <•jdm> emilio: link me again so I can refresh my memory?
20:44 <emilio> jdm: https://github.com/servo/servo/pull/13387/commits/fdd84713105b5c87f7adde1319711966d00e5b66
20:45 <•jdm> emilio: yes

Finally!

@bors-servo
Copy link
Contributor

📌 Commit fdd8471 has been approved by aneeshusa,jdm,pcwalton

@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 Oct 4, 2016
@emilio
Copy link
Member Author

emilio commented Oct 4, 2016

(Thanks for the reviews btw!)

@bors-servo
Copy link
Contributor

⌛ Testing commit fdd8471 with merge 19a5a30...

bors-servo pushed a commit that referenced this pull request Oct 4, 2016
Honor SERVO_ENABLE_DEBUG_ASSERTIONS on the build machines.

<!-- Please describe your changes on the following line: -->

As part of #13127.

cc @aneeshusa

---
<!-- 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

<!-- 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/13387)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

@bors-servo bors-servo merged commit fdd8471 into servo:master Oct 4, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 4, 2016
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.

None yet

7 participants