aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* bootstrap: fix typo in PATH-fixing command adviceGravatar L?szl? Csomor2017-12-06
| | | | | Change-Id: I4ea57252dfa2fe0d1386206ee2136beb9d61f7b0 PiperOrigin-RevId: 178092027
* Move BazelRuleClassProvider.CORE_WORKSPACE_RULES to its own class in the ↵Gravatar lpino2017-12-06
| | | | | | rules/repository package. PiperOrigin-RevId: 178087895
* Flip the --incompatible_disallow_uncalled_set_constructor flagGravatar vladmos2017-12-06
| | | | | | | | RELNOTES: The deprecated builtin `set` is no longer allowed even from within unexecuted code in bzl files. It's temporarily possible to use --incompatible_disallow_uncalled_set_constructor=false if this change causes incompatibility issues. PiperOrigin-RevId: 178087669
* Update version of re2Gravatar laurentlb2017-12-06
| | | | | | | | | The latest version of re2 contains fixes that makes it compatible with new changes in Bazel. Fixes #4233 RELNOTES: None. PiperOrigin-RevId: 178087275
* bootstrap: fix typo in PATH fixing command adviceGravatar László Csomor2017-12-06
| | | | Change-Id: I4ea57252dfa2fe0d1386206ee2136beb9d61f7b0
* Add abseil to //third_party:srcsGravatar Adam Michael2017-12-06
| | | | | | | Fixes #4235 Change-Id: I057ec0b0d214c5e3d8c33b12ea455a7898a6fd31 RELNOTES: None
* BEP: In the TestResult meta data, allow reporting remote cache hitsGravatar aehlig2017-12-06
| | | | | | | | | Extend the optional meta data that TestResults may report by a flag indicating that the test was taken from a remote cache. Also, allow reporting the precise exit code of the test action. PiperOrigin-RevId: 178075896
* Depend on //tools/jdk:host_jdk for the host javabase instead of the default JDK.Gravatar lberki2017-12-06
| | | | | RELNOTES: None. PiperOrigin-RevId: 178074510
* Update bazel py rules "deps" documentationGravatar elenairina2017-12-06
| | | | | | | | | since it is not allowed to have cc_library dependencies. Fixes #4237 RELNOTES: None. PiperOrigin-RevId: 178074296
* Disallow undeclared access to the $(JAVA) and $(JAVABASE) template variables.Gravatar lberki2017-12-06
| | | | | | | | | If a rule needs these template variables, it will need to declare a dependency on them in the future by adding @bazel_tools//tools/jdk:current_java_runtime to its toolchains= attribute. RELNOTES[INC]: In order to access the template variables $(JAVA) and $(JAVABASE), @bazel_tools//tools/jdk:current_java_runtime needs to be added to the toolchains= attribute from now on. RELNOTES: None. PiperOrigin-RevId: 178070807
* Make ProcessWrapperUtil aware of the execution statistics file, and add new ↵Gravatar ruperts2017-12-05
| | | | | | | ExecutionStatisticsProvider. RELNOTES: None. PiperOrigin-RevId: 178056182
* Reflect progress on incremental dexing in android_binary's ↵Gravatar kmb2017-12-05
| | | | | | | | incremental_dexing attribute documentation. RELNOTES: None. PiperOrigin-RevId: 178047799
* Check for null build file returned from getBuildFileForPackage.Gravatar jcater2017-12-05
| | | | | | This can occur in genqueries when a referenced package isn't in the scope. PiperOrigin-RevId: 178038701
* Upgrade --target_environment, --auto_cpu_environment_group.Gravatar gregce2017-12-05
| | | | | | | 1: Allow both in the same build (before, just one would trigger) 2: Don't check environment defaults from other groups, since neither flag asserts any expectations on those groups PiperOrigin-RevId: 178026699
* Dedupe inputs in dexmerger tool similar to other tools.Gravatar kmb2017-12-05
| | | | | | RELNOTES: None. PiperOrigin-RevId: 178013335
* Moving the RemoteWorker into tools/remote directory.Gravatar olaola2017-12-05
| | | | | | | | This is because I want to add another remote execution related tool, the remote_client, which will use the Remote Execution API to fetch blobs from a remote cache. I will use this tool as part of end-to-end tests for remote execution. TESTED=remote integration tests, presubmit RELNOTES: None PiperOrigin-RevId: 177995895
* Stub out def_parser_test on non-Windows platforms.Gravatar Adam Michael2017-12-05
| | | | | | | See https://github.com/bazelbuild/bazel/issues/4230. Change-Id: Ia0125d76eb47226ad8e09829e559d636f064b369 RELNOTES: None
* Add aapt2 to the filegroup of integration test dependencies.Gravatar ajmichael2017-12-05
| | | | | | | | | This will allow us to write a bazel integration test for --android_aapt=aapt2. Necessary for https://github.com/bazelbuild/bazel/issues/4103. RELNOTES: None PiperOrigin-RevId: 177980382
* Automated rollback of commit d0f06a6e4b61adc39bf5e1cfbae39501a89dc8e3.Gravatar nharmata2017-12-05
| | | | | RELNOTES: None PiperOrigin-RevId: 177965330
* Fix error prone warning about reference equality.Gravatar ajmichael2017-12-05
| | | | | RELNOTES: None PiperOrigin-RevId: 177965009
* scripts/serve-docs.sh: allow overriding PORT/HOSTGravatar Klaus Aehlig2017-12-05
| | | | | | | | | ...through the corresponding environment variables. In this way, more than one documentation version can be served, e.g., to simplify comparing. Change-Id: I4ae069a4a48f12e9bd48210ee3bd22299149f59d PiperOrigin-RevId: 177959891
* Expose getGenJarsProvider methods from JavaSkylarkApiProvider in JavaInfoGravatar dbabkin2017-12-05
| | | | | | | | | | | JavaSkylarkApiProvider will be deprecated soon and replaced by JavaInfo. Methods exposed: getGenJarsProvider() Made changed in all relevant Java family rules, to build JavaGenJarsProvider provider and assign to JavaInfo RELNOTES:none PiperOrigin-RevId: 177950965
* Build output files if the build tag filter contains only tags to exclude.Gravatar lberki2017-12-05
| | | | | | | | | This is arguably more correct, since output files don't have any tags, therefore you cannot exclude them by specifying tags to exclude. Fixes #4012. RELNOTES: None. PiperOrigin-RevId: 177950851
* This and further changes may contain minor modifications to BUILD files that ↵Gravatar tomlu2017-12-05
| | | | | | | don't serve any apparent purpose. The reason for these changes is that we're switching from checked-in BUILD files to generated BUILD files, and there may be small differences between these files. RELNOTES: None PiperOrigin-RevId: 177949511
* Add a 'fdo_optimize' feature to the auto-configured crosstool.Gravatar Benjamin Peterson2017-12-05
| | | | | | | | | | | Bazel's fallback action config for PGO optimization uses Google-internal compiler flags. Here, we provide a 'fdo_optimize' feature without these internal flags, so --fdo_optimize can work out of the box. This fixes https://github.com/bazelbuild/bazel/issues/1171. Change-Id: I1d40eb72211e7c5bea213de7d2c237ac2877b3a1 PiperOrigin-RevId: 177947264
* Release 0.8.1 (2017-12-05)Gravatar Bazel Release System2017-12-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | Baseline: cff0dc94f6a8e16492adf54c88d0b26abe903d4c Cherry picks: + 8a49b156c4edf710e3e1e0acfde5a8d27cc3a086: Fix ImportError on tools.android for junction_lib + 275ae45b1228bdd0f912c4fbd634b29ba4180383: Automated rollback of commit 4869c4e17d5b1410070a1570f3244148d8f97b5d. + d0bf589f2716b3d139c210930371a684c6e158eb: Add a random number to action temp dir + 9738f35abddb7ef7a7ef314b5d2a52a3be1b830a: CcProtoLibrary: Don't add dynamic librarys to filesToBuild on Windows + 0d6ff477099fdf6c8c1c7d4e2104f9184afe0a2b: Automated rollback of commit 0ebb3e54fc890946ae6b3d059ecbd50e4b5ec840. + 49008a3c90e65bc4abf5292af823a931b8f4e096: Avoid NPEs when providers are not found in JavaInfo. + f499ddc6cf2f1dc5610e04f6ab42c1d11bad7b80: Added missed imports. 0.8.1rc3 Cherry-picked https://github.com/bazelbuild/bazel/commit/49008a3c90e65bc4abf5292af823a931b8f4e096. Additional change to fix the missing imports.
* Add a //tools/jdk:host_jdk target.Gravatar lberki2017-12-05
| | | | | RELNOTES: None. PiperOrigin-RevId: 177944402
* Add absl-py 0.1.1 as third_party/py/abseilGravatar Akira Baruah2017-12-05
|
* Add --experimental_java_coverage.Gravatar elenairina2017-12-05
| | | | | | | | | | | | | | | | | | Context: java_import or other custom rules (genrules or Skylark) do not propagate coverage information. Coverage metadata is retrieved from the compilation information and it is passed around through providers as Artifact(s). The problem with the current implementation is that there is no way of retrieving instrumentation metadata from arbitrary jars provided by java_import or other custom rules. --experimental_java_coverage solves the issue presented above ONLY for the java rules (has no effect for android/[]/etc). Implementation details: * For each build jar create a .txt file containing the relative path of each Java file. This file is included in the build jar. It is used for recreating the correct path for each covered file when included in the coverage report. * java_binary/java_test will set 3 environment variables: 1) JACOCO_METADATA_JAR - in experimental mode will be a txt file containing all the jars considered for collecting coverage (JacocoCoverageRunner filters out the ones that don't have .uninstrumented.class files). In non-experimental mode will be a jar containing all the instrumented class files. 2) JACOCO_MAIN_CLASS - The main class to be called for the current coverage run. Previously this information was embedded in the JACOCO_METADATA_JAR's manifest. 3) JACOCO_JAVA_RUNFILES RELNOTES: --experimental_java_coverage is available for testing. PiperOrigin-RevId: 177941471
* remote: Have --remote_rest_cache respect --remote_timeout.Gravatar buchgr2017-12-05
| | | | | RELNOTES: The --remote_rest_cache flag now respects --remote_timeout. PiperOrigin-RevId: 177926523
* Fixing regression of SHA1 with the RemoteWorker.Gravatar olaola2017-12-05
| | | | | TESTED=ran with SHA1 and SHA256 PiperOrigin-RevId: 177925963
* Fix docs for repository_nameGravatar Rodrigo Queiro2017-12-05
| | | | | | | | Fixes #3573 Closes #3574. PiperOrigin-RevId: 177925152
* Added execution platform to the ActionExecutionMetadata.Gravatar John Cater2017-12-04
| | | | | | | Part of #4128. Change-Id: Id822d3ae6f8daf7c92a75bd8bd28590d4f625845 PiperOrigin-RevId: 177905460
* Improve exception message to output more information.Gravatar cnsun2017-12-04
| | | | | | RELNOTES:None. PiperOrigin-RevId: 177875613
* Remove static import of inner class InferredType's fieldsGravatar ccross2017-12-04
| | | | | | | | | | | | | | | A few of the InferredType's fields were being static imported, but not all of them, and the use of the statically imported fields was inconsistent. Statically importing the inner class causes strange errors when building desugar in the Android platform build with OpenJDK8, but not OpenJDK9: external/desugar/java/com/google/devtools/build/android/desugar/BytecodeTypeInference.java:1015: error: cannot find symbol @AutoValue ^ symbol: class AutoValue location: class BytecodeTypeInference 1 error Remove the static imports to make the build work and to make the usage consistent. RELNOTES:None. PiperOrigin-RevId: 177875501
* Platform options are no longer experimental.Gravatar jcater2017-12-04
| | | | | RELNOTES: The --host_platform and --platform flags are no longer experimental. PiperOrigin-RevId: 177863761
* From apple_binary, receive AppleExecutableBinaryProvider from the ↵Gravatar cparsons2017-12-04
| | | | | | | | | bundle_loader attribute Prior to this change, apple_binary relied on bundle_loader targets (which are themselves apple_binary) to propagate an unwrapped ObjcProvider. That is deprecated, is disabled by --noexperimental_objc_provider_from_linked, and will be killed off shortly. RELNOTES: None. PiperOrigin-RevId: 177862573
* Document the startup option --host_javabase.Gravatar Googler2017-12-04
| | | | | RELNOTES: Document startup option --host_javabase PiperOrigin-RevId: 177849387
* Use PEP 328 absolute import for third_party python gflags.Gravatar Akira Baruah2017-12-04
| | | | | | | Commit d926bc40260549b997a6a5a1e82d9e7999dbb65e fixed a bug (#4206, #4208) in the third_party python gflags pseudo-package but added excessive runtime warnings (see #4212). Using the python PEP 328 (absolute import) implementation eliminates these warnings while properly addressing the original bug.
* Expose ObjcProtoProvider as a Skylark object.Gravatar cparsons2017-12-04
| | | | | | | | | This does not provide any meaningful API to interact with ObjcProtoProvider from a skylark context -- it simply allows ObjcProtoProvider to be passed between skylark API calls as an opaque object. This helps facilitate exposure of an Apple Linking API to Skylark which will take place in future changes. RELNOTES: None. PiperOrigin-RevId: 177844029
* Clarify bazel clean's options.Gravatar ccalvarin2017-12-04
| | | | | | | | | | Basically a refactor of https://github.com/bazelbuild/bazel/pull/2053, which separated the concepts of async and expunge but kept them intertwined at the option level. This was confusing to a number of users. The standard interface is to use one of --expunge, --async, or --expunge_async. --clean_style was more verbose and added no value, so can be removed. The contents of actuallyClean() could use some ... actual cleaning. This CL just changes the options, removing some of the artificial option-related complexity. RELNOTES[INC]: --clean_style is no longer an option. PiperOrigin-RevId: 177843049
* Remove some deadish Windows-related runfiles code.Gravatar Benjamin Peterson2017-12-04
| | | | | | | | | | | | | | | In particular, SymlinkTreeAction no longer needs to accept artifacts as an input. --experimental_enable_runfiles now immediately reports an error on Windows. This mostly unwinds e4974e4cc6aeb437d36b3b36eb20142b7120fb16 ("Separate runfiles middlemen into two layers") and 41f4456ac2348bef66739194853a1ddadcbb887e ("Make runfiles tree creation on Windows depend on the artifacts of the actual runfiles."). See https://groups.google.com/d/msg/bazel-dev/btOAgxv434g/bDhTOOePAgAJ. Change-Id: Iac3308669bfc07abfd1c91445922269d8fdc2a26 PiperOrigin-RevId: 177837504
* Install instructions: emphasize that the distfile is architecture independentGravatar Klaus Aehlig2017-12-04
| | | | | | | | Explicitly emphasize that the distribution archive is architecture independent. In particular, users do not have to look for their architecture. This has led to confusions. Change-Id: If7c75fcde4ec85d5670eb2c893ffcb4be65e3c0c PiperOrigin-RevId: 177835486
* Move extra action flag docs into the Semantics section.Gravatar Benjamin Peterson2017-12-04
| | | | | | | Previously, they were in the Error checking options section, which doesn't seem correct. Change-Id: I1306da91cff01157963d56db267188bda7d57d4f PiperOrigin-RevId: 177835450
* remote: Replace Retrier with Retrier2.Gravatar buchgr2017-12-04
| | | | | | | | | - Replace the existing Retrier with Retrier2. - Rename Retrier2 to Retrier and remove the old Retrier + RetryException class. RELNOTES: None. PiperOrigin-RevId: 177835070
* Fix link to Skyark Linter docs from main docs navigationGravatar Akira Baruah2017-12-04
| | | | | | | | Fixes #4202 Closes #4214. PiperOrigin-RevId: 177829932
* Add BAZEL_VC and JAVA_HOME to build_windows_jni.shGravatar Loo Rong Jie2017-12-04
| | | | | | | | | | User might have Visual C++ Build Tools and JDK installed at non-default location, but they are still usable for bootstrapping. PS: I used Visual C++ 2017 15.3 for bootstrapping, there is a nice 1.5MB size reduction in final `bazel.exe` compared with `bazel-0.7.0-without-jdk-windows-x86_64.exe`. Closes #3943. PiperOrigin-RevId: 177815687
* Remove `-R` flags from the MacOS crosstool template.Gravatar John Millikin2017-12-04
| | | | | | | | Fixes https://github.com/bazelbuild/bazel/issues/4028 Closes #4029. PiperOrigin-RevId: 177813419
* Fix getBuildFiles to not assume BUILD is the name of the build file.Gravatar John Cater2017-12-04
| | | | | | | Fixes #4056. Change-Id: Ia7425c2146f15e9293605ee3da53007805e82275 PiperOrigin-RevId: 177813070
* Add an open-source version of find_cpp_toolchain, to allow open-source users ofGravatar cpeyser2017-12-04
| | | | | | | | the CppConfiguration Skylark API to migrate to platforms and toolchains. For more details on toolchains, please see https://docs.google.com/document/d/1-G-VPRLEj9VyfC6VrQBiR8To-dZjnBSQS66Y4nargGM/edit#heading=h.al54v2ddwqzv PiperOrigin-RevId: 177811908