| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
Causes crash bug in certain circumstances.
*** Original change description ***
Implement dynamically configured LIPO builds.
Quick overview:
- provide a dynamic interface for getting the artifact owner
configuration
- provide a (dynamic) RuleTransitionFactory LIPO_ON_DEMAND to replace
the (static) RuleClass.Configurator LIPO_ON_DEMAND. Eventually
we'll remove the rule class configurator interface entirely.
This doesn't actually turn dynamic LIPO on. So the direct effect of
this change should be a no-op. The flip will come in a followup
change. For now, dynamic...
PiperOrigin-RevId: 156180015
|
|
|
|
|
|
|
| |
computing TransitiveTraversalValues.
RELNOTES: None
PiperOrigin-RevId: 156138657
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
Some of the work supporting this is being rolled back due to uncaught crash bugs.
*** Original change description ***
Enable dynamic configurations for all builds.
PiperOrigin-RevId: 156122472
|
|
|
|
|
|
|
|
|
|
|
| |
implementation.
A first step towards applying the same memory optimizations we do for
native provider representation to Skylark providers (declared and
legacy).
RELNOTES: None.
PiperOrigin-RevId: 156111749
|
|
|
|
| |
PiperOrigin-RevId: 156092500
|
|
|
|
|
|
| |
as part of the startup arguments.
PiperOrigin-RevId: 156090009
|
|
|
|
|
| |
RELNOTES: None
PiperOrigin-RevId: 156088073
|
|
|
|
| |
PiperOrigin-RevId: 156086443
|
|
|
|
|
|
|
| |
One step towards https://github.com/bazelbuild/bazel/issues/1272.
RELNOTES: None
PiperOrigin-RevId: 156086120
|
|
|
|
|
|
| |
The argument strings and artifacts were both transitive and flattened, causing O(N^2) memory consumption.
PiperOrigin-RevId: 156083738
|
|
|
|
|
|
|
| |
One step towards https://github.com/bazelbuild/bazel/issues/1272.
RELNOTES: None
PiperOrigin-RevId: 156082858
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Aapt used to require resource locale qualifiers with regions of the form
'en_US', rather than the correct Android 'en-rUS'. The resource qualifier
processing code used by ResourceFilter cannot handle the (incorrect) Aapt
format.
However, for backwards compatability, we want to continue supporting the Aapt
format. Handle it by using a regex to replace the old format with the correct
format when parsing.
RELNOTES: none
PiperOrigin-RevId: 156072395
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
Likely cause for b/38172480 ("blaze now waits for all processes spawned by local tests to terminate") and b/38194553 ("Server terminated abruptly (error code: 14, error message: 'Endpoint read failed'").
I have a fix almost ready, but it consists of many lines of new code - we shouldn't rush that into Bazel's 0.5.0 release. Instead, let's roll this back, do a release using the known good older process-wrapper and then go forward in 0.5.1 with a better and well tested new version of this.
*** Original change description ***
process-wrapper: Wait for all (grand)children before exiting.
This uses Linux's PR_SET_CHILD_SUBREAPER and FreeBSD's PROC_REAP_ACQUIRE features to become an init-like process for all (grand)children spawned by process-wrapper, which allows us to a) kill them reliably and then b) wait for them reliably. Before this change, we only killed the main child, waited for it, then fired off a kill -9 on the process group, without waiting for it. This led to a race condition where Bazel would try to use...
***
PiperOrigin-RevId: 156068188
|
|
|
|
|
|
|
| |
* isShellCommand is now passed directly to SpawnAction
* Getting the associated params file action was a test-only thing. We can pull this out of the action graph instead.
PiperOrigin-RevId: 156060366
|
|
|
|
|
|
|
|
|
|
| |
* Cleanup ForClause and IfClause to be static classes
* Add missing/non-visible accessors and constructors
* Make use of final modifiers more consistent
* Make LValue an ASTNode.
RELNOTES: None
PiperOrigin-RevId: 156050683
|
|
|
|
| |
PiperOrigin-RevId: 156046860
|
|
|
|
|
| |
RELNOTES: None.
PiperOrigin-RevId: 156039435
|
|
|
|
|
|
|
|
| |
By removing the now unnecessary call to Path#resolveSymbolicLinks we can save a
few stat's per action execution.
Change-Id: Iee157e941c1cd3515ff5ea3b7f410824c24cf44d
PiperOrigin-RevId: 155946544
|
|
|
|
|
|
|
|
|
|
| |
BinTools.getExecPath() returns an execroot-relative path, which should
be usable in a spawn as-is. Absolutizing it is unnecessary. Using a
relative path also prevents the execroot from getting into the action
key for runfiles building actions.
Change-Id: Ie04d1bac841e41679d97064dc6ac1f0561a21eef
PiperOrigin-RevId: 155914912
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is basically a rollback of https://github.com/bazelbuild/bazel/commit/3e2329a73ffd5d60e5e2babe60ebe5bf322c07da, except this solves the
reason why the feature was removed in the first place. We now create
the helper files necessary to make files unreadable in Linux in Bazel's
Java code and manage their lifetime there.
Request was filed by a user here:
http://stackoverflow.com/questions/43849651/how-to-lock-down-the-bazel-filesystem-sandbox
PiperOrigin-RevId: 155913246
|
|
|
|
|
| |
RELNOTES: proto_library.strict_proto_deps no longer exists.
PiperOrigin-RevId: 155900531
|
|
|
|
| |
PiperOrigin-RevId: 155900259
|
|
|
|
|
|
|
| |
Add a flag that determines the aspects use for MIv2.
RELNOTES:None.
PiperOrigin-RevId: 155899777
|
|
|
|
|
| |
Change-Id: Ia52040b0924a61cd83b016b652b4bfb0198ea422
PiperOrigin-RevId: 155878393
|
|
|
|
| |
PiperOrigin-RevId: 155871926
|
|
|
|
|
|
|
|
| |
Since commit 1977d92e17e6: ("Various cleanups and refactorings in the client:"),
StartServer() does not return a file descriptor anymore.
Change-Id: I920240d3aed5f16077bf9f046522b65664319947
PiperOrigin-RevId: 155871851
|
|
|
|
|
|
| |
Progress on the java sandwich #2614 in an effort to make the Java compilation exposed to Skylark as similar as possible to java_library's API.
PiperOrigin-RevId: 155861145
|
|
|
|
|
|
|
|
|
|
|
| |
While builds usually finish in a single day, for console logs (especially
those collected on a CI system) it is still useful to know the date they
where collected on. So, if --show_timestamps is given, show a line with the
current date at the beginning of the build to not lose the information due to
the shorter time stamps, compare #2989.
Change-Id: Ief2ae011cdb4de7ac5d5a9acd4d200913220b2a3
PiperOrigin-RevId: 155859302
|
|
|
|
|
|
|
|
| |
When uploading of the BES protocol fails, bazel exits with
ExitCode.PUBLISH_ERROR.
RELNOTES: None.
PiperOrigin-RevId: 155856981
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
Rolling forward after fixing issues in http://b/38171368
*** Original change description ***
Automated g4 rollback of commit 006a80425e7dd521634c5735d2730f40e9e82e06.
*** Reason for rollback ***
Need to roll this back as part of http://b/38171368
*** Original change description ***
Make the cc_toolchain libc_top use the target configuration
The removes redundancy from the logic around calculating the sysroot (and was been a TODO since 2014!)
RELNOTES: None
PiperOrigin-RevId: 155787049
|
|
|
|
| |
PiperOrigin-RevId: 155759880
|
|
|
|
|
|
|
|
|
| |
As JSON is a widely supported format, also add a transport writing
the build events in JSON format. This will allow more tools to get
status reports about builds.
Change-Id: I7e5901cc65d927b93c8fc9bcd2d2baa7e707f09e
PiperOrigin-RevId: 155750964
|
|
|
|
|
|
|
|
|
|
| |
This is so that there is as little room for undesired behavior (e.g.
deadlocks), which can happen when multi-threaded programs fork if the code is
not written *very* carefully. See the comment before ExecuteDaemon() in
blaze_util_posix.cc for an detailed treatise on the matter.
RELNOTES: None.
PiperOrigin-RevId: 155750707
|
|
|
|
|
|
|
| |
Reduces the number of special cases (all rule class initialization is now done in a rule set).
RELNOTES: None.
PiperOrigin-RevId: 155747874
|
|
|
|
|
|
|
|
|
|
|
| |
While sending chunks of stdout/stderr when a progress event is sent anyway
is a good idea, we cannot entirely rely on this, as the amount of information
buffered might grow too big. So set a fixed limit after which we flush out
stdout and stderr; nevertheless, we still make sure we send buffers that were
given to us in a single call to write in one go.
Change-Id: Ie27bcf7d50671e003babd13cdb1d3f7fc1cb232f
PiperOrigin-RevId: 155736641
|
|
|
|
| |
PiperOrigin-RevId: 155694743
|
|
|
|
| |
PiperOrigin-RevId: 155685189
|
|
|
|
| |
PiperOrigin-RevId: 155673495
|
|
|
|
|
| |
RELNOTES: None
PiperOrigin-RevId: 155665128
|
|
|
|
|
|
|
| |
This provider should be constructed by the skylark ios_framework rule and passed to apple_binary via the "dylibs" attribute.
RELNOTES: None.
PiperOrigin-RevId: 155658524
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
Fixes memory issue that caused this CL to be rolled back.
*** Original change description ***
Automated g4 rollback of commit cbbb423663b154d82e3dfa5e9a56839583987999.
*** Reason for rollback ***
Need to roll this back as part of http://b/38171368
*** Original change description ***
RELNOTES: Effectively remove sysroot from CppConfiguration and allow it to use select statements.
PiperOrigin-RevId: 155651879
|
|
|
|
|
|
|
|
|
| |
This disallows to have any statement in a .bzl file before a load() statement.
RELNOTES:
load() statements should be called at the top of .bzl files, before any
other statement. This convention will be enforced in the future.
PiperOrigin-RevId: 155636719
|
|
|
|
|
| |
RELNOTES: None.
PiperOrigin-RevId: 155634838
|
|
|
|
|
|
|
|
|
|
|
|
| |
The new interface mirrors ActionExecutionContext, but is restricted to exactly
the parts used right now. I did consider using ActionExecutionContext, but it
contains some parts that we don't want to make available for cache hits.
The end goal is to allow the build event stream access to artifact metadata,
in particular for TestResult and TestSummary events, which in turn requires
making artifact metadata available when the TestRunnerAction is a cache hit.
PiperOrigin-RevId: 155612573
|
|
|
|
|
|
|
|
|
| |
file and not the server.
This is so that the server does as few things as possible before exec() (preferably, nothing) so that we don't accidentally call malloc() which would make it possible to deadlock if the server spawned multiple threads before ExecuteDaemon().
RELNOTES: None.
PiperOrigin-RevId: 155603273
|
|
|
|
|
|
| |
child configurations are used in compilation.
PiperOrigin-RevId: 155564865
|
|
|
|
| |
PiperOrigin-RevId: 155562588
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
Need to roll this back as part of http://b/38171368
*** Original change description ***
RELNOTES: Effectively remove sysroot from CppConfiguration and allow it to use select statements.
PiperOrigin-RevId: 155547813
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
Need to roll this back as part of http://b/38171368
*** Original change description ***
Make the cc_toolchain libc_top use the target configuration
The removes redundancy from the logic around calculating the sysroot (and was been a TODO since 2014!)
RELNOTES: None
PiperOrigin-RevId: 155545887
|
|
|
|
|
|
|
| |
EvaluationProgressReceivers.
RELNOTES: None
PiperOrigin-RevId: 155542146
|