Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/oppia/bazel

a fast, scalable, multi-language and extensible build system
https://github.com/oppia/bazel

Refactor convenience symlink logic

This is in preparation for adding --experimental_create_py2_bin_symlink.

ExecutionTool:
- Move ...

07cc56d56dbda7ab94707a7e344d00d2450bdedb authored about 5 years ago
bazel syntax: relax depset element validity check to isImmutable

The nightly uncovered cases of depsets containing lists of strings,
which are Starlark-unhashabl...

bf1eaed356f3d0c2e3c130455f2f29f93de59891 authored about 5 years ago
Ensure that we never try to apply FDO settings when building tools.

PiperOrigin-RevId: 282363253

64972e628ff14cd64afab0c0682b91eee97ed6fc authored about 5 years ago
RunfilesSupport: remove the sources manifest

This is unused in Bazel, and it's ~trivial to create one where needed.

PiperOrigin-RevId: 28231...

fc287a3fda683f267ff586fdf45ca7ec06ffe316 authored about 5 years ago
Automated rollback of commit 5576269cba82578ee4e80c362b39d86e87c25780.

RELNOTES: None.
PiperOrigin-RevId: 282304056

f2cb3c69413c74569f19232f89a5f0e86d4f15ac authored about 5 years ago
bazel syntax: move Printer.{repr,str,format,formatWithList} to Starlark

These fundamental API operations belong in class Starlark.

Also, this prepares the way for rena...

b1e232d6f1d82494639660e8a2772ac7da7c5da8 authored about 5 years ago
Automated rollback of commit 87506825333846359462f37d92b6f7bd2119f109.

*** Reason for rollback ***

Now that we've redesigned how xcode versions are going to be select...

b3084cbcbe1468683075a20229d09b296d6cf080 authored about 5 years ago
bazel syntax: remove legacy dict constructors

All callers now pass an explicit Mutability.

This is a breaking change for copybara.

BEGIN_PUB...

6456fcb5c1775297cc5bfcf5e5de520cac381495 authored about 5 years ago
Implemented a new event called DiscoveredInputsEvent that gets posted if the action has discoveredInputs in the ActionExecutionFunction. The discovered inputs event was added to tell the CriticalPathComputer that it took n amount of time to go through the discover input phase and to categorize it at parse time.

With the introduction of this new event, the CriticalPathComponent is now created earlier in the...

c5e3bfe4f66794af54de622aae543245d2b11456 authored about 5 years ago
Move checking whether usages of proguard_apply_* attributes into existing validation method.

validateRuleContext() is renamed to validateContext().

PiperOrigin-RevId: 282020488

81fb43c8eaed8ac360f8792500675466e2bc63bc authored about 5 years ago
bazel syntax: reintroduce element validity check to depset contructor

Also, declare concrete subclasses of analysis.ConfiguredTarget as @Immutable,
and thus Starlark-...

13abce5ddd447a7b691f758d0f1e4c13c5920e20 authored about 5 years ago
bazel: pass SkylarkType not Class to Depset.of where convenient

This CL addresses Artifact, Label, and String.
A few ad-hoc classes remain.

PiperOrigin-RevId: ...

1a6a5a1b4a85f61b9b335ba098a7d2e087c64649 authored about 5 years ago
bazel syntax: rationalize Depset constructors

This change renames the various functions formerly called 'of'.

Overloading is fine for two met...

ae586a0b77689717a77917ef4b5363bd1b93ac69 authored about 5 years ago
Move handling of experimental_nested_set_as_skykey_threshold to SkyframeExecutor.

PiperOrigin-RevId: 281963441

083c80bc5a40c38df57353c6b36510b795ee84b9 authored about 5 years ago
Invalidate the analysis cache if a starlark option changes.

Without this change it was possible for an action to be in the skyframe cache whose outputs' con...

5cfb0b36913427ae85b19334fefdba410a40a534 authored about 5 years ago
Fix lintian error "relative-conffile" in our Debian package.

