Commit Graph

318 Commits

Author SHA1 Message Date
Adrian Utrilla
aa70d9722d servo: Merge #10620 - Improved readability of ensure_bootstrapped (from autrilla:mach-command-improvements); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: a87fa103b89213b9306be35dd26980aed22207e0
2016-04-17 10:51:41 +05:00
edunham
1dbf52773f servo: Merge #10635 - Docs and cleanup after moving tidy (from edunham:tidy-cleanup); r=larsbergstrom
Missed a couple things in https://github.com/servo/servo/pull/10590

`licenseck.py` was moved into `tidy/servo_tidy/licenseck.py` by the prior PR

r? @larsbergstrom (sorry for PR spamming today)

Source-Repo: https://github.com/servo/servo
Source-Revision: 9d23d7c0d98e24995243487b55abbf2acd1ec354
2016-04-16 05:35:09 +05:00
Adrian Utrilla
bb7a72b6d8 servo: Merge #10616 - #10614: Mach install now builds servo if it hasn't been built before (from autrilla:10614); r=edunham
Source-Repo: https://github.com/servo/servo
Source-Revision: 7c615233d88967f79efbf78618eda3f3a8479e88
2016-04-16 00:12:04 +05:00
askeing
b7e6a9471a servo: Merge #10590 - Package tidy (from edunham:package-tidy); r=larsbergstrom
This fixes https://github.com/servo/servo/issues/861.

@askeing, I've copied your work from https://github.com/askeing/servo_tidy and attributed the commit to you. My commit in this PR is Git housekeeping to preserve `tidy`'s history. If you'd like to make additional changes, I've given you and @shinglyu push access to my fork of Servo. Apologies if this is already familiar, but the workflow for pushing to my branch is:

```
$ git remote add edunham git@github.com:edunham/servo.git
$ git checkout -b package-tidy
$ git pull edunham package-tidy
$ git push edunham package-tidy
```

Once this lands, I'll look at how to publish it to PyPI and automate that process.

Please don't merge this yet; we still need to discuss how the change should work around https://github.com/servo/servo/blob/master/python/servo/testing_commands.py#L33 , as I've yet to figure out how to get the egg to actually expose its tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: bfe54539d290cb287e59e8ba106a54a3fab6201a
2016-04-15 22:50:16 +05:00
Per Lundberg
16a282b6bb servo: Merge #10619 - mach: Added warning for update-cargo -a (from perlun:add-update-cargo-all-packages-warning); r=Wafflespeanut
To quote Lars Bergstrom:

> yeah, that's a giant footgun :-)

Source-Repo: https://github.com/servo/servo
Source-Revision: db4481b4509db4be83e0f77a66884feccd1878e0
2016-04-15 02:35:48 +05:00
Maciej Skrzypkowski
5f4e0ba7b5 servo: Merge #10563 - Test for check_spec function, for tidy.py #9152 (from mskrzypkows:tidy_tests); r=mbrubeck
Additional test for tidy.py

Source-Repo: https://github.com/servo/servo
Source-Revision: efd672344274758b4cc670fe170a812a29a3c736
2016-04-13 22:58:41 +05:00
Saurav Sachidanand
7d829f5c76 servo: Merge #10565 - Update to byteorder 0.5 (from saurvs:master); r=Ms2ger
Finishes https://github.com/servo/servo/issues/10437.

Source-Repo: https://github.com/servo/servo
Source-Revision: d566f1c143e051b3c3d4ff9e9d8087af8b45dbd6
2016-04-13 19:57:50 +05:00
Maciej Skrzypkowski
04c24e404e servo: Merge #9835 - Initial tests for tidy.py #9152 (from mskrzypkows:tidy_tests); r=Wafflespeanut
I've created tests for spaces check and license. Tell me if it's good direction so I'll add more tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: 72eae396795d61c0f68d5f09dd84f0835bf10c79
2016-04-07 19:15:11 +05:00
Ms2ger
34ed2ffe98 servo: Merge #10453 - Update uuid (from Ms2ger:uuid); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: 5cf89fea48fb1fc58fd665384cbaa2060decff31
2016-04-07 15:48:20 +05:00
Adrian Utrilla
5960324c7e servo: Merge #10442 - Issue #10441: Added caching support to mach bootstrap (from autrilla:mach-caching); r=Wafflespeanut
As suggested on the issue, files are stored as `.part` and moved to the original name when done.

