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

Add parsing rule declarations to NinjaParser

Closes #10193.

PiperOrigin-RevId: 279068396

2c52a21e1790751415197f1bdfe84fb06a7dd7d3 authored over 5 years ago
Add NinjaParser with the method for parsing variable declarations

Closes #10169.

PiperOrigin-RevId: 279035405

9a360d17a8f7b02b40082a1e613db87af2200d70 authored over 5 years ago
C++: Add linked_statically_by attribute to cc_library

This attribute will be used to determine which cc_shared_libraries will be allowed to link the c...

2325fd41229fd6f223c80325c4426733f1a65738 authored over 5 years ago
Improve javadoc of Extrema#getExtremeElements.

PiperOrigin-RevId: 278936988

bd0a40254697ec7e0cd9a522cf5ba282ea76389c authored over 5 years ago
Add a note on regular expressions

RELNOTES: none
PiperOrigin-RevId: 278934784

2909ff6a0830a7f46321b8a56980c2906f8415c7 authored over 5 years ago
bazel syntax: add 'truth' method to base SkylarkValue interface

Also:
- rename EvalUtils.toBoolean to Starlark.truth
- make it strict about argument validity
- ...

e5712244c0373bf3a60df45abbe87ac45a05b6a9 authored over 5 years ago
Remove the deprecated option

`--incompatible_disallow_rule_execution_platform_constraints_allowed`
and the associated Starlar...

e4eadecea60dcea2296da2ddb7a8c6103b51dcd8 authored over 5 years ago
Changes the return value type of android.native_libs Starlark API from a map of NestedSets to a map of SkylarkNestedSets. This fixes a bug where Starlark rules can't access the native_libs values because NestedSet is not a Starlark-compatible type.

RELNOTES: None
PiperOrigin-RevId: 278905943

fb3a64d62fe5c2e0d47ea5d227a41a473d32a413 authored over 5 years ago
Delete flag incompatible_expand_directories

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

RELNOTES: None.
PiperOrigin-RevId: 278903555

0a17dd97c1ab0e4f8fe535b153974cfea20a01ff authored over 5 years ago
Delete flag incompatible_disallow_hashing_frozen_mutables

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

RELNOTES: None.
PiperOrigin-RevId: 278886996

5f713b33dee527d780056fba49cf3d19b490d5d5 authored over 5 years ago
bazel syntax: make @Skylark-annotated classes implement SkylarkValue

This CL adds a check to the @SkylarkCallable annotation processor to require
that all SkylarkMod...

9331632b4f8dfb7502e29d69c9b229f324df1115 authored over 5 years ago
Refactor merkletree implementation to be independent of ActionInput

This change splits up InputTree into DirectoryTree and
DirectoryTreeBuilder. It also replaces al...

9d5394e772214d1b33310f2575940a57bfbc5068 authored over 5 years ago
Miscellaneous corrections.

PiperOrigin-RevId: 278852323

1f4cd2ec1b65c22c1e39f5dfd99f0649e801155e authored over 5 years ago
Use weak-referenced ConcurrentMap to prevent memory leaks.

Previously, the concurrent maps in ArtifactNestedSetFunction have strong
references to their key...

c9a2b803eb5e64526e6617c95fa3b0c0891e8ba0 authored over 5 years ago
Remove bazel's legacy ExperimentalTestRunner.

The ExperimentalTestRunner doesn't work since its corresponding worker was
removed last year and...

705478f10dcdbf4b0d4dd3f5fefbe37c09a5f73a authored over 5 years ago
Async + ActionFileSystem: don't throw NPE

When using async execution in combination with an action file system,
the try-with-resources blo...

f6524f6b9fb6aa51f68768b267efe1d1ca4e9991 authored over 5 years ago
Refactor SimpleBlobStore#get(ActionResult)(...)

The change update methods signatures to be compatible with those in
AbstractRemoteActionCache:
...

