Commit graph

1591 commits

Author SHA1 Message Date
Simon Sapin
1d3fdc471e Fix Python 3 support in mach’s ensure_bootstrapped 2020-01-02 17:02:12 +01:00
Simon Sapin
895cf695c4 Fix a Python 3 warning
```
/home/simon/projects/servo/python/servo/testing_commands.py:301:
SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if err is not 0:
```
2020-01-02 16:44:17 +01:00
Simon Sapin
f93c03cda3 Install rust-docs rustup component in ./mach doc 2020-01-02 15:48:11 +01:00
Simon Sapin
1110cac184 mach + rustup: use the minimal profile and install rustc-dev 2020-01-02 15:48:11 +01:00
Simon Sapin
6f70a9c1de mach: always call ensure_bootstrapped before call_rustup_run 2020-01-02 15:30:33 +01:00
Simon Sapin
e96bcea669 mach: explicitly install the toolchain and target in ensure_bootstrapped 2020-01-02 15:30:33 +01:00
Simon Sapin
855601ebb4 mach: check rustup version in ensure_bootstrapped() 2020-01-02 15:30:33 +01:00
Simon Sapin
d4da65d149 mach: on Windows, opt into MSVC target for all uses of rust_toolchain() 2020-01-02 15:30:33 +01:00
Simon Sapin
e56e49e98f mach: run rustup target add in ensure_bootstrapped 2020-01-02 15:30:33 +01:00
Simon Sapin
cef92a2050 Mach: rename default_toolchain to rust_toolchain 2020-01-02 14:20:18 +01:00
bors-servo
3e77a0ae09
Auto merge of #25354 - lberrymage:dom-domroot-lint-check, r=jdm
Add &DomRoot<T> lint check

So far, the lint check code appears to work as intended. However, some trait implementations require modification to pass the lint check and I'm not sure how to fix these. Commit 92cf5d5 attempts to correct one of the implementations, but fails to compile with error:
```
  --> components/script/dom/servoparser/xml.rs:76:36
   |
76 |         tree_builder.trace_handles(&tracer);
   |                                    ^^^^^^^ expected struct `dom::bindings::root::Dom`, found struct `dom::node::Node`
   |
   = note: expected struct `dom::bindings::root::Dom<dom::node::Node>`
              found struct `dom::node::Node`
   = note: required for the cast to the object type `dyn html5ever::tree_builder::Tracer<Handle = dom::bindings::root::Dom<dom::node::Node>>`
```
I've tried to debug further but to no avail. I also don't want to mangle too much existing code unnecessarily. Any help is appreciated.

<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
`./mach test-tidy --all` does, and some are directly related to this PR
- [ ] These changes fix #25342
The fix is a WIP

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