Source-Repo: https://github.com/servo/servo
Source-Revision: e431bda9ea6c8a79c98d98668dd934fafd4f7092
2016-04-07 13:36:54 +05:00
Josh Matthews
518657cac5 servo: Merge #10435 - Fix warnings from old dependencies (from jdm:glgenbump); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: dc3f199043d4cf74b83f33c94960e199c0cfa7b3
2016-04-07 08:30:23 +05:00
Olaf Buddenhagen
8c9558ca82 servo: Merge #10447 - Update ipc-channel for two important bug fixes (from antrik:update-ipc_channel-5); r=jdm
This fixes https://github.com/servo/servo/issues/10260 by pulling in
https://github.com/servo/ipc-channel/pull/61 (fix receive for messages
close to packet size) and https://github.com/servo/ipc-channel/pull/62
(properly handle ENOBUFS); where the latter is not critical per se, as
there was a workaround already -- but that workaround aggrevated the
first bug, resulting in the urgent issue...

This bump requires a tidy override for `uuid`: `ipc-channel` was updated
to `uuid 0.2` in https://github.com/servo/ipc-channel/pull/63 (don't
know why...), while other crates are still with `0.1`. That was blocking
this urgent bug fix; and according to a discussion with @mbrubeck on
IRC, the override should be OK in this case.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0b951f65b969ccc3445079a70686cf2146e365d7
2016-04-07 04:48:03 +05:00
Saurav Sachidanand
e985d24732 servo: Merge #10433 - Implement WebGLRenderingContext.getActiveUniform() (from saurvs:pr3); r=emilio
Fixes https://github.com/servo/servo/issues/10397

Source-Repo: https://github.com/servo/servo
Source-Revision: 4cc241c858ce8ee7894495d082a3bfc6233d80e8
2016-04-07 03:29:01 +05:00
Paul Rouget
7a4d0e7568 servo: Merge #9811 - forcetouch events (from paulrouget:forceTouch); r=mbrubeck
https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html

Not sure how we want to land that yet. Maybe reproduce the webkit events (as in this PR), or as touch/mousemouse events.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0ff8adb09778402e88fe0d0ad92f4b399ca8ca01
2016-04-05 20:37:05 +05:00
zakorgyula
a4dbbd1293 servo: Merge #10074 - Fix ./mach test-tidy --faster issue (from zakorgy:tidyfix); r=Wafflespeanut
issue #9778

Source-Repo: https://github.com/servo/servo
Source-Revision: a8ed5c3fc66ab9ea57b6b78311485040dae27328
2016-04-05 19:34:54 +05:00
Adrian Utrilla
c4401ea9ea servo: Merge #10363 - Issue #10357: mach run -b now passes additional params to servo (from autrilla:issue#10357); r=emilio
Previously `./mach run` with the `-b` flag set ignored everything passed after the `--`, so for example when running `./mach run -d -b -- --help`, `--help` was not passed to servo - it is now.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5e73e1015b588da6b641a7a4175e51430d9b7019
2016-04-02 17:31:13 +05:00
Mohamed Albashir
d0fae49187 servo: Merge #10292 - Initial steps for CSSOM (from jdm:cssom); r=jdm
Squashed and rebased #10133.

Source-Repo: https://github.com/servo/servo
Source-Revision: f335586ff538004c708d836876b359704ebed86a
2016-04-01 03:59:08 +05:00
Emilio Cobos Álvarez
bd70866e46 servo: Merge #10302 - Update webrender to master (from emilio:webrender-up); r=nox
I'll rebase #10224 against it.

Sorry for the blocking of #10224, I expected it to be reviewed way sooner, my fault for landing breaking changes.

r? @nox or @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 84a3dee67ea7a45d6ec505f59c7a55162621f11e
2016-03-31 21:21:06 +05:00
Josh Matthews
624fd58613 servo: Merge #10238 - Run unit tests on appveyor (from jdm:winunit); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: e1485718128bff632eff5445583e925ff796bdba
2016-03-30 19:28:30 +05:00
Ms2ger
95f4930593 servo: Merge #10265 - Remove dead code that used to support the legacy reftest framework (from Ms2ger:reftest); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e19d9c45965c05397172daae96f92133139d0d11
2016-03-29 21:22:48 +05:00
Jussi Räsänen
88fce4ffa2 servo: Merge #10208 - Generate html and json of supported css properties (from jrasanen:jr/issue10196); r=SimonSapin
Fixes #10196. Outputs html and json of supported css properties to `target/doc/` directory when deploying github-pages.