1846269aadb0ae9a57be0657159ed1d954ce8db0 authored over 5 years ago
Tolerate errors retrieving NestedSet as long as possible.

This change delays throwing the underlying exception until the NestedSet is consumed.

RELNOTES:...

4d3b8c4e029b5bd91b53cd2196df71c805d14183 authored over 5 years ago
bazel: enable unchecked/rawtypes errors for all Java source

PiperOrigin-RevId: 278695234

166c3a3ba0367dd819c3c4994d7d217493f7a0eb authored over 5 years ago
Avoid breaking toolchain resolution if platform has defaulted constraint.

### Summary
See https://github.com/bazelbuild/bazel/issues/8778 and https://github.com/bazelbuil...

8404fb4c7b6cb698cdc95a2e360e19341fdc365e authored over 5 years ago
Update maven_jar deprecation notice in Bazel BE.

RELNOTES:
PiperOrigin-RevId: 278638460

1199813a2353629b5a7605ac4b6ac54319cfce1d authored over 5 years ago
Delete sys.path[0] in Python stub

Fixes #9239. Implements the proposed solution of deleting `sys.path[0]` before importing any ot...

89e8c4a688c890fc8342a1795cdd61eaed4f1e98 authored over 5 years ago
Propagate context in the gRPC server

Using an executorPool to run the thread so we only need to handle context propagation in one pla...

fdfd88d3e9885f4f28d1ce8f2cee4461d6cb0ef4 authored over 5 years ago
py2to3: update more *.py files to PY3

Details:
- use six.ensure_*
- use absl.flags instead of gflags
- BUILD files with a BUILD.tools ...

a654505146cc0dcb32d69ef6293aaa6784ea1796 authored over 5 years ago
Add test for TestStrategy.getTmpDirName

To make sure the length of tmp dir name doesn't change unexpected.

RELNOTES: None
PiperOrigin-R...

66dac668159c23eb0e32eb10d30491d073ed4479 authored over 5 years ago
Windows: enable sha256_test

Use #!/bin/bash shebang instead of #!/bin/sh,
because the Bash runfiles library requires Bash,
a...

9131dbefbc08500219abdc48db84270a9696ab8e authored over 5 years ago
Migrate CoverageOutputGenerator for incompatible_load_java_rules_from_bzl

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

Closes #10150.

PiperOrigin-RevId: 278594979

0e4d6ccae58b92bb8ebaeeabfa0b8ff705e28c82 authored over 5 years ago
Make CcToolchainConfigInfo.proto account for the legacy features patching logic: https://docs.bazel.build/versions/1.1.0/cc-toolchain-config-reference.html#legacy-features-patching-logic

Before this change, CcToolchainConfigInfo.proto would generate a prototext based on what the too...

ddb5937067d754016b8eaf054eae8dfecc6e0c53 authored over 5 years ago
Evaluate the first layer of input NestedSet in ActionExecutionFunction to save

memory.

The first layer of the NestedSet is not useful when evaluated as an
ArtifactNestedSetKey...

7c986e152df79acf18104371a0d88a007c0c01d8 authored over 5 years ago
Close the grpc channel from the client when the server says it is shutting down.

Otherwise the java grpc server blocks for a while waiting for the client to go
away. This was ma...

c96762adb36f5b58fcc767962090552799deb6d6 authored over 5 years ago
Stop announcing the profile path.

We got multiple reports from Bazel users that this is just log spam, e.g. https://github.com/baz...

ec3a5624a7d41178aae708c75d6d4a0a21c6093d authored over 5 years ago
Add Ninja lexer with tests.

Closes #10126.

PiperOrigin-RevId: 278568644

334ef1cf1076400fbb9dfdccae35e7767ebeaa98 authored over 5 years ago
C++: Introduces Starlark API needed for shared library rule

Guarded by --experimental_cc_shared_library flag. This CL introduces incompatible changes to the...

d6c8766e3ad7042493947ea4f6f8cab0ec8c7426 authored over 5 years ago
Allow files to appear in the zip appended to the bazel C++ launcher which

