Commit Graph

579 Commits

Author SHA1 Message Date
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
Nicolas
b4d1a63c26 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
5003a62ac8 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
c904c0a541 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
c2aab73f0a 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
6de558b79a 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
6d3511a3d7 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
f96adb1667 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
4ecfb536ba 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
704178a0dd 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
3b07c13b97 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
4ffa6ced5f 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
5e4d06c93a 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
47215b1406 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
8c2687f1e1 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
bfeee03f5f 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
3dafe9decf 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
998f147071 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
c118b053c9 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
bdb861957e 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
21488105b6 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