Commit graph

1531 commits

Author SHA1 Message Date
bors-servo
eb05af27d2
Auto merge of #24711 - servo:rustc-dev, r=jdm
Make `./mach rustup` install the rustc-dev component
2019-11-13 01:55:15 -05:00
Simon Sapin
b7389a9637 Make ./mach rustup install the rustc-dev component 2019-11-12 13:57:46 +01:00
Jan Andre Ikenmeyer
c241442aec
Fix Debian bootstrap 2019-11-10 19:57:39 +01:00
bors-servo
748f10dfc3
Auto merge of #24662 - servo:tc-urls, r=jdm
Run a decision task on both TC deployments
2019-11-05 18:56:49 -05:00
Simon Sapin
08705345d6 Always construct TC API URLs from $TASKCLUSTER_PROXY_URL or $TASKCLUSTER_ROOT_URL 2019-11-05 14:25:33 +01:00
Paul Rouget
b1753fea2d remove allfiles option for clang-format 2019-11-04 12:44:52 +01:00
bors-servo
f626355b67
Auto merge of #24552 - paulrouget:clangformat, r=jdm
mach fmt calls clang-format

Fix #24031

What would be the right way to also integrate this with tidy?
2019-11-04 04:48:20 -05:00
Paul Rouget
36c1669215 Format support/hololens/ 2019-11-04 07:05:06 +01:00
bors-servo
4ad08fff04
Auto merge of #24619 - gabrielmartin:gabrielmartin-fix-linuxmint-bootstrap, r=jdm
Adding a check for "Linux Mint" with a space

<!-- Please describe your changes on the following line: -->
While trying to run `./mach bootstrap` on Linux Mint I encountered the following error:
```
$ ./mach bootstrap
Traceback (most recent call last):
  File "./mach", line 103, in <module>
    main(sys.argv)
  File "./mach", line 31, in main
    sys.exit(mach_bootstrap.bootstrap_command_only(topdir))
  File "/home/gmartin/servo/python/mach_bootstrap.py", line 234, in bootstrap_command_only
    bootstrap(context, force)
  File "/home/gmartin/servo/python/servo/bootstrap.py", line 403, in bootstrap
    distrib, version = get_linux_distribution()
  File "/home/gmartin/servo/python/servo/bootstrap.py", line 391, in get_linux_distribution
    raise Exception('mach bootstrap does not support %s, please file a bug' % distrib)
Exception: mach bootstrap does not support Linux Mint, please file a bug
```

The solution is to add another check for Linux Mint which included a space in the distro name.

Question: Is it generally a requirement to open an issue if I also have the fix ready to go (as is the case here)?

---
<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [X] These changes do not require tests because I couldn't find any existing unit tests for [python/servo/bootstrap.py](python/servo/bootstrap.py)

<!-- 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-01 20:55:44 -04:00
Patrick Walton
a358bca766 Use surfman for managing GL surfaces
Co-authored-by: Alan Jeffrey <ajeffrey@mozilla.com>
Co-authored-by: Zakor Gyula <gyula.zakor@h-lab.eu>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
2019-11-01 08:47:11 -05:00
Gabe Martin
477cb8c181 fix: adding a check for Linux Mint with a space 2019-11-01 09:27:50 -04:00
Paul Rouget
70823e3032 Format CPP code with clang-format 2019-10-30 11:00:33 +01:00
bors-servo
b052a1a020
Auto merge of #24542 - jdm:angle-up, r=paulrouget
Update UWP ANGLE to a modern version

The previous UWP ANGLE builds were made from https://github.com/servo/ms-angle/tree/servo-master which was based on an abandoned revision of ANGLE from >2 years ago. This is lacking some features that are necessary for https://github.com/servo/webxr/issues/46, so this is a new build produced from https://github.com/google/angle/ instead.

I've documented the process for releasing new ANGLE builds at https://github.com/servo/servo/wiki/Publishing-a-new-ANGLE-NuGet-version.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24199
- [x] These changes do not require tests because the windows testing situation is sad, and the UWP testing situation is sadder
2019-10-28 05:32:45 -04:00
David Wagner
9483442007 Update the maximum version of Ubuntu suppported to 19.10 2019-10-27 22:14:27 +00:00
Josh Matthews
d59fd0fb65 Update to ANGLE 2.1.15 nuget package. 2019-10-25 13:35:32 -04:00
Simon Sapin
c8a49baa80 Add ./mach test-tidy --no-wpt, for a git pre-push hook
Disabling WPT manifest checking brings the time it takes to run tidy
for ~11 seconds to ~3 seconds, which feels reasonable to have in a
git pre-push hook.
This can help avoid forgetting to run tidy before opening a PR.

