bazelbuild / bazelbuild/bazel-bench

Include task-specific shell commands and build flags

Open
#46 0 comments 0 reactions 1 assignee Claimed by @joeleba View on GitHub
enhancement P2
Dominant language
Python
Stars
42
Forks
12
PR merge metrics
No merged PRs in 30d

Description

**Description of the problem / feature request:**

For example: https://github.com/bazelbuild/bazel/blob/master/.bazelci/postsubmit.yml#L119
```
ubuntu1804_javabase9:
platform: ubuntu1804_nojava
name: ":java: OpenJDK 9 Javabase"
shell_commands:
- sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
android_ndk_repository/android_ndk_repository/' WORKSPACE
- rm -f WORKSPACE.bak
build_flags:
- "--javabase=@openjdk9_linux_archive//:runtime"
...
ubuntu1804_javabase10:
platform: ubuntu1804_nojava
name: ":java: OpenJDK 10 Javabase"
shell_commands:
- sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
android_ndk_repository/android_ndk_repository/' WORKSPACE
- rm -f WORKSPACE.bak
build_flags:
- "--javabase=@openjdk10_linux_archive//:runtime"
```

The same `ubuntu1804_nojava` platform can have many tasks based on it, each with a different set of `shell_commands` and `build_flags`.

It's useful to perform benchmarking on each of these different environments.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.