Commit Graph

385 Commits

Author SHA1 Message Date
malayaleecoder
36b4f2a602 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:25:58 +05:01
Martin Robinson
04c79b6712 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:47:03 +05:01
Mike Fairhurst
26a5ee1bcc 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:38:43 +05:01
Ms2ger
c8db736877 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:15:35 +05:01
Wei Tang
d25060c15d 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:24:01 +05:01
UK992
775aa09069 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:58:08 +05:01
Rahul Sharma
90e2b2cb80 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:37:08 +05:01
Jack Moffitt
e4b7eb2998 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:04:18 +05:01
Paul Padier
f717eaeb9b 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:45:05 +05:01
Daniel Robertson
f20750fbd6 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:44:27 +05:01
Ravi Shankar
e3d087c722 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:07:21 +05:01
Anthony Ramine
f98f618ac8 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:46:04 +05:01
Jason Williams
f8d007663c 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:18:05 +05:01
Jayflux
faeb869af7 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:03:49 +05:01
Jason Williams
12fadf10d5 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:15:03 +05:01
Daniel Robertson
0886508321 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:40:51 +05:01
Suvish Varghese Thoovamalayil
18d115f777 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:51:35 +05:01
Matt Brubeck
65c73bf899 servo: Merge #9607 - Add a "mach test-wpt --chaos" mode for reproducing intermittent failures using rr (from mbrubeck:chaos); r=jgraham
This adds a new `--chaos` flag to the `test-wpt` and `test-css` commands.  This will run a test repeatedly until it fails, recording it with the rr debugger in chaos mode. Requires a recent master build of rr.

```
./mach test-wpt --chaos test.html
```
is shorthand for:
```
./mach test-wpt --repeat-until-unexpected \
                --debugger rr \
                --debugger-args "record --chaos" \
                --include test.html
```
This PR currently includes changes to wptrunner which were also submitted upstream as w3c/wptrunner#170.  We should not merge this until that upstream PR is merged. CC @jgraham

Source-Repo: https://github.com/servo/servo
Source-Revision: faa349fb876c4b163ba14623899c9f4e6ab3d0eb
2016-02-12 03:05:47 +05:01
qpid
406ccafa8b servo: Merge #9549 - Removed references of android-rs-glue from comments and documentation (from saurvs:master); r=larsbergstrom
Fixes https://github.com/servo/servo/issues/9507.

Source-Repo: https://github.com/servo/servo
Source-Revision: b2a297c64f19ca975202e29151f7780ebccd0ec7
2016-02-06 08:14:46 +05:01
Simon Sapin
5857f11723 servo: Merge #9509 - Deduplicate the cocoa crate (from servo:cocoa); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 9e68285d35a2e7b72c9edfd9e5e37399e724c4e6
2016-02-05 01:27:50 +05:01
Florian Hahn
797ece8f28 servo: Merge #9469 - Integrate compiletest_rs (from fhahn:compiletest2); r=jdm
This PR integrates `compiletest_rs` as suggested in #5646. I created a new  `tests/compiletest` directory which contains separate crates for the tests.

Currently this PR includes `compile-fail` tests for some lints (acutally all except  inheritance_integrity, beacuse I'm not sure how to include the dom stuff in a way the `#[dom_struct]` works).

I gathered that there should be more crates for which compiletests make sense and would appreciate any pointers to relevant crates.

Source-Repo: https://github.com/servo/servo
Source-Revision: d574b78313be75f3388123d11354b897598877a3
2016-02-04 20:31:21 +05:01
Lars Bergstrom
cfb7ea2139 servo: Merge #9449 - Revert "Remove gold hack, since it's in rustc automatically now" (from larsbergstrom:revert_gold_removal); r=mbrubeck
This reverts commit 2955d895a4d723bc616f37a55a973c677318a950.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 220ead14b16c8965335a6d54e037f2e30fc634ea
2016-02-01 14:28:02 +05:01
Anthony Ramine
2a04dbaf91 servo: Merge #9473 - Bump clipboard to remove libc 0.1.z dependency (from nox:adieu-libc-1); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: ec06c256d70937e91acb7309d7518b76962ea3a4
2016-02-01 04:09:15 +05:01
Shing Lyu
e405dcb806 servo: Merge #9459 - Add mach test-webidl command (from shinglyu:testwebidl); r=Wafflespeanut
I updated the `WebIDL.py` from latest mozilla-central. And add a `./mach test-webidl` command. For #9397

Source-Repo: https://github.com/servo/servo
Source-Revision: 0ada7f9c8eda9879b5536cea3266c94214f9ce9b
2016-01-30 20:52:53 +05:01
Adam Casey
b5091326a9 servo: Merge #9440 - Prepend PATH extras instead of append (Fix Issue #9437) (from adamncasey:fix-multirust); r=jdm
Should fix multirust issue https://github.com/servo/servo/issues/9437 which appeared after https://github.com/servo/servo/pull/9415 landed.

@jdm to confirm

Source-Repo: https://github.com/servo/servo
Source-Revision: 03b763c2c5b873ccc454278a55737bc37e940e97
2016-01-27 18:48:29 +05:01
Adam Casey
3d559cdc6e servo: Merge #9415 - Fix ./mach run on Windows (from adamncasey:mach-run-win32-fix); r=larsbergstrom
This branch also includes the commit being reviewed in https://github.com/servo/servo/pull/9408 . Is it OK to just wait for that one to merge, or should I separate them?

This patch adds the BIN_SUFFIX to the servo executable name when doing ./mach run.

However just doing this caused subprocess to error due to some unicode symbols in PATH.

To fix this, I pulled a peice of code from mozilla-central which fixes this problem there. Source: https://dxr.mozilla.org/mozilla-central/source/python/mach/mach/mixin/process.py#108

Revisiting this now (originally developed this a few weeks ago), perhaps we should be using https://github.com/servo/servo/blob/master/python/mach/mach/mixin/process.py instead of subprocess to give us all of this crossplatform process execution support. I think that should be a nice to have though - this patch at least gets a necessary development command working on windows.

Tested on Windows and Ubuntu.

Source-Repo: https://github.com/servo/servo
Source-Revision: 80c29113485c0b7d7da6be9c4f64a2b8f1cde826
2016-01-27 00:22:49 +05:01
Lars Bergstrom
5d2bc22040 servo: Merge #9385 - Win32 support (from larsbergstrom:win32); r=frewsxcv,pcwalton,jdm,ecoal95
r? @frewsxcv for python stuff
r? @pcwalton for the "remove usage of Gaol" stuff for Win32
r? anybody else for misc cargo.lock updates, etc.

This replaces #7878.

This works best with https://github.com/servo/mozjs/pull/71, too, to enable static linking, but can be run without (via some PATH hackery).

The instructions are here, and will be added to a .md file in the repo once the mozjs changes also land:
https://hackpad.com/Servo-on-Windows-C1LPcI2bP25

I'd like to get these changes landed because I've been rebasing them for months, they're otherwise quite stable, and don't affect our other platforms and targets.

Source-Repo: https://github.com/servo/servo
Source-Revision: 525e77f64fc65ea2397b4ff3849f5b1f39386698
2016-01-23 06:58:27 +05:01
Ms2ger
d333e6a4f2 servo: Merge #9394 - Include the wpt lint in test-tidy --faster (from servo:wpt-lint); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 41892d4c93327b43dfe380a4e603789a86193069
2016-01-21 19:22:04 +05:01
Bobby Holley
2379681f6b servo: Merge #9284 - Add Partial Implementation of style DOM traits for Gecko, and some basic glue to let Gecko call into Servo (from bholley:bootstrap_stylo); r=SimonSapin
The wrapper stuff is partially-complete, modulo some unimplemented methods. The glue code is just a toy for now. Regardless, I think it's worth getting some of this stuff in-tree to minimize breakage.

Source-Repo: https://github.com/servo/servo
Source-Revision: 77d3fbcca3c6f7e8b4068f89e25b090977fe5672
2016-01-19 13:50:10 +05:01
Simon Sapin
9a7c1d808c servo: Merge #9333 - Add a script to list all CSS properties parsed by Servo (from servo:list-properties); r=larsbergstrom
I’ve been asked for that list by two different people this week :)

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: dba1f27305c5e81eda6acd4c438a2adfb6ed053d
2016-01-16 00:37:03 +05:01
Lars Bergstrom
928d1d2132 servo: Merge #9093 - Update to rustc 1.7.0-nightly (b4707ebca 2015-12-27) (from servo:rustup); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: 4cb2c87982355bdf2a2dd409db71d0d4ed6f9a85
2016-01-15 19:08:07 +05:01
Ms2ger
30d558a9fb servo: Merge #9293 - Remove the legacy reftest framework (from Ms2ger:reftests); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: d28fb42201dd743c470fcc1f43bf2e13f1c8cddc
2016-01-14 14:31:14 +05:01
apopiak
b3f216d5b0 servo: Merge #9273 - add faster flag to ./mach test command (from apopiak:fix_mach_test_error_9253); r=Wafflespeanut
add `faster` flag to `./mach test` command