```
$ chmod +x .git/hooks/pre-push
$ cat .git/hooks/pre-push
#!/bin/sh
set -e
./mach test-tidy --no-wpt
```
2019-10-24 10:30:25 +02:00
marmeladema
c0a9d39525 Use input() from six instead of raw_input to be compatible with Python3 2019-10-22 10:16:00 +01:00
marmeladema
45817ac26e Use 'byte' regexp pattern to match on 'byte' string
This is done in order to be compatible with Python3
2019-10-22 10:16:00 +01:00
marmeladema
af7e4d633a Convert git sha hash to text to be compatible with Python3
This also pin the six module version to 1.12 in order to be sure
six.ensure_text is available.
2019-10-22 10:15:59 +01:00
marmeladema
7e9ce2dbd5 Use six.text_type instead of str to check instance type 2019-10-22 10:15:59 +01:00
marmeladema
ff50cdb183 Fix call to flake8 broken when using distro module during test-tidy 2019-10-22 10:15:53 +01:00
marmeladema
4d6f28df35 Use linux_distribution() from distro package instead of builtin platform module
platform.linux_distribution() is deprecated since Python 3.5 and
will be removed with Python 3.8.
2019-10-20 23:56:46 +01:00
marmeladema
0aa6314ee2 Pin six module version to 1.12 2019-10-20 23:43:26 +01:00
marmeladema
bed6f2dbec Use relative import statements to be compatible with Python3 2019-10-20 23:43:26 +01:00
marmeladema
865d7377b3 Replace call to execfile(...) by call to exec(compile(open(...)))
This is done in order to be compatible with Python3
2019-10-20 23:43:25 +01:00
bors-servo
9032207b8a
Auto merge of #24447 - servo:uninit, r=nox
Work around deprecation warnings caused by autocfg $RUSTFLAGS handling

See https://github.com/servo/servo/issues/24446
2019-10-16 17:03:13 -04:00
bors-servo
6d488f1be2
Auto merge of #24435 - marmeladema:issue-23607/compat, r=jdm
Issue 23607: first pass of changes for compatibility with Python3

As much as i want to migrate entirely to Python3 (see #23607), it will require some time as changes in web-platform-tests are significant and rely on upstream fixes to be merged and synced downstream.
In the meantime, lets improve compatibility with Python3 so that later, migration will be less painful.

Build system is definitely not ready yet for Python3, but its a step in the right direction.

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

<!-- 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-10-16 11:01:28 -04:00
bors-servo
f0b708418c
Auto merge of #24451 - servo:jdm-patch-36, r=manishearth
Restore convenience UWP build flags.

Restores the build flags removed in 5367da98f8 to avoid mistakes when specifying the new target.
2019-10-16 02:57:25 -04:00
marmeladema
bf66a08c02 Fix StringIO module import to be compatible with Python3 2019-10-16 00:22:08 +01:00
marmeladema
5bd0fca140 Use iteritems from six module for Python3 compatibility 2019-10-16 00:22:08 +01:00
marmeladema
6c813d073c Use octal literal syntax compatible with Python3 2019-10-16 00:22:07 +01:00
marmeladema
02cfb4f49e Fix except statement in order to be compatible with Python3 2019-10-16 00:22:07 +01:00
marmeladema
f1d42fe787 Use urllib from six module in order to be compatible with Python3 2019-10-16 00:22:07 +01:00
marmeladema
f063ea64a5 Add six module to python requirements.txt for Python3 compatibility 2019-10-16 00:22:06 +01:00
marmeladema
4e1ee07a79 Improve print statement compatibility with Python3 2019-10-16 00:22:06 +01:00
Josh Matthews
98bcb4bb57
Fix syntax error. 2019-10-15 10:45:19 -04:00
Josh Matthews
6ec5314911
Restore convenience UWP build flags. 2019-10-15 10:44:14 -04:00
Simon Sapin
6ef9d34132 Work around deprecation warnings caused by autocfg $RUSTFLAGS handling
See https://github.com/servo/servo/issues/24446
2019-10-15 11:25:36 +02:00
Fernando Jiménez Moreno
11993bb8f5 Allow setting GST_DEBUG on Android through mach 2019-10-14 17:27:29 +02:00
Josh Matthews
5367da98f8 Support building UWP with native UWP rustc target. 2019-10-12 10:19:26 -04:00
Josh Matthews
025cb64d85 Create a zip of all UWP packaging artifacts. 2019-10-10 15:50:37 -04:00
Fernando Jimenez Moreno
becb694013 Allow building and cleaning for UWP without system GStreamer 2019-10-08 10:27:10 +02:00
bors-servo
86efbe30ca
Auto merge of #24359 - servo:jdm-patch-31, r=jdm
Remove intermittent failure reporting.

The frequency with which we hit https://github.com/servo/intermittent-failure-tracker/issues/5 means that this is hurting us more than it helps.

<!-- 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/24359)
<!-- Reviewable:end -->
2019-10-04 13:02:43 -04:00
Josh Matthews
050fcc989d Remove intermittent failure reporting. 2019-10-04 09:12:08 -04:00
Josh Matthews
6535899d54
Use correct OpenSSL arch in UWP builds. 2019-10-03 00:52:27 -04:00
Josh Matthews
96302bad91 Update to UWP compatible OpenSSL build. 2019-10-02 15:00:29 -04:00
Manish Goregaokar
c716d4662d Isolate UWP builds from external gstreamers 2019-10-02 00:05:16 -07:00
Manish Goregaokar
43467e8d82 Bump gstreamer-uwp msvc-package to 1.16.0.5
This new package contains a hacky gstreamer-webrtc-1.0.pc file so that we can still do self-contained builds without relying on external PKG_CONFIG_PATH.
2019-10-01 17:35:06 -07:00
bors-servo
a2755f5689
Auto merge of #24264 - SiddharthaMishra:master, r=Manishearth
Make tidy report when a rand exception is no longer needed

Make test-tidy always check Cargo.lock and make tidy report when a rand exception is not needed
---

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #24152  (GitHub issue number if applicable)

- [X] There are tests for these changes

<!-- 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/24264)
<!-- Reviewable:end -->
2019-09-25 16:25:51 -04:00
Fernando Jiménez Moreno
ea6cff4b8d Allow playing video/webm on Windows 2019-09-24 13:32:15 +02:00