Details: https://lintian.debian.org/tags/relative-conffile.html
PiperOrigin-RevId: 281945094

f828b4c77805ad0ea6afecef798aa69d68bec8d4 authored about 5 years ago
Only request grpc write when not complete

If a queryWriteStatus yields a committedSize which leaves no content
remaining to be uploaded, i...

cc2b3ecb9283ebdb297fc3fb6407f4697c850ac2 authored about 5 years ago
Upgrade java_tools to javac11-v7.0

Closes #10293.

PiperOrigin-RevId: 281939681

a6cd408876dd55c988a123af8237807bee549a5b authored about 5 years ago
Replace Artifact's exec_path with PathFragments.

There are many common substrings in exec_paths (e.g. bazel-out, ...). By
preserving the PathFrag...

5750faf78beb01503f132cc4e5d3095125fc3426 authored about 5 years ago
Bump the messages' ids from 0 to 1.

protobuf inteprets the value 0 as "default value" for uint64, thus treating the field as
"unset"...

5224a067494f7c493ea0b63c1c462eb5ca1b7a98 authored about 5 years ago
bazel syntax: remove element validity check from Depset builder used by Starlark

commit bbde22993476d5265baadba022be35852c5101d7 copied the element validity check used in the co...

dafd2345e0220e26ab85fe1bd0a104ee6b257ded authored about 5 years ago
Add TargetPattern.parseConstant(@CompileTimeConstant String) for constant patterns.

This function is permitted to throw a RuntimeException to facilitate its usage in
static initial...

b70e6361a179037756a0a255ce98085d2a21ae9f authored about 5 years ago
Remove "aapt_version" from Starlark API

Starlark rules will never support aapt1.

PiperOrigin-RevId: 281848849

e758563e5dccc775d5ad63f3d115e1c44e112bdf authored about 5 years ago
bazel syntax: rename SkylarkNestedSet to Depset

The new name matches the Bazel documentation, whereas
NestedSet is a Blaze internal. Also, it is...

d21a0d194b3e83ca585e466ed4f6a383776bfb76 authored about 5 years ago
bazel syntax: simplify SkylarkNestedSet type rules

Previously, StarlarkNestedSet would compute the "intersection"
of the existing type and the type...

bbde22993476d5265baadba022be35852c5101d7 authored about 5 years ago
bazel syntax: remove deprecated list constructors

