From 92d6203358aa9e53ab0da22aea74c05503ff6768 Mon Sep 17 00:00:00 2001 From: Ayush Ranjan Date: Thu, 16 Feb 2023 09:57:44 -0800 Subject: [PATCH] Build everything continuously. Only build //runsc/... and //pkg/... in presubmits. Building //... takes too much time, especially after updating to Go 1.20 in 5572ab2f7d0d ("Bump go version to 1.20"). PiperOrigin-RevId: 510172859 --- .buildkite/pipeline.yaml | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/.buildkite/pipeline.yaml b/.buildkite/pipeline.yaml index 294f717f9..c5ab5aa5c 100644 --- a/.buildkite/pipeline.yaml +++ b/.buildkite/pipeline.yaml @@ -7,8 +7,20 @@ _templates: limit: 10 - exit_status: "*" limit: 2 + common_60_tl: &common_60_tl + timeout_in_minutes: 60 + retry: + automatic: + - exit_status: -1 + limit: 10 + - exit_status: "*" + limit: 2 source_test: &source_test if: build.env("STAGED_BINARIES") == null + source_test_presubmit: &source_test_presubmit + if: build.env("STAGED_BINARIES") == null && build.branch != "master" + source_test_continuous: &source_test_continuous + if: build.env("STAGED_BINARIES") == null && build.branch == "master" platform_specific_agents: &platform_specific_agents {} kvm_agents: &kvm_agents {kvm: "true"} ubuntu_agents: &ubuntu_agents {os: "ubuntu"} @@ -76,23 +88,32 @@ steps: label: ":fire: Smoke race tests" command: make smoke-race-tests - # Build everything. + # Build runsc and pkg (presubmits only). - <<: *common - <<: *source_test - label: ":world_map: Build everything (AMD64)" - command: "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//..." + <<: *source_test_presubmit + label: ":world_map: Build runsc and pkg (AMD64)" + commands: + - "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//pkg/..." + - "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//runsc/..." agents: arch: "amd64" - <<: *common - <<: *source_test - label: ":world_map: Build everything (ARM64)" + <<: *source_test_presubmit + label: ":world_map: Build runsc and pkg (ARM64)" commands: - "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//pkg/..." - "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//runsc/..." agents: arch: "arm64" + # Build everything (continuous only). + - <<: *common_60_tl + <<: *source_test_continuous + label: ":world_map: Build everything" + commands: + - "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//..." + # Check that the Go branch builds. This is not technically required, as this build is maintained # as a GitHub action in order to preserve this maintaince across forks. However, providing the # action here may provide easier debuggability and diagnosis on failure.