aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Add a Troubleshoot section for rulesGravatar laurentlb2017-12-15
| | | | | RELNOTES: None. PiperOrigin-RevId: 179200616
* Document the --incompatible_show_all_print_messages flagGravatar vladmos2017-12-15
| | | | PiperOrigin-RevId: 179190405
* third_party: update google http clientGravatar Jakob Buchgraber2017-12-15
| | | | | | | | | | | | | | | Update the google http client to a custom built binary. It's the sources from version 1.22.0 with one cherry-pick [1]. The cherry-pick makes google http client compatible with the apache http client version we are using. The next release of google http client will contain this commit and from there on we can just stick to their release version again. [1] https://github.com/google/google-http-java-client/commit/4b5f59ed042d3b55b3148a1b01f1d5ee0ad7460c Change-Id: If6273be78b716dd417a60096599c036cc8101efb
* bazel_bootstrap_distfile_test: run a more simple setupGravatar Klaus Aehlig2017-12-15
| | | | | | | | | | | | | The bootstrap-distfile test aims at verifying the completeness of the distribution archive. The functionality of workers is a different issue, so separate those concerns and do the test bootstrap in a simple setup, calling javac standalone (see #1250). Also, reduce the output to make the test log more readable. Improves on #4306. Change-Id: I839523628cd35f2deefc1a4dfdf0cf58a4d1f51a PiperOrigin-RevId: 179186615
* Update links to use the github examplesGravatar laurentlb2017-12-15
| | | | | | | Also remove references to old-style depset. RELNOTES: None. PiperOrigin-RevId: 179184967
* Replace link to cookbook with link to Github examplesGravatar laurentlb2017-12-15
| | | | | RELNOTES: None. PiperOrigin-RevId: 179174976
* Remove source specific build variables from C++ API.Gravatar plf2017-12-15
| | | | | | | | | | | The only use case was for Objective-C rules so that different set of sources specified in the same rule could be compiled with either ARC or no ARC. To replace source specific build variables, we call into CcLibraryHelper twice for each set of sources. This has led to separating the building of compilation providers and outputs from those related to linking. In the case of Objective-C, the compilation outputs are merged and then passed to a single invocation of linking in CcLibraryHelper. In a later CL, the distinction between compilation and linking will be refined by separating them in different classes. RELNOTES:none PiperOrigin-RevId: 179167102
* Suppress self-assignment errors in desugar test dataGravatar cushon2017-12-14
| | | | | | Fixes bazelbuild/bazel#4278 PiperOrigin-RevId: 179147994
* reflect prefix in additional ClassReader methods for consistency with what ↵Gravatar kmb2017-12-14
| | | | | | | | happens during visit() RELNOTES: None. PiperOrigin-RevId: 179115377
* Make FileSystem operate on LocalPath instead of Path.Gravatar tomlu2017-12-14
| | | | PiperOrigin-RevId: 179082062
* Rename --keep_incrementality_data to --track_incremental_state.Gravatar ccalvarin2017-12-14
| | | | | | | | | New name clears the namespace a 2nd flag that will wipe the build graph after the build. The old name would be confusing as it could easily apply to that, and so needs to be more specifically just about tracking state in the first place. The new flag can be clearly separate and about keeping state after the build. Partial roll forward of https://github.com/bazelbuild/bazel/commit/9321316b34767b06c3071b2cf2a4de189874fcce, with fixes to documentation that are still relevant. RELNOTES: Rename --keep_incrementality_data to --track_incremental_state PiperOrigin-RevId: 179078292
* Accept build IDs by flag. (Rollforward of ↵Gravatar ccalvarin2017-12-14
| | | | | | | | | | | | | https://github.com/bazelbuild/bazel/commit/c6b6dbadd0a93936c51154b25abc5fbba8f2d1af) We accepted these by environment variable largely because setting it via invocation policy would require changing invocation policy for each command, which had caused the Bazel server to restart, loosing incremental state. This is fixed: changing invocation policy no longer causes Bazel to restart its servers, so accept these as normal options. We will soon no longer accept these flags by environment variable, but will accept both for a transition period, so that nobody relying on these values is broken by a single release. To inform users of this environment variable, anyone setting the environment variable without the flag will receive a warning but the value will be kept. The following release will no longer accept an environment variable. Note on format: invocation_id we accept only clean UUIDs, but for build_request_id, to help differentiate otherwise undifferentiable id types, we accept arbitrary prefixes before the UUID. The user is responsible for picking prefixes that are sane. RELNOTES: None. PiperOrigin-RevId: 179063120
* Move msys path support into DependencySet, removing it from the general Path ↵Gravatar tomlu2017-12-14
| | | | | | | | system. This is the only place that should actually need it. PiperOrigin-RevId: 179054861
* Fix the generic class information in the documentationGravatar vladmos2017-12-14
| | | | | | | | | | | | | | | If a parameter is defined like the following, the information about the items type defined for the param itself (not for each container type) should be included in the documentation: @Param( // ... allowedTypes = { @ParamType(type = Container1.class), @ParamType(type = Container2.class), }, generic1 = Item.class, ) PiperOrigin-RevId: 179053750
* Clarify types of `ctx.attr.<attr_name>` objects.Gravatar vladmos2017-12-14
| | | | PiperOrigin-RevId: 179053724
* Properly capitalize Build Event Protocol in Blaze output for consistency.Gravatar jingwen2017-12-14
| | | | | | | | | | | | | | | | | Before: ____Waiting for build event protocol upload: 0s ____Waiting for Build Event Protocol upload to finish. ____Build Event Protocol upload finished successfully. After: ____Waiting for Build Event Protocol upload: 0s ____Waiting for Build Event Protocol upload to finish. ____Build Event Protocol upload finished successfully. RELNOTES: None. PiperOrigin-RevId: 179049827
* Replace `ctx.config` with `ctx.configuration` in the documentationGravatar vladmos2017-12-14
| | | | PiperOrigin-RevId: 179048579
* Rename OutputGroupProvider -> OutputGroupInfo.Gravatar dslomov2017-12-14
| | | | | RELNOTES: None PiperOrigin-RevId: 179046403
* Add a non remote execution build to compare build timesGravatar Damien Martin-Guillerez2017-12-14
| | | | | Change-Id: Ie355e9f122c074b24d119438e1f0a6e75300d1d1 PiperOrigin-RevId: 179043273
* Automatic code cleanup.Gravatar Googler2017-12-14
| | | | PiperOrigin-RevId: 179042182
* Shell code cleanupGravatar Androbin2017-12-14
| | | | | | | | | | | | - Argument mixes string and array. Use * or separate argument. - Quote the grep pattern so the shell won't interpret it. - Use "${var:?}" to ensure this never expands to /* . - > is for string comparisons. Use -gt instead. - Quote the parameter to -name so the shell won't interpret it. Closes #4163. PiperOrigin-RevId: 179042046
* Move profiling information from the Overview to the Optimizing page.Gravatar laurentlb2017-12-14
| | | | | RELNOTES: None. PiperOrigin-RevId: 179037412
* Update Skylark Readability Guidelines.Gravatar dslomov2017-12-14
| | | | | RELNOTES: None. PiperOrigin-RevId: 179034227
* Fix light typo in java docs.Gravatar dbabkin2017-12-14
| | | | | RELNOTES:none PiperOrigin-RevId: 179028810
* Remove the word 'Skylark' when it doesn't add any value.Gravatar laurentlb2017-12-14
| | | | | | | | | | | The word Skylark tends to be overused. We should use it only when we refer to the language itself. In many places, the word 'Skylark' was used, even if the reader may not know it (e.g. "create a rule" is clearer than "create a Skylark rule"). RELNOTES: None. PiperOrigin-RevId: 179024448
* Fix link.Gravatar GinFungYJF2017-12-14
| | | | | | Closes #4296. PiperOrigin-RevId: 179012791
* Initial @AutoCodec implementation.Gravatar Googler2017-12-13
| | | | PiperOrigin-RevId: 178994972
* Perform ZipFilterAction on the instrumentation JAR using the target JAR as ↵Gravatar jingwen2017-12-13
| | | | | | | | | | filter. .class and R.class files are filtered out. During an instrumentation test, jars from both APKS will be loaded onto the same classloader by ART. To prevent runtime crashes due to duplicate classes, we strip the dupe class out from the instrumentation jar. GITHUB: #903 RELNOTES: None. PiperOrigin-RevId: 178983712
* Add check for $experimental_testsupport in isExperimentalJavaTest.Gravatar dannark2017-12-13
| | | | | | | | | This should be a no-op because because before testsupport is set (https://github.com/bazelbuild/bazel/blob/3d362fb9a122ceee6d781be127dfedbbff8051f8/src/main/java/com/google/devtools/build/lib/bazel/rules/java/BazelJavaSemantics.java#L509), it's checking that main_class is pointing to the experimental testrunner. This is needed because android_local_test doesn't have a main_class attribute and then bazel breaks when it tries to get the main_class attribute. RELNOTES: None PiperOrigin-RevId: 178964286
* make desugar resilient to unrelated lambdas being dumped while it runsGravatar kmb2017-12-13
| | | | | | RELNOTES: None. PiperOrigin-RevId: 178952440
* Update aapt2 to recent version from git_pi-release.Gravatar Googler2017-12-13
| | | | | | | | Changes: - Package names must contain at least one dot. - XML files under res/values/ must have the extension ".xml". - ARSC format updated. PiperOrigin-RevId: 178952283
* Make linux-sandbox output execution statistics for executed commands.Gravatar ruperts2017-12-13
| | | | | | | For example, it now outputs resource usage statistics like the amount of user time and system time used. RELNOTES: None PiperOrigin-RevId: 178948958
* Add hooks to Bazel client for adding memory and logging specific JVM flags.Gravatar ajmichael2017-12-13
| | | | | | This refactoring is not currently used in Bazel, but is necessary for our internal variant. RELNOTES: None PiperOrigin-RevId: 178947759
* Add more links to examples in the documentation.Gravatar laurentlb2017-12-13
| | | | | RELNOTES: None. PiperOrigin-RevId: 178946746
* Adds a codec for RegexFilter.Gravatar Googler2017-12-13
| | | | PiperOrigin-RevId: 178942449
* Allow not recognized Artifact category to be handled in Analysis phaseGravatar Googler2017-12-13
| | | | | | | Nonexistent artifact categories or categories that are not supported by the action config now throw InvalidConfigurationException instead of ExpansionException. This allows the checked exception to be caught and reported as a RuleErrorException in Analysis phase. RELNOTES: None. PiperOrigin-RevId: 178919727
* Fix the documentation to allow making links to BE documetation articlesGravatar vladmos2017-12-13
| | | | PiperOrigin-RevId: 178910168
* Refactor flag access out of Adb._Exec() and into main().Gravatar Akira Baruah2017-12-13
| | | | | | | | | | Rather than access the `extra_adb_arg` command line flag directly, the `Adb` class now receives the flag value in its constructor, preventing an error where flags are accessed before they are parsed (prohibited in `absl.flags`). If the constructor arg isn't passed at all, the value stored in the `Adb` object defaults to an empty list. PiperOrigin-RevId: 178906612
* Explain why --include_imports should not be used when creating the ↵Gravatar carmi2017-12-13
| | | | | | | descriptor set output. RELNOTES: None PiperOrigin-RevId: 178904210
* Use java.nio.file.Files.createTempDirectory() to create temporary directory ↵Gravatar ruperts2017-12-13
| | | | | | | | | | | | | | | | | in LocalSpawnRunner, to avoid a race condition. Aside: The old, real temporary directory paths looked like this: TMPDIR=/.../tmp15e_5dd5a8e8347813f5 The new, real temporary directory paths now look like this: TMPDIR=/.../local-spawn-runner.3217503035718074040 RELNOTES: None. PiperOrigin-RevId: 178903361
* Allow access to some TestAttempt fields for testingGravatar ulfjack2017-12-13
| | | | PiperOrigin-RevId: 178893146
* Implement --(no)expand_test_suites flag.Gravatar dslomov2017-12-13
| | | | | | | | | --noexpand_test_suites flag will suppress expansion of test_suite targets into constituent tests, so that command-line aspects can analyze test_suite targets. RELNOTES: Added --(no)expand_test_suites flag. PiperOrigin-RevId: 178892829
* Fix broken target in Intellij project definition.Gravatar buchgr2017-12-13
| | | | | RELNOTES: None. PiperOrigin-RevId: 178892596
* Fix windows_cc_configure after ↵Gravatar hlopko2017-12-13
| | | | | | | | | https://github.com/bazelbuild/bazel/commit/2aeaeba66857c561dd6d63c79a213f1cabc3650d Fixes #4288 RELNOTES: None. PiperOrigin-RevId: 178889458
* GitRepository: Close repository when cloning is doneGravatar Yun Peng2017-12-13
| | | | | | | Fixed https://github.com/bazelbuild/bazel/issues/3700 Change-Id: I5fef0065aa90ab0a13f0e060be486b76b930ccc9 PiperOrigin-RevId: 178883672
* Fix small typo in user manualGravatar Dave Rolsky2017-12-13
| | | | | | | | s/statup/startup/ Closes #4274. PiperOrigin-RevId: 178880672
* Fix a glob to include TestSubject.java in DesugarGravatar Laszlo Csomor2017-12-13
| | | | | | | Fixes https://github.com/bazelbuild/bazel/issues/4287 Change-Id: Id4a7cda049c4532a0ca18bd914f48f4a8a23a9a7 PiperOrigin-RevId: 178880493
* Enable local action execution statistics collection when the ↵Gravatar ruperts2017-12-12
| | | | | | | | | | | LocalSpawnRunner uses the process-wrapper to run commands. In particular, record metrics for user and system CPU execution time, block I/O and involuntary context switches. This feature is guarded behind a new option, --experimental_collect_local_action_metrics. RELNOTES: None. PiperOrigin-RevId: 178856077
* Initialize the RuleClassProvider only once.Gravatar carmi2017-12-12
| | | | | | | This saves some CPU/wall time when creating multiple PackageLoader instances. RELNOTES: None PiperOrigin-RevId: 178834826
* Move linux_sandbox_test from shell/bazel to shell/integration.Gravatar ruperts2017-12-12
| | | | | | | Also split off part of the linux_sandbox_test into the linux_sandbox_network_test. RELNOTES: None. PiperOrigin-RevId: 178816110