bazel-skylib
bazel-skylib copied to clipboard
Common useful functions and rules for Bazel
[Example failures](https://buildkite.com/bazel/bazel-skylib/builds/993) These appear to be mostly from analysis-time test suites, which are implemented as macros but do not (and should not) have a `name` parameter. We should have a...
f130d7c388e6beeb77309ba4e421c8f783b91739 added an internal build dependency on that, which would mean you are not always testing with the bazel you expect.
In [select_tests.bzl](https://github.com/bazelbuild/bazel-skylib/blob/d2cf1cc2bcd1e879743faf5216c4887b994705af/tests/selects_tests.bzl#L67) there is a TODO to rewrite the tests to use custom Starlark build settings instead of the native "cpu" and related flags. This is blocking a change I'd...
While copying directories or files into the build folders, the CMD commands tend to be visible during the build process which could be confusing or misleading if something gets broken...
Reminder to myself: after merging https://github.com/bazelbuild/bazel-skylib/pull/385, we will need some sort of a diff test to keep the module version and the `version.bzl` version in sync; neither file can load...
Extract the version from version.bzl using sed. For MODULE.bazel, we need to use buildifier to avoid confusion between skylib's version and our dependencies' versions.
Found this useful for starlark macro analysis (forgot correct term), per https://github.com/bazelbuild/bazel/issues/16210 Dunno if this is belongs anywhere; if this seems useful, can add tests. EDIT: Usage https://github.com/EricCousineau-TRI/repro/tree/cf66d0d27ca9faad922d38f343bd693a43537483/drake_stuff/drake_downstream_pybind
Used for dog-fooding related to #393 EDIT: Usage https://github.com/EricCousineau-TRI/repro/tree/cf66d0d27ca9faad922d38f343bd693a43537483/drake_stuff/drake_downstream_pybind
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3681#018de327-837e-4bb4-8986-ec35f627c4d9 Platform: Ubuntu Logs: ``` FATAL: bazel crashed due to an internal error. Printing stack trace: java.lang.RuntimeException: Unrecoverable error while evaluating node 'UnshareableActionLookupData{actionLookupKey=ConfiguredTargetKey{label=//tests:subpackages_all_w_exclude, config=BuildConfigurationKey[86b97794d575f038822a36ec1392fdddcdcaebfcd711a3ac8088056fc5bb38f5]}, actionIndex=5}' (requested by nodes 'TestCompletionKey{configuredTargetKey=ConfiguredTargetKey{label=//tests:subpackages_all_w_exclude,...
Custom mnemonics can have some useful benefits. For examples, it can allow for more fine-grained filtering of what actions get to run locally vs remotely (via `--modify_execution_info` option / `no-remote`...