are not to be extracted during "installation". This is intended to support
a configuration where...

9cc0346b15d13d52b4cd57bd0ee0014169aa8937 authored over 5 years ago
Delete an unused overload of createGenJarAction

PiperOrigin-RevId: 278496434

3c341016a15d34f8e7b8f4527e679120c5d15c07 authored over 5 years ago
Enable sandboxing integration tests on macOS.

Remove the check_supported_platform helper function, which was used to
prevent running integrati...

d411e8f1fe21ef265910d876576da18ed49a61f6 authored over 5 years ago
bazel skylarkinterface: cleanups after SkylarkPrintable deletion

(in commit c7d2b8d2c8c5f71b6a8d7af0190a0500266bf12b)

Native code may continue to pass non-Starl...

3d0fc87fa09d440aaca19948831f5f7ef81ca162 authored over 5 years ago
Move unix_lite_jni code into a C++ namespace.

RELNOTES: None.
PiperOrigin-RevId: 278463090

da96e3b8e6f11f072c3de2b11f6f2bfadd662d93 authored over 5 years ago
bazel: turn unchecked/rawtypes warnings into errors

...in analysis, packages, skyframe directories.

Also, fix or suppress all existing violations.
...

3e1bf5c58f40f1876878b2e5f674f355896906d6 authored over 5 years ago
bazel skylarkinterface: create a default implementation of repr

It matches the behavior of Printer.
This change is necessary so that we can make all @Skylark-an...

17dbd019ebed012b830d7fe49358d0b64ad3fe0f authored over 5 years ago
Use RootedPath.getParentDirectory in FileFunction.

We get the RootedPath to the parent folder by getting the parent PathFragment
and creating a Roo...

