Commit graph

1677 commits

Author SHA1 Message Date
bors-servo
3f999ce785
Auto merge of #27007 - saschanaz:py3-flake, r=jdm
Upgrade flake8/pyflakes for Py3 compatibility

<!-- 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
- [ ] 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. -->
2020-06-21 11:35:20 -04:00
bors-servo
fde47f8937
Auto merge of #27005 - saschanaz:py3-tidy, r=jdm
Do not raise StopIteration: PEP 479

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

This fixes `test-tidy` Py3 compatibility, as [PEP 479](https://www.python.org/dev/peps/pep-0479/) says `return` must be used to stop iteration inside generator instead of `raise StopIteration`.

This introduces subtle behavior change where `FileList()` constructor now won't implicitly stop the caller generator when the list is empty. `wpt_lint.py` is modified to explicitly stop when empty, to match the change.

---
<!-- 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. -->
2020-06-21 02:19:55 -04:00
Kagami Sascha Rosylight
1d2e618e5b Return early when no merge base commit 2020-06-21 05:26:55 +02:00
Kagami Sascha Rosylight
57eed5baa4 Use except Exception where Py2/3 disagrees 2020-06-21 04:30:23 +02:00
Kagami Sascha Rosylight
d01648d637 Fix remaining flake8 warnings 2020-06-21 03:34:32 +02:00
Kagami Sascha Rosylight
c953931621 Replace SubprocessError with FileNotFoundError 2020-06-21 01:13:31 +02:00
Kagami Sascha Rosylight
96b8f39277 Fix new flake8 warnings 2020-06-20 23:53:49 +02:00
Kagami Sascha Rosylight
98a40a432c Upgrade flake8/pyflakes for Py3 compatibility 2020-06-20 23:33:16 +02:00
Kagami Sascha Rosylight
97bfab73b4 Initialize colorama only once 2020-06-20 22:36:54 +02:00
Kagami Sascha Rosylight
90449ae147 Do not raise StopIteration: PEP 479 2020-06-20 21:46:28 +02:00
bors-servo
232d9269e7
Auto merge of #27004 - saschanaz:py3-env, r=jdm
Fix Py3 environment setting failures

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

`python3 mach build -d` now proceeds to actual build. Since Gecko landed full Python 3 support, updating mozjs should allow us to drop Python 2 to build Servo. (I still see failures on other commands e.g. `test-tidy`.)

---
<!-- 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. -->
2020-06-20 14:11:51 -04:00
Kagami Sascha Rosylight
a202a1d5b6 Fix Py3 environment setting failures 2020-06-20 17:36:01 +02:00
Kagami Sascha Rosylight
74e0d02c03 Fix Py3 failures when installing MSVC dependencies 2020-06-20 16:40:01 +02:00
Josh Matthews
e65b4489d1
Set Content-Type for sha256 uploads. 2020-06-19 00:43:36 -04:00
Akshat Agarwal
1d789867d2 support Pop!_OS 20.04 2020-06-15 04:05:34 +05:30
bors-servo
51fd0e83e9
Auto merge of #26720 - camelid:real-version-hash, r=SimonSapin
Show the real commit hash for `./servo --version`, not the bundle hash

<!-- Please describe your changes on the following line: -->
Show the real commit hash of the build when run on a bundle commit, rather than showing the bundle's hash.

It gets the real commit hash by extracting it from the bundle commit message, which has the form `Shallow version of commit {sha1}`, where `{sha1}` is the real commit hash.

---
<!-- 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 (edits Python code, no Rust changes)
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #26386 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because this only changes 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. -->
2020-06-06 11:40:22 -04:00
Josh Matthews
21b670fad8 Run only a supported set of WPT test types by default. 2020-06-03 16:37:59 -04:00
camelid
2e5ad99022 Use binary strings for compatibility with Python 3 2020-05-31 09:20:08 -07:00
camelid
e362538bf2 Don't fail if run on non-bundle commit 2020-05-30 17:56:18 -07:00
camelid
dd4a558ce5 Add missing brackets 2020-05-30 17:42:34 -07:00
camelid
02d69a0fda Get the real commit hash, not the bundle hash
It's extracted from the commit message of the bundle.
2020-05-30 17:30:22 -07:00
bors-servo
a243b0a741
Auto merge of #26122 - mamins1376:fix/26114, r=paulrouget
Support building on Void Linux

Adds support for building on Void Linux.

Since this distribution uses LibreSSL, currently it's not possible to link against it. So this adds `openssl-src` feature to corresponding crates in order to activate `openssl/vendored`.
Automatic activation of this feature on Void is also included in build system.

*Note*: #26117 will activate `openssl/vendored` by default. If that's the case, I will just keep the package names in `./mach`.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because AFAIK there is no way to check for required packages on each distro and they are manually checked.

<!-- 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. -->
2020-05-28 03:44:34 -04:00
atouchet
a33c75cbec Rename glutin port to winit 2020-05-27 20:27:15 -07:00
bors-servo
34a41f57c6
Auto merge of #26662 - servo:rustup, r=jdm
Partial preparations for upgrading to Rust nightly-2020-05-26

CC https://github.com/servo/servo/issues/26661
Fixes https://github.com/servo/servo/issues/26645
2020-05-27 02:55:17 -04:00
Simon Sapin
cfd62cf8dc Partial preparations for upgrading to Rust nightly-2020-05-26
CC https://github.com/servo/servo/issues/26661
Fixes https://github.com/servo/servo/issues/26645
2020-05-26 21:11:23 +02:00
Mohammad Amin Sameti
0b84208a0b Add void packages to mach bootstrap 2020-05-23 02:32:23 +04:30
Josh Matthews
4fec987221 Fix output of test-tidy with duplicated packages. 2020-05-20 14:19:47 -04:00
camelid
1b36a7cf96 Fix file extension for Linux nightly 2020-05-14 11:27:20 -07:00
camelid
6faccf6c3c Only upload latest hash 2020-05-13 11:47:53 -07:00
camelid
f1e37e2dd2 Add integrity hash for nightly builds 2020-05-13 10:03:02 -07:00
complexengine
399ee3fee7
Update Ubuntu version upto 20.04
Update Ubuntu version upto 20.04
2020-04-30 09:10:31 +05:30
Manish Goregaokar
c89dc821ba Add XRHand interface 2020-04-27 17:35:48 -07:00
Simon Sapin
f864697522 OSMesa is no longer a build dependency
Since https://github.com/servo/servo/pull/25853
2020-04-20 22:10:26 +02:00
Ellen Marie Dash
04c38042a8
[python/servo/bootstrap.py] Add missing comma
Add a missing comma in `pkgs_dnf` list.
2020-04-18 22:48:29 -04:00
bors-servo
306e8ac5f9
Auto merge of #25853 - asajeffrey:surfmanup, r=jdm
Replace glutin by winit + surfman 0.2

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

This PR updates surfman to 0.2, and replaces glutin with winit+surfman.

---
<!-- 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 this should all be invisible

<!-- 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. -->
2020-04-18 21:03:25 -04:00
bors-servo
c6ec063a31
Auto merge of #26217 - servo:jdm-patch-40, r=asajeffrey
Disable RUST_BACKTRACE in unit tests on macOS.

This works around #26192 which is a new relatively frequent intermittent crash on CI.
2020-04-18 02:59:52 -04:00
Alan Jeffrey
8bb1732258 Update surfman to 0.2 and remove glutin 2020-04-17 23:44:53 -05:00
bors-servo
66f14773c6
Auto merge of #26207 - servo:jdm-patch-36, r=Manishearth
Publish new UWP package

This fixes an issue where the latest UWP package is published at http://download.servo.org/nightly/uwp/servo-latest.0.0.0_Test.zip because the full filename contains "1.0.0.0" and we don't detect file extensions correctly.
2020-04-17 19:30:04 -04:00
Josh Matthews
b54b3aca64
Disable RUST_BACKTRACE in unit tests on macOS. 2020-04-17 18:20:35 -04:00
Josh Matthews
15751b13fd Only create UWP archive if the app packages are signed. 2020-04-17 11:34:25 -04:00
Josh Matthews
699cf5b29b Remove version number from generated UWP archive. 2020-04-17 11:32:36 -04:00
Manish Goregaokar
015805de65 Add VCINSTALLDIR to the 'do not run within vcvarsall' check 2020-04-16 14:51:34 -07:00
Josh Matthews
03e6787bf9
Find upload package extension correctly. 2020-04-16 17:45:14 -04:00
bors-servo
2829945963
Auto merge of #26202 - emilio:gecko-sync, r=emilio
style: Sync changes from mozilla-central.

See individual commits for details.

https://bugzilla.mozilla.org/show_bug.cgi?id=1630676
2020-04-16 16:35:43 -04:00
Emilio Cobos Álvarez
124f462d09 python: Use updated mako path in package_commands.py. 2020-04-16 21:25:16 +02:00
bors-servo
7d3617a0d4
Auto merge of #26198 - Manishearth:vcvarsall-fail, r=jdm
Report error when vcvarsall fails

In trying to get my Windows cross build working on my desktop, I ended up spending a lot of time trying to replicate a failure within servo's build system that ultimately turned out to be vcvarsall silently failing (I was missing a trailing slash in my `VSINSTALLDIR` env var, which vcvarsall does not handle well at all)

We should report an error when this happens.

r? @jdm
2020-04-16 15:05:42 -04:00
Manish Goregaokar
371ba67d55 Report error when vcvarsall fails 2020-04-16 10:01:17 -07:00
Josh Matthews
3a8af93abe
Update required clang-format version. 2020-04-15 22:24:09 -04:00
Josh Matthews
c32b1ac940
Upgrade clang to 9.0 on Windows. 2020-04-15 15:03:03 -04:00
Akshat Agarwal
4ab2d59fea add missing dependencies 2020-04-15 15:34:06 +05:30