Commit Graph

249 Commits

Author SHA1 Message Date
Daan Sprenkels
255e695b50 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:43:00 +05:00
Matt Brubeck
b137680b47 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:52:53 +05:00
Daan Sprenkels
6c9b67b562 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:50:27 +05:00
Simon Sapin
988aa4439c 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
2015-12-30 18:50:38 +05:00
Olaf Buddenhagen
dc1ee19e26 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:04:42 +05:00
Daan Sprenkels
9661be39e4 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:14:12 +05:00
Simon Martin
889e26389e 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:25:48 +05:00
Matt Brubeck
e26d49146c 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:38:28 +05:00
Corey Farwell
f4968aa41a 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:39:59 +05:00
Matt Brubeck
7686f5dd8a 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:01:53 +05:00
Ms2ger
e29344319b servo: Merge #8893 - Update bincode (from Ms2ger:byteorder); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: f4aa5b42ea3c0ece91018964df88a0b6e86649dd
2015-12-09 01:06:35 +05:00
Ms2ger
0b2e1b8690 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:51:55 +05:00
Guillaume Gomez
d7f21ffa4d 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:53:43 +05:00
Maciej Skrzypkowski
b7ed3af88a 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:14:32 +05:00
Brandon Fairchild
06320acac1 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:19:05 +05:00
Simon Sapin
dac4e7f3cc 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:28:29 +05:00
Sam Gibson
db2227b87b 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:55:05 +05:00
jmr0
2c2d94c2c6 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:51:37 +05:00
Guillaume Gomez
7855be6622 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:04:11 +05:00
Ms2ger
75a3c2ae96 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:19:01 +05:00
Manish Goregaokar
09d3c7ef66 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:17:00 +05:00
Josh Matthews
4cdc9c76f9 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:47:54 +05:00
jmr0
f50d4c7652 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:18:38 +05:00
Yanir Seroussi
c08528a3b6 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:18:35 +05:00
nxnfufunezn
f62f4d9b4b 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:10:02 +05:00
Simon Sapin
ff9cd9719c 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:02:53 +05:00
Ms2ger
10c098ea03 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:14:20 +05:00
Martin Robinson
c05c187ae0 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:13:25 +05:00
Simon Martin
ab5f8aa4a0 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:53:22 +05:00
Corey Farwell
10f50c90a1 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:25:54 +05:00
Lars Bergstrom
fac39e45d9 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:31:54 +05:00
Benjamin Herr
6ea64c80db 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:18:19 +05:00
Lars Bergstrom
00f300fba4 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:21:48 +05:00
Corey Farwell
189ae47701 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:13:28 +05:00
nxnfufunezn
48aa1feedf 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:23:40 +05:00
Brandon Fairchild
a9ea2d8e36 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
db09beb657 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
9fea793960 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
951525599f 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
02100f3496 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
769331eb5b 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
70a47eb053 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
921a6d9aa9 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
ca1dad43cd 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
b2e7d37618 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
8029f203b4 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
709a438c0f 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
e0671e5e0f 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
c2a821c7aa 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
9a1d86494b 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