- rename Sequence.createImmutable to StarlarkList.immutableCopyOf
- delete StarlarkList.of(Starl...

9257870bf9376ea2ca101e6bb160577f7114585b authored about 5 years ago
bazel syntax: disallow NestedSet return type in @SkylarkCallable methods

This change causes the processor for @SkylarkCallable annotations to disallow
a declared return ...

fb631cff6ea52d0b3757fb194104e6a1cfd5afe0 authored about 5 years ago
Refactor for readability improvements in AndroidDataContext.

* Convert lacksAllowlistExemptions() to hasExemption(). This eliminates one layer of boolean neg...

53ca395a9d91b828cbf2c82205a85849c608f8f1 authored over 5 years ago
Add missing full stop.

PiperOrigin-RevId: 281755163

e9bef0cf46a71039e45f797c98acc201e13ae602 authored over 5 years ago
Minor tidying of Package's rule lookup methods

Declare bankruptcy on Package#getRule(String)'s @VisibleForTesting, it might
have been true at s...

b6ce8b84dea9a77c2c8f779e2ea8a17072873609 authored over 5 years ago
Test remote execution and test.xml generation

Add a test case that verifies that --remote_download_toplevel works
for test actions that genera...

df7dd744d211ecd075cd60591f6d684bd4cbf72a authored over 5 years ago
Make "blaze test <alias target>" run the test.

In order to stay consistent, also fix the tests() query operator. Not binaries(), though: query ...

5576269cba82578ee4e80c362b39d86e87c25780 authored over 5 years ago
Upload docs for Bazel 1.2.0.

PiperOrigin-RevId: 281730301

80ea02819eaf1b878ba95afa126d3285c18d879e authored over 5 years ago
Update release process of apt repo

With the new release process, Bazel APT repo will now support
installing Bazel at a specific ver...

31627057454717d2216da0791969207569a1f423 authored over 5 years ago
Proto v2 for aquery proto output formats (--incompatible_proto_output_v2)

To try out this change, please include --incompatible_proto_output_v2 in your aquery invocation....

91bf399583f44b29391dcf97e6bb385ee604406e authored over 5 years ago
Automated rollback of commit 3be8bdbe44b2eee49c10e09e1f16c8851eb3959a.

*** Reason for rollback ***

Rolling back because it breaks head blaze. See yitingwang@'s commen...

b2c602f9160b6acc1aebcc7bff2f7fb8d7cc9e2b authored over 5 years ago
Add documentation on how to search for uses of a starlark macro.

RELNOTES: None
PiperOrigin-RevId: 281662573

b4e17d0f7594a1a0335e7930cd04772c40f82f15 authored over 5 years ago
Remove Package#name and Package#nameFragment

This removes room for them to diverge from the source of truth -
Package#packageIdentifier. Thes...

b3f54f673259604ea526c560d4abd144bd267295 authored over 5 years ago
Remove a usage of aapt1 when --incompatible_prohibit_aapt1 is specified

Bazel previously invoked both aapt1 and aapt2 separately to validate resources
from an android_l...

dbe76ceade3ea4561072fac9b4252b06293ee32a authored over 5 years ago
Add a --experimental_materialize_param_files_directly flag.

PiperOrigin-RevId: 281587580

52e607bcc7a04ae919312d0375e25e8a87bf1a83 authored over 5 years ago
Automated rollback of commit cfe70bbee566836538c0dff70d26376100657abf.

*** Reason for rollback ***

b/144763142

*** Original change description ***

A CriticalPathCom...

1f773baa5ad7938c13279419e94482a468970f47 authored over 5 years ago
Move Package#DEFAULT_{COMPATIBLE_WITH,RESTRICTED_TO}_ATTRIBUTE} to only use

No need to have them so far from where they're actually used. This removes some
clutter and ensu...

2b7e21db100bdc0bd319f37106ed3d9e7c8dbe74 authored over 5 years ago
Push remote upload consolidation into the Uploader when using --experimental_stream_log_file_uploads

PiperOrigin-RevId: 281536757

341ecd78051363be682eab3d41bdca1300583167 authored over 5 years ago
UI: report success if tests are flaky

Previously, Bazel reported failures if tests are flaky, even if the
overall status was a success...

4f0b710e2b935b4249e0bbf633f43628bbf93d7b authored over 5 years ago
Automated rollback of commit 83b70caca5952e75489b43cae21837c047a475af.

*** Reason for rollback ***

Broke some Python builds.

*** Original change description ***

Sym...

227822b047afcaf218e572d26206838531f38a13 authored over 5 years ago
Allow streaming remote upload to be sourced by an InputStream rather that a thread writing to an OutputStream. This is a pull mechanism.

PiperOrigin-RevId: 281514390

de93e8b7384aa556f1108ed6586ab594d22bca51 authored over 5 years ago
Release 1.2.0 (2019-11-20)

Baseline: 11deef7582dfeec7a04ee3f7236393d9b8027367

Cherry picks:

+ c76c3e539c73ecf6e96e3e09...

ef69db89d7b215216f82801a3b1177383157f73a authored over 5 years ago
Automated rollback of commit 88879d1d03dd3321240ec1969afc6b0aafb4538e.

*** Reason for rollback ***

Issue has been resolved.

*** Original change description ***

Temp...

4a0b2f7a25908000c39564e74170c576663cdac6 authored over 5 years ago
Support remote execution in repository_rule

Motivation:

This change adds support for running a command on a remote machine from a
repositor...

06a26c37126e3eefabd28c24a4e35059b5b136bc authored over 5 years ago
Use a statically created Comparator

PiperOrigin-RevId: 281465757

a617a901265b62bfdd41f762e589ce12b67a3b08 authored over 5 years ago
Symlink creation: pass symlinks to OutputService

This allows implementations of the OutputService to skip reading the
manifest file and instead u...

83b70caca5952e75489b43cae21837c047a475af authored over 5 years ago
Don't filter starlark flag resolution based on --build_tests_only and friends

Previously when --build_tests_only was passed alongside any starlark flag a crash would occur be...

8fd43cf2effa3c1727fb2fb63390d7db855dc5ad authored over 5 years ago
bazel syntax: assert validity of results from Java calls

Other than legal Starlark values, the implicit conversion to Starlark
now accepts only null, Lis...

084b64bc56806aa51c727ad88ea4cc0204a12074 authored over 5 years ago
Create --debug_depset_depth debug mode

This debug mode will throw an exception on Starlark invocations to the depset constructor when t...

9f2ba0abac1f445d72edd77d1ca3cb8f121a98b5 authored over 5 years ago
Remove --batch deprecation warnings

Recognize that there are valid use cases for --batch, but also that it's a
second-class one-off ...

d72eb8deabe6be6a1f7ec39269ec0c9d3ff9f0f8 authored over 5 years ago
Add --incompatible_remove_enabled_toolchain_types flag.

This removes the "enabled_toolchain_types" field on the platform
configuration fragment in Starl...

3385fd60072f2a0ea415087596308821d42bd552 authored over 5 years ago
Obey --incompatible_prohibit_aapt1 in host mode.

PiperOrigin-RevId: 281318734

387c610d09b99536f7f5b8ecb883d14ee6063fdd authored over 5 years ago
RunfilesSupport: remove the sources manifest

This is unused in Bazel, and it's ~trivial to create one where needed.

PiperOrigin-RevId: 28129...

3be8bdbe44b2eee49c10e09e1f16c8851eb3959a authored over 5 years ago
Make the formatting example more like the written text by adding an initial description.

RELNOTES: Make the formatting example more like to the written text by adding an initial descrip...

a087fb1fd84282c8902d2ca8df56e3980917d34d authored over 5 years ago
Fixed a bug with dirty node handling.

We used to share a single instance of ArtifactNestedSetValue among all the
NodeEntry for Artifac...

c2a6e114dc2145f29b624046f97dd1eb6d3c2f8d authored over 5 years ago
Symlink creation: simplify interfaces

- throw a higher-level exception so callers don't need to
- remove the enableRunfiles parameter ...

34328d597d568c87a53ae996f5a3fa3467157b6d authored over 5 years ago
Add interface and implementation that will allow the remote module

to inject remote execution functionality into repository_rule.

1) Introduce the RepositoryRemote...