in order to call `test-tidy` properly

close #9253

Source-Repo: https://github.com/servo/servo
Source-Revision: a345608a945b3ba6656715671bf0d67a8bd4c151
2016-01-14 00:39:29 +05:01
PythonNut
2f994b2c2d servo: Merge #9277 - Call WPT lint directly in tidy, fixes #9189 (from PythonNut:master); r=Wafflespeanut
This should be fairly straightforward. :)

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c8382cbde73a2d5f57c4a8a65d4ae55c03fd990
2016-01-13 12:10:24 +05:01
PythonNut
62b2074a70 servo: Merge #9243 - Fix literal braces in string formatting in tidy.py, fixes #9151 (from PythonNut:master); r=Wafflespeanut
This should be pretty self-explanatory, it's less than a dozen bytes, after all. :)

Fixes #9151.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4143caaa5796c4e6cfaa6b13d46b409819d822d7
2016-01-11 07:54:45 +05:01
Bobby Holley
561a84a40d servo: Merge #9209 - Implement a geckolib target (from bholley:geckolib); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: aa713c9fbb56fd3f1427779bb31ec48dee316187

--HG--
rename : servo/tests/unit/net_traits/lib.rs => servo/ports/geckolib/lib.rs
2016-01-10 06:45:17 +05:01
Daan Sprenkels
a2573817de servo: Merge #9118 - Add 'test-tidy-faster' command to ./mach (from dsprenkels:test-tidy-faster); r=Wafflespeanut
For issue #9088, this adds a `--changes` option to `./mach test-tidy`. If this option is set, `tidy.py` will only check files that have been modified since `FETCH_HEAD`.

Mention: @Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: 74226836ba27afedebd88cd1269018ef2ba25959
2016-01-08 22:44:00 +05:01
Matt Brubeck
c260a4c746 servo: Merge #9150 - Make "mach run" use --android by default when enabled in .servobuild (from mbrubeck:run-android); r=larsbergstrom
When `.servobuild` has `android = true`, the `mach run` command should default to running on Android.

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: ea4206e36259cd464480fed3ca9ac6857568bd7c
2016-01-05 00:53:53 +05:01
Daan Sprenkels
65a401d6ea servo: Merge #9073 - tidy.py: remove duplicate code patterns in check_rust(file_name, lines) (from dsprenkels:issue-8733); r=Wafflespeanut
This is an attempt at a reasonable fix for #8733.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9fa56ccfdfb5e9d1c1a6967b28da89c8fab36900
2015-12-31 19:51:27 +05:01
Simon Sapin
0c5d0fff6a servo: Merge #9086 - Rename rust-snapshot-hash to rust-nightly-date (from servo:no-snapshot); r=nox
… and remove mentions of "snapshots".

We now use rust-lang.org nightly builds rather than our own snapshots.

Source-Repo: https://github.com/servo/servo
Source-Revision: f34a656b14f3992203354ffe71dc649d69b6b592

--HG--
rename : servo/rust-snapshot-hash => servo/rust-nightly-date
2015-12-30 18:51:38 +05:01
Olaf Buddenhagen
d12793d02f servo: Merge #9062 - mach run --debug: Try using rust-gdb/rust-lldb if available (from antrik:rust-gdb); r=SimonSapin
If the selected debugger (requested explicitly or detected by mozdebug)
is gdb or lldb, use rust-gdb or rust-lldb instead, if it's available in
the path and appears to be working.

(This should usually be the case when using the default debugger on
GNU/Linux or MacOS, as rust-gdb or rust-lldb is provided by the Rust
snapshot in use.)

Note: I cobbled this together without *any* previous Python experience -- so if it violates three dozen rules, and only works by luck on my own system during a favourable moon phase, don't hesitate to suggest improvements :-)

Source-Repo: https://github.com/servo/servo
Source-Revision: 4e3a435450a8a5ee4293266296700bf1bc579f7d
2015-12-30 04:05:42 +05:01
Daan Sprenkels
fae3c8f777 servo: Merge #9066 - tidy.py: pass list of lines to each testing function (from dsprenkels:issue-9060); r=Wafflespeanut
instead of whole content buffer

See #9060.

Source-Repo: https://github.com/servo/servo
Source-Revision: d2e7fd82213a6b2df6703dc6f9ace70e49762c5a
2015-12-26 18:15:12 +05:01
Simon Martin
6f8d33fe11 servo: Merge #9055 - Issue #9042: Report incorrect number of spaces around => in the style checker (from simartin:issue_9042); r=Wafflespeanut
Fixes https://github.com/servo/servo/issues/9042

Source-Repo: https://github.com/servo/servo
Source-Revision: f77c7928868469ef4f326a269147ae2aee6151ee
2015-12-24 10:26:48 +05:01
Matt Brubeck
84af7691e8 servo: Merge #9020 - Update mach run to use android_params file (from mbrubeck:mach-run); r=larsbergstrom
Currently it sets the SERVO_URL variable, which Servo no longer supports.

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 2a3a7a73b54f89344b130e10811a2fc1f9a6c729
2015-12-19 02:39:28 +05:01
Corey Farwell
ddc1fecbd7 servo: Merge #8977 - Print tidy errors as they happen instead of all-at-once (from frewsxcv:immediate-tidy-errors); r=jdm
Related to #8969

Source-Repo: https://github.com/servo/servo
Source-Revision: 8c09154d5969ae628aeb5e5c8bc6ee6174a2efd0
2015-12-17 08:40:59 +05:01
Matt Brubeck
7af235e026 servo: Merge #8891 - Android build system improvements (from mbrubeck:mach-install); r=larsbergstrom
This PR adds a `mach install` command (a convenient way to run `adb install`), and does some minor code cleanup.

It also fixes parallelism in the OpenSSL build.  For [complicated reasons][1], a sub-Make will not inherit `-j` options from its parent process unless it is invoked directly from another Makefile.  This means we should run make from openssl.makefile rather than openssl.sh.

r? @larsbergstrom

[1]: http://make.mad-scientist.net/papers/jobserver-implementation/

Source-Repo: https://github.com/servo/servo
Source-Revision: a1fb12616a29d2190baadd20d7763af1d9c02260
2015-12-12 18:02:53 +05:01
Ms2ger
8381ed70f7 servo: Merge #8893 - Update bincode (from Ms2ger:byteorder); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: f4aa5b42ea3c0ece91018964df88a0b6e86649dd
2015-12-09 01:07:35 +05:01
Ms2ger
af1ed7a591 servo: Merge #8824 - Rewrite the Cargo.lock tidy check (from Ms2ger:tidy-lock); r=Wafflespeanut
Fixes #8691.

Source-Repo: https://github.com/servo/servo
Source-Revision: cad77d5f1c8458e3b21f3546e8306ab7d5163726
2015-12-08 09:52:55 +05:01
Guillaume Gomez
0dc7d9c439 servo: Merge #8750 - Ensure that tidy follows the same procedure for sorting (from GuillaumeGomez:master); r=Wafflespeanut
Fixes #8734

cc @Wafflespeanut

Source-Repo: https://github.com/servo/servo
Source-Revision: 7d9a6a8397d413ab9e5d7c0fb8409093a45fcb2d
2015-12-06 16:54:43 +05:01
Maciej Skrzypkowski
a4cbcd953e servo: Merge #8626 - Draft, Move OpenSSL Android build to the target directory #8568 (from mskrzypkows:build_commands_android); r=larsbergstrom
I've created a draft, please give me feedback. Is it good direction?

Fixes #8568