751728993128ca16c29003b44467799ed8d031de authored over 5 years ago
py2to3: update tools/android/*.py to PY3

This is a rollback of commit 91b26dc4f3b327f115787c3ec35278c299480d0c and a
roll-forward of comm...

d93a146463e20f4eedc5ae658b03ee0260750aa7 authored over 5 years ago
Use label not name to deduplicate in graphless genquery.

RELNOTES: None
PiperOrigin-RevId: 278385572

afc7581113e02ff87b3121cab3d72d1f7ec9eb22 authored over 5 years ago
Delete dead code: Android's zip_manifest_creator

This was an implicit dependency of aar_import, and
is no longer used as of CL 166768607.

Nothin...

d601c3864b75a32689730456f4fc0ac0e3f179dc authored over 5 years ago
EnvironmentalExecException: exit as LOCAL_ENVIRONMENTAL_ERROR

Based on an audit of all callers, I conclude that this exception is
primarily used to indicate a...

2366ac1451009798b62e40687fd539a8b5202f7d authored over 5 years ago
C++: Add grep_incudes to Bazel cc_common.link()

Even though grep_includes is not available in Bazel. We want to make the API
exactly the same in...

d0422383b0fd2bd3f12e32490bcf05a939c61503 authored over 5 years ago
Set execution constraints by target.

Provides a new flag --experimental_add_exec_constraints_to_target that allows setting execution ...

61d9994f9cd412ae347365dc2c214ff3e83c7af9 authored over 5 years ago
Add label to class LinkerInput.

This label will be used to prune libraries from the tree when linking dynamically in the shared ...

6b7ea37feb1c05afccb444ce276f43b009371521 authored over 5 years ago
Add support for sandboxfs 0.2 and newer.

This change adds support for the new reconfigurations protocol in sandboxfs
0.2.0 and above with...

05b6f172d4fe4410685344cabc64f100cb9839d5 authored over 5 years ago
Cosmetic improvements to STL use.

RELNOTES: None.
PiperOrigin-RevId: 278332480

5276fc9ee29c0fa4366f553eb64e74727f982015 authored over 5 years ago
Use the traditional prototype for main().

Make other consumers of argv take a fully-const type.

RELNOTES: None.
PiperOrigin-RevId: 278325262

8139b73c98ace7c29f345541a5784bbaaadb9080 authored over 5 years ago
Automated rollback of commit ad628ecfb8ed43870fb354e5d8f7da68594f95bd.

*** Reason for rollback ***

TAP has detected 10 or more targets failed to build at https://gith...

91b26dc4f3b327f115787c3ec35278c299480d0c authored over 5 years ago
py2to3: update tools/android/*.py to PY3

Details:
- use six.ensure_str / six.ensure_bytes
- use absl.flags instead of gflags
- put third_...

ad628ecfb8ed43870fb354e5d8f7da68594f95bd authored over 5 years ago
Make experimental_genquery_use_graphless_query a TriState.

RELNOTES: None
PiperOrigin-RevId: 278320174

d6e61641e9eb232064004cc81719714dca83d3c7 authored over 5 years ago
Properly report missing unused inputs files

These need to be reported as 'user error' rather than as environmental
error, as the most likely...

52ef96af654c110d3ab5c31f7666e14914eb524f authored over 5 years ago
Make GenQuery output deterministic for graphless query.

RELNOTES: None
PiperOrigin-RevId: 278316097

a9b97022f85e07d5f6662164144e70a779020ce8 authored over 5 years ago
bazel syntax: disallow PathFragment as a Starlark value

All native functions that return a PathFragment have been updated (I think).

Also, delete Skyla...

c7d2b8d2c8c5f71b6a8d7af0190a0500266bf12b authored over 5 years ago
Extract assignment to list converter into an abstract class.

This is in preparation for an upcoming change which introduces an additional assignment to list ...

61e8013e74047ab2e1db8faf7b967bbaa3bd1b8e authored over 5 years ago
bazel syntax: disallow NestedSet as a Starlark value

Also:
- eliminate Skylark.typeOf, which was misused by all callers
- make private various other ...

0971420455c0758aa90e17bac0c6d852e0b9afc2 authored over 5 years ago
Update coverage docs to use new-style providers

Progress toward https://github.com/bazelbuild/bazel/issues/9396

RELNOTES: None.
PiperOrigin-Rev...

a4192e1451ccc2c1e4478304a3396825b6fcedd4 authored over 5 years ago
Revert changes to action conflict checks.

RELNOTES: None

PiperOrigin-RevId: 277929800

40dd7558b28c6fcfe54d1b59857f40b4462d743e authored over 5 years ago
bazel syntax: suppress remaining type warnings and enable errors

Also, suppress benign type errors in code generated by AutoCode processor.

See[]

PiperOrigin-R...

9e903c57a79c18994a7885fbc9c3890e20703521 authored over 5 years ago
bazel syntax: avoid Printer.formattable in Mutability.create

Currently, Mutability.create uses Starlark formatting to produce
its internal name for debugging...

0d59f124a78ce67e4cdf67222dc64cd3fce18468 authored over 5 years ago
Inline includeAttribute

PiperOrigin-RevId: 277812703

33cc3e2fef4bd6a61a1d6828276a43ac8a472991 authored over 5 years ago
bazel skylarkbuildapi: don't return PathFragment values to Starlark

This is a user-visible change, and thus technically a breaking change,
as it causes the result o...

a3fd3334d95ee6019bbb44a2f4d885aabcdfb21e authored over 5 years ago
Migrate PackageFactory callable methods to be defined with SkylarkCallable

Also consolidate the multiple Starlark API definitions for various Starlark functions (for examp...

d6cc76d02e9b41a6b4a5da401f8a24211bba46fa authored over 5 years ago
Fix non-deterministic Blaze crash with "--aspects -k".

The crash is:

java.lang.ClassCastException: class com.google.devtools.build.lib.skyframe.Aspect...

68e4319600d8c68c4142c99e730a5732d85fd2d3 authored over 5 years ago
Allows android_binary and android_library to depend on targets that return CcInfo providers.

RELNOTES: android_binary and android_libary can now depend on targets providing
CcInfos.
PiperOr...

9c5f8508d4bf378cb17069262918ca6775095223 authored over 5 years ago
bazel syntax: replace NestedSet with SkylarkNestedSet in @SkylarkCallable-annotated method results

NestedSet is not a valid Starlark value. Currently the interpreter
implicitly converts NestedSet...

6c417684164b82e7b214497557b6dc11eb07bc1c authored over 5 years ago
Implement --incompatible_no_implicit_file_export

If enabled, source files, even if used, are private to their package
unless exported explicitly....

2bb1bf9422ba22d0e1ab15363664339f022b29a1 authored over 5 years ago
The assumeTrue was incorrect and unnecessary. This test requires JNI to run, and we should have it fail if JNI is not available.

RELNOTES:
PiperOrigin-RevId: 277744098

9f47095721f7e7d4e306cfbcf7ffd8724427b2f5 authored over 5 years ago
Use appropriate suffix for links to Starlark API

RELNOTES: None.
PiperOrigin-RevId: 277733462

719159589591f34bbf616741cf95ff6c1d6f6b5a authored over 5 years ago
Make checksum calculation a bit more correct.

Previously, renaming files and changing file boundaries in the same stream of
bytes went undetec...

4afaed055ccac3ef624c445524c0385c0d43770b authored over 5 years ago
Fix chocolatey package name for package-fix-notation

See https://chocolatey.org/docs/create-packages#package-fix-version-notation - _HHmm suffix resu...

64b6b1fd655381cd3ee1867a20a2f8bd2d3c198e authored over 5 years ago
Allow user-specific `user.bazelrc` per "Best Practices for Bazel"

https://docs.bazel.build/versions/master/best-practices.html describes allowing a user-specific ...

8e8e43ee30710ca9d0f0f298d3736ed088b3e562 authored over 5 years ago
C++: Wrap linking_context fields into single class

Before this change, libraries, linker options, non code inputs and linkstamps added to the linki...

a201f0a219345c4c625859c2c286d3bc87ad5eb9 authored over 5 years ago
Add grpc URL example to the remote caching doc.

Closes #10114.

PiperOrigin-RevId: 277710165

d23910eb628b206aa25e06d8b87bd855e3ab7f1d authored over 5 years ago
CppCompileAction: Remove some unnecessary code

EnvironmentalExecException always prints the stack trace, so we don't
need to do that manually a...

1f0872c5bfbc5500adeacf3bf30bcd1e8b9fe1c7 authored over 5 years ago
Strip whitespace from install_base_key before embedding it.

This is already done for build-label.txt.

RELNOTES: None.
PiperOrigin-RevId: 277692098

44bbc2aab6d486beb1d359d4b05c581559d9d350 authored over 5 years ago
Automated rollback of commit 06d2f6d8ad1a7cde19c064e54e31dad7bd8cfdcf.

*** Reason for rollback ***

We must implement path case fixing on top of Skyframe (by requestin...

6e167e622decfb40e16f7d0e22667a3eaed13662 authored over 5 years ago
Fix python zip file name when target name has dot (.)

To fix https://buildkite.com/bazel/bazel-at-head-plus-disabled/builds/351#26e616ad-56b1-4d78-b64...

36c8af5b05377126514e368ccf011a089a457e47 authored over 5 years ago
Implement --incompatible_visibility_private_attributes_at_definition

If enabled, change visibility verification for implict attributes:
For implicit attributes of a ...

752ffcc8ac45656c801f82119794594ddab01427 authored over 5 years ago
Turn the "sandbox" directory into a package.

RELNOTES: None.
PiperOrigin-RevId: 277590911

1b3eb424139cf907d708ab193cba8f2256313290 authored over 5 years ago
bazel syntax: delete ExtraArgKind

(Second attempt at commit 50a7e14e3df5513572f1ac3275786f243b51c930, rolled back in commit 8ce9d8...

90d79a6c2b4659a85758f5fd5de2b5b8d714f71f authored over 5 years ago
Preserve fallback platform in exec/host transition.

Previously the exec/host transition would set the fallback target platform back to its default w...

d660cf22b7ffae833456a24e4c10368252fbb229 authored over 5 years ago
bazel syntax: delete BuiltinFunction.Factory

The mechanism existed so that functions like glob could
be closures over the PackageContext, whi...

7b2862c338a01ed5b6daa74519b7f5e99775c0df authored over 5 years ago
Restrict noneable parameters to be of type Object

This fixes a number of crash bugs, as passing None to these "noneable" parameters had resulted i...

a330febdddbae5751b6bb0cc0a6a84f451df2304 authored over 5 years ago
Corrected "bootstrapping" typo.

Closes #10128.

PiperOrigin-RevId: 277506939

811838911501ad4b3d760900583939bb2cca8e73 authored over 5 years ago
Improving efficiency of fileset builds by using previously stat'd FileStatus, reducing the number of file system calls.

RELNOTES: None.
PiperOrigin-RevId: 277502268

5284e6cd2dc4e7dfe625c9bef3d557e47b76b42b authored over 5 years ago
Guard include scanner against null grepIncludes

The grepIncludes artifact may be null if the owning rule doesn't have a
$grep_includes attribute...

28143a5d3968c76cd94f1ea75c0038d71c7a0356 authored over 5 years ago
Use WARNING color when printing flaky test summary

PiperOrigin-RevId: 277493892

afde71894b1d7a73e0b2b54c1bd4a513474050a1 authored over 5 years ago
TestStrategy: Truncate the tmp dir name to 32 character to avoid exceeding path length limit on Windows and macOS

Fixes https://github.com/bazelbuild/bazel/issues/10124

RELNOTES: None
PiperOrigin-RevId: 277483256

1cfa9e3348bf1e53f246f540f8377b76eaa5aba1 authored over 5 years ago
Create the mandatory outputs even when cancelled

While all test runs of the same test are generally triggered at the same
time, it is possible th...

8aa2cf6495bee19ab4a1069432c854f6d0b2e797 authored over 5 years ago
Use graphless query when possible.

Next step is to explore whether we can change the default of --order_output.

RELNOTES: None
Pip...

9898735e906036e8bffdf6b9bbaa16b8eab44c97 authored over 5 years ago
Add proper experimental option to use a fork join pool.

RELNOTES: None
PiperOrigin-RevId: 277460008

609ffb294b429475314a38aceacff746dc0a6a48 authored over 5 years ago
bazel cmdline: break 'PackageIdentifier extends SkylarkValue'

The edge was spuriously added in CL 161526182 so that the value could
be printed by BasePrinter,...

63346c5e0ccbee6f02650ec1c23b4ce96052181c authored over 5 years ago
bazel syntax: simplify cache of information about annotated classes

This change combines three separate caches into one, which is
simpler, more compact, and cheaper...

dd5fdb20ed22a97f1e5ecb1a03ed18b0c50b379c authored over 5 years ago
Fix blaze crash on bad register_execution_platforms() labels.

Fixes https://github.com/bazelbuild/bazel/issues/10101.

PiperOrigin-RevId: 277412321

8a3836e2c0504408d4553dc5eaf18da875dd932a authored over 5 years ago
cquery --show_config_fragments: support user-defined options.

Given:

$ blaze cquery 'deps(//:mytarget)' --show_config_fragments=[direct|transitive]

This in...

386b25b866bc2d68be6af04ad8ae40b0fd73a6e7 authored over 5 years ago
Remove an unused field and setter for old coverage logic

and rename the other coverage artifact, now that it is non-experimental.

PiperOrigin-RevId: 277...

0c2fadce9d36d93dc9e3ac0c5e14f38bb2b33928 authored over 5 years ago