df389d2aac1f11ab1359f1dd93423763eecffbb4 authored over 5 years ago
Fix some of the bazel Windows tools code to work with GCC.

This fixes bazel build failures on Windows when using MinGW GCC instead of MSVC for building C++...

dbe63b00954a25fa4405f7cbf273df78c16498dd authored over 5 years ago
Introduce remotable attribute to repository_rule

repository_rule gets a new attribute remotable=(True|False). Targets
of repository_rule get a ne...

755e29dfb21d7abfc2bab8dc30813fd5e340d930 authored over 5 years ago
Stream blaze JSON profile output via remote uploader with --experimental_stream_log_file_uploads. When enabled, we do not write the profile to disk at all.

RELNOTES: None
PiperOrigin-RevId: 281272627

d56de83681cc7ab3704cb866c38357631bea9a3f authored over 5 years ago
Implement parsing Ninja targets together with variable expanding.

Closes #10236.

PiperOrigin-RevId: 281270814

7693c3f3da68939430ab84d0c8dd2dfab9f5c356 authored over 5 years ago
Temporarily disable Bazel's proto test

This tries to download something from zlib.net, which is currently unavailable. So much for non-...

88879d1d03dd3321240ec1969afc6b0aafb4538e authored over 5 years ago
SymlinkTreeAction: require a Runfiles object

