aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* Small doc fixes for BazelActionListenerRule.Gravatar Ulf Adams2016-10-31
| | | | | -- MOS_MIGRATED_REVID=137682796
* remove references to "server.socket" fileGravatar Thiago Farina2016-10-31
| | | | | | | | | | | | The C++ client now talks to the Java server through protobuf messages using the RPC mechanism provided by grpc, so this AF_UNIX socket file is not used anymore for the communication between them since commit a3c4833dc24b: ("Remove support for using AF_UNIX..."). -- Change-Id: Ic71e4c65ebb6bb2e661128635c2440007feaf5f6 Reviewed-on: https://bazel-review.googlesource.com/#/c/7030/ MOS_MIGRATED_REVID=137679905
* Description redacted.Gravatar Googler2016-10-31
| | | | | -- MOS_MIGRATED_REVID=137669164
* Introduce proto_lang_toolchain().Gravatar Carmi Grushko2016-10-31
| | | | | | | RELNOTES: New rule: proto_lang_toolchain(), to support LANG_proto_library rules on multiple platforms. -- MOS_MIGRATED_REVID=137550563
* Verify (in test) that ObjcProvider keys are either exposed to skylark or ↵Gravatar Chris Parsons2016-10-31
| | | | | | | explicitly omitted -- MOS_MIGRATED_REVID=137547748
* Integration tests for RepositoryCache using Skylark's download() and ↵Gravatar Jingwen Chen2016-10-28
| | | | | | | | | download_and_execute(). GITHUB: #1752 -- MOS_MIGRATED_REVID=137535936
* Avoid passing a Windows path as a regexGravatar Laszlo Csomor2016-10-28
| | | | | | | | | | | See https://github.com/bazelbuild/bazel/issues/2002 This bug was making //src/t/j/c/g/d/build/lib/skyframe:SkyframeTests fail on my Windows machine. -- MOS_MIGRATED_REVID=137521932
* Rollback of commit b6301a5f7628d5a7e11abc6c1115918d42c6fba8.Gravatar Luis Fernando Pino Duque2016-10-28
| | | | | | | | | | | | | | *** Reason for rollback *** Breaks blaze_util_test for Bazel https://github.com/bazelbuild/bazel/issues/1999 *** Original change description *** Uncomment lines inside blaze_util_tests since the tests are now passing. -- MOS_MIGRATED_REVID=137516264
* Disable protobuf modulemap generation if it's a linking target. Correctly ↵Gravatar Sergio Campama2016-10-28
| | | | | | | configure protos intermediate artifacts to use the build configuration, if any provided. -- MOS_MIGRATED_REVID=137514384
* Add the IsNullary(arg) and IsUnary(arg, next_arg) functionsGravatar Luis Fernando Pino Duque2016-10-28
| | | | | | | to detect whether arg is a valid startup option. -- MOS_MIGRATED_REVID=137512954
* Rollback of commit 69c98ab99563e0542cd6146de22a397679c67fdb.Gravatar Tobias Werth2016-10-28
| | | | | -- MOS_MIGRATED_REVID=137506734
* Small docs updates for the extra action rule.Gravatar Ulf Adams2016-10-28
| | | | | | | | Add the product name to the ConfiguredRuleClassProvider so that the doc generator can generate the proper links to the user manual. -- MOS_MIGRATED_REVID=137505460
* extract a function to return the embedded binaries root directoryGravatar Thiago Farina2016-10-28
| | | | | | | | | | This allow us to keep this logic in one place and add a documentation for what it means (making it more in sync with its Java counterpart). -- Change-Id: I20ecfa6ea2cd3129a2f7a920c3bffe532f664a90 Reviewed-on: https://bazel-review.googlesource.com/#/c/6990/ MOS_MIGRATED_REVID=137504319
* Reap the direct child process when double-forking to daemonize.Gravatar Lukacs Berki2016-10-28
| | | | | | | Otherwise, it'd only be reaped by init when the client terminates. -- MOS_MIGRATED_REVID=137502970
* Change our URL to bazel.buildGravatar Damien Martin-Guillerez2016-10-28
| | | | | -- MOS_MIGRATED_REVID=137500893
* Global cleanup change.Gravatar Damien Martin-Guillerez2016-10-28
| | | | | -- MOS_MIGRATED_REVID=137495530
* Delete obsolete API in ErrorProneAnalyzerGravatar Liam Miller-Cushon2016-10-28
| | | | | -- MOS_MIGRATED_REVID=137464177
* Remove old incremental dexing flag that was superseded by ↵Gravatar Googler2016-10-28
| | | | | | | --incremental_dexing and --incremental_dexing_binary_types many months ago -- MOS_MIGRATED_REVID=137442126
* Switch default --apk_signing_method from legacy_v1 to v1.Gravatar Adam Michael2016-10-28
| | | | | | | | | Also makes apksigner a mandatory attribute of android_sdk. Now Android builds will default to using the Apk Signer tool to sign APKs. A followup changelist will remove the legacy code path. RELNOTES: --apk_signing_method default changed to v1. Android APKs are now signed with the new ApkSignerTool by default. -- MOS_MIGRATED_REVID=137433061
* bazel query: Gravatar Greg Estren2016-10-28
| | | | | | | | | - Extend https://github.com/bazelbuild/bazel/commit/83ffb5e7bc034ea2dd1e957249079b3884a9450d to --output=xml, --output=proto, too. This makes query much more resilient against freezing / OOMing from "select() + select() + select() + ..." patterns. - Make the above logic accessible to any output type. - Move AggregatingAttributeMapper.flattenAttributeValues to ProtoOutputFormatter, since this is really a utility method for ProtoOutputFormatter. -- MOS_MIGRATED_REVID=137429116
* Singlejar apkbuilder now puts resources in the correct location in APK.Gravatar Adam Michael2016-10-28
| | | | | | | This was a bug that only affected builds with a single classes.dex. -- MOS_MIGRATED_REVID=137427786
* Update error messages generated by failure to copy files out of the sandbox.Gravatar John Cater2016-10-27
| | | | | | | -- Change-Id: I344855ca082c019b353f811c7449207d73456f97 Reviewed-on: https://bazel-review.googlesource.com/c/6952/ MOS_MIGRATED_REVID=137419487
* Rollback of commit fac9be905f0f82f793eb1cc61afab42698769dcf.Gravatar Adam Michael2016-10-27
| | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Rollforward with fixes for android_integration_test.sh *** Original change description *** Automated [] rollback of commit 2fcf0e4cfb97af7cc8b8a090c5144c87b759bc13. *** Reason for rollback *** Breaks android_integration_test, see https://github.com/bazelbuild/bazel/issues/1927 *** Original change description *** Generate aar_import and java_import rules for local maven repositories in <sdk>/extras for sdk in android_sdk_repository. Addresses https://github.com/bazelbuild/bazel/issues/1745. -- MOS_MIGRATED_REVID=137407118
* Fix linux-sandbox failure when there is a mount points under /tmpGravatar Yuki Yugui Sonoda2016-10-27
| | | | | | | | | | | | Skip remounting such mount points because they are not actually visible in the sandbox after mounting new tmpfs. Fixes https://github.com/bazelbuild/bazel/issues/1959 -- Change-Id: Ia1361559966ffb05ea1ddbeaee1ed7d3ebdb9e15 Reviewed-on: https://bazel-review.googlesource.com/#/c/6970/ MOS_MIGRATED_REVID=137397312
* Change getattr() behavior so 3-arg form doesn't fail when field is a methodGravatar Jon Brandvein2016-10-27
| | | | | | | RELNOTES: getattr()'s 3-arg form no longer raises an error when the retrieved field is a built-in method. -- MOS_MIGRATED_REVID=137390666
* Move ToolsRepository out of EnvironmentGravatar Laurent Le Brun2016-10-27
| | | | | | | | | Other fields will follow (is_skylark, phase, callerLabel). The goal is to make Environment (and more generally Skylark) less dependent on Bazel. -- MOS_MIGRATED_REVID=137386248
* Refactor exception handling in SandboxStrategy.Gravatar Philipp Wollermann2016-10-27
| | | | | -- MOS_MIGRATED_REVID=137370890
* Don't let input discovery add module files as inputs if we aren't actuallyGravatar Googler2016-10-27
| | | | | | | building with modules. -- MOS_MIGRATED_REVID=137368548
* Move (Bazel)TestSuiteRule to rules.test and drop the Bazel prefix.Gravatar Ulf Adams2016-10-27
| | | | | -- MOS_MIGRATED_REVID=137365338
* Subtract resource-related provider values defined in avoid_deps from depsGravatar Chris Parsons2016-10-27
| | | | | -- MOS_MIGRATED_REVID=137329481
* Add missing parameter to open(path, flags) call in CreateEmptyFile in ↵Gravatar Luis Fernando Pino Duque2016-10-27
| | | | | | | blaze_util_test. According to the man page of open, when O_CREAT is specified in flags then an extra parameter (t_mode mode) must be present too. -- MOS_MIGRATED_REVID=137314830
* Dedupe Jar files produced for Android binary targets for desugaring purposes.Gravatar Googler2016-10-27
| | | | | -- MOS_MIGRATED_REVID=137305868
* Improve error message when failing to convert parameter types in Skylark ↵Gravatar Carmi Grushko2016-10-27
| | | | | | | function calls. -- MOS_MIGRATED_REVID=137303042
* Integration tests for RepositoryCache.Gravatar Jingwen Chen2016-10-27
| | | | | | | | | | | Remaining TODOs: - Lockfiles for concurrent operations in the cache. GITHUB: #1752 -- MOS_MIGRATED_REVID=137296606
* Implementation of the Repository Cache get and put features. Gravatar Jingwen Chen2016-10-27
| | | | | | | | | | | | | | This is a basic implementation of writing and reading HttpDownloader download artifacts, keyed by the artifact's SHA256 checksum. For an artifact to be cached, its SHA256 value needs to be specified in the rule. Rules supported: http_archive, new_http_archive, http_file, http_jar, Remaining TODOs: - Lockfiles for concurrent operations in the cache. - Integration testing GITHUB: #1752 -- MOS_MIGRATED_REVID=137289206
* VFS: PathFragment is no longer aware of MSYS pathsGravatar Laszlo Csomor2016-10-27
| | | | | | | | | | | | | PathFragment no longer parses "/c/foo" as "C:/foo" on Windows, but as a driveletter-less absolute path. If such a PathFragment is used in creating a Path object, the WindowsPath.translatePath method will translate it correctly. Fixes https://github.com/bazelbuild/bazel/issues/1994 -- MOS_MIGRATED_REVID=137283176
* Flip the order of recursive ForkJoinTasks generated during parallel allrdeps ↵Gravatar Nathan Harmata2016-10-27
| | | | | | | evaluation: put the outputting of targets before the recursive visitation. Since ForkJoinTasks are fork'd in order, the new order optimizes for throughput to the underlying Callback. -- MOS_MIGRATED_REVID=137281325
* "bazel clean": prevent creation of command.logGravatar Laszlo Csomor2016-10-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Open files cannot be deleted on Windows, thus `bazel clean --expunge` fails when it attemps to delete the `command.log` that stdout/stderr is tee'd into, and so does BlazeCommandDispatcher when it attemps to delete the `command.log` just before dispatching to the command implementation (not just `clean` but any command). This change: - closes `command.log` before we attempt to delete it - marks CleanCommand (through the Command annotation) as one that should not write to the command.log, thus we don't create a new instance of the file This change allows `bazel clean --expunge` to delete everything in the output base, with the exception of `jvm.log`. Unfortunately that file is opened by the C++ bazel client process, so we have to close it there prior to sending the clean to the bazel server. See https://github.com/bazelbuild/bazel/issues/1586 -- MOS_MIGRATED_REVID=137278553
* stop passing BuildConfiguration to CppCompileActionGravatar Thiago Farina2016-10-27
| | | | | | | | | | | This fixes Ulf's TODO by adding fields for the local shell environment and code coverage and as stated on it accessing anything other than these fields can impact correctness. -- Change-Id: I9ccebaa0bc8ed920e2941b3d156692cb1e0fe117 Reviewed-on: https://bazel-review.googlesource.com/c/6870/ MOS_MIGRATED_REVID=137275206
* Report completion of a target together with failed actionsGravatar Klaus Aehlig2016-10-27
| | | | | | | | | | | | | | | | Report the completion of all targets together with the root causes on the build event stream. To do so, have TargetCompleteEvent and ActionExecutedEvent be instances of BuildEvent; however, ignore an ActionExecutedEvent in the BuildEventStreamer if the execution was successful. By this change we get, for the first time, a build event stream that is naturally closed, i.e., without Aborted events closing up lose ends. Add a test asserting this property. -- Change-Id: Ie90dd52ee80deb0fdabdce1da551935522880a1a Reviewed-on: https://bazel-review.googlesource.com/#/c/6279 MOS_MIGRATED_REVID=137273002
* Cleanup: remove isSkylark in Environment ContinuationGravatar Laurent Le Brun2016-10-27
| | | | | -- MOS_MIGRATED_REVID=137272887
* Fix a few issues that prevented Bazel from building with Java 7.Gravatar Lukacs Berki2016-10-27
| | | | | -- MOS_MIGRATED_REVID=137269807
* Clarify how startup options are conveyed between the client and the server.Gravatar Lukacs Berki2016-10-27
| | | | | -- MOS_MIGRATED_REVID=137266505
* Cleanup in Environment, remove unused lookup functionGravatar Laurent Le Brun2016-10-27
| | | | | -- MOS_MIGRATED_REVID=137266170
* Create a separate module for .proto.h files. Together with modules pruning,Gravatar Googler2016-10-27
| | | | | | | | this allows reaping some of the benefits of .proto.h files even without completely disabling .pb.h files. -- MOS_MIGRATED_REVID=137261686
* Cleanup in the parserGravatar Laurent Le Brun2016-10-26
| | | | | | | | | | - Move break/continue check from ValidationEnvironment to the Parser - Remove some differences between BUILD / Skylark parsing mode - Fix location off-by-one error in the break/continue tokens - Remove duplicated error message ('for loops are not allowed on top-level') -- MOS_MIGRATED_REVID=137259929
* Fix uses of LocalRepositoryLookupFunction to work with JDK7.Gravatar John Cater2016-10-26
| | | | | -- MOS_MIGRATED_REVID=137257525
* Refactor: extract anonymous classesGravatar Laszlo Csomor2016-10-26
| | | | | | | | | | | | | | | | | | | AbstractFileSystem.getFile{Input,Output}Stream created anonymous File{Input,Output}Stream objects. These hold a reference to the outer class instance (AbstractFileSystem). This may prevent memory release in case the returned objects are kept around even if the AbstractFileSystem instance could otherwise be released. This particular refactoring is unlikely to have caught any memory leaks like this, so it's not really necessary, but I came across it and thought it won't hurt and will future-prove the class against such leaks. -- MOS_MIGRATED_REVID=137254192
* Merge all jars in AAR in aar_import, not just classes.jarGravatar Adam Michael2016-10-26
| | | | | | | See https://github.com/bazelbuild/bazel/issues/1935 -- MOS_MIGRATED_REVID=137202533
* bazel query --output=xml: avoid iterating over all possible values forGravatar Greg Estren2016-10-26
| | | | | | | | attr = select({"a": LABEL_LIST, "b": LABEL_LIST, ...}). This can be exponential (w.r.t. the # of select conditions) and produce OOMs. -- MOS_MIGRATED_REVID=137200979