Source-Repo: https://github.com/servo/servo
Source-Revision: df73a18a61e57f62e2e17541d45dcd3818b35b7c
2016-03-29 13:04:08 +05:00
Michael Howell
f72d7780fc servo: Merge #8641 - No more headless compositor. Just the normal one (from notriddle:no_headless); r=glennw
Fixes #8573

Source-Repo: https://github.com/servo/servo
Source-Revision: aac2da75f40f4c55a4b450b6d9d134429fcf741e
2016-03-29 12:12:01 +05:00
UK992
0591c2eb2f servo: Merge #10223 - Fix ./mach run and ./mach test-unit on Windows (from UK992:win32); r=larsbergstrom
This small hack fix conflict with mingw and rustc ``libstdc++-6.dll``.
This fixes https://github.com/servo/servo/issues/9465 and https://github.com/servo/servo/issues/10048

CC @larsbergstrom @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: d22a7a1912c7cf513931463e7081d2d345e11ff0
2016-03-27 19:51:37 +05:00
Lars Bergstrom
7d6f8d5511 servo: Merge #10193 - Use rustflags (from larsbergstrom:use_rustflags); r=Ms2ger
r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: a211bd1a12254a6a08987bb61f30c8b0e5ce2830
2016-03-25 22:12:17 +05:00
Bobby Holley
c3e649c731 servo: Merge #10155 - Generalize the style structs (from bholley:generalize_style_structs); r=SimonSapin
This allows geckolib to pass gecko style structs and have the style system write to them directly, provided we implement all the traits.

Source-Repo: https://github.com/servo/servo
Source-Revision: 605842f193aedc1151ab38a99c49f693c76e5cf3
2016-03-25 02:57:33 +05:00
malayaleecoder
4523d7b8a9 servo: Merge #10148 - Remove test-ref command from testing_commands.py. Fixes #10125 (from malayaleecoder:master); r=Manishearth
Tries to fix #10125

Source-Repo: https://github.com/servo/servo
Source-Revision: 5886493fb056daa326bf7ea88fc32cc4225cbc7a
2016-03-24 03:40:20 +05:00
edunham
eacb2f3ac2 servo: Merge #10127 - Read rustc-with-gold setting from env var when no .servobuild (from edunham:gold-env-var); r=larsbergstrom
The build system needs to disable gold on arm64 slaves. Other configuration is
done through environment variables, and buildbot hosts currently don't use a
.servobuild file at all.

This change adds the `get_env_bool` function to cast an environment variable's
string contents into a Python boolean, and uses it to retrieve the optional
`SERVO_RUSTC_WITH_GOLD` setting.

I figured it's worth throwing the helper function in now in case we later want to read booleans from other env vars, but there's currently no need to make up a name for and read from an env var for every single setting.

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 003fdd41769652188a5954e6499f3cb44eef6b10
2016-03-23 01:22:21 +05:00
Ms2ger
a5035eef64 servo: Merge #10123 - Remove unused use_nightly_rust function (from Ms2ger:use_nightly_rust); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: 805aa3a3ab6506cd7178cebf7886c306802137a5
2016-03-22 21:08:50 +05:00
Ms2ger
49335b058c servo: Merge #10076 - Update to Rust 2016-03-18 (from servo:rustup); r=larsbergstrom,manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: aa35d7721b0e1e7893e48af1eb91bf8ad2495d46
2016-03-20 14:06:17 +05:00
Petr Klíma
3ecfa38a15 servo: Merge #10003 - Patch handles exception with errormessage on topdir with Unicode characters (from qaxi:master); r=metajack
https://github.com/servo/servo/issues/10002
./mach does not support paths with Unicode characters for now

it fail on original line 154 with exception UnicodeDecodeError
This patch handles the exception

Source-Repo: https://github.com/servo/servo
Source-Revision: 42c7472f336e687200507dafdf1087d8f0ea4d55
2016-03-17 00:15:22 +05:00
Attila Dusnoki
0d4709c4e3 servo: Merge #9838 - WebBluetooth API classes (from szeged:webbluetooth); r=jdm
Basic implementation of WebBluetooth API
API spec.: https://webbluetoothcg.github.io/web-bluetooth/