This is not particularly useful in itself, but updates the callers to
match the new expectation,...

e58d6023e1864a5a1aee9373d5d66819d5d3f106 authored over 5 years ago
cquery fragments: include outer class name for inner classes.

This disambiguates inner classes called "Options", for example:

https://github.com/bazelbuild/b...

9bc5f48c64c25e8cbbb6403acf4657e50d140d4a authored over 5 years ago
Fix error in bash syntax in bisect script.

Add a way to clean first in case the error being bisected is a failure in
incrementality.

Close...

6376dac52cf214e87979c19782bc744dc2d35421 authored over 5 years ago
Fail Java compile action when reduced classpath computation fails

A Java compile action may fail to compute a reduced classpath if one of
the jdeps files it tries...

9e30e80180bc3647f8160378194e6b8e40ff582d authored over 5 years ago
bazel syntax: tweaks to list and tuple

...to address review comments on commit ccdeeda22778df438e5f26d87b5d7fe61cd63f04:

- tests of li...

e7ce25a82b28bbb900a61f56fa1967cd02ae5505 authored over 5 years ago
A CriticalPathComponent's input discovery step is not categorized so there is a discrepancy in runtime and metrics provided. Now input discovery will be categorized as parse time.

RELNOTES: An action's discover inputs runtime metrics is now categorized as parse time on the Cr...

cfe70bbee566836538c0dff70d26376100657abf authored over 5 years ago
Support lost input detection in action filesystems

An action filesystem may know when an action's inputs have been lost.
If so, and if any have, th...

f6f452d10429a50cb2ffd10939c8f4ea894592f1 authored over 5 years ago
Support streaming upload to BEP backends.

Events may now report remote uploads which do not necessarily correspond to an in-disk file.

Pi...

2ffb0af33d42a76b7c86b9fdb9db08da4d8daa28 authored over 5 years ago
Update WORKSPACE to use new version of bazelbuild/platforms repository.

The motivation for this change is to pick up commit https://github.com/bazelbuild/platforms/comm...

64235c3523b2365ad229b800c7d16c35be5830f0 authored over 5 years ago
Delete the flag 'incompatible_string_join_requires_strings'

https://github.com/bazelbuild/bazel/issues/7802

RELNOTES: None.
PiperOrigin-RevId: 281069144

4ebe800f6e1ebf8c779fa26288a7cdd14dc9429b authored over 5 years ago
Remove the deprecated isToolchainEnabled method.

PiperOrigin-RevId: 281067275

3fc17bc4af9d695284c0375a45e6d511a3299393 authored over 5 years ago
Make it clear that "jdk1.8" in our installation guide has no special meaning.

This addresses user feedback from https://github.com/bazelbuild/bazel/issues/5753#issuecomment-5...

4a7fa9220295a6cd27c9f393521f0814d26c8da3 authored over 5 years ago
bazel syntax: delete EvalUtils.toIterableStrict

RELNOTES: None.
PiperOrigin-RevId: 281058705

d41cac31828d7dfc7f4ce58451b2b252717ca84e authored over 5 years ago
Extend the interdependency rules between //experimental and other code

to also apply to //third_party/experimental.

See:[]
PiperOrigin-RevId: 281058640

3eb42985b856421e9669e2e94c44b176bd7c5162 authored over 5 years ago
bazel syntax: remove the 'thread' parameter where it's not needed.

RELNOTES: None.
PiperOrigin-RevId: 281055063

b1d05be70776a172992c7b672a65080d2af5ca1f authored over 5 years ago
SymlinkTreeAction: resolve the environment later

Sometimes the environment isn't needed, so don't do the work if it's
not.

PiperOrigin-RevId: 28...

06760b7a7d41d8336b9d4713692bc5a1efbc1eed authored over 5 years ago
Prefactoring for making "blaze test <alias target>" work.

Mainly renaming classes and variables and shuffling things around so that the actual functional ...

