aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/bootstrap_commands.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Remove "Servo does not bootstrap 32bit snapshots of Rust" messageSimon Sapin2015-12-301-7/+0
| | | | We now use rust-lang.org nightly builds rather than our own snapshots.
* Fix the parsing of the chromium HSTS preload listSam Gibson2015-12-021-1/+1
| | | | | | | | 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
* Ensure the bootstrap-rust-docs and doc mach commands agree on the location ↵Ms2ger2015-11-271-5/+4
| | | | of the Rust documentation.
* Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)Manish Goregaokar2015-11-271-12/+39
| | | | … and libc 0.2 and many other dependencies
* Prevent warning about redefining Python variableCorey Farwell2015-07-261-1/+1
| | | | | 'e' is also used later on in a list comprehension, and flake8 warns when variables get redefined within a function
* Resolves code review commentsSam Gibson2015-07-221-1/+4
| | | | | * Lots of rust-isms * Mutable iterator for modifying entries (much better)
* Commit HSTS preload list to source controlSam Gibson2015-07-221-12/+2
| | | | | * No longer download the HSTS list as a bootstrap step * Check the current revision of the HSTS list into source
* Resolve tidy issuesSam Gibson2015-07-221-2/+7
|
* Preload an HSTS domain list from chromiumSam Gibson2015-07-221-15/+77
| | | | | This resolves the first part of servo/servo#6105. The remaining part is to update the list based on the STS headers from the server.