Skip to content

Commit 92d6203

Browse files
ayushr2gvisor-bot
authored andcommitted
Build everything continuously.
Only build //runsc/... and //pkg/... in presubmits. Building //... takes too much time, especially after updating to Go 1.20 in 5572ab2 ("Bump go version to 1.20"). PiperOrigin-RevId: 510172859
1 parent 270d801 commit 92d6203

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

.buildkite/pipeline.yaml

+27-6
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,20 @@ _templates:
77
limit: 10
88
- exit_status: "*"
99
limit: 2
10+
common_60_tl: &common_60_tl
11+
timeout_in_minutes: 60
12+
retry:
13+
automatic:
14+
- exit_status: -1
15+
limit: 10
16+
- exit_status: "*"
17+
limit: 2
1018
source_test: &source_test
1119
if: build.env("STAGED_BINARIES") == null
20+
source_test_presubmit: &source_test_presubmit
21+
if: build.env("STAGED_BINARIES") == null && build.branch != "master"
22+
source_test_continuous: &source_test_continuous
23+
if: build.env("STAGED_BINARIES") == null && build.branch == "master"
1224
platform_specific_agents: &platform_specific_agents {}
1325
kvm_agents: &kvm_agents {kvm: "true"}
1426
ubuntu_agents: &ubuntu_agents {os: "ubuntu"}
@@ -76,23 +88,32 @@ steps:
7688
label: ":fire: Smoke race tests"
7789
command: make smoke-race-tests
7890

79-
# Build everything.
91+
# Build runsc and pkg (presubmits only).
8092
- <<: *common
81-
<<: *source_test
82-
label: ":world_map: Build everything (AMD64)"
83-
command: "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//..."
93+
<<: *source_test_presubmit
94+
label: ":world_map: Build runsc and pkg (AMD64)"
95+
commands:
96+
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//pkg/..."
97+
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//runsc/..."
8498
agents:
8599
arch: "amd64"
86100

87101
- <<: *common
88-
<<: *source_test
89-
label: ":world_map: Build everything (ARM64)"
102+
<<: *source_test_presubmit
103+
label: ":world_map: Build runsc and pkg (ARM64)"
90104
commands:
91105
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//pkg/..."
92106
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//runsc/..."
93107
agents:
94108
arch: "arm64"
95109

110+
# Build everything (continuous only).
111+
- <<: *common_60_tl
112+
<<: *source_test_continuous
113+
label: ":world_map: Build everything"
114+
commands:
115+
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//..."
116+
96117
# Check that the Go branch builds. This is not technically required, as this build is maintained
97118
# as a GitHub action in order to preserve this maintaince across forks. However, providing the
98119
# action here may provide easier debuggability and diagnosis on failure.

0 commit comments

Comments
 (0)