aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/bootstrap_commands.py
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #18953 - servo:keep, r=jdmbors-servo2017-10-201-1/+4
|\ | | | | | | | | | | | | | | | | | | Fix './mach clean-nightlies --keep 3' not keeping anything. This affects CI, re-downloading Nightly for every build. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18953) <!-- Reviewable:end -->
| * Fix './mach clean-nightlies --keep 3' not keeping anything.Simon Sapin2017-10-191-1/+4
| |
* | Only pass cafile argument to urlopen in Python versions that support it.Simon Sapin2017-10-191-2/+4
| |
* | Bootstrap from official static.rust-lang.org when SNI is availableSimon Sapin2017-10-181-13/+14
| |
* | Download "non-alt" rustc builds from more permanent URLsSimon Sapin2017-10-181-5/+4
|/ | | | | | | | | | The `rust-lang-ci` S3 bucket is ephemeral: https://internals.rust-lang.org/t/updates-on-rusts-ci-uploads/6062 https://internals.rust-lang.org/t/public-stable-rust-services/6072 We’ll still need to find a solution for "alt" rustc builds. In the meantime, this is a step.
* mach clean-nightlies: don’t remove everything versioned by dateSimon Sapin2017-10-111-5/+3
| | | | (Dates contain `-`.)
* mach clean-nightlies: fix removing cargo versioned by rust commitSimon Sapin2017-10-111-1/+1
|
* Get rustc commit hash from channel manifestSimon Sapin2017-09-121-5/+1
| | | | | … added in https://github.com/rust-lang/rust/pull/44218, instead of using the GitHub API.
* Switch back to pinning Rust by Nightly date instead of commit hash…Simon Sapin2017-08-311-38/+36
| | | | | | | | | | | | | | | | | | … this time using a `rust-toolchain` file compatible with rustup: https://github.com/rust-lang-nursery/rustup.rs/#the-toolchain-file And upgrade to rustc 1.21.0-nightly (c11f689d2 2017-08-29) ---- Now if both `system-rust` and `system-cargo` are set to `true` in `.servobuild`’s `[tools]` section, and the corresponding `rustc` and `cargo` binaries are in fact rustup’s wrappers, then rustup will use the correct version based on `rust-toolchain`. CC https://github.com/servo/servo/issues/11361 Unlike https://github.com/servo/servo/pull/17927, this does not make mach use rustup directly.
* Continue after failed attempt to delete old nightlyE. Dunham2017-08-111-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Failure to catch this error broke bholley's PR: http://build.servo.org/builders/linux-dev/builds/8616/steps/shell__1/logs/stdio. Logs below for posterity. Current Rust nightly version: 599be0d18f4c6ddf36366d2a5a2ca6dc65886896 Current Rust stable version: 1.19.0 Removing /home/servo/.servo/cargo/13d94d5fa8129a34f5c77a1bcd76983f5aed2434 Error running mach: ['clean-nightlies', '--keep', '3', '--force'] The error occurred in code that was called by the mach command. This is either a bug in the called code itself or in the way that mach is calling it. You should consider filing a bug for this issue. If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: OSError: [Errno 2] No such file or directory: '/home/servo/.servo/cargo/13d94d5fa8129a34f5c77a1bcd76983f5aed2434' File "/home/servo/buildbot/slave/linux-dev/build/python/servo/bootstrap_commands.py", line 334, in clean_nightlies delete(full_path) File "/home/servo/buildbot/slave/linux-dev/build/python/servo/util.py", line 28, in delete os.remove(path)
* Update to cargo 0.21.0-nightly (eb6cf012a 2017-07-02)Simon Sapin2017-07-191-26/+18
| | | | | Cargo binaries are now produced on Rust’s CI, not Cargo’s. Remove cargo-commit-hash and find Cargo based on rust-commit-hash.
* Revert "Fetch "alt" rust std build when we do so for rustc"Simon Sapin2017-07-141-5/+2
| | | | | | | | | This reverts commit 6b523302e1159a4b89223d2e47f053e67240cf35. This is unnecessary now that https://github.com/rust-lang/rust/issues/42967 is fixed by https://github.com/rust-lang/rust/pull/43167. This migth be a fix for https://github.com/servo/servo/pull/17604
* Fetch "alt" rust std build when we do so for rustcSimon Sapin2017-06-301-2/+5
|
* Improve `clean-cargo-cache`UK9922017-05-251-19/+20
|
* Fix UnicodeDecodeError in mach clean-nightliesSimon Sapin2017-05-131-1/+1
|
* Auto merge of #16593 - UK992:clean-cargo-cache, r=wafflespeanutbors-servo2017-05-081-1/+174
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mach: Add `mach clean-cargo-cache` command <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16593) <!-- Reviewable:end -->
| * Add `mach clean-cargo-cache` commandUK9922017-05-081-1/+174
| |
* | Keep stable rustc versions in `clean-nightlies`Aneesh Agrawal2017-05-021-14/+22
|/ | | | | Check the `rust-stable-version` file to keep the last n versions of both the nightly and the stable compiler.
* Auto merge of #16639 - ↵bors-servo2017-04-271-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aneeshusa:skip-nonexisting-dirs-when-cleaning-nightlies, r=jdm Avoid searching for old nightlies in missing dirs These directories may be missing (e.g. a first time build or due to Buildbot cleaning), so don't try to look inside them for old nightlies if so. I noticed this in http://build.servo.org/builders/arm32/builds/6815/steps/shell__1/logs/stdio. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16639) <!-- Reviewable:end -->
| * Avoid searching for old nightlies in missing dirsAneesh Agrawal2017-04-271-0/+2
| | | | | | | | | | These directories may be missing (e.g. a first time build), so don't try to look inside them for old nightlies if so.
* | Optimize `clean-nightlies`UK9922017-04-231-9/+4
|/
* Automatically clean old nightliesAneesh Agrawal2017-04-181-15/+46
| | | | | | | | Add a new `-keep` flag to `./mach clean-nightlies` to control how many nightlies to keep, which keeps the n most recent nightlies found in git. Use this to clean old nightlies at the start of each build, currently keeping 3 nightlies at a time.
* Fix bug bootstrapping stable rustMatt Brubeck2017-03-081-1/+2
|
* Allow disabling LLVM assertions in rustc (fixes #15548)Anthony Ramine2017-02-151-1/+6
|
* Switch to commit-specific nightliesAnthony Ramine2017-02-151-2/+3
|
* Clean up and simplify existing `mach bootstrap`Aneesh Agrawal2017-01-151-10/+5
| | | | | | | | | | | | | | | - Default to interactive mode and remove the `--interactive` flag - Use `--force` to skip interactivity - Change MSVC dependency storage organization on disk: put each version into its own folder and directly refer to the versioned folders, providing immutability and making the installation list redundant - Reuse `host_triple()` function to fix broken bootstrapper dispatching - Simplify code: - Remove or inline many unused and redudant functions and variables - Prefer plain functions to classes - Consolidate into fewer files, remove unnecessary bootstrapper/ dir - Improve Python style - Sort dependency list
* Create a util.py Python module for common functionsAneesh Agrawal2017-01-151-91/+2
| | | | | Extracting these functions helps avoid circular dependencies, and make them easier to find/reuse.
* Remove unusable --android flag for `mach bootstrap`Aneesh Agrawal2017-01-141-5/+2
| | | | `mach` can't do any bootstrapping for Android, so the flag is useless.
* Upgrade to cargo 0.16.0-nightly (built 2016-12-06)Simon Sapin2016-12-061-1/+1
| | | | | | Instead of once per day (or night) with a date in the URL, Cargo binaries are now built and published for every merge to master (with the merge commit hash in the URL).
* Fix msvc packages download dir for custom `.servo` locationUK9922016-09-281-1/+1
|
* Create `mach bootstrap` based on Mozilla's mozboot bootstrapperUK9922016-09-071-1/+23
|
* Add error message for connectivity issues during bootstrapS2016-08-171-0/+4
|
* Fix overriding url with Request obj. when resuming downloadS2016-08-161-2/+3
|
* Fix error-prone message while bootstrappingS2016-08-151-1/+1
|
* Use static-rust-lang-org.s3.amazonaws.com everywhere.Simon Sapin2016-07-081-1/+1
|
* Fix "looking for rustc at …" message for stable when already bootstrappedSimon Sapin2016-07-081-8/+4
| | | | | | | | | | Also always download from static-rust-lang-org.s3.amazonaws.com instead of static.rust-lang.org. They host the same content, but the latter goes through a CDN and has a TLS certificate that failed to verify and some Python versions: https://github.com/servo/servo/issues/3582 https://github.com/servo/servo/pull/3971
* Fix error in cross-compiling bootstrapMatt Brubeck2016-07-051-1/+1
|
* Add mach build-stable to build with stable rustcGabriel Poesia2016-06-301-17/+41
| | | | | | Github issue: #11806 Building with current stable rust (1.9.0) still fails because of feature pragmas in some dependencies (e.g. serde_item).
* Add mach command to update public domain list and use a HashSet instead of a ↵Florian Duraffourg2016-06-091-0/+23
| | | | Vec to lookup public domains
* Provide a better error message when downloading rustc failsPer Lundberg2016-05-311-2/+2
| | | | | | I was running into the error below locally. The previous version of the code hid away important details that helps when debugging; hence, this suggested change. > Error downloading Rust compiler: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590). URL: https://static-rust-lang-org.s3.amazonaws.com/dist/2016-05-17/rustc-nightly-x86_64-pc-windows-gnu.tar.gz
* Auto merge of #10923 - askeing:fix_10922, r=jdmbors-servo2016-04-301-1/+4
|\ | | | | | | | | | | | | | | | | | | | | Remove dir by shutil.rmtree, remove file by os.remove fix #10922 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10923) <!-- Reviewable:end -->
| * Remove dir by shutil.rmtree, remove file by os.removeaskeing2016-04-291-1/+4
| |
* | Handle HTTP specific errors then other errors when downloading rustcaskeing2016-04-301-3/+6
|/
* Handle URLError in download() #10679rwa2016-04-181-0/+3
| | | | Print a human-friendly message if there is no internet connection.
* Added caching support to mach bootstrapAdrian Utrilla2016-04-071-6/+21
|
* Remove submodule update from mach bootstrap. Fixes #10010malayaleecoder2016-03-161-33/+1
|
* Download extra std lib when cross-compiling #9557Daniel Robertson2016-02-121-32/+48
| | | | | Split ensure_bootstrap into two phases including a phase checking the compiler, and a phase checking for target libraries.
* adding check for windows then using Scripts instead of binJason Williams2016-01-221-1/+1
|
* win32: mach and build command fixesVladimir Vukicevic2016-01-201-5/+5
| | | | | | | - Add SERVO_USE_NIGHTLY_RUST env var to use the latest rust/cargo nightly snapshot - Fix up looking for cargo binary (in cargo/bin/cargo, not bin/cargo) - Fix up win32 executable checking (use .exe suffix) - fix up win32 PATH handling (subprocess must use shell=True for PATH change to be honored)
* Rename rust-snapshot-hash to rust-nightly-dateSimon Sapin2015-12-301-22/+22
| | | | | | … and remove mentions of "snapshots". We now use rust-lang.org nightly builds rather than our own snapshots.