Source-Repo: https://github.com/servo/servo
Source-Revision: e774a694407a435c7fb3ecee68b5bb50fbf2dc43
2015-12-05 18:15:32 +05:01
Brandon Fairchild
99c853de09 servo: Merge #7734 - Allow ./mach build to enable Servo's headless mode (from nerith:headless); r=metajack
As mentioned in #7512 and #7637, the environment variable SERVO_HEADLESS
enables building the OSMesa version of Servo when it is set to 1.

Instead, this should be a command line option to mach's build command.

Fixes #7637.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3c0cd5eb068945860fb357c975bfbe6070eebe49
2015-12-04 09:20:05 +05:01
Simon Sapin
d4a1557a4b servo: Merge #8757 - Use skia and deps from crates.io (from servo:skia); r=mbrubeck
This makes the initial download for skia go from a 300 MB git repository to a 5 MB tarball. This should help with issues like #6132 and #7687.

Fix https://github.com/servo/skia/issues/70

This builds, but the at the moment causes a number of tidy errors for duplicated crates.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8b95d7b8d860ec4c0834192083361a9fb78ddbeb
2015-12-03 12:29:29 +05:01
Sam Gibson
257616da50 servo: Merge #8776 - Fix the parsing of the chromium HSTS preload list (from samfoo:hsts-preload-download-fix); r=jdm
Urg! The Chromium HSTS preload JSON file contains single line comments. Previously these were filtered out with a very simple regex that just looked for '//' and removed the line. Now the file has added a couple fields that have URLs in them that were erroneously removed and caused the JSON parsing to fail. This commit slightly complicates the regex to fix this specific problem.

If this happens again, it's likely worth it to figure out how to use a real parser to remove the comments.

servo/servo#8760

Source-Repo: https://github.com/servo/servo
Source-Revision: 2be60be062e14c937af601faed78a6aceccdb062
2015-12-02 09:56:05 +05:01
jmr0
16b8a0085a servo: Merge #8742 - adding wpt lint script to tidy checks (from jmr0:master); r=Ms2ger
Fixes #8285.

Tidy check will fail, however, until we merge the latest https://github.com/w3c/web-platform-tests/blob/master/lint.whitelist

Source-Repo: https://github.com/servo/servo
Source-Revision: a8cbc2864367da09fb31fb5f984a7b2d31b90b93
2015-12-01 21:52:37 +05:01
Guillaume Gomez
732bf0a03c servo: Merge #8692 - Ensure crate are alphabetically sorted (from GuillaumeGomez:patch-1); r=Wafflespeanut
cc @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: dbff1ab33636bc7d60a4c97b63f39b59985726ce
2015-11-28 19:05:11 +05:01
Ms2ger
0a70341fd5 servo: Merge #8697 - Ensure the bootstrap-rust-docs and doc mach commands agree on the location of the Rust documentation (from Ms2ger:docs); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: d552674ba2d0bbe1c19097ba3899d856d1daa495
2015-11-27 14:20:01 +05:01
Manish Goregaokar
693578b06a servo: Merge #8446 - Rust upgrade to rustc 1.6.0-nightly (5b4986fa5 2015-11-08) (from servo:rustup_20151110); r=SimonSapin+Ms2ger+jdm+Manishearth
<s>DO NOT r+ or try+ this</s>

<s>It causes an OOM (https://github.com/rust-lang/rust/issues/29740) and can crash the OS. Probably will set our CI on fire. </s>

Source-Repo: https://github.com/servo/servo
Source-Revision: f13c72d68e1e7f49e241938bfd6e8a588c68e86b
2015-11-27 10:18:00 +05:01
Josh Matthews
f5c0383b1b servo: Merge #8689 - Remove remaining version-conflict exceptions in tidy.py (from jdm:deps); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: bc618b0d535e0e67a7ea845c026678113f000d64
2015-11-27 08:48:54 +05:01
jmr0
5ed073271e servo: Merge #8685 - tidy rule to warn against use of &String and refactoring (from jmr0:master); r=Ms2ger
Fixes #8681

Source-Repo: https://github.com/servo/servo
Source-Revision: f96e8ce9e8c0a2c9de9574f538718defdcd93c11
2015-11-27 04:19:38 +05:01
Yanir Seroussi
d5d4fc96cd servo: Merge #8596 - Reduce duplication in binary path determinition for Android target (from yanirs:build-binary-path-reduce-duplication); r=larsbergstrom
Fixes issue #8349

Source-Repo: https://github.com/servo/servo
Source-Revision: 4f1feb3925c8705ada845687eaeef60ba599212b
2015-11-19 18:19:35 +05:01
nxnfufunezn
54709f6581 servo: Merge #8590 - Make test-wpt run with RUST_BACKTRACE=1 by default #8194 (from nxnfufunezn:_run_test-wpt_with_RUST_BACKTRACE); r=jdm
Fixes #8194

Source-Repo: https://github.com/servo/servo
Source-Revision: 1dd4c0821ff4314f15588d64926c91523846516d
2015-11-19 06:11:02 +05:01
Simon Sapin
d453427bd5 servo: Merge #8520 - Very hackish support for ./mach run --android (from servo:android-run); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 27e104aa1a62978bf2dd8b6a65963a2466af936a
2015-11-14 02:03:53 +05:01
Ms2ger
6af08b4e88 servo: Merge #8451 - Ignore sync directories in test-tidy (from Ms2ger:tidy-sync); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: 6772461002637cf4ae174a1c49d4418487f48cb9
2015-11-10 18:15:20 +05:01
Martin Robinson
d633311280 servo: Merge #8415 - Form relative reference URLs during create-wpt (from mrobinson:create-wpt-relative); r=frewsxcv
Instead of always using the absolute path to the reference file when
creating new reference tests, create-wpt now creates relative URLs if
the files are in the same directory. This is the most common case for
new Servo tests. Also fix some missing quotation marks in the
create-wpt template.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5fda719fa8cd513d888011d12262bb8ccd000dce
2015-11-09 22:14:25 +05:01
Simon Martin
1b7d40af67 servo: Merge #8410 - Avoid UnboundLocalError upon "bogus" usage of ./mach create-wpt (from simartin:issue_8407); r=nox
Fixes https://github.com/servo/servo/issues/8407

Source-Repo: https://github.com/servo/servo
Source-Revision: 43a5c62fdec0b8e25c7cd708d3dd5a17e1dad6be
2015-11-09 00:54:22 +05:01
Corey Farwell
0f3926347c servo: Merge #8394 - Make virtualenv more tolerant of spaces in directory names (from frewsxcv:virtualenv-spaces); r=Manishearth
Fixes #8390

Source-Repo: https://github.com/servo/servo
Source-Revision: abf2dfea05dfb304af5424a7c51440a14865a169
2015-11-08 03:26:54 +05:01
Lars Bergstrom
2eccac32a7 servo: Merge #8366 - Add CCACHE infra and turn it on in travis (from larsbergstrom:ccache); r=frewsxcv
r? @Manishearth

This lets devs configure their use of CCACHE with their .servobuild file, as usual. For build environments, they can either have a .servobuild file or set the CCACHE env var to point at the ccache binary to use.

It also adds support for ccache to our travis builds. Buildbot will come in a separate commit to the saltfs repo.

It is expected that the various cargo makefiles will look at this variable and do the "right thing" to tell their native build to instead use ccache. e.g., https://github.com/servo/mozjs/pull/62

Source-Repo: https://github.com/servo/servo
Source-Revision: d16ba51b4722a84f69976ca8679af672495248c8
2015-11-07 06:32:54 +05:01
Benjamin Herr
8fc8121668 servo: Merge #8364 - mach_bootstrap: Don't get confused by interrupts (from ben0x539:mach-nochmal); r=metajack
When mach_bootstrap got interrupted while it's setting up virtualenv or
calling out to pip, it wouldn't repeat that step on subsequent runs, and
mach fails because its environment isn't set up properly or dependencies
are missing.

So now we re-run virtualenv if activate_this.py doesn't exist, and only
create the marker file for required packages after pip has returned
successfully.

Source-Repo: https://github.com/servo/servo
Source-Revision: afc41ec4ac404a160edb8c8fb12434fe54d59821
2015-11-06 01:19:19 +05:01
Lars Bergstrom
0b806539c8 servo: Merge #8288 - New Android suppport (from larsbergstrom:new_android_build); r=mbrubeck
r/f? @mbrubeck

No need to r+ urgently; I want to do a little bit more testing of the release build, but I'm hoping to land this bit (moving to a more sane build process) next week.

The new version of building an APK:
1) Removes the glutin-based APK builder from the link step
2) Adds a build.rs step to the build of the final Servo library that adds the native code required by glutin's android_rs_glue (e.g., `ANativeActivity_onCreate` definition)
3) Replaces the link step with a `fake-ld.sh` script that instead creates a libservo.so
4) Adds a new mach `package` step to build the APK that has some Rust code that builds the library from a set of in-tree build files

