Commit Graph

278 Commits

Author SHA1 Message Date
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