Source-Repo: https://github.com/servo/servo
Source-Revision: 37574065e0a1a22493bdbf1ce8dd0480aa88c758
2016-03-16 20:31:18 +05:00
Ms2ger
2c1eb66693 servo: Merge #10033 - Make the jquery test runner work again (from Ms2ger:jquery); r=jdm
CC #10032.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6c5bfca53e6f61e4a7d60c8b5d65478e479c9bf5
2016-03-16 18:51:31 +05:00
malayaleecoder
221d0552fa servo: Merge #10013 - Remove submodule update from mach bootstrap. Fixes #10010 (from malayaleecoder:master); r=Wafflespeanut
Tries to fix #10010 . Please have a look.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1a60e07ee8ce3f8bd55348e6ff26639bf4c1822b
2016-03-15 23:49:04 +05:00
malayaleecoder
aea1976a56 servo: Merge #9995 - test_ref() got an unexpected keyword argument 'kind'.Fixes #9986 (from malayaleecoder:master); r=Manishearth
Tries to fix #9986. Please have a look.

Source-Repo: https://github.com/servo/servo
Source-Revision: 075ce980a24d1e31ad704915681ef3f7edd03ccb
2016-03-15 11:24:58 +05:00
Martin Robinson
9f3ee660ff servo: Merge #9966 - Do not run WPT tidy on pyc files (from mrobinson:tidy-pyc); r=jdm
Generalize the mechanism for skipping file patterns and use it for
generating the list of WPT files to lint. Add *.pyc to the list of
file patterns to skip.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8eb4fb801b00ff9cacdfe13476bf1ac562d47ec6
2016-03-11 11:46:03 +05:00
Mike Fairhurst
067fa5b6a9 servo: Merge #9889 - Handle escaped strings in rust linting, tidy.py (from MichaelRFairhurst:github-bug-9806-tidy-linting-string-contents); r=ecoal95
A little annoying to read since we have to escape for python (\\) and
then escape for re (\\\\) and then even at times escape for single
quotes immediately after, (\\\\\), but tidy.py now strips strings even
if they have escapes before linting.

Fixes #9806 -- basically the problem is that the PR which first revealed this had an escape in one of its strings which included an = sign. The escape meant the string wasn't escaped before it looked for spaces around spaces.

Source-Repo: https://github.com/servo/servo
Source-Revision: f1bb0b0fa3eacac718a825c103cbdd1a0365fbf9
2016-03-11 04:37:43 +05:00
Ms2ger
73d73f2d4a servo: Merge #9941 - Update the list of files tidy ignores (from Ms2ger:tidy-ignore); r=jdm
The deque file was removed in favour of an external crate.

The sync and sync_css directories are automatically created when updating the
in-tree copies of the wpt and css tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: 25c6c29a27d2a176a967ee49d97a29ad1d3a140e
2016-03-09 21:14:35 +05:00
Wei Tang
527ab0df0b servo: Merge #9937 - Detect Cygwin environment on Windows (from sorpaas:fix/cygwin); r=Wafflespeanut
Currently if Servo is built using Cygwin, it is incorrectly classified as "unknown" host, which makes downloading Rust and Cargo fail. This pull request fixes that.

Source-Repo: https://github.com/servo/servo
Source-Revision: 31bdcbe7258cfa796b88505f5e29d75920e5c708
2016-03-09 17:23:01 +05:00
UK992
5da2e959b4 servo: Merge #9908 - Check tidy for "support/android/build-apk/" (from UK992:tidy-fix); r=ecoal95
Fixes  #9893
r? @ecoal95

Source-Repo: https://github.com/servo/servo
Source-Revision: e3bea4f88724c9fc7dfceab590dd0df90a0a7a3f
2016-03-08 11:57:08 +05:00
Rahul Sharma
4fdc94bf18 servo: Merge #9871 - tidy fix for longer single line imports (from creativcoder:fix-tidy-single-import); r=Wafflespeanut
Fixes #9864

Source-Repo: https://github.com/servo/servo
Source-Revision: 41864c4524d6303a6aa21e99bf67d4026c135900
2016-03-08 00:36:08 +05:00
Jack Moffitt
33efe13c59 servo: Merge #9873 - Adds browserhtml dependency and mach run --browserhtml (from metajack:mach-run-bhtml); r=ecoal95
This makes the experience for testing browserhtml super easy.

