blob: 0359339a3150f3d7d5338164b494e2932e2dcc56 [file] [edit]
{
"configs": [
{
"name": "bazel_default",
"description": "Default bazel build configuration",
"build_type": "bazel",
"args": [
"--test_output=all"
],
"env": {}
},
{
"name": "bazel_default_notest",
"description": "Default bazel build configuration",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=-hardware,-disabled"
],
"env": {},
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": true
}
}
],
"builds": [
{
"name": "wildcard_build",
"use_config": "bazel_default_notest",
"targets": [
"//...",
"-//third_party/caliptra/..."
]
},
{
"name": "clippy",
"build_config": {
"name": "clippy_config",
"description": "Run clippy checks",
"build_type": "bazel",
"args": [
"--aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect",
"--output_groups=clippy_checks"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": true
}
},
"targets": [
"//...",
"-//third_party/caliptra/..."
]
},
{
"name": "ci_tests",
"build_config": {
"name": "ci_tests_config",
"description": "Execute CI tests (excluding hardware and heavyweight simulator tests)",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=-hardware,-disabled,-verilator,-emulator,-qemu,-fpga",
"--test_tag_filters=-hardware,-disabled,-verilator,-emulator,-qemu,-fpga",
"--test_output=streamed",
"--build_event_json_file=${BUILD_ROOT}/pw_ci_tests_bep.json"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//...",
"-//third_party/caliptra/..."
]
},
{
"name": "earlgrey_verilator_tests",
"build_config": {
"name": "earlgrey_verilator_tests_config",
"description": "Run Earlgrey verilator-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=+verilator,-nightly_test",
"--test_tag_filters=+verilator,-nightly_test",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/earlgrey/..."
]
},
{
"name": "caliptra_emulator_tests",
"build_config": {
"name": "caliptra_emulator_tests_config",
"description": "Run caliptra emulator-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=+emulator,-disabled",
"--test_tag_filters=+emulator,-disabled",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/veer/..."
]
},
{
"name": "caliptra_fpga_build",
"build_config": {
"name": "caliptra_fpga_build_config",
"description": "Build (do not run) the Caliptra MCU FPGA test binaries and images. Catches FPGA cfg, cross-compile, and build-wiring regressions without requiring lab hardware.",
"build_type": "bazel",
"args": [
"--keep_going",
"--config=fpga",
"--build_tag_filters=+fpga,-disabled"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": true
}
},
"targets": [
"//target/veer/..."
]
},
{
"name": "earlgrey_qemu_tests",
"build_config": {
"name": "earlgrey_qemu_tests_config",
"description": "Run Earlgrey QEMU-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=+qemu",
"--test_tag_filters=+qemu",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/earlgrey/..."
]
},
{
"name": "ast10x0_qemu_tests",
"build_config": {
"name": "ast10x0_qemu_tests_config",
"description": "Run AST10x0 QEMU-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--config=virt_ast10x0",
"--test_tag_filters=-hardware,-do_not_run_test",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false,
"project_working_subdir": "target/ast10x0"
}
},
"targets": [
"//..."
]
},
{
"name": "flaky_tests",
"build_config": {
"name": "flaky_tests_config",
"description": "Execute flaky tests",
"build_type": "bazel",
"args": [
"--runs_per_test=3",
"--runs_per_test_detects_flakes",
"--cache_test_results=no",
"--keep_going",
"--test_output=errors",
"--config=k_ast1060_evb"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/ast10x0/..."
]
}
],
"tools": [
{
"name": "format",
"description": "Find and fix code formatting issues",
"use_config": "bazel_default",
"analyzer_friendly_args": [
"--check"
],
"target": "//:format"
},
{
"name": "presubmit_checks",
"description": "Run the presubmit checks",
"use_config": "bazel_default",
"target": "//presubmit:presubmit",
"type": "ANALYZER"
},
{
"name": "lockfile_check",
"description": "Fail if regenerating MODULE.bazel.lock changes the committed file",
"use_config": "bazel_default",
"target": "//presubmit:lockfile_check",
"type": "ANALYZER"
},
{
"name": "zero_test_audit",
"description": "Fail if a rust_test target in ci_tests ran zero tests",
"build_config": {
"name": "zero_test_audit_config",
"description": "Hand the audit the BEP file that ci_tests writes in its sibling build directory",
"build_type": "bazel",
"args": [
"--run_under=env ZERO_TESTS_BEP=${BUILD_ROOT}/../ci_tests_config/pw_ci_tests_bep.json"
]
},
"target": "//presubmit:zero_tests",
"type": "ANALYZER"
}
],
"groups": [
{
"name": "presubmit",
"description": "Quick presubmit for validating code changes locally",
"analyzers": [
"format",
"lockfile_check",
"presubmit_checks"
],
"builds": [
"clippy"
]
},
{
"name": "default",
"description": "Common builds/configurations",
"builds": [
"wildcard_build"
]
},
{
"name": "ci",
"description": "Execute CI tests plus dedicated AST10x0, Earlgrey QEMU and Caliptra emulator coverage",
"builds": [
"ci_tests",
"ast10x0_qemu_tests",
"earlgrey_qemu_tests",
"caliptra_emulator_tests",
"caliptra_fpga_build"
],
"analyzers": [
"zero_test_audit"
]
},
{
"name": "upstream_pigweed",
"description": "Workflow for checking upstream pigweed compatibility",
"builds": [
"ci_tests",
"ast10x0_qemu_tests",
"caliptra_emulator_tests",
"earlgrey_verilator_tests"
]
},
{
"name": "flaky",
"description": "Execute flaky tests",
"builds": [
"flaky_tests"
]
}
]
}