007315319a72d62ae2d6d0e3d8de6701e8d095a1 authored over 5 years ago
Fix minor typo

Closes #10217.

PiperOrigin-RevId: 281024813

425ab1878e74453bcf8389d25bf4d7d0cff0a7d7 authored over 5 years ago
Remove SourceManifestAction.Builder

This Builder class is superfluous - it simply wraps Runfiles.Builder,
and forwards all calls to ...

4e1ef9a9602684742c33a48db827005adcc93286 authored over 5 years ago
Update Import Deps tool to label some dependencies (e.g. superclasses) as IMPLICIT instead of EXPLICIT.

RELNOTES: None.
PiperOrigin-RevId: 280772732

cb38add89777ff67a0daf25f9e756cb8e9c097d3 authored over 5 years ago
Refactor lost input ownership calculation, do it unconditionally

Previously, lost input ownership information from an action's inputDeps
was only calculated if a...

c37398d0bec8b9932c1a810afd1b4e368e2fc44b authored over 5 years ago
Remove the flag --incompatible_depset_is_not_iterable

https://github.com/bazelbuild/bazel/issues/5816

RELNOTES: None.
PiperOrigin-RevId: 280688754

9f9f5ec10fed81362c35c50eeb4515bbe5bf8bce authored over 5 years ago
bazel syntax: simplify and optimize list, tuple, range

Sequence:
- is now an interface
- delete getContentsUnsafe: don't prescribe representation.
- de...

ccdeeda22778df438e5f26d87b5d7fe61cd63f04 authored over 5 years ago
Update some android tools targets to use PY_BINARY_VERSION symbol

This ensures that they flip to PY3 when we update that symbol.

Work toward #10127.

RELNOTES: N...

cc5c24c3797395aa2779d6e052e03396da3c4c34 authored over 5 years ago
doc: query-how-to: fix a closing code tag

RELNOTES: None.
PiperOrigin-RevId: 280666645

cf6528dffaef32bdbc79e29dc3c410ce4a7d2a78 authored over 5 years ago
Flip the flag --incompatible_disallow_dict_lookup_unhashable_keys

Fixes #9184

RELNOTES:
incompatible_disallow_dict_lookup_unhashable_keys is enabled by default...

b31d83231f6ab129eec6abb663d869054ae0bd77 authored over 5 years ago
Extract special BUILD file for //tools/cpp when present in the @bazel_tools

Progress towards https://github.com/bazelbuild/bazel/issues/10134.

RELNOTES: None.
PiperOrigin-...

bea9d25592d877ae125adca1ebdaf3e375d626b3 authored over 5 years ago
Add --incompatible_use_cc_configure_from_rules_cc

In this cl only add the flag. Installing the calls to
__do_not_use_fail_with_incompatible_use_cc...

23f052f989a3b9e586475e5df8d921b3f7ea70ca authored over 5 years ago
Update documentation, len(depset) has been removed.

RELNOTES: None.
PiperOrigin-RevId: 280646622

ae1cf490877775ad5269c9bc5ae8f5c11c080e0b authored over 5 years ago
Don't claim cc_toolchain.ar_files and cc_toolchain.as_files are unused.

Using these attributes is the the default behavior since https://github.com/bazelbuild/bazel/com...

5630209b8eaee7951479050dd1da60442dc49509 authored over 5 years ago
java_tools: explicitly export the .jar files

As these files are used directly outside this external repository,
add an export statement for t...

d013721ac7e2a93c106d1c7caa0039dc4461f066 authored over 5 years ago
Execute sandboxfs reconfigurations in parallel.

I tried adding unit tests for this but doing so is very complicated in
their current form. Give...

3d45cfe3cca005653e1aad04a5e590b668c964a0 authored over 5 years ago
[Java 11 Desugar Support]: Basic Structs and Utility Classes - 1/N

#java11 #desugar

PiperOrigin-RevId: 280562283

9acda4dcecf22ba1537ce149df24ef4725df3545 authored over 5 years ago