aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
Commit message (Collapse)AuthorAge
* Env.vars: server won't ignore the client envGravatar Dmitry Lomov2017-03-08
| | | | | | | | | | | | | | | | | | Make the --ignore_client_env flag a no-op. The client will pass --client_env flags to the server even in --batch mode. This simplifies the code as well as ensuring that the server always uses the up-do-date client environment. We'll gradually get rid of all System.getenv calls in the server, because the server should always respect the client env. Roll forward of 149403129 with fixes. -- PiperOrigin-RevId: 149435060 MOS_MIGRATED_REVID=149435060
* Select the good guava jars for JDK7 buildGravatar Damien Martin-Guillerez2017-03-07
| | | | | | | | | | Manually tested with ./compile.sh and JAVA_VERSION=1.7 Fixes #2644. -- PiperOrigin-RevId: 149422627 MOS_MIGRATED_REVID=149422627
* Fix calling of test Gravatar Klaus Aehlig2017-03-07
| | | | | | | | | | | For test (a.k.a '[') the closing bracket has to be a separate argument. Fix this by adding the missing space. -- Change-Id: Ie1d64bc1fa37f85ee0c7b5520b2ba12a30c9f635 Reviewed-on: https://cr.bazel.build/9290 PiperOrigin-RevId: 149418360 MOS_MIGRATED_REVID=149418360
* Rollback of commit 94d8f4e9c8c8757aa7ab7c1a7c3e9afb34039127.Gravatar Klaus Aehlig2017-03-07
| | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** broke //src/test/shell/bazel:bazel_bootstrap_distfile_test *** Original change description *** Env.vars: server won't ignore the client env Make the --ignore_client_env flag a no-op. The client will pass --client_env flags to the server even in --batch mode. This simplifies the code as well as ensuring that the server always uses the up-do-date client environment. We'll gradually get rid of all System.getenv calls in the server, because the server should always respect the client env. -- PiperOrigin-RevId: 149416602 MOS_MIGRATED_REVID=149416602
* Env.vars: server won't ignore the client envGravatar Laszlo Csomor2017-03-07
| | | | | | | | | | | | | | | | Make the --ignore_client_env flag a no-op. The client will pass --client_env flags to the server even in --batch mode. This simplifies the code as well as ensuring that the server always uses the up-do-date client environment. We'll gradually get rid of all System.getenv calls in the server, because the server should always respect the client env. -- PiperOrigin-RevId: 149403129 MOS_MIGRATED_REVID=149403129
* Fix powershellv2 Gravatar Peter Mounce2017-03-07
| | | | | | | | | | | | | | | | | | | Powershell v2 (win7 vintage) doesn't have json cmdlets. Got a report via chocolatey.org message that this doesn't work on win7. Cried. Replaced with simpler text file based approach for separating data from code. Also fix package version fix notation bit of the automation to produce version numbers valid with chocolatey/nuspec. I've already published a fixed 0.4.5-rc2 and 0.4.4 with this * https://chocolatey.org/packages/bazel/0.4.4.20170306 * https://chocolatey.org/packages/bazel/0.4.5-rc2-20170306-124051 Closes #2633. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2633 PiperOrigin-RevId: 149314972 MOS_MIGRATED_REVID=149314972
* Convey the value of the --host_javabase startup option to the server.Gravatar Lukacs Berki2017-03-06
| | | | | | -- PiperOrigin-RevId: 149282686 MOS_MIGRATED_REVID=149282686
* Do not generate a dist archive to jdk7 Gravatar Klaus Aehlig2017-03-06
| | | | | | | | | | | | | | | Our distribution archive is supposed to contain all the original sources, as well as derived architecture-independent files needed for bootstrapping. So there should only be one distribution archive, not a separate one for jdk7, especially, as the project is moving away from java 7 soon. Change our artifact building accordingly. Closes #2250. -- Change-Id: If34afb544702bc309f722bdc2891b9dc60fe9899 Reviewed-on: https://cr.bazel.build/9190 PiperOrigin-RevId: 149104302 MOS_MIGRATED_REVID=149104302
* Rollback of commit c3102b722af6fba2a67fdfed55426471c0927ab8.Gravatar Damien Martin-Guillerez2017-03-03
| | | | | | -- PiperOrigin-RevId: 149015634 MOS_MIGRATED_REVID=149015634
* Rollback of commit 55b20c4a50642d8f1ac11cb721ecd5831f02dd76.Gravatar Damien Martin-Guillerez2017-03-03
| | | | | | | | | | | | | | *** Reason for rollback *** Broke JDK7 tests *** Original change description *** Code clean-up -- PiperOrigin-RevId: 149005807 MOS_MIGRATED_REVID=149005807
* Update to latest javac and Error ProneGravatar Liam Miller-Cushon2017-03-02
| | | | | | Fixes #2591 Change-Id: I7038b71811c54d5ece1c0993052abdffc9d0de96
* scripts/serve-docs.sh: ask bazel for the genfiles path Gravatar Klaus Aehlig2017-03-01
| | | | | | | | | | | | ...instead of assuming bazel-genfiles in `pwd`. In this way, the script will also work with --symlink-prefix=/ set in the rc file. -- Change-Id: I848a2e9791b4b8a8c1d6d0cea1f10117717935bd Reviewed-on: https://cr.bazel.build/9118 PiperOrigin-RevId: 148894206 MOS_MIGRATED_REVID=148894206
* Fix paths of binaries in .deb packages. Gravatar John Cater2017-02-28
| | | | | | | | | | | | To be cherry-picked for #2472. Fixes #2605. -- Change-Id: Idfd1bf264ceb696ca766268c8a16891476ee33b1 Reviewed-on: https://cr.bazel.build/9111 PiperOrigin-RevId: 148749784 MOS_MIGRATED_REVID=148749784
* Add javac-9-dev-r3297-3Gravatar Liam Miller-Cushon2017-02-22
| | | | | | https://github.com/google/error-prone-javac/archive/9-dev-r3297-3.zip Change-Id: I78b073c8db4a525d19b73650ed8d3a12b10ff86a
* Support pushing a file under directory.Gravatar Yue Gan2017-02-20
| | | | | | -- PiperOrigin-RevId: 148015085 MOS_MIGRATED_REVID=148015085
* Fixes a variable mistake.Gravatar Yue Gan2017-02-20
| | | | | | -- PiperOrigin-RevId: 148010735 MOS_MIGRATED_REVID=148010735
* Make the interface dynamic library builder a regular label instead of a ↵Gravatar Lukacs Berki2017-02-17
| | | | | | | | magic artifact. -- PiperOrigin-RevId: 147830857 MOS_MIGRATED_REVID=147830857
* Export Bazel's LICENSE file using our normal repo sync process.Gravatar Philipp Wollermann2017-02-17
| | | | | | -- PiperOrigin-RevId: 147825291 MOS_MIGRATED_REVID=147825291
* Add function for pushing benchmark result to site.Gravatar Yue Gan2017-02-17
| | | | | | | | This will only affect site after adding new job calling this function on CI. -- PiperOrigin-RevId: 147730290 MOS_MIGRATED_REVID=147730290
* Github query URL for all bugs sheriff needs to look at.Gravatar Dmitry Lomov2017-02-16
| | | | | | -- PiperOrigin-RevId: 147713590 MOS_MIGRATED_REVID=147713590
* Revert "Add javac-9-dev-r3297-3"Gravatar Damien Martin-Guillerez2017-02-16
| | | | | | | This reverts commit efe4a6d889d6a6f563a1d492530f13351ce4eef7. This commit broke several downstream project with a bug in the Java compiler, see http://ci.bazel.io/job/intellij-clion/78/BAZEL_VERSION=HEAD,PLATFORM_NAME=linux-x86_64/console
* Add javac-9-dev-r3297-3Gravatar Liam Miller-Cushon2017-02-16
| | | | | | https://github.com/google/error-prone-javac/archive/9-dev-r3297-3.zip Change-Id: I173e50f92f93009270c84ba90916e2696501f4de
* Fixes another bug that "nobuild" tar files are not extracted.Gravatar Yue Gan2017-02-15
| | | | | | -- PiperOrigin-RevId: 147612226 MOS_MIGRATED_REVID=147612226
* Rollback of commit 1893c21f9f04acff4a3cc5cd20ddbf9fe89ae59a.Gravatar Yue Gan2017-02-15
| | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Fix CI build *** Original change description *** Automated [] rollback of commit 01aa7d6f177f3284b5fecc0397bf29a605b37df0. *** Reason for rollback *** Breaks the CI: http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.7,PLATFORM_NAME=linux-x86_64/1270/console *** Original change description *** Adds support for pushing sites that don't need build, and build benchmark site. This should not affect CI for now. -- PiperOrigin-RevId: 147572787 MOS_MIGRATED_REVID=147572787
* Rollback of commit 60b525597bf7aafdec99ea51c7f82ce5801b4725.Gravatar Dmitry Lomov2017-02-14
| | | | | | | | | | | | | | *** Reason for rollback *** Follow-up for CI breakage. *** Original change description *** Fix bazel build on CI. -- PiperOrigin-RevId: 147475894 MOS_MIGRATED_REVID=147475894
* Rollback of commit 01aa7d6f177f3284b5fecc0397bf29a605b37df0.Gravatar Dmitry Lomov2017-02-14
| | | | | | | | | | | | | | | *** Reason for rollback *** Breaks the CI: http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.7,PLATFORM_NAME=linux-x86_64/1270/console *** Original change description *** Adds support for pushing sites that don't need build, and build benchmark site. This should not affect CI for now. -- PiperOrigin-RevId: 147474775 MOS_MIGRATED_REVID=147474775
* Fix bazel build on CI.Gravatar Yue Gan2017-02-14
| | | | | | -- PiperOrigin-RevId: 147470288 MOS_MIGRATED_REVID=147470288
* Adds support for pushing sites that don't need build, and build benchmark site.Gravatar Yue Gan2017-02-14
| | | | | | | | This should not affect CI for now. -- PiperOrigin-RevId: 147346229 MOS_MIGRATED_REVID=147346229
* Windows: fix bootstrapping bugs with 0.4.4 Gravatar László Csomor2017-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix 3 bugs to get bootstrapping working on Windows after it was broken in bazel-0.4.4: * Move the definition of PATHSEP to before the code that overrides it for Windows * Fix the Java code processing the --javahome flag to recognize absolute Windows paths as absolute. See: https://github.com/bazelbuild/bazel/issues/2520 * Do not propagate the JAVA_HOME value in variables, because it contains spaces on Windows, and when we pass the variable to Bazel, and it's expanded to e.g. ... --foo=C:/Program Files, these are interpreted as two args instead of one. Also fix a bug that is just annoying, not causing any trouble (on Windows): * Silently swallow errors from the "rm -rf" in the atexit functions Also do some refactoring: * Rename a variable (BAZEL_ARGS) and a method to indicate they're private. They are not used from anywhere else as far as I know -- no occurrences in either the bazel or the continuous-integration repos. Fixes: https://github.com/bazelbuild/bazel/issues/2473 -- Change-Id: I309752cd7bbff0b5dd683ddb5573f3061350043c Reviewed-on: https://cr.bazel.build/8797 PiperOrigin-RevId: 147345194 MOS_MIGRATED_REVID=147345194
* Add quotes to improve space supportGravatar Alexander Chung2017-02-07
| | | | | | | | | | | These changes addresses issues where Windows users have a space in their username. Allows the default output_base path to be used. Closes #2491. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2491 PiperOrigin-RevId: 146773331 MOS_MIGRATED_REVID=146773331
* Add pkg_rpm build rule to help generating RPM packages. Gravatar John Cater2017-02-06
| | | | | | | | | | RELNOTES: Adds pkg_rpm rule for generating RPM packages. -- Change-Id: I2e83161e29218700bbe7e62186b0b1667e555a7c Reviewed-on: https://cr.bazel.build/8590 PiperOrigin-RevId: 146477490 MOS_MIGRATED_REVID=146477490
* Make the bash completion generation easier to customize per product, take 2.Gravatar Julio Merino2017-02-02
| | | | | | | | | | | Refactor the code to generate the bash completions file by moving the logic to a separate script and keeping the genrule as a dumb invocation of this script. This allows us to more easily customize the rules for Blaze. -- PiperOrigin-RevId: 146362379 MOS_MIGRATED_REVID=146362379
* Rollback of commit 37debf0e532ccba7e9b6e2758b247659d28e905c.Gravatar Florian Weikert2017-02-02
| | | | | | -- PiperOrigin-RevId: 146347158 MOS_MIGRATED_REVID=146347158
* Make the bash completion generation easier to customize per product.Gravatar Julio Merino2017-02-02
| | | | | | | | | | | Refactor the code to generate the bash completions file by moving the logic to a separate script and keeping the genrule as a dumb invocation of this script. This allows us to more easily customize the rules for Blaze. -- PiperOrigin-RevId: 146265210 MOS_MIGRATED_REVID=146265210
* Moved bazelrc and version.txt to scripts/packages to be more effectively shared.Gravatar John Cater2017-02-01
| | | | | | | | -- Change-Id: I8c6d5cdbe9e2fc19ca6a626bea26944efa36e4db Reviewed-on: https://cr.bazel.build/8550 PiperOrigin-RevId: 146120078 MOS_MIGRATED_REVID=146120078
* Bazel bootstrapping: make it work on Windows againGravatar Laszlo Csomor2017-01-31
| | | | | | | | | | | | | | | | | | | | | In this change: (1) add a sanity check to verify that GNU bintools are on the PATH (2) correct the PATH on Windows if (1) failed (3) use "<user>/My Documents/Temp" as the default temp directory instead of "%windir%/Temp", because the latter is non-writable Motivated by: https://github.com/bazelbuild/bazel/issues/2431 https://github.com/bazelbuild/bazel/issues/2449 -- PiperOrigin-RevId: 146006796 MOS_MIGRATED_REVID=146006796
* Move debian package building into its own package. Gravatar John Cater2017-01-31
| | | | | | | | | | | | | | | As more package options are added, it's confusing that the debian package is generated in scripts/package/BUILD, but scripts/package/debian/ contains the related files (and isn't itself a Bazel package). This change makes the file locations more predictable, and also makes it easier to see what is happening in scripts/packages. -- Change-Id: Id8c445fc164a1a4aa09c52559a5143578cfdea88 Reviewed-on: https://cr.bazel.build/8510 PiperOrigin-RevId: 146003934 MOS_MIGRATED_REVID=146003934
* Follow-up of commit dbdaf83fe5480179bf65b86421168a5dba0e2198: common.sh was ↵Gravatar Damien Martin-Guillerez2017-01-26
| | | | | | | | | | not exported This also make sure we list cherry-picks with long hash. -- PiperOrigin-RevId: 145724726 MOS_MIGRATED_REVID=145724726
* Fix release scripts by using full hash everywhereGravatar Damien Martin-Guillerez2017-01-26
| | | | | | | | | | | | | Previously we were using short hash for rendering to the user but our repository as grown and on some configuration of git the short hash size has increased. To be future-proof, just remove all usage of short hash and use full hash instead. Fixes #2429. -- PiperOrigin-RevId: 145667804 MOS_MIGRATED_REVID=145667804
* Rollback of commit 96297ed7a9ab3df0f45e93bae9d71833f4195334.Gravatar Damien Martin-Guillerez2017-01-26
| | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Roll-forward with fix *** Original change description *** Automated [] rollback of commit ffc0d2df0213123a4451bed5850827319afcdeee. *** Reason for rollback *** Grr I knew I shouldn't have done 2 changes in one tests are failing now Fixes #2429. *** Original change description *** Release scripts: factor out the push to notes and fix a typo -- PiperOrigin-RevId: 145662713 MOS_MIGRATED_REVID=145662713
* Rollback of commit ffc0d2df0213123a4451bed5850827319afcdeee.Gravatar Damien Martin-Guillerez2017-01-26
| | | | | | | | | | | | | | | | *** Reason for rollback *** Grr I knew I shouldn't have done 2 changes in one tests are failing now Fixes #2429. *** Original change description *** Release scripts: factor out the push to notes and fix a typo -- PiperOrigin-RevId: 145657489 MOS_MIGRATED_REVID=145657489
* Release scripts: factor out the push to notes and fix a typoGravatar Damien Martin-Guillerez2017-01-25
| | | | | | -- PiperOrigin-RevId: 145559628 MOS_MIGRATED_REVID=145559628
* Set JAVA_HOME for every invocation of compile.sh . Gravatar Lukacs T. Berki2017-01-23
| | | | | | | | | | | | This is necessary since it's now passed in --javabase= even if no bootstrap build is requested. Fixes #2384. -- Change-Id: Icc15d9ec174ce9ed82b703c13449d88ec1d936a1 Reviewed-on: https://cr.bazel.build/8408 PiperOrigin-RevId: 145268264 MOS_MIGRATED_REVID=145268264
* Fix bootstrapping in Docker images.Gravatar Lukacs Berki2017-01-20
| | | | | | | | | | | | | | | | | | Turns out, we couldn't run jarjar because the Java launcher script looks for the .jars in the runfiles and build-runfiles is stubbed out during bootstrapping. The only reason why this worked at all is that sandboxing *also* doesn't work during bootstrapping but it causes the creation of symlinks that happened to be just in the right place for the Java launcher to find the .jars . The fix is: - Explicitly disable sandboxing during bootstrapping so that coincidences like this don't happen again - Pass a --javabase and --host_javabase option during the bootstrap build so that we don't need any symlinks to access to JVM - Invoke jarjar using its deploy jar instead of the launcher script. That was fun. -- PiperOrigin-RevId: 145083357 MOS_MIGRATED_REVID=145083357
* Fix regex condition in the bootstrap script.Gravatar Damien Martin-Guillerez2017-01-20
| | | | | | | | Bootstrap is broken at HEAD but that was hidden by another change. -- PiperOrigin-RevId: 145075041 MOS_MIGRATED_REVID=145075041
* For the time being, only test building on freebsd Gravatar Klaus Aehlig2017-01-20
| | | | | | | | | | | | The targets //site:jekyll-tree and //scripts/packages currently fail due to the python rules. They will be reenabled, once those are fixed in a released version. -- Change-Id: I54a8bcad87b153e2eb4e86f8e4d76d1d92f00bf9 Reviewed-on: https://cr.bazel.build/8397 PiperOrigin-RevId: 145066780 MOS_MIGRATED_REVID=145066780
* Use regex to match error prone and guava jarGravatar Damien Martin-Guillerez2017-01-20
| | | | | | | | Hard-coding the version is causing difficulties to update error prone, so let's not do it. -- PiperOrigin-RevId: 145061484 MOS_MIGRATED_REVID=145061484
* Avoid hard-coding path to bashGravatar Klaus Aehlig2017-01-19
| | | | | | | | -- Change-Id: Ief0dd31d7b514caaf5ea0108b7c497d42e86da70 Reviewed-on: https://cr.bazel.build/8395 PiperOrigin-RevId: 144966247 MOS_MIGRATED_REVID=144966247
* On FreeBSD as well, the sha256 binary is not called sha256sumGravatar Klaus Aehlig2017-01-19
| | | | | | | | -- Change-Id: Ia527ef1616546044e61a103749ff22191b24cb11 Reviewed-on: https://cr.bazel.build/8394 PiperOrigin-RevId: 144963679 MOS_MIGRATED_REVID=144963679
* Do not hard-code path to bash in ci-scripts Gravatar Klaus Aehlig2017-01-19
| | | | | | | | | | ...as they will also be run on platforms with different paths. -- Change-Id: Iaa14e35c4cec3ed927a18b580d4207b0244a6620 Reviewed-on: https://cr.bazel.build/8392 PiperOrigin-RevId: 144960305 MOS_MIGRATED_REVID=144960305