This setup fixes a number of problems:
1) We can use gdb, because we use `ndk-build`, which adds the .gdbserver info, plus we keep around all of the build files (also required by the ndk gdb)
2) We can add more Java code & hooks to handle Android intents
3) We no longer have any git submodules or the awkward two-step build with android-rs-glue

Many other setups were tried (and failed). The most obvious ones is building a libservo.so from a `dylib` target from the servo build on Android. This doesn't work because you can't have a different default lib target on one platform than others in Cargo, and you also can't pass it in from the commandline (e.g., --lib does not have a dylib arg). Additionally, if you don't go through the intermediate libservo.rlib step (which removes unused symbols), then you end up with a TON of missing symbols because our -sys crates are super sloppy about that. I spent a few weeks beginning to clean them up, but since it's something we can't easily enforce (and new -sys packages will have this problem, too, since it's only an issue with the Android loader), it made more sense to me to just have the build set up to discard those unused bits of code before they ever get to the linker, much less the loader.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0699d38e80c029a384354da96596421f3a97ceef
2015-11-05 05:22:48 +05:01
Corey Farwell
4c18146242 servo: Merge #8320 - Expand tidy to lint parts of /tests/wpt (from frewsxcv:expand-tidy); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: b098339f92a6d8351786686fb80aaaa76532ccb6
2015-11-04 15:14:28 +05:01
nxnfufunezn
40fb652360 servo: Merge #8176 - Added support for using --features argument with --android (from nxnfufunezn:features-argument); r=mbrubeck
Fixes #8173
r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: d8cb2762af389309ff9684f04194e4773ce33c3e
2015-10-30 22:24:40 +05:01
Brandon Fairchild
43bbf4c046 servo: Merge #8144 - Add clippy as a command to mach (from nerith:clippy); r=Manishearth
This gives mach the ability to run clippy with `./mach clippy`.

Fixes #8134.

Source-Repo: https://github.com/servo/servo
Source-Revision: 79f300f0387ad8218d06511c429d071cdef0193c
2015-10-22 10:27:02 -06:00
Anthony Ramine
bb8125a3da servo: Merge #8041 - Introduce trait Castable (from nox:castable); r=jdm
Removes all those messy FooCast structures in InheritTypes.rs.

Source-Repo: https://github.com/servo/servo
Source-Revision: 674589c370d978f543e71f995d58c5b28e6e9842
2015-10-21 07:57:32 -06:00
James Graham
93eff38911 servo: Merge #8083 - Add create-wpt mach target to help with creating web-platform-tests (from jgraham:create-wpt); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 36d5c0b2fbe94065b068c6aad72ad7797a157926
2015-10-20 03:46:17 -06:00
Till Schneidereit
35d5d9d31f servo: Merge #7415 - Improve implementation of DOMRect and implement DOMRectReadOnly (from tschneidereit:dom-rect); r=nox
Passes most tests from test-css. The remaining ones should pass once we have https://github.com/w3c/csswg-test/pull/834.

r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 810d28a2574cd288ddfa5737ade417ea53a4b690
2015-10-17 15:17:27 -06:00
Gilles Leblanc
b420fbc10c servo: Merge #8044 - Adds a tidy check for single-page HTML specification links (from gilles-leblanc:issue-7998); r=Manishearth
Flags links to the single-page WHATWG specification and suggests the URL
for the multi page one.

Fixes #7998

Source-Repo: https://github.com/servo/servo
Source-Revision: 36998cd5b1ab8da63b6ec82c7d45b5dc08b5d42a
2015-10-15 19:25:53 -06:00
Tareq A Khandaker
d1b2d8eabb servo: Merge #8024 - Add clarity to warning message about OS X notifications (from tareqak:warning_message_about_os_x_notifications_is_unclear); r=frewsxcv
I made this change with respect to this issue: https://github.com/servo/servo/issues/7840

Source-Repo: https://github.com/servo/servo
Source-Revision: f8ada66919c8fda836b8e33375e82c1ef9059999
2015-10-14 19:29:54 -06:00
Matt Brubeck
fd3bcc3b9b servo: Merge #7933 - Replace libpng and stb_image with PistonDevelopers/image (from mbrubeck:piston-image); r=glennw
Fixes #3368. r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 0f597d389052500d9b76b9f9f89e873e6f809ab1
2015-10-12 15:06:31 -06:00
Corey Farwell
795e875ef6 servo: Merge #7960 - Replace usage of old-style WHATWG spec links (from frewsxcv:update-spec-links); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4052a22a1c6826cb18f03de9d2f6aed82d809e71
2015-10-10 10:17:52 -06:00
Pierre Chevalier
eeac1823f4 servo: Merge #7945 - Refactor away unnecessary use of regex (from pierrechevalier83:fix_issue_7914); r=jdm
We don't need regex matching since ": &Vec<" doesn't
contain any special character.

New code reads better.

Fixes #7914.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1192efed505ca19a395f22cd5e5733e8c57a6e82
2015-10-09 21:22:06 -06:00
Matt Brubeck
6563c5cbc2 servo: Merge #7838 - Upgrade to latest mach from mozilla-central (from mbrubeck:mach-up); r=mbrubeck
r? @jgraham

Source-Repo: https://github.com/servo/servo
Source-Revision: e40dd3843f9abb9a8a0908159edfa0c69b90b1ab
2015-10-02 17:01:04 -06:00
Martin Robinson
5cbcd47d72 servo: Merge #7824 - Make Linux build notifications transient (from mrobinson:transient-notifications); r=glennw
Continuous non-transient notifications, common in workflows involving
many syntax errors, can completely take over the message tray. Making
Linux build notifications transient prevents them from stacking up in
Gnome Shell without having to click them individually.

Source-Repo: https://github.com/servo/servo
Source-Revision: 03f6415eb49656fd1ce8b4de8c8b083e97a4f9d7
2015-10-02 01:51:39 -06:00
Simon Sapin
69153ee9a8 servo: Merge #7813 - Run all unit tests with just one Cargo command (from servo:parallel-unit-tests); r=mbrubeck
Upgrade Cargo to get https://github.com/rust-lang/cargo/pull/1828, and use it for unit tests. This allows Cargo to get some more parallelism when compiling the test crates’ dependencies.

`touch components/util/lib.rs && mach test-unit` on my machine goes from 149 seconds to 124.

Source-Repo: https://github.com/servo/servo
Source-Revision: ba2714f4f607da77bd7200f88cfa16c1d10da9cd
2015-10-01 12:39:10 -06:00
Matt Brubeck
b77ed41e82 servo: Merge #7815 - Fixes for reftest command-line handling (from mbrubeck:test-ref-include); r=SimonSapin
r? @SimonSapin

* Allow reftest harness to take 0 or more testname arguments.
* Change `mach test-ref` parameter from `--name` to `--include`. This is consistent with other test suites, and also fixes a bug in `mach test` caused by a conflicting keyword parameter in `Registrar.dispatch`.
* Allow `mach test-ref` to take any number of `include` arguments.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9488013b59e54f9a39cc89362ee6b84f89cc8ed0
2015-10-01 11:29:27 -06:00
Nicolas
7124588039 servo: Merge #7809 - Make ./mach test work with unit tests (from 6112:master); r=frewsxcv
Fixes #7618.

Allows running a specific Rust test with one of:

```
./mach test tests/unit/net/http_loader.rs

./mach test-unit tests/unit/net/http_loader.rs
./mach test-unit tests/unit/net/http_loader
./mach test-unit net/http_loader
```

Allows running a whole package's tests with one of:

```
./mach test tests/unit/net

./mach test-unit tests/unit/net
```

Source-Repo: https://github.com/servo/servo
Source-Revision: 5d04f8dc8e59fea8ef49beb89af26089421ef748
2015-09-30 20:30:26 -06:00
Corey Farwell
2f8b68120b servo: Merge #7790 - Expand list of Python executable names to search in PATH (from frewsxcv:expand-python-executable-names); r=mbrubeck
Fixes #7784

Source-Repo: https://github.com/servo/servo
Source-Revision: 4e749eb714e6a3bf9c297d2a7692662e0bf6c9bb
2015-09-29 20:26:14 -06:00
Nicolas
accefa4a75 servo: Merge #7789 - allow ./mach test to run tests in tests/wpt/mozilla/ (from 6112:master); r=mbrubeck
Allows running WPT tests in the tests/wpt/mozilla/ directory by using commands such as:

```
./mach test tests/wpt/mozilla/tests/mozilla/union.html
```

Fixes #7772.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9a4eb565c4a423ed1278a5e28ad06775695861da
2015-09-29 19:58:28 -06:00
Jaydeep
6df0607429 servo: Merge #7759 - Add a tool for comparing Dromaeo outputs (from jdramani:cmp_dromaeo_output_tool); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: 2049357d1453a43bb8ee31a4ba70d2610b93ff20
2015-09-29 18:58:28 -06:00
Matt Brubeck
3bd02a6984 servo: Merge #7769 - Fix build notifications in Python 2.x on Linux (from mbrubeck:notify-linux2); r=frewsxcv
In Python 2.x on Linux, `sys.platform == 'linux2'`.

https://docs.python.org/2/library/sys.html#sys.platform

r? @frewsxcv

Source-Repo: https://github.com/servo/servo
Source-Revision: 076f44a02d033bb5d0bb2e18065acdf18d98cce5
2015-09-28 12:47:29 -06:00
Jaydeep
212fb34293 servo: Merge #7643 - Check for Extra pointer dereferencing (from jdramani:extra_ptr_dref); r=jdm
Solves issue #7640

Source-Repo: https://github.com/servo/servo
Source-Revision: 9523283c14f417014ca6d4fa8179c873bbb8f21f
2015-09-27 08:19:30 -06:00
Tamir Duberstein
d81e0107b7 servo: Merge #7752 - mach: fix OS X notifications (from tamird:fix-osx-notifications); r=nox
Since mach now puts everything into a virtualenv, we need to set the bundle identifier to allow sending notifications.

Source-Repo: https://github.com/servo/servo
Source-Revision: a1fb8cfbb0be8d0a73bc1e3b63eb704f48098b8f
2015-09-27 07:35:50 -06:00
Ms2ger
0f8343ce37 servo: Merge #7716 - Fix a comparison that should be an assignment in host_triple() (from servo:host-triple-assign); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 83435d77650382d5901603170f028f5888ea82c1
2015-09-23 07:39:50 -06:00
Mathieu Rheaume
71039e1d1b servo: Merge #7692 - Raise max length error over 120 chars not at 120 chars. python/tidy.py (from ddrmanxbxfr:TidyMaxLineOver120); r=nox
This is a follow up of issue : Tidy has an off-by-one error #7686

It allows to raise the max length error when line is over than 120 not at 120 specifically.

Thanks for looking into it.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8f1469eb08a437bcc6cfb510334be2b6430b4a8f
2015-09-23 04:17:16 -06:00
Anthony Broad-Crawford
6c86215e3e servo: Merge #7678 - #7630 Adding better error messaging in mach bootstrap for missing virtualenv/pip dependencies (from AnthonyBroadCrawford:improved-error-messaging-mach-bootstrap); r=frewsxcv
This PR is in reference to #7630

I've added a simple try catch around our use of subprocess.check_all when trying to invoke and use python's

- virtualenv
- pip

Upon failure, I use sys.exit with an error message for the user.  Exit seemed appropriate as anything beneath those dependencies will fail to execute and result in a non friendly error message

Source-Repo: https://github.com/servo/servo
Source-Revision: 44de9173cc968957e4441c14f57014111a2b847e
2015-09-21 18:13:35 -06:00
Brandon Fairchild
f7fb1e4b4a servo: Merge #7662 - Check for multiple import blocks separated by whitespace (from nerith:import); r=frewsxcv
Fixes #7381.

Source-Repo: https://github.com/servo/servo
Source-Revision: a0d3c9223f09757124b1520c4f17e94fa8bbe249
2015-09-19 13:34:51 -06:00
Hugo Thiessard
357588437d servo: Merge #7680 - fixes #7390 : tidy now check the order of mod declarations even whith attribute (from Mylainos:Issue-#7390); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: d1b85de762c0193276010a019f931526c34c04ce
2015-09-18 14:44:48 -06:00
Aidan Hobson Sayers
3e643d335d servo: Merge #7632 - Speedup mach startup (from aidanhs:aphs-speedup-mach-startup); r=metajack
...by using a 'marker file' to indicate whether we actually need to run pip.

Also a minor tweak for clarity.

Before (consistently):
```
$ time ./mach >/dev/null

real    0m0.666s
user    0m0.477s
sys     0m0.190s
```

After:
```
$ time ./mach >/dev/null # first run

real    0m0.665s
user    0m0.501s
sys     0m0.166s
$ time ./mach >/dev/null

real    0m0.121s
user    0m0.083s
sys     0m0.039s
```

Source-Repo: https://github.com/servo/servo
Source-Revision: b511004a616862394318381d7ef5ac3c59c7babe
2015-09-16 14:34:17 -06:00
João Oliveira
f684debdbb servo: Merge #7570 - ignore length on .lock files on tidy.py, (from jxs:ignore_length_tidy_script); r=Ms2ger
closes #7569

Source-Repo: https://github.com/servo/servo
Source-Revision: 3a97455a65a8eafab313bd583a6b1f811605168f
2015-09-11 03:07:34 -06:00
Corey Farwell
22eaaf37cf servo: Merge #7568 - Use OS-agnostic filesystem paths in Python (from frewsxcv:os-agnostic-paths); r=jdm
This will eventually need to be done for #1908

Source-Repo: https://github.com/servo/servo
Source-Revision: 83972196600f04e817ddb53fda18142778905307
2015-09-08 22:29:04 -06:00
Akos Kiss
6924f44968 servo: Merge #7565 - Make the use of gold linker configurable (from akosthekiss:config-gold); r=SimonSapin
Currently, ld.gold is always used for linking if found on the
system. There are some cases however when one may want to opt out
from using it. This patch adds the boolean field `rustc-with-gold`
to the `[tools]` section of `.servobuild`, which if set false,
disables the use of ld.gold.

Source-Repo: https://github.com/servo/servo
Source-Revision: 273306056428e0378ebf27a1573a783aad866b5f
2015-09-08 13:57:13 -06:00
wilmoz
094717dc16 servo: Merge #7494 - Add a mach command to upgrade wptrunner (from wilcus:upgradeWptRunner); r=jdm
https://github.com/servo/servo/issues/7491

Source-Repo: https://github.com/servo/servo
Source-Revision: c44213219668d054ed267ac29a2513309b342e5f
2015-09-08 08:41:05 -06:00
Josh Matthews
63971b3b27 servo: Merge #7528 - Remove obsolete method call that breaks ./mach update-css (from jdm:updatecssfix); r=frewsxcv
r? @frewsxcv

Source-Repo: https://github.com/servo/servo
Source-Revision: 33063fd887d8f663f11ce08bea50e446c8d50f44
2015-09-02 23:29:03 -06:00
Brandon Fairchild
506a0fb2e2 servo: Merge #7499 - Improve style nit check for space after a comma (from nerith:style); r=metajack
Fixes #7345.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3424e234c8c86e787edfce6dc63ed155617e0e85
2015-09-02 12:05:58 -06:00
Corey Farwell
89cf6e9dfe servo: Merge #7117 - Reenable "Use one Python virtual environment for all mach commands" (from frewsxcv:python-venv); r=jdm
Address the issues brought up by https://github.com/servo/servo/pull/7103

The revert requires an upgrade to wptrunner (for the mozlog 3.0 compatibility) because the latest wptrunner depends on [this](https://github.com/w3c/wpt-tools/pull/27))

/cc @Ms2ger @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 4e6bbe227299b3b8a08cba7e613952806ada4402
2015-09-02 08:44:27 -06:00
Ravi Shankar
4b0b52be5d servo: Merge #7438 - Tidy can now check for version conflicts (from Wafflespeanut:cargo-tidy); r=jdm
fixes #7133

Source-Repo: https://github.com/servo/servo
Source-Revision: 8b5418f58f5b80e3485ec9eff24d14dc0fbea9f9
2015-09-01 14:38:48 -06:00
erneyja
c4747f6c7e servo: Merge #7468 - Making test-tidy check that = have space after them (from JoshTheGoldfish:Issue7460); r=jdm
For issue #7460. Need to ensure compatibility with #7390.

Source-Repo: https://github.com/servo/servo
Source-Revision: 15de679f115f06a8ce33625d77e820b049730d4b
2015-09-01 08:33:02 -06:00
Josh Matthews
4d7a58a23d servo: Merge #7486 - Remove hack for android builders now that build is successful once more (from jdm:bad-android); r=glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: 8a15f941ed5e4b0697556bfafcfbb02be96a4569
2015-09-01 07:50:56 -06:00
Corey Farwell
de4ce06ffa servo: Merge #7483 - Enforce linking to spec for method implementations via macros (from frewsxcv:macro-spec-links); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4984aaf8bfca0698a132e10e9f48cef42d1b8302
2015-08-31 21:17:54 -06:00
Corey Farwell
2186c6c262 servo: Merge #7478 - Update spec link pattern to reflect impl signature changes (from frewsxcv:spec-link-tidy-fix); r=jdm
Relevant to #7416

Source-Repo: https://github.com/servo/servo
Source-Revision: 7474b295104e75c013849e104704019dc4801c91
2015-08-31 15:48:24 -06:00
wilmoz
29f74a2734 servo: Merge #7475 - Make test-tidy check that braces have spaces before or after them (from wilcus:checkBracesSpaces); r=jdm
https://github.com/servo/servo/issues/7413
Posible future/past bug fixed in components/script/timers.rs

Source-Repo: https://github.com/servo/servo
Source-Revision: 60c72f601c4dd7cfbc8a4a983099a4b323f1516a
2015-08-31 13:18:23 -06:00
Ravi Shankar
b22431f8c2 servo: Merge #7428 - tidy will now show its expectation of uses! (from Wafflespeanut:tidy); r=Ms2ger
closes #7427

(pretty errors "inherited" from rust's type checker) :P

![screenshot](https://cloud.githubusercontent.com/assets/6691262/9543298/8cabfdaa-4d95-11e5-9101-14e62781e74e.png)

Source-Repo: https://github.com/servo/servo
Source-Revision: 18de1f2357144d86ea83cd0cb66922e8a2157597
2015-08-28 03:35:53 -06:00
Dhananjay Nakrani
9c0ef7bd59 servo: Merge #7394 - Exclude minified js files and tests/jquery from 'mach grep' (from dhananjay92:Issue#6670); r=Manishearth
Solves Issue #6670.
Now `./mach grep` will not grep from minified js files or from `tests/jquery` directory.

Works only with git >= 1.9.0.

Source-Repo: https://github.com/servo/servo
Source-Revision: ae55b31a7f99633d0fad0cb78cb2043ae18ae437
2015-08-27 10:51:15 -06:00
wilmoz
bdec4f07d0 servo: Merge #7362 - Forbid multiline imports (from wilcus:ForbidMultilineImports); r=jdm
https://github.com/servo/servo/issues/7356

Source-Repo: https://github.com/servo/servo
Source-Revision: 121110a52a549b44e65aa4ba0669bd75702588ea
2015-08-25 11:29:56 -06:00
Ms2ger
1ada2ef029 servo: Merge #7359 - Fix the build (from servo:build); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4d0b4a7b8cda681d1cd6b6cd8e690c0793532d0b
2015-08-25 08:34:13 -06:00
Corey Farwell
3f6ea9b40e servo: Merge #7350 - Make tidy search for files recursively again (from frewsxcv:fix-tidy); r=mbrubeck
In #7348 `os.walk` was replaced with `os.listdir`. The latter is not
recursive, which results in only the root directory files getting linted

The changes to `ignored_files` are needed because calling `os.walk(".")`
results in `./` getting prefixed before each path

Source-Repo: https://github.com/servo/servo
Source-Revision: 842112c0f39542a4fb120ade4afad302221609d8
2015-08-24 18:39:22 -06:00
João Oliveira
66d506636b servo: Merge #7348 - update tidy.py remove collect_file_names: (from jxs:master); r=jdm
call python os functions inline

Source-Repo: https://github.com/servo/servo
Source-Revision: c790c4d4cd7f6a1babb7f257cfa52e3cd31730fc
2015-08-24 17:19:02 -06:00
Greg Guthe
54214c2b9a servo: Merge #7118 - Add tidy check for unused reftest html files (from g-k:tidy-check-unused-html-files); r=jdm
Refs: https://github.com/servo/servo/issues/7078

Sample output:

```
$ time ./mach test-tidy
tests/ref/background_image_a.html not used or commented out in basic.list
tests/ref/background_image_ref.html not used or commented out in basic.list
tests/ref/canvas_linear_gradient_a.html not used or commented out in basic.list
tests/ref/canvas_linear_gradient_ref.html not used or commented out in basic.list
tests/ref/canvas_radial_gradient_a.html not used or commented out in basic.list
tests/ref/canvas_radial_gradient_ref.html not used or commented out in basic.list
tests/ref/inline_border_a.html not used or commented out in basic.list
tests/ref/inline_border_b.html not used or commented out in basic.list
tests/ref/inline_text_align_a.html not used or commented out in basic.list
tests/ref/inline_text_align_b.html not used or commented out in basic.list
tests/ref/link_style_dynamic_addition.html not used or commented out in basic.list
tests/ref/link_style_dynamic_addition_ref.html not used or commented out in basic.list
tests/ref/overflow_position_abs_inside_normal_a.html not used or commented out in basic.list
tests/ref/overflow_position_abs_inside_normal_b.html not used or commented out in basic.list
tests/ref/overflow_position_abs_simple_a.html not used or commented out in basic.list
tests/ref/overflow_position_abs_simple_b.html not used or commented out in basic.list
tests/ref/position_fixed_a.html not used or commented out in basic.list
tests/ref/position_fixed_b.html not used or commented out in basic.list
tests/ref/position_fixed_simple_a.html not used or commented out in basic.list
tests/ref/position_fixed_simple_b.html not used or commented out in basic.list
tests/ref/position_fixed_static_y_a.html not used or commented out in basic.list
tests/ref/position_fixed_static_y_b.html not used or commented out in basic.list
tests/ref/style_is_in_doc.html not used or commented out in basic.list
tests/ref/style_is_in_doc_ref.html not used or commented out in basic.list
tests/ref/table_specified_width_a.html not used or commented out in basic.list
tests/ref/table_specified_width_ref.html not used or commented out in basic.list
tests/ref/text_decoration_propagation_a.html not used or commented out in basic.list
tests/ref/text_decoration_propagation_b.html not used or commented out in basic.list
tests/ref/text_shadow_multiple_shadows_a.html not used or commented out in basic.list
tests/ref/text_shadow_multiple_shadows_ref.html not used or commented out in basic.list
tests/ref/viewport_percentage_vmin_vmax_b.html not used or commented out in basic.list
tests/ref/viewport_percentage_vw_vh_b.html not used or commented out in basic.list
tests/ref/white_space_intrinsic_sizes_a.html not used or commented out in basic.list
tests/ref/white_space_intrinsic_sizes_ref.html not used or commented out in basic.list
tests/ref/fonts/takao-p-gothic/COPYING.html not used or commented out in basic.list
tests/ref/iframe/multiple_external_child.html not used or commented out in basic.list
...
```

I thought it might be helpful to say which files aren't used in `basic.list`.

`./mach test-tidy` is a second or two slower on my laptop.
Not sure if this counts as a warning or an error that should return 1.
Not sure whether unused file output should go before or after the line specific errors.

Source-Repo: https://github.com/servo/servo
Source-Revision: b1f0357fcee0b05bee79399bc96ea327b8b8dac8
2015-08-24 16:03:05 -06:00
OneKorg
a937f2797c servo: Merge #7310 - Mention max length in tidy check_length. Fixes #7309 (from A-deLuna:bug-7309); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: a8c62f0f282321b4e2047c5143c7cbfc3282a09a
2015-08-21 13:01:05 -06:00
Corey Farwell
38ac5971e8 servo: Merge #7305 - Utilize Python context managers for opening/closing files (from frewsxcv:python-context-managers); r=Ms2ger
In some of these cases, files were not being closed

Source-Repo: https://github.com/servo/servo
Source-Revision: 3a48e04caffa4ba25854a4190883d1985845a359
2015-08-21 09:30:06 -06:00
Johann Tuffe
5c3a5a67f5 servo: Merge #7265 - Add alphabetical order check for use statements (from tafia:tidy-use); r=Ms2ger
close #7112

Source-Repo: https://github.com/servo/servo
Source-Revision: a5fbb2f2a6fa79755f975feff2435abb6a5dd0e9
2015-08-20 07:43:56 -06:00
Simon Sapin
1469585622 servo: Merge #7249 - Only use a rustc wrapper script when ld.gold is available (from servo:gold); r=paulrouget
Fixes #7247.

Source-Repo: https://github.com/servo/servo
Source-Revision: 95c6301cf4572c0ea552868107514a2261c43022
2015-08-17 01:26:26 -06:00
Josh Matthews
6a81d499fc servo: Merge #7203 - Add automated style nit checks to test-tidy (from jdm:style); r=Ms2ger
Expands on the work by @wilmoz and cleans up the existing errors. Closes #7180. Closes #7111.

Source-Repo: https://github.com/servo/servo
Source-Revision: e74825f9fde8e222f4ba9bb24b2c2a3864c73e5f
2015-08-16 08:37:40 -06:00
Simon Sapin
302093ef6a servo: Merge #7229 - Use the gold linker when available (from servo:gold); r=metajack
This shaves 50 seconds off the build time on my machine.

Source-Repo: https://github.com/servo/servo
Source-Revision: a1aed50b5a2686015bc3a17ec891a56eef8c1fc9
2015-08-15 10:25:26 -06:00
Vinzent Steinberg
2789940cb0 servo: Merge #7232 - mach: Print commands if '--verbose' is set (from vks:print-commands); r=jdm
Fixes #6363.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7f69a2994d2bb5af06ecafe369be7f232dc6922a
2015-08-15 09:47:13 -06:00
wilmoz
5b8f03dca3 servo: Merge #7159 - fixes test-wpt cannot be run from anywhere but the root (from wilcus:master); r=Ms2ger
Fixes #7085

Source-Repo: https://github.com/servo/servo
Source-Revision: 6dad29eb433ca889091a923c2d861189ebb0643c
2015-08-12 00:13:35 -06:00
Corey Farwell
6dff079a37 servo: Merge #7124 - Allow Servo tests to be built/run with --release mode (from frewsxcv:test-ref-release); r=metajack
Fixes #5075

Source-Repo: https://github.com/servo/servo
Source-Revision: 8b13a79743936f77bab11f72ef8b325946557326
2015-08-10 09:14:31 -06:00
Ms2ger
a173d30242 servo: Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests.
This reverts commit c315404db80c92a695531b0aa4bcf61c125a3bff, reversing
changes made to b00583bd4e7169a6b952633df718268904f2bd0c.

Source-Repo: https://github.com/servo/servo
Source-Revision: 47d6d958f58f5011742a18abcdd5a76bf4390966
2015-08-09 11:20:40 +02:00
Corey Farwell
5efbfa841e servo: Merge #7103 - Use one Python virtual environment for all mach commands (from frewsxcv:python-venv); r=metajack
*See individual commits for more information*

Source-Repo: https://github.com/servo/servo
Source-Revision: c315404db80c92a695531b0aa4bcf61c125a3bff
2015-08-08 19:42:14 -06:00
Corey Farwell
3ae2a6c4a8 servo: Merge #7076 - Remove invalid file path in ignored_files for tidying (from frewsxcv:tidy-rm-invalid-file); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: c202d7b2f6ddf5709a59643a7e62aa2f763adf11
2015-08-07 16:32:04 -06:00
Corey Farwell
9f63e446a9 servo: Merge #6996 - Prevent flake8 from crashing tidy (from frewsxcv:prevent-tidy-crash); r=jdm
If someone were to write:

    def hello() :
        print "hello world"

flake8 would warn:

    stdin:54:45: E203 whitespace before ':'

Normally there are only three colons in a flake8 error message, but this
one has four, which causes issue with this line:

    _, line_num, _, message = error.split(":")

...causing this error:

    ValueError: too many values to unpack

This commit updates the `str.split` call to utilize the `maxsplit`
parameter to prevent this error from occurring.

Source-Repo: https://github.com/servo/servo
Source-Revision: 729e003c5d954694e3fa6fd2b72702515ef94c6c
2015-08-06 02:32:43 -06:00
Bogdan Cuza
fa993d4367 servo: Merge #6714 - Implement a FileList (from boghison:filelist); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b7261a2073dcb66473907dbb25282f05f9bfe3d3
2015-08-01 20:16:14 -06:00
Michael Howell
3d0e887e68 servo: Merge #6882 - Automate Dromaeo (from notriddle:master); r=jdm
Closes #6759.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4de6e699b2ee095177360ae1812d9f47829adcc3
2015-08-01 08:50:14 -06:00
Matt Brubeck
ad68c779b9 servo: Merge #6740 - Upgrade openssl, selectors, and cocoa (from mbrubeck:bitflags); r=larsbergstrom
This lets Servo use one version of bitflags for all dependencies.

r? @larsbergstrom or @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: df722ec1de957b0d6a0ef035c0c30aba0dade2cc
2015-07-30 15:44:12 -06:00
Bogdan Cuza
e9c4da1e57 servo: Merge #6699 - Tidy check for FooMethods in components/script/dom/*.rs and color for tidy (from boghison:tidyspec); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 14ccb22e679722ed3374c8facec21adcf0f2b247
2015-07-28 08:56:39 -06:00
Corey Farwell
78470eed15 servo: Merge #6777 - Cleanup lint special cases, refactor flake8 linting (from frewsxcv:refactor-tidy); r=jdm
Currently, there are a few linting functions that only run on certain
filetypes (determined by the file extension). Prior to this commit, the
special cases were handled in a parent function with a conditional. This
commit changes the system so each linting function gets passed a
filename so the function can determine whether it should run or not
based on the file extension.

I also refactored flake8 linting slightly. From what I've read so far of
the code, flake8 itself will only print the results directly to stdout
(though the linter would report the quantity of errors detected).
Prior to this commit, we would let flake8 print directly to stdout and
just determine if there were >0 errors reported. This commit (sort of
hackily) temporarily captures stdout when we call flake8 so we can do
what we want with the output, allowing us to `yield` the line number
and message like we do with the other linting functions.

In my opinion, both of these changes isolate specific behaviors/checks
into their respective linting functions instead of having them handled
at a more global level.

In addition to the changes above:

* The whitespace linter now runs on WebIDL and TOML files
* The license header linter now runs on WebIDL files

Source-Repo: https://github.com/servo/servo
Source-Revision: 7c8922c0c39616559b580b4a363ebe2a8c6b3ba8
2015-07-27 04:39:04 -06:00
Matt Brubeck
d3b025f833 servo: Merge #6738 - Perform argument validation before bootstrapping (from mbrubeck:bootstrap); r=larsbergstrom
If there's an error in the command-line arguments for `mach build`, we should print it before starting a (potentially) long bootstrap process, not after.

r? @larsbergstrom or @frewsxcv

Source-Repo: https://github.com/servo/servo
Source-Revision: c7f73ebc2938e5dc67a10238cac9fc10f95e2f5f
2015-07-25 09:32:30 -06:00
Matt Brubeck
4a16fabc78 servo: Merge #6720 - Update WPT test expectations for --release builds (from mbrubeck:wpt-release); r=pcwalton
r? @pcwalton or @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 3c88d3418c5384e0e75c91ca2b3d8960c78af45f
2015-07-24 01:11:48 -06:00
Michael Howell
c8fe33d189 servo: Merge #6693 - Tidy finds WebIDLs with no spec (from notriddle:tidy-webidl); r=jdm
Closes #6689

Source-Repo: https://github.com/servo/servo
Source-Revision: 11a3423c29369e712ca1ce38417b9f9cf6845fd7
2015-07-22 13:44:12 -06:00
Sam Gibson
69f6c7e1ca servo: Merge #6490 - Implement HSTS (preload-only) (from samfoo:hsts-preload); r=jdm
Implement HSTS (preload-only) servo/servo#6105

* Downloads the HSTS preload list from the chromium repo (same as gecko), then convert it to a list appropriate for servo.
* Reads the preload list when creating a resource task, and implements STS for those domains.

Still todo:

* Read Strict-Transport-Security headers from servers and add details to the in-memory HSTS list. (note: this requires hyper or servo to implement an STS header struct. Hyper seems like the appropriate location, so I will create an issue/PR there soon). The work for this is nearly done with the exception of adding a new ControlMsg and the new header.
* Persist HSTS list to disk with known hosts (perhaps a different issue should be raised for this?)

Source-Repo: https://github.com/servo/servo
Source-Revision: ab3d6c472d409c1602c873dcdcb495a7fec9d4b0
2015-07-22 10:23:05 -06:00
Bogdan Cuza
5e266ea18c servo: Merge #6648 - Make tidy check for "*" in toml files (from boghison:tidytoml); r=jdm
This checks every .toml file for an asterisk and prints an error if found.

Source-Repo: https://github.com/servo/servo
Source-Revision: 58e9bc6583b6ebbeb27e3b28a6b271ee48cd695a
2015-07-20 14:43:05 -06:00
Simon Sapin
340252533c servo: Merge #6655 - Include private items in ./mach doc and http://doc.servo.org/ (from servo:rustdoc-private); r=Manishearth
See https://github.com/rust-lang/rust/issues/15347

Source-Repo: https://github.com/servo/servo
Source-Revision: a24783df4be2641afab3aa72626f9c59f90d49af
2015-07-17 08:40:27 -06:00
Corey Farwell
78f93158a2 servo: Merge #6580 - Remove tidy blacklist for 'script/dom/bindings/*' (from frewsxcv:lint-codegen); r=Ms2ger
Recently, I found myself reading through the Python codegen scripts that
live in 'components/script/dom/bindings/*' and noticed that there were
many tidy violations: unnecessary semicolons, weird spacing, unused
variables, lack of license headers, etc. Considering these files are now
living in our tree and mostly maintained directly by contributors of
Servo (as opposed to being from upstream), I feel these files should not
be excluded from our normal tidy process. This commit removes the
blacklist on these files and fixes all tidy violations.

I added these subdirectories to the blacklist because they appear to be
maintained upstream somewhere else:

* "components/script/dom/bindings/codegen/parser/*",
* "components/script/dom/bindings/codegen/ply/*",

Also, I added a few '# noqa' comments which tells us to ignore the
flake8 errors for that line; they are mostly for unused/undefined
variables. I chose to ignore these (instead of fixing them) to make the
work for this commit simpler for me.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2d2a340633dcc73e458a8454b78e26ba93511d37
2015-07-09 07:55:27 -06:00
James Graham
06449a953d servo: Merge #6526 - Update mach and fix behaviour of |mach test| (from jgraham:mach_update); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 61d5efc44c1b8158cc4d9a05d77641843a8470be
2015-06-30 23:23:31 -06:00
Michael Tremel
9d41cdae1b servo: Merge #6506 - notify_darwin should trap import errors (from mt2d2:darwin_notification_imports); r=metajack
notify_darwin should trap import errors and should provide the useful package name for the user to install. Fix for issue #6479.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3df35c2f42d7224560837a9ef63400e0e16829bf
2015-06-28 11:05:36 -06:00
Jesse Ruderman
79f8cc9c13 servo: Merge #6478 - Add space between sentences (from jruderman:patch-1); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: ec205555282ce7ce5ff0cdd25ff47b6c0960313e
2015-06-26 16:36:10 -06:00
Michael Wu
7512d04e93 servo: Merge #6150 - Upgrade to Spidermonkey 39 (from servo:smupgrade3); r=mbrubeck
> Here it is.
>
> ~~There's two major things that are unfinished here:~~
> - ~~Dealing with the unroot_must_root lint. I'm not sure about the value of this lint with the new rooting API.~~ Done.
> - ~~Updating the Cargo.locks to point to the new SM and SM binding.~~ Done.
>
> I also included my fixes for the rust update, but these will disappear in a rebase. A rust update is necessary to support calling `Drop` on `Heap<T>` correctly when `Heap<T>` is inside a `Rc<T>`. Otherwise `&self` points to the wrong location.
>
> Incremental GC is disabled here. I'm not sure how to deal with the incremental barriers so that's left for later.
>
> Generational GC works. SM doesn't work without it.
>
> The biggest change here is to the rooting API. `Root` was made movable, and `Temporary` and `JSRef` was removed. Movable `Root`s means there's no need for `Temporary`, and `JSRef`s aren't needed generally since it can be assumed that being able to obtain a reference to a dom object means it's already rooted. References have their lifetime bound to the Roots that provided them. DOM objects that haven't passed through `reflect_dom_object` don't need to be rooted, and DOM objects that have passed through `reflect_dom_object` can't be obtained without being rooted through `native_from_reflector_jsmanaged` or `JS::<T>::root()`.
>
> Support for `Heap<T>` ended up messier than I expected. It's split into two commits, but only because it's a bit difficult to fold them together. Supporting `Heap<T>` properly requires that that `Heap::<T>::set()` be called on something that won't move. I removed the Copy and Clone trait from `Heap<T>` so `Cell` can't hold `Heap<T>` - only `UnsafeCell` can hold it.
>
> `CallbackObject` is a bit tricky - I moved all callbacks into `Rc<T>` in order to make sure that the pointer inside to a `*mut JSObject` doesn't move. This is necessary for supporting `Heap<T>`.
>
> `RootedCollectionSet` is very general purpose now. Anything with `JSTraceable` can be rooted by `RootedCollectionSet`/`RootedTraceable`. Right now, `RootedTraceable` is only used to hold down dom objects before they're fully attached to their reflector. I had to make a custom mechanism to dispatch the trace call - couldn't figure out how to get trait objects working for this case.
>
> This has been tested with the following zeal settings:
>
> GC after every allocation
> JS_GC_ZEAL=2,1
>
> GC after every 100 allocations (important for catching use-after-free bugs)
> JS_GC_ZEAL=2,100
>
> Verify pre barriers
> JS_GC_ZEAL=4,1
>
> Verify post barriers
> JS_GC_ZEAL=11,1

Source-Repo: https://github.com/servo/servo
Source-Revision: e7808c526c348fea5e3b48af70b7f1a066652097
2015-06-19 16:46:55 -06:00
Jack Moffitt
a44285c32d servo: Merge #6306 - Use Cargo's target directory sharing (from metajack:shared-target-dir); r=mbrubeck
This speeds up `./mach build --dev` followed by `./mach build-cef` by
25%. When rust-lang/cargo#497 is fixed, this speedup will increase
dramatically.

Source-Repo: https://github.com/servo/servo
Source-Revision: d6263c9b6e969fde4c644034e684a39d68667ad9
2015-06-15 13:08:14 -06:00
Francesc Bautista
9516135f35 servo: Merge #6360 - Fix #6315 Set default render mode on tests to cpu (from fbau123:6315-tests-default-cpu-mode); r=Ms2ger
#6315

Set 'mach test-ref' default render mode to cpu and added a cli argument to 'mach test' to be able to select the render-mode, also renamed the 'kind' argument from 'test-ref' to '--render-mode' for coherence with reftest.rs

Source-Repo: https://github.com/servo/servo
Source-Revision: bedfa74b1f66a87dac00c46ac6560fa012f033d9
2015-06-14 03:14:00 -06:00
Matt Brubeck
2db21edb00 servo: Merge #6285 - Better command-line error handling (from mbrubeck:nofile); r=metajack
* Don't hang silently when passed a non-existant file.
* Fix uncaught exception in `mach run` when Servo fails.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9b5a01e0455dde921b57d8e802e4554418477d8f
2015-06-04 15:53:11 -05:00
Corey Farwell
5ddbba3c32 servo: Merge #6279 - Add flake8 to the tidy process for Python files (from frewsxcv:flake8); r=jdm
Fixes #6236

Also included in this commit are the changes need to make flake8 pass
for the existing python file

Source-Repo: https://github.com/servo/servo
Source-Revision: ccfe29d8f284dedc0101045d574a98fb1f69aa62
2015-06-04 10:41:36 -05:00