Commit graph

1128 commits

Author SHA1 Message Date
Anthony Ramine
a311e0f569 Merge layout and layout_tests 2018-01-20 15:33:39 +01:00
Anthony Ramine
c2ed7c9632 Merge gfx and gfx_tests 2018-01-20 15:33:15 +01:00
Anthony Ramine
a17a1fd06e Merge msg and msg_tests 2018-01-20 15:33:02 +01:00
bors-servo
d11886e9a1 Auto merge of #19713 - tigercosmos:r1, r=jdm
auto clean cache in build bot

<!-- Please describe your changes on the following line: -->
auto clean cache in build bot

once this merged, servo/saltfs#321 should be closed

---
<!-- 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 #19712  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/19713)
<!-- Reviewable:end -->
2018-01-18 08:09:59 -06:00
tigercosmos
ebf8348aa2 auto clean cache 2018-01-18 16:47:23 +08:00
Simon Sapin
631623a80e Remove work-around that is now unnecessary
We use rustup.rs, where each toolchain has its own Cargo version.
2018-01-14 01:39:31 +01:00
Simon Sapin
fe0d2866f1 Restore the ability to disable incremental compilation
It became the default in debug mode in the last Rust/Cargo update.
2018-01-14 01:38:37 +01:00
Simon Sapin
c8f542afac We use Nigthly Cargo with Stable Rust
Nightly now has incremental compilation as a stable feature,
but that’s not in the stable channel yet.
2018-01-10 20:54:35 +01:00
Simon Sapin
0681e682e9 rustup.rs: Use MSVC rather than GNU toolchains on Windows 2018-01-10 18:05:46 +01:00
Simon Sapin
ded0bc9365 Revert "Use rustup "proxies" instead of rustup run"
This reverts commit ad22368646290510149d33a0a41fc436ac4a0e96.
2018-01-10 18:05:45 +01:00
Simon Sapin
2618e4ed9d Use rustup "proxies" instead of rustup run
To make sure we’re indeed running rustup’s proxy
rather than some other `cargo` for example,
run the `rustup` executable with a different `argv[0]`.
2018-01-10 18:05:45 +01:00
Simon Sapin
e0f8f09c05 Fix "rustup is not installed" message 2018-01-10 18:05:45 +01:00
Simon Sapin
a3339f97c3 Print a better error message when rustup is too old 2018-01-10 18:05:44 +01:00
Simon Sapin
2f941d8450 Print a link to instructions if rustup is not found. 2018-01-10 18:05:44 +01:00
Simon Sapin
365a139716 Use rustup.rs instead of custom bootstrap
Fixes #11361, closes #18874
2018-01-10 18:05:44 +01:00
Simon Sapin
6dff251e35 Revert "Use rustdoc --document-private-item instead of deprecated flags"
This reverts commit d96f0ff6a7.
2018-01-10 18:05:28 +01:00
bors-servo
94b188d6c1 Auto merge of #19728 - servo:wptup, r=jdm
Update web-platform-tests

<!-- 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/19728)
<!-- Reviewable:end -->
2018-01-09 12:38:08 -06:00
Josh Matthews
2b6f573eb5 Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317 2018-01-09 12:52:27 -05:00
Aneesh Agrawal
d0abd1cdfa Update buildbot_steps lint to handle env variables
https://github.com/servo/saltfs/pull/687 added support
for specifying environment variables in `buildbot_steps.yml`.
Update the servo-tidy buildbot_steps.yml linter to reflect this.

Use the voluptuous Python library (BSD 3-clause license) for validation
in lieu of a much larger hand-written implementation.
Update the tidy self tests to take into account the new error messages.
2018-01-08 00:31:34 -08:00
bors-servo
2b1a30175c Auto merge of #19586 - tigercosmos:x1, r=jdm
let mutation testing display diff if compilation fails

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

let mutation testing display diff if compilation fails

r? @jdm

---
<!-- 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 #19566 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/19586)
<!-- Reviewable:end -->
2018-01-03 10:21:18 -06:00
tigercosmos
49a983a09e pass -vv through mach to cargo 2017-12-23 14:47:00 +08:00
tigercosmos
9b79b76fe5 let mutation testing display diff if compilation fails 2017-12-17 14:31:34 +08:00
bors-servo
11d32d8800 Auto merge of #19539 - emilio:cargo-geckolib, r=SimonSapin
mach: Fix cargo-geckolib check / cargo-geckolib build after #19476.

<!-- 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/19539)
<!-- Reviewable:end -->
2017-12-13 20:26:43 -06:00
Emilio Cobos Álvarez
5dfa144c5d
mach: Remove redundant with(crate_dir). 2017-12-13 22:03:27 +01:00
bors-servo
b93579a8f0 Auto merge of #19507 - asajeffrey:test-perf-date-option, r=avadacatavra
Add a --date option to test-perf.

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

To generate old test-perf results, we need a way to set the date when running `./mach test-perf`.

---
<!-- 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 do not require tests because they're test infrastructure