Note that I will clean up the commit history before the final PR.
<!-- 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. -->
2019-12-21 18:23:26 -05:00
lberrymage
cd9195056c Add lint check for &DomRoot<T>
`&DomRoot<T> is strictly less expressive than `&T`, so using it is
pointless.
2019-12-21 12:44:35 -09:00
Josh Matthews
e922d5e11d Print OSMesa environment variables when starting debugger under WPT. 2019-12-20 11:25:19 -05:00
pylbrecht
65a21e9bad Enable raqote by default 2019-12-17 19:51:55 +01:00
Simon Sapin
d670b4420a Add layout-2020 option to the .servobuild file
… and `--with-layout-2013` command-line option to disable it.
2019-12-16 15:36:18 +01:00
marmeladema
4fc5154dd1 Make mach test-tidy --self-test compatible with Python3 2019-12-14 12:42:47 +00:00
bors-servo
a03a413c15
Auto merge of #25255 - marmeladema:fix-25251, r=jdm
Use filename instead of opened file descriptor when calling ZipFile

This should fix #25251

<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (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. -->
2019-12-12 11:50:41 -05:00
bors-servo
06e3d13795
Auto merge of #25247 - pshaughn:clean_virtualenv2.7, r=jdm
mach clean now finds the right virtualenv to remove

<!-- Please describe your changes on the following line: -->
mach clean now knows about the 00cf7452ef change and will remove _virtualenv2.7 appropriately

---
<!-- 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 problems discussed today with SimonSapin in IRC

<!-- Either: -->
- [X] These changes do not require tests because the functionality being changed uninstalls some of the test framework

<!-- 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. -->
2019-12-12 05:21:16 -05:00
marmeladema
e6a3a9774a Use filename instead of already opened file descriptor when calling ZipFile
This should fix #25251
2019-12-12 00:14:32 +00:00
Patrick Shaughnessy
47fab46ca3 mach clean now finds the right virtualenv 2019-12-11 16:12:55 -05:00
marmeladema
7b5fabe855 Fix tidiness errors for Python3 compatibility across whole repo 2019-12-11 16:03:20 +00:00
marmeladema
9d04f231f4 Make mach test-tidy --no-wpt compatible with Python3
Note: tidiness tests of Python file using flake8 was effectively
broken since a previous commit for Python3 compatibility
2019-12-11 13:57:07 +00:00
bors-servo
8d4cedb911
Auto merge of #24575 - marmeladema:issue-23607/compat, r=SimonSapin
Enable some mach commands to be run with python3

This change finally enable the following commands to be run with python3:
* `build`
* `test-unit`
* `package`

As previously explained, `test-tidy` will require more work in the wpt repository directly. Maybe `test-tidy --no-wpt` is achievable relatively quickly though.

For possible remaining bits that might need to be worked on, see https://github.com/servo/servo/issues/23607

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

<!-- 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. -->
2019-12-10 16:34:10 -05:00
bors-servo
47716cc1aa
Auto merge of #25219 - jdm:angle-uwp-up, r=paulrouget
Update ANGLE for UWP fix.

This fixes a WACK error where the ANGLE DLLs do not contain the App Container feature.
2019-12-10 14:47:32 -05:00
marmeladema
02c55e2eca Use is_linux to check for current platform instead of relying on sys.platform 2019-12-10 16:11:03 +00:00
marmeladema
17233f2dd2 Write subprocess stdout/stderr logs to raw stdout buffer when using Python3 2019-12-10 16:11:02 +00:00
marmeladema
176e63284e Replace usage of basestring by six.string_types for Python3 compatibility 2019-12-10 16:11:02 +00:00
marmeladema
267eaad4eb Properly open file as 'wb' in archive_deterministically 2019-12-10 16:10:58 +00:00
Josh Matthews
ba8c52854e Update ANGLE for UWP fix. 2019-12-09 14:40:33 -05:00
marmeladema
3f48f2863c Convert cmp= to key= in sort method call for Python3 compatibility 2019-12-09 19:31:46 +00:00
marmeladema
67c2c115c0 Allow to run mach with Python3 (>=3.5) 2019-12-09 19:31:46 +00:00
marmeladema
01c1a6c4c9 Update mach to version 1.0.0 2019-12-09 19:31:46 +00:00
marmeladema
76ff22f5d0 Allow to specify glob pattern for ignored directories in servo-tidy.toml 2019-12-09 19:31:46 +00:00
marmeladema
00cf7452ef Generate per python version virtualenv 2019-12-09 19:31:45 +00:00
Simon Sapin
7282839cf7 Fix Python Unicode error in './mach filter-intermittents'
Fix https://github.com/servo/servo/issues/25062
2019-12-05 15:48:39 +01:00
Simon Sapin
14f049ddd1 Fix Python Unicode error on macOS CI 2019-12-03 17:55:51 +01:00
Simon Sapin
0ac021c1a5 Include test output in filtered WPT logs 2019-12-03 16:49:23 +01:00
Josh Matthews
fcdf347d83
Support overriding the moztools path order. 2019-11-27 11:56:47 -05:00
Simon Sapin
c156bf2dd9 Add a .servobuild option for --with-debug-assertions 2019-11-26 16:36:24 +01:00
bors-servo
f1aa5d8dbd
Auto merge of #24857 - pshaughn:master, r=jdm
add llvm-dev to Debian requirements

<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #24852 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it's the build process itself, not servo code

<!-- 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. -->
2019-11-25 13:09:42 -05:00
Alan Jeffrey
57af033a28 Require gstreamer 1.16 in mach 2019-11-25 10:12:05 -06:00
bors-servo
ea32495504
Auto merge of #24708 - szeged:webgpu-base, r=gterzian,kvark
Initial implementation of WebGPU API

<!-- Please describe your changes on the following line: -->
- Added the WebIDL bindings for GPU and GPUadapter interfaces.
- Created a background thread for WebGPU api calls.
- Established the async communication between the background thread and the WebGPU interfaces.
- Implemented the `requesAdapter` function of `navigator.gpu`

`./mach test-tidy` reports an error due to the different `arrayvec` version used in `servo` and `webgpu`, so added it to the ignore list in `servo-tidy.toml`

---
<!-- 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
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes addresses a part of #https://github.com/servo/servo/issues/24706

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

cc @jdm, cc @kvark

<!-- 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/24708)
<!-- Reviewable:end -->
2019-11-25 00:00:46 -05:00
Patrick Shaughnessy
a2a3ecac93 Merge branch 'master' of https://github.com/pshaughn/servo 2019-11-23 22:08:43 -05:00
Patrick Shaughnessy
f1b34aa995 llvm-dev is required on Debian 2019-11-23 22:06:39 -05:00
Tuncer Ayaz
81c439a899 Extract media_stack pick into CommandBase 2019-11-21 20:08:04 +00:00
Tuncer Ayaz
6d8f35c590 Allow media_stack in run_cargo_build_like_command 2019-11-21 20:08:04 +00:00
Tuncer Ayaz
d641585679 Implement ./mach check --media-stack
While at it, extract --media-stack flag into command_base.py.
2019-11-21 20:08:03 +00:00
Tuncer Ayaz
ba3169e65d Implement ./mach doc --media-stack={dummy|gstreamer} 2019-11-21 20:08:03 +00:00
Tuncer Ayaz
528322cfed Fix needs_gstreamer_env() signature
Use iterable default value for `features`.
2019-11-21 20:08:01 +00:00
Tuncer Ayaz
a3ef594470 Pass feature list to build_env() 2019-11-21 20:08:01 +00:00