| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
RELNOTES: none
PiperOrigin-RevId: 160467549
|
|
|
|
|
|
|
|
|
|
|
| |
This rule works with the android_instrumentation, android_device_script_fixture and android_host_service_fixture rules to support testing Android applications.
None of these rules are installed yet, because the forthcoming Android test runner is not yet open sourced.
https://github.com/bazelbuild/bazel/issues/903.
RELNOTES: None
PiperOrigin-RevId: 160465920
|
|
|
|
|
| |
RELNOTES: None
PiperOrigin-RevId: 160461708
|
|
|
|
|
|
|
|
|
|
| |
A common need is to limit access to a rule or feature - restricting
a feature which is being deprecated or controlling the rollout of a new
feature. This change adds the feature_control_policy flag, which allows
developers to easily manage this process.
RELNOTES: None.
PiperOrigin-RevId: 160454166
|
|
|
|
|
|
|
| |
then we use pop2 to pop the value out of the stack.
RELNOTES: None
PiperOrigin-RevId: 160453904
|
|
|
|
|
| |
RELNOTES: None
PiperOrigin-RevId: 160445869
|
|
|
|
|
|
|
| |
parity with the cc_ rules.
RELNOTES:None.
PiperOrigin-RevId: 160438691
|
|
|
|
|
|
|
|
|
| |
*) Changed the GenerateRobolectricResourceSymbolsAction to merge duplicate namespaces from the dependency list input.
*) RClassGenerator throws if an existing R.class file exists for that package.
*) New test for duplicate package dependencies
RELNOTES: none
PiperOrigin-RevId: 160436937
|
|
|
|
| |
PiperOrigin-RevId: 160427360
|
|
|
|
|
|
|
|
|
| |
The correct dependency is on @bazel_tools//tools/objc:header_scanner, and this is determined by configuration value.
I have manually verified this fixes https://github.com/bazelbuild/bazel/issues/2723 . Ultimately we will want to follow up and write a regression test for rdeps functioning, but that is significantly harder than this quick fix.
RELNOTES: None.
PiperOrigin-RevId: 160424016
|
|
|
|
|
|
|
|
|
|
| |
Commit 1e0628d18c2e3defaddd935ffb41edbf3ef40339 marked the build_event_*_file
options as no longer experimental and adapted the corresponding tests to use the
new option name; while doing so, accidentally too many uses of the word experimental
were removed. Fix this.
Change-Id: I817ea2bc848085f8ba4930b87b54942935e69325
PiperOrigin-RevId: 160417058
|
|
|
|
|
|
|
|
| |
* Split the aar, library and binary packWith calls.
* Remove unused argument from the new binary and library packWith calls.
RELNOTES: None
PiperOrigin-RevId: 160414867
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
initializers. The problem is that when we desugar default methods, the static
intializer of interface will not be executed. The JVM spec says that if an
interface has default methods, then when it is loaded, it will also be
initialized. After we desugar such an interface, its default methods are
removed, and when we load the interface, the <clinit> will not be executed.
This CL checks whether an interface has default methods and fields. If yes (needs to be initialized when the interface is loaded), it injects field access code
to access the interface fields in the <clinit> of the companion class.
We also create a constant $$CONSTANT$$ in the companion class.
Then for all the classes that implement the interface, we inject GETSTATIC in the class <clinit> to the $$CONSTANT$$ of the companion class of the interface. This indirection is to avoid the IllegalAccessError when the interface is package private.
Note that accessing an arbitrary interface field does not guarantee the
interface will be initialized. We need to access the field that is initialized
in the interface static initializer.
RELNOTES: None
PiperOrigin-RevId: 160414671
|
|
|
|
|
|
| |
Happy dance \o/
PiperOrigin-RevId: 160412092
|
|
|
|
|
|
|
|
|
|
| |
The build event stream reports about events during the build, so
it is logging (in a broad sense). The idividual options affect where
we (remotely) log to, how eager we do it, etc. So they affect where
the output (of the logging) goes to.
RELNOTES: None
PiperOrigin-RevId: 160409925
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the Windows JNI C++ sources to a separate
package and separate namespace.
This no-op refactoring allows other build rules
than Bazel's client library to depend on file I/O
and/or JNI functionality.
A follow-up commit will split the
//src/main/native/windows:processes library into
:jni-processes and :jni-file.
Change-Id: I33c5f8ebd8961cc440db3b4a95ff78024d7c1d74
PiperOrigin-RevId: 160404298
|
|
|
|
|
|
|
|
| |
Reflect this by renaming the options appropriately. While
there, also add categories to those options.
RELNOTES: writing build events to a file is no longer experimental
PiperOrigin-RevId: 160400332
|
|
|
|
|
|
|
| |
This is for debugging https://github.com/bazelbuild/bazel/issues/3273
Change-Id: I84e260ae1a22147fed0cffc2960352c77af2cf58
PiperOrigin-RevId: 160399209
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
test-setup.sh currently uses the test target name as the "name"
attribute in the xml output's "testcase" element. This ensures names
in the xml are unique across the workspace for unsharded
tests. However, sharded tests all end up with the same "name"
attribute. This angers some junitxml processing tools, which can be
quite persnickity about uniqueness. Let's generate unique test names
of the form "mytest_shard_N/M" for sharded tests.
Change-Id: I6ea82f56846b88449da977dc6629a73b695a485e
PiperOrigin-RevId: 160397341
|
|
|
|
|
|
|
|
|
| |
The file was accidentally not marked as executable and thus couldn't run as a test.
RELNOTES: None.
Change-Id: I527717c9a03bcffdf0b6e341773f54826f2ce48f
PiperOrigin-RevId: 160394033
|
|
|
|
|
| |
Change-Id: I0824332896b776e8296608a6b831abba33697845
PiperOrigin-RevId: 160390320
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We are currently tracking the action environment (computed from --action_env),
and the test action environment (computed from --test_env, and not including
the action env) as two pairs of fields, and a lot of callers haven't been
updated to handle both parts (TestRunnerAction does, but many 'normal' actions
don't). However, both parts have always both be handled, and moving them into
a single abstraction makes it harder to accidentally miss one part.
We'll subsequently need to update all the action implementations to use the
new abstraction, and also update the Skylark API (or bypass it and always apply
the action environment for all actions, except we don't know which
configuration to use).
PiperOrigin-RevId: 160386181
|
|
|
|
|
|
|
|
|
|
|
|
| |
While a sentence like "bazel ran out of memory and crashed" should be
human-readable enough, it seems that users often only scan for the word
ERROR in the output and assume everything is fine, if it doesn't occur.
Things get worse, if that procedure is scripted. While these kind of behaviors
should be discouraged, mitigate the consequences by providing mainstream error
messages.
Change-Id: I5a032360881c53575bfbd37a471b96933622d3c5
PiperOrigin-RevId: 160385223
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The android_sdk_repository now uses the native
Android build tools (e.g. aapt.exe, aidl.exe) when
--host_cpu is one of x64_windows{,_msys,_msvc}.
On Linux/MacOS we create a wrapper script for
these tools and data-depend on
SDK/build-tools/VERSION/lib/*, but on Windows we
have no runfiles support and Bazel just creates a
junction to SDK/build-tools, so all the actual
tools are there where the binaries expect them.
Also change the ":fail" target to select srcs on
the host platform and use a .cmd file on Windows.
See https://github.com/bazelbuild/bazel/issues/3264
Change-Id: Ica586fa1fd4914f4795b4387b449f1c5562164e0
PiperOrigin-RevId: 160383278
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
And for new_XX_repository rules, add BUILD and WORKSPACE file into
markerData.
In markerData, key starting with FILE: can be an absolute label or an
absoulte path, but the latter one will be depracated in future.
Fixed https://github.com/bazelbuild/bazel/issues/3093
Change-Id: Ic3e16c123b3f1f781ab12c41d13f5e540b05686c
PiperOrigin-RevId: 160382024
|
|
|
|
| |
PiperOrigin-RevId: 160378726
|
|
|
|
| |
PiperOrigin-RevId: 160373741
|
|
|
|
|
|
|
|
| |
types when running query output. Instead, simply return a list of list types, each list type being the concatenation of each of the possible outputs in each select.
RELNOTES:
Make querying attributes formed by selector lists of list types more efficient by no longer listing every possible combination of attribute value but by more compactly storing the possible values of the list.
PiperOrigin-RevId: 160326041
|
|
|
|
|
|
|
| |
This lets us change what it expands based on the argument passed to the flag.
RELNOTES: Allows flags that expand to take values.
PiperOrigin-RevId: 160298412
|
|
|
|
|
|
|
| |
This target is not actually generated by generate_workspace.
Change-Id: Idcaa138bf56021b281138d60a06befa8c9579b1d
PiperOrigin-RevId: 160295136
|
|
|
|
|
|
| |
Leave the category for now as the generated docs still do not use the new categorization.
PiperOrigin-RevId: 160290297
|
|
|
|
| |
PiperOrigin-RevId: 160285362
|
|
|
|
|
|
|
| |
This can be used to canonically compare ASTs for equality, e.g. in tests.
RELNOTES: None
PiperOrigin-RevId: 160283160
|
|
|
|
|
|
|
|
| |
Move the default from the annotation to every mention. This makes the incompleteness explicit. Will add the defaults to test targets in a separate change.
Once all dependencies are cleaned up, the Option annotation will no longer allow options without the documentationCategory or effectTag, to prevent new options being added without categories while we migrate to the new option categorization.
PiperOrigin-RevId: 160281252
|
|
|
|
|
|
|
|
|
|
| |
The new doc website has a new URL structure. This change adapts the page extraction code.
It also restores the CSS for the edit button which got deleted during refactoring.
Fix #3272
RELNOTES: None
PiperOrigin-RevId: 160279009
|
|
|
|
|
|
|
| |
Those may occur, e.g., if the target is simply a source file.
Change-Id: Ia64c54e8543dd93712b00428c443922c67e2b6cd
PiperOrigin-RevId: 160278149
|
|
|
|
|
|
|
|
| |
I found it confusing how to create a test rule with a different default size and had to dig through a lot of example code to figure this out. This pull request adds and example to the docs.
Closes #3233.
PiperOrigin-RevId: 160276727
|
|
|
|
|
|
|
| |
This simplifies parsing a lone statement or expression in unit tests.
RELNOTES: None
PiperOrigin-RevId: 160276410
|
|
|
|
|
| |
RELNOTES: None.
PiperOrigin-RevId: 160273273
|
|
|
|
|
|
|
|
|
|
|
| |
While fixing its TODO.
Tested with the following command line:
$ bazel test //src/test/cpp/...
Change-Id: I62d5d0f19b7242fd2eeae7901e1e236c782ebfb5
PiperOrigin-RevId: 160270960
|
|
|
|
|
|
|
|
| |
Invlaid -> Invalid
Closes #3119.
PiperOrigin-RevId: 160270924
|
|
|
|
|
|
|
| |
The size of a test is a relevant property of a test target. Report it.
Change-Id: Ia529a11f4a6920bca7d233e3493640d319cca5ae
PiperOrigin-RevId: 160268370
|
|
|
|
|
| |
RELNOTES: None.
PiperOrigin-RevId: 160267763
|
|
|
|
|
|
|
| |
RELNOTES: Bazel's remote_worker backend for remote execution supports sandboxing on Linux now. Check https://github.com/bazelbuild/bazel/blob/master/src/tools/remote_worker/README.md for details.
Change-Id: I918b0291472c8c7d4884850d9ca0f03674ef2f31
PiperOrigin-RevId: 160266742
|
|
|
|
|
|
|
| |
This unifies unary minus with NotExpression, and moves the minus logic from a fake builtin function into the interpreter proper.
RELNOTES: None
PiperOrigin-RevId: 160266266
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Baseline: e78ad83ded6e9c6d639793827e27b6570e6e9f65
Cherry picks:
+ 68028317c1d3d831a24f90e2b25d1410ce045c54:
experimental UI: move stopUpdateThread() out of synchronized,
again
+ 019935dfbb61e61d08d1351b0365fb4e2d0df305:
Fix bug in URI computation in RemoteModule
+ e9424cf9b9d72b98594966d5ac0f15bb018ec639:
Automated rollback of commit
7dec00574aa91327693f6ba7e90bff5bc834253e.
+ 9eea05d068a06ab642dd9d86d46ee5fa2e36b02e:
Switching to Watcher API instead of wait_for_completion, in
preparation for deprecating the wait_for_completion field.
+ 89659810e3048782dfb5e308e39aa8a0727e464e:
Set correct execroot for info
+ 716b527266f47f59a2b7fb2e5fc52cb45e1691b1:
Only create a single per-build instance of the remote cache /
executor
+ 1d82d199f82409f217a42bcefebb96f723f91caa:
protobuf: Update protobuf jars to be binary compatible with Java
6. Fixes #3198
+ 524b90d9e5acc4fa568f215c9415eaa902e979f8:
Change CAS URI to use the "bytestream" scheme instead of being
scheme-less
+ 4929ad79865f8c13ef3b33c827040f4a037e4afe:
Automated g4 rollback of commit
923d7df521f67d031b288180560848bd35e20976.
+ 68b9a7e2dc17e32b194238d287e79bee1ba035b9:
Automated g4 rollback of commit
da56606563ee9df438db93392f681bf2abb4ac97.
+ 2ba693ffbe824136a0ca5f47d34710612f6302c3:
Automated rollback of commit
ce7c4deda60a307bba5f0c9421738e2a375cf44e.
Incompatible changes:
- Blaze no longer generates xcode projects. Use tulsi.bazel.build
instead.
Important changes:
- Keyword-only syntax in a function definition is deprecated
(e.g. `def foo(a, *, b)` or `def foo(a, *b, c)`) and will be
removed in the future.
- Attempting to build an Android target without setting up
android_sdk_repository will now produce a helpful error message.
- Adds a sha256 attribute to git_repository and new_git_repository.
This can only be used if the remote is a public GitHub
repository. It forces
Bazel to download the repository as a tarball, which will often
be faster and
more robust than cloning it.
- Sandboxing is now enabled by default on FreeBSD (via
processwrapper-sandbox).
- android_test may use manifest placeholders with 'manifest_merger
= "android"'.
- load() statements should be called at the top of .bzl files,
before any
other statement. This convention will be enforced in the future.
- Effectively remove sysroot from CppConfiguration and allow it to
use select statements.
- proto_library.strict_proto_deps no longer exists.
- Flag --explicit_jre_deps is now a noop.
- The 'legacy' Android manifest merger is deprecated. Please
upgrade to the 'android' manifest merger, which is the same
merger used by Gradle.
https://developer.android.com/studio/build/manifest-merge.html
- Using $(CC_FLAGS) in a GenRule adds a dependency to the c++
toolchain
- add one-version enforcement to android_local_test
- Skylark support (apple_common.dotted_version(string)) for
building DottedVersion objects to interface with native apple
rules
- CC_FLAGS can be defined using 'cc-flags-make-variable' action_config in
CROSSTOOL
- ios_framework native rule has been removed. This rule had been
essentially broken for several months now; users should be using
the skylark ios framework rule.
https://github.com/bazelbuild/rules_apple has details.
- Clean command no longer uses boolean values for --async,
--expunge, and --expunge_async options.
- Partially fixes external J2ObjC support.
- '--aspects' can occur more than once on the command line.
- --no_ prefix no longer recognized.
- Use action_config in crosstool for static library archiving,
remove ar_flag.
- Added a new flag --sandbox_writable_path, which asks the sandbox
to
make an existing directory writable when running actions.
- bazel test now also computes a default instrumentation filter if
--collect_code_coverage is enabled
- n/na
- In .bzl files, top-level `if` statements are deprecated and will
be forbidden
in the future. Move them in a function body instead (or use a
conditional
expression instead: `x if condition else y`).
- ios_device and ios_test are deprecated. Please use the new testing
rules in https://github.com/bazelbuild/rules_apple instead.
- bazel query --output package now displays packages from external
repository with the format "@reponame//package". Packages in the
main repository continue to have the format "package".
- ctx.expand_make_variables is deprecated.
- Bazel posts links to the CAS to the BEP if remote caching /
execution is enabled
- `bazel info execution_root` returns the corrrect directory name
for the execution root.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a better location and tools/cpp is packaged in embedded_tools that make the test ends-up in embedded_tools, which is requiring network access
to build embedded_tools!
Side-effect: have to correctly mock the bazel workspace file on a couple
of tests.
This is blocking on https://bazel-review.googlesource.com/c/12350/
PiperOrigin-RevId: 160265524
|
|
|
|
|
|
|
|
|
|
| |
The Python integration tests will now print the
stderr if the inner Bazel failed.
This should help diagnosing test failures on CI.
Change-Id: I138c1a6327cc263ba6a6e2c720c39ec5d4858d87
PiperOrigin-RevId: 160265298
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Connection pooling is a useful optimization for REST caches that are
far away as it avoids constantly redoing the TCP handshake. It also
prevents large builds from exhausting the local interface's source
ports through tens of thousands of one-transaction connections.
The default connection pool size of 20 is fairly arbitrary. Users
probably want to set this to something close to the value of --jobs.
We introduce some generic infrastructure for closing remote cache
instances and use it to cleanly shutdown the connection pool between
builds.
Change-Id: I73adc29ecae15cc10a1217ffbaa483892bcd4f9a
PiperOrigin-RevId: 160264681
|
|
|
|
|
| |
RELNOTES: None.
PiperOrigin-RevId: 160264501
|