<!-- 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/19507)
<!-- Reviewable:end -->
2017-12-12 13:52:59 -06:00
Emilio Cobos Álvarez
f2314c10ca
mach: Fix cargo-geckolib check / cargo-geckolib build after #19476. 2017-12-10 01:06:19 +01:00
Simon Sapin
1f2b66e2d7 Use workspace.default-members to specify default crates for 'cargo build'
… and 'cargo test', etc. Include Servo and its unit tests,
but not Stylo because that would try to compile the style
crate with incompatible feature flags:
https://github.com/rust-lang/cargo/issues/4463

`workspace.default-members` was added in
https://github.com/rust-lang/cargo/pull/4743.
Older Cargo versions ignore it.
2017-12-07 13:50:10 +01:00
Simon Sapin
1a950d263a Upgrade to rustc 1.24.0-nightly (5a2465e2b 2017-12-06) 2017-12-07 13:50:09 +01:00
Alan Jeffrey
ee766b5e16 Add a --date option to test-perf. 2017-12-06 21:57:08 -06:00
Sandeep Hegde
1de6ab16e2 Mutation Testing
Introduced strategy design pattern

Added Strategies:
if true and if false
Replace String literals
Remove if blocks which do not have else.
Modify Comparision Statement - changing <= to < and changing >= to >
Duplicating statements
Added plus to minus and minus to plus mutaiton strategy

Classifying build failures for mutant as unexpected error - Skipping test run for mutant with compilation failure
Added logger messages instead of print
Randomized the mutation test order
Try new strategy on failure to mutate on a file
Updated Readme - Adding mutation strategy and mutation test execution flow
2017-12-06 15:17:28 -05:00
Simon Wörner
663d6bc0c5 Enable pip output in mach_bootstrap.py 2017-11-24 20:47:11 +01:00
Simon Wörner
f08b473c50 Redirect stdout and stderr to file to avoid deadlock 2017-11-24 20:47:00 +01:00
bors-servo
a812af51d6 Auto merge of #19325 - m-novikov:tidy-ignore-without-duplicates, r=jdm
Report an errror if a package has duplicates allowed but there are no duplicates

Resolves: #19306

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

---
<!-- 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 #19306 (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes

<!-- 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/19325)
<!-- Reviewable:end -->
2017-11-22 11:49:40 -06:00
Simon Sapin
b1ce298d4b Replace compiletest suite by doc-tests with compile_fail
compiletest-rs use internal rustc APIs and is broken in today’s Nightly.
rustdoc however is maintained with rustc and so much less fragile.
2017-11-22 16:25:17 +01:00
Simon Sapin
d96f0ff6a7 Use rustdoc --document-private-item instead of deprecated flags
… and use $RUSTDOCFLAGS instead of $RUSTDOC with a wrapper script
2017-11-22 15:32:40 +01:00
Maxim Novikov
e6d9fd8a4f Report an errror if a package has duplicates allowed but there are no duplicates
Resolves: #19306
2017-11-21 21:08:14 +01:00
Alan Jeffrey
be5eaa4447 Submit test-perf CSV files to S3. 2017-11-21 09:27:30 -06:00
Alan Jeffrey
ffd82a53df Renamed mach test-perf -submut to --submit. 2017-11-20 10:59:13 -06:00
bors-servo
50f11e3584 Auto merge of #18984 - dsandeephegde:master, r=jdm
Initial steps of Mutation testing

<!-- Please describe your changes on the following line: -->
- Added one strategy of mutation which is replacing occurrences && to ||.
- Added test mapping framework for running mutation tests corresponding to a mutant.
- Added one test_mapping.json to map source file in a folder to WPT test.
- Added README mentioning about Mutation testing.
- Added CI script to invoke mutation test.
---
<!-- 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 #18529 (github issue number if applicable).
- [x] These changes do not require tests because it is a python script to run mutation test and does not change any behavior.

<!-- 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/18984)
<!-- Reviewable:end -->
2017-11-16 11:51:01 -06:00
Josh Matthews
c227604a2c Update web-platform-tests to revision 44702f2bc8ea98bc32b5b244f2fe63c6ce66d49d 2017-11-15 12:47:30 -05:00
Simon Sapin
3264453284 Stop using "alternate" rustc builds.
With https://github.com/rust-lang/rust/pull/45810,
normal Nightly now has LLVM assertions disabled.
2017-11-14 09:08:11 +01:00
Sandeep Hegde
a9493d0887 Corrected a typo 2017-11-13 21:12:53 -05:00
Sandeep Hegde
f817a9c371 Refactored mutate random line method 2017-11-13 20:47:06 -05:00
Sandeep Hegde
61794f8bbd Made test summary more descriptive and Updated Readme 2017-11-13 20:40:16 -05:00
Alan Jeffrey
109df3328a Add --base option to test-perf. 2017-11-13 18:58:06 -06:00
Anthony Ramine
0c2ccc8914 Fix a typo in tidy.py 2017-11-13 16:04:36 +01:00
Sandeep Hegde
cc6c2eea6e Added mutation test summary and made it exit with relevant exit code 2017-11-12 23:43:04 -05:00
tigercosmos
58b201d43e enhance android build debug info 2017-11-12 20:37:50 +08:00
Sandeep Hegde
b8199e11e0 Changed readme saying wildcard not allowed in test_mapping.josn 2017-11-10 20:48:47 -05:00
Sandeep Hegde
6e66c0d1ef Corrected typo in Readme 2017-11-10 20:22:12 -05:00