Commit graph

39372 commits

Author SHA1 Message Date
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
bors-servo
c8791c0dbb
Auto merge of #24680 - saschanaz:formdataevent, r=jdm
Require FormDataEventInit dictionary

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

Should probably wait until https://github.com/whatwg/html/issues/5064 be fixed.

---
<!-- 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 __ (#22670 mentions `FormDataEvent` but the codegen itself still has a problem, in e.g. `PromiseRejectionEventInit`)

<!-- 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-11-24 17:39:30 -05:00
bors-servo
122d4fd617
Auto merge of #24851 - servo-wpt-sync:wpt_update_24-11-2019, r=servo-wpt-sync
Sync WPT with upstream (24-11-2019)

Automated downstream sync of changes from upstream as of 24-11-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-11-24 10:06:21 -05:00
Zakor Gyula
47e39ec1e3 Patch wgpu-native 2019-11-24 15:10:42 +01:00
WPT Sync Bot
cf1754151c Update web-platform-tests to revision 3f26c954fb1791782bb73bd2f37a727bd8650d55 2019-11-24 13:00:21 +00:00
Kagami Sascha Rosylight
94565c4088 Require FormDataEventInit dictionary 2019-11-24 15:31:15 +09:00
bors-servo
3a21261f69
Auto merge of #24847 - servo-wpt-sync:wpt_update_23-11-2019, r=servo-wpt-sync
Sync WPT with upstream (23-11-2019)

Automated downstream sync of changes from upstream as of 23-11-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-11-23 08:40:01 -05:00
WPT Sync Bot
7289e837fd Update web-platform-tests to revision f0cb9071aea5ce5b641fcba5f362a0796bdc70bc 2019-11-23 13:39:46 +00:00
bors-servo
0d549e8146
Auto merge of #24841 - servo:jdm-patch-31, r=Manishearth
Useful scripts for interacting with WPT logs

These are scripts I used to generate the list in https://github.com/servo/servo/issues/24828, analyze test failures for #23290, and disable slow tests.
2019-11-22 21:06:18 -05:00
bors-servo
834a0409b9
Auto merge of #24811 - servo:fail-fast, r=jdm
Fix updating the GitHub Status as soon as any TC task fails

… rather than only when the entire task group is resolved. This allows Homu to more quickly be notified of a failure, and move on to the next PR in the queue sooner.

(Plus drive-by Brewfile fix.)
2019-11-22 19:38:49 -05:00
bors-servo
f14eb65a11
Auto merge of #24838 - Manishearth:squeeze, r=jdm
Add support for squeeze events

Depends on https://github.com/servo/webxr/pull/98
2019-11-22 17:24:16 -05:00
Manish Goregaokar
87f729731a Add support for squeeze events 2019-11-22 13:58:13 -08:00
Josh Matthews
41d1ecac64
Fix visual indent error. 2019-11-22 14:34:26 -05:00
bors-servo
10a63cc9d4
Auto merge of #24668 - tuncer:configure-media-stack-v2, r=asajeffrey
Allow build to explicitly set the media stack

<!-- Please describe your changes on the following line: -->
_[This is based on @asajeffrey's work in #23423, and is a rebase and continuation of that branch]_

This allows `./mach build` to override the media stack, which is currently hard-wired based on the target. To skip gstreamer, run `./mach build -d --media-stack=dummy`.

---
<!-- 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 #23050 (GitHub issue number if applicable)
<!-- Either: -->
- [x] These changes do not require tests because it's build infra

<!-- 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-22 13:26:07 -05:00
Josh Matthews
804780f933
Add explanatory comment for wpt_result_analyzer.py. 2019-11-22 13:23:43 -05:00
Josh Matthews
0c294de4a7
Add explanatory comment to wpt-timing.py. 2019-11-22 13:19:28 -05:00
Josh Matthews
cc1aadfd20
Add explanatory comment for wpt-summarize.py. 2019-11-22 13:14:30 -05:00
Josh Matthews
6cad3dbe3f
Remove unused import. 2019-11-22 13:03:41 -05:00
Josh Matthews
46af28a0e1
Fix tidy issues in wpt-summarize.py. 2019-11-22 13:03:18 -05:00
Josh Matthews
5867e115c2
Fix tidy issues in wpt-timing.py. 2019-11-22 12:58:42 -05:00
Josh Matthews
ed715fc16f
Add a script to report timing data for all tests in a WPT log. 2019-11-22 12:47:19 -05:00
Josh Matthews
a634d90e4a
Add a script to extra logs for particular test filenames from full WPT logs. 2019-11-22 12:46:36 -05:00
Josh Matthews
4c8216129e
Add script to summarize WPT test directories with failing tests. 2019-11-22 12:42:50 -05:00
Simon Sapin
77089ef44e Fix updating the GitHub Status as soon as any TC task fails
… rather than only when the entire task group is resolved.
This allows Homu to more quickly be notified of a failure,
and move on to the next PR in the queue sooner.
2019-11-22 18:14:27 +01:00
Simon Sapin
4dbdd255a1 Remove support for shallow clones. The bundle is already shallow. 2019-11-22 18:14:26 +01:00
Simon Sapin
3a8bb531a0 Fetch repository from artifacts rather than GitHub 2019-11-22 18:14:26 +01:00
Simon Sapin
55a8158d17 Decision taks: add artifacts of the repository’s contents 2019-11-22 16:09:03 +01:00
Simon Sapin
a11dc7006f Add Windows support to with_curl_artifact_script 2019-11-22 16:09:03 +01:00
Simon Sapin
b96a36c131 Move mkdir call out of with_curl_script 2019-11-22 16:09:02 +01:00
Simon Sapin
83921dbc99 Deduplicate task dependencies 2019-11-22 16:09:02 +01:00
Simon Sapin
203a06ff24 Fix Brewfile’s for running Servo without bulding it 2019-11-22 16:09:02 +01:00
Zakor Gyula
16bc2e18b1 Patch spirv_cross 2019-11-22 10:40:04 +01:00
bors-servo
1b524ead1e
Auto merge of #24818 - gterzian:fix_panic_on_finish_load, r=jdm
Prevent panic on layout send in finish-load

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

Do not run the finish load steps if the pipeline has been discarded by the time the parser finishes.

---
<!-- 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 #22955 (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-11-22 03:12:59 -05:00
Gregory Terzian
f28ffaca59 abort parser before shutting down layout in exit pipeline 2019-11-22 14:45:23 +08:00
bors-servo
c060f00535
Auto merge of #24789 - gterzian:fix_unloading, r=jdm
Fix unloading, active BC, and clearing js runtime

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

Do not set the window to be the currently active one for the windowproxy as part of `load`, as it will be done later when the document activity is set. And doing it later means that when unload runs, it is with the unloaded pipeline as the active window.

Only nullify the window proxy if it's not used by another (currently-active) window.

---
<!-- 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 #24591 (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-11-22 01:28:36 -05:00
bors-servo
49f47ea09f
Auto merge of #24816 - saschanaz:promiserejection, r=jdm
Require PromiseRejectionEventInit dictionary

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

<!-- 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-11-21 21:39:44 -05:00
Kagami Sascha Rosylight
22278a8895 Require PromiseRejectionEventInit dictionary 2019-11-22 10:18:11 +09:00
bors-servo
fdd5dadc3a
Auto merge of #24817 - servo:jdm-patch-31, r=Manishearth
Unindent Document::set_activity

I was reading this method while reviewing some code and I find the early-return version easier to read.
2019-11-21 19:56:21 -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
01a99b5cbe Make gstreamer(-sys) optional 2019-11-21 20:08:03 +00:00
Tuncer Ayaz
c7ac4bbb19 simpleservo: add media-{dummy,gstreamer} features 2019-11-21 20:08:02 +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
Alan Jeffrey
4e3f164f7b Allow mach build to explicitly set the media stack
You can select the media backend by building as follows:

$ ./mach build -d --media-stack=dummy
or
$ ./mach build -d --media-stack=gstreamer
2019-11-21 20:08:01 +00:00
bors-servo
91b612f8df
Auto merge of #24692 - paulrouget:checkcpp-tc, r=jdm
Run test-tidy with CPP files check on Windows
2019-11-21 12:11:37 -05:00
Gregory Terzian
1fab2416d7 abort parser, if any, when pipeline exits 2019-11-21 23:58:03 +08:00
Josh Matthews
aa7a52c05e
dom: Unindent Document::set_activity. 2019-11-21 10:14:28 -05:00