Source-Repo: https://github.com/servo/servo
Source-Revision: 69f52d0f213aeec0d498798dfdaa15f8459a9a79
2016-03-05 04:03:18 +05:00
Paul Padier
25720edfde servo: Merge #9750 - Lint json files (from magni-:lint_json); r=Wafflespeanut
Fixes #9745

This is a very simple solution: try to load all json files, and catch any `ValueErrors` that pop up. Do we need something more complex?

Source-Repo: https://github.com/servo/servo
Source-Revision: dbceb60455282122d52a60c9ed6484eaa120e930
2016-02-27 05:44:05 +05:00
Daniel Robertson
108939a75f servo: Merge #9685 - Mach update-wpt should default to "--no-patch" (from danlrobertson:i9666); r=Wafflespeanut
Change mach default behavior for `update-wpt` to use the "--no-patch" option and provide an alternate option "--patch" for anyone who does in fact want `update-wpt` to automatically create a commit.

Fixes #9666

Source-Repo: https://github.com/servo/servo
Source-Revision: 455ed0ae6d4c82fd38762a92f0dd6697bd3b2b50
2016-02-25 23:43:27 +05:00
Ravi Shankar
ee954a01da servo: Merge #9649 - Refactoring tidy (from Wafflespeanut:tidy_progress); r=jdm
Improved tidy's code for efficiency (which now shows progress while checking through files)

Source-Repo: https://github.com/servo/servo
Source-Revision: 553cf3d8e8dfc5eb1222fc48b507d6578da6bc66
2016-02-25 22:06:21 +05:00
Anthony Ramine
14518dfd62 servo: Merge #9721 - Bump to Rust 2016-02-22 (from servo:rustup); r=larsbergstrom,nox
Source-Repo: https://github.com/servo/servo
Source-Revision: dd5f3382547069b9f5d7933959c0307c863c58ac
2016-02-23 06:45:04 +05:00
Jason Williams
d33b0e4d32 servo: Merge #9627 - Now we use python for os_type, we need to catch 'windows' as well as … (from Jayflux:addWindowsOptionInTriple); r=larsbergstrom
…'mingw65_nt- fixes #9597

Source-Repo: https://github.com/servo/servo
Source-Revision: 3f74c07e2025671d867e94acd28e706ce6fe236e
2016-02-14 05:17:05 +05:00
Jayflux
8e45bdc779 servo: Merge #9588 - add check for win32 or msys before running rustc-with-gold fixes #9499 (from Jayflux:hotfix/9499); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: 2fd8cbccdd5dae1ec79404bdf0f582a2f0ff89a4
2016-02-13 23:02:49 +05:00
Jason Williams
28129046ef servo: Merge #9624 - use python's built in platform module for detection, for more accurac… (from Jayflux:hotfix/9597); r=KiChjang
…y and cross platform support
Fixes #9597.

Source-Repo: https://github.com/servo/servo
Source-Revision: 80e55c7ce42fae08c6517facab686913c0c4eef8
2016-02-13 19:14:03 +05:00
Daniel Robertson
223d632640 servo: Merge #9611 - Download extra stdlib only when required: #9557 (from danlrobertson:i9557); r=larsbergstrom
Split [`ensure_bootstrap`](https://github.com/danlrobertson/servo/blob/i9557/python/servo/command_base.py#L397-L422) into two phases including a phase checking the compiler, and a phase checking for target libraries. E.g.

```
    # should download the stdlib for "i686-unknown-linux-gnu", "arm-linux-androideabi"
    # and the hosts target
    ./mach build -d --target i686-unknown-linux-gnu --android
    # should only download the stdlib for the hosts target
    ./mach build -d
```

Let me know if I missed anything! There are a few parts of this patch in its current state that I'm not a huge fan of, but I couldn't think of a better way in the moment.

Still new to working on servo, so any comments or critiques are welcome!

Fix #9557

Source-Repo: https://github.com/servo/servo
Source-Revision: 088963f774f5068ec8dc0f3bd88579bc1e84c18d
2016-02-13 02:39:51 +05:00
Suvish Varghese Thoovamalayil
cd36444869 servo: Merge #9601 - Exit mach with an error when building on a path with spaces. Fixes #9442 (from vishy1618:issue_9442); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: 76381418bd04d94afac79a1fa5d4366d71c1a3de
2016-02-12 18:50:35 +05:00