From 8f6a2b7d3b5a0a71c37895389525d3f3620462ff Mon Sep 17 00:00:00 2001 From: zliang Date: Fri, 22 Apr 2022 12:08:39 -0600 Subject: [PATCH 01/12] setup Machamp ci --- build.yaml | 18 ++++++++++++++++++ build_test.sh | 21 +++++++++++++++++++++ ci.yaml | 20 ++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 build.yaml create mode 100644 build_test.sh create mode 100644 ci.yaml diff --git a/build.yaml b/build.yaml new file mode 100644 index 000000000..868a60c6e --- /dev/null +++ b/build.yaml @@ -0,0 +1,18 @@ +# Doc: https://wiki.sc-corp.net/pages/viewpage.action?pageId=121500284 +version: 1 +machamp: + keydb-build: + # Optional - build counter is linked to the build def + tag_template: 0.0.%build.counter% + # Optional - value in seconds before a build is terminated, default is 3600 seconds + timeout: 3600 + # Optional - update ghe or not, default to true + update_ghe: true + code_coverage: false + # Required + steps: + make-build: + type: cmd + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:6e3e3b99d89522bf25066d6caeb700207429be99fff8c25866c83896bb1fa811 + command: ./build_test.sh diff --git a/build_test.sh b/build_test.sh new file mode 100644 index 000000000..175b5edd9 --- /dev/null +++ b/build_test.sh @@ -0,0 +1,21 @@ +# make the build +make BUILD_TLS=yes -j2 KEYDB_CFLAGS='-Werror' KEYDB_CXXFLAGS='-Werror' + +# gen-cert +./utils/gen-test-certs.sh + +# test-tls +apt-get -y install tcl tcl-tls +./runtest --clients 2 --verbose --tls + +# cluster-test +./runtest-cluster --tls + +# sentinel test +./runtest-sentinel + +# module tests +./runtest-moduleapi + +# rotation test +./runtest-rotation diff --git a/ci.yaml b/ci.yaml new file mode 100644 index 000000000..6c49d6094 --- /dev/null +++ b/ci.yaml @@ -0,0 +1,20 @@ +# Doc: https://wiki.sc-corp.net/display/TOOL/ci.yaml+User+Guide +version: 1 +on: + pull_request: + - workflows: + # All builds that use machamp should use the defined `backend_workflow` + - workflow_type: backend_workflow + # references a build defined in build.yaml + build_name: keydb-build + push: + - branches: [master] + workflows: + - workflow_type: backend_workflow + build_name: keydb-build + arch_types: ["amd64", "arm64"] + cool: + workflow: + - workflow_type: backend_workflow + build_name: keydb-build + arch_types: ["amd64", "arm64"] From 89275cad1fc364e605637d542d218f8d2094413b Mon Sep 17 00:00:00 2001 From: zliang Date: Fri, 22 Apr 2022 12:24:27 -0600 Subject: [PATCH 02/12] fix typo --- ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci.yaml b/ci.yaml index 6c49d6094..861903732 100644 --- a/ci.yaml +++ b/ci.yaml @@ -14,7 +14,7 @@ on: build_name: keydb-build arch_types: ["amd64", "arm64"] cool: - workflow: + workflows: - workflow_type: backend_workflow build_name: keydb-build arch_types: ["amd64", "arm64"] From 2431c646cd6030d1f0215518d5debc8ec13c8081 Mon Sep 17 00:00:00 2001 From: zliang Date: Fri, 22 Apr 2022 12:31:13 -0600 Subject: [PATCH 03/12] make build_test.sh executable --- build_test.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 build_test.sh diff --git a/build_test.sh b/build_test.sh old mode 100644 new mode 100755 From 935d96fe69453366dca9cd99c368b549188b06bb Mon Sep 17 00:00:00 2001 From: zliang Date: Fri, 22 Apr 2022 16:46:41 -0600 Subject: [PATCH 04/12] fix the Machamp build --- build.yaml | 2 +- build_test.sh | 2 +- ci.yaml | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/build.yaml b/build.yaml index 868a60c6e..49e163ca3 100644 --- a/build.yaml +++ b/build.yaml @@ -14,5 +14,5 @@ machamp: make-build: type: cmd # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:6e3e3b99d89522bf25066d6caeb700207429be99fff8c25866c83896bb1fa811 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 command: ./build_test.sh diff --git a/build_test.sh b/build_test.sh index 175b5edd9..9c7ccf9a7 100755 --- a/build_test.sh +++ b/build_test.sh @@ -1,11 +1,11 @@ # make the build +git submodule init && git submodule update make BUILD_TLS=yes -j2 KEYDB_CFLAGS='-Werror' KEYDB_CXXFLAGS='-Werror' # gen-cert ./utils/gen-test-certs.sh # test-tls -apt-get -y install tcl tcl-tls ./runtest --clients 2 --verbose --tls # cluster-test diff --git a/ci.yaml b/ci.yaml index 861903732..4cc9c4e16 100644 --- a/ci.yaml +++ b/ci.yaml @@ -13,8 +13,3 @@ on: - workflow_type: backend_workflow build_name: keydb-build arch_types: ["amd64", "arm64"] - cool: - workflows: - - workflow_type: backend_workflow - build_name: keydb-build - arch_types: ["amd64", "arm64"] From d5b6530f4fd98e16397d4adf3b2218d72e7ebb8a Mon Sep 17 00:00:00 2001 From: zliang Date: Fri, 22 Apr 2022 18:03:42 -0600 Subject: [PATCH 05/12] break into tests into steps --- build.yaml | 32 +++++++++++++++++++++++++++++++- build_test.sh | 21 --------------------- 2 files changed, 31 insertions(+), 22 deletions(-) delete mode 100755 build_test.sh diff --git a/build.yaml b/build.yaml index 49e163ca3..1e14b5ac7 100644 --- a/build.yaml +++ b/build.yaml @@ -15,4 +15,34 @@ machamp: type: cmd # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 - command: ./build_test.sh + command: ./machamp_scripts/build.sh + tls-test: + type: cmd + parent: make-build + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + command: ./runtest --clients 2 --verbose --tls + cluster-test: + type: cmd + parent: make-build + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + command: ./runtest-cluster --tls + sentinel-test: + type: cmd + parent: make-build + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + command: ./runtest-sentinel + module-test: + type: cmd + parent: make-build + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + command: ./runtest-moduleapi + rotation-test: + type: cmd + parent: make-build + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + command: ./runtest-rotation diff --git a/build_test.sh b/build_test.sh deleted file mode 100755 index 9c7ccf9a7..000000000 --- a/build_test.sh +++ /dev/null @@ -1,21 +0,0 @@ -# make the build -git submodule init && git submodule update -make BUILD_TLS=yes -j2 KEYDB_CFLAGS='-Werror' KEYDB_CXXFLAGS='-Werror' - -# gen-cert -./utils/gen-test-certs.sh - -# test-tls -./runtest --clients 2 --verbose --tls - -# cluster-test -./runtest-cluster --tls - -# sentinel test -./runtest-sentinel - -# module tests -./runtest-moduleapi - -# rotation test -./runtest-rotation From c750cb155cff6e47419ac57f6d9c1f1e31148ae9 Mon Sep 17 00:00:00 2001 From: zliang Date: Fri, 22 Apr 2022 18:36:40 -0600 Subject: [PATCH 06/12] add multi arch for machamp ci --- ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci.yaml b/ci.yaml index 4cc9c4e16..5614be8e6 100644 --- a/ci.yaml +++ b/ci.yaml @@ -7,6 +7,7 @@ on: - workflow_type: backend_workflow # references a build defined in build.yaml build_name: keydb-build + arch_types: ["amd64", "arm64"] push: - branches: [master] workflows: From a564504b6add9012c88a550b5af8a2f2fdfdbaf7 Mon Sep 17 00:00:00 2001 From: zliang Date: Fri, 22 Apr 2022 19:06:10 -0600 Subject: [PATCH 07/12] remove multi arch for now it is not working --- ci.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/ci.yaml b/ci.yaml index 5614be8e6..26b36c06f 100644 --- a/ci.yaml +++ b/ci.yaml @@ -7,10 +7,8 @@ on: - workflow_type: backend_workflow # references a build defined in build.yaml build_name: keydb-build - arch_types: ["amd64", "arm64"] push: - branches: [master] workflows: - workflow_type: backend_workflow build_name: keydb-build - arch_types: ["amd64", "arm64"] From 7b18695ead0128431eb23bbd5ba64cc543436c1b Mon Sep 17 00:00:00 2001 From: zliang Date: Mon, 25 Apr 2022 14:49:14 -0600 Subject: [PATCH 08/12] support multi arch build and tests --- build.yaml | 26 +++++++++++++------------- ci.yaml | 2 ++ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/build.yaml b/build.yaml index 1e14b5ac7..a291219fa 100644 --- a/build.yaml +++ b/build.yaml @@ -13,36 +13,36 @@ machamp: steps: make-build: type: cmd - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 command: ./machamp_scripts/build.sh tls-test: type: cmd parent: make-build - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 - command: ./runtest --clients 2 --verbose --tls + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + command: ./runtest --clients $(nproc) --verbose --tls cluster-test: type: cmd parent: make-build - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 command: ./runtest-cluster --tls sentinel-test: type: cmd parent: make-build - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 command: ./runtest-sentinel module-test: type: cmd parent: make-build - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 command: ./runtest-moduleapi rotation-test: type: cmd parent: make-build - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 command: ./runtest-rotation diff --git a/ci.yaml b/ci.yaml index 26b36c06f..5614be8e6 100644 --- a/ci.yaml +++ b/ci.yaml @@ -7,8 +7,10 @@ on: - workflow_type: backend_workflow # references a build defined in build.yaml build_name: keydb-build + arch_types: ["amd64", "arm64"] push: - branches: [master] workflows: - workflow_type: backend_workflow build_name: keydb-build + arch_types: ["amd64", "arm64"] From 465892a357a1b0595b77b689e376e69fc1764d97 Mon Sep 17 00:00:00 2001 From: zliang Date: Mon, 25 Apr 2022 15:10:00 -0600 Subject: [PATCH 09/12] try remove multi arch for debugging --- ci.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/ci.yaml b/ci.yaml index 5614be8e6..26b36c06f 100644 --- a/ci.yaml +++ b/ci.yaml @@ -7,10 +7,8 @@ on: - workflow_type: backend_workflow # references a build defined in build.yaml build_name: keydb-build - arch_types: ["amd64", "arm64"] push: - branches: [master] workflows: - workflow_type: backend_workflow build_name: keydb-build - arch_types: ["amd64", "arm64"] From 408191f83152af468a8cd39690299fba0e3537e9 Mon Sep 17 00:00:00 2001 From: zliang Date: Mon, 25 Apr 2022 15:23:51 -0600 Subject: [PATCH 10/12] debug with old img --- build.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.yaml b/build.yaml index a291219fa..af068bb8e 100644 --- a/build.yaml +++ b/build.yaml @@ -14,35 +14,35 @@ machamp: make-build: type: cmd # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 command: ./machamp_scripts/build.sh tls-test: type: cmd parent: make-build # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 command: ./runtest --clients $(nproc) --verbose --tls cluster-test: type: cmd parent: make-build # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 command: ./runtest-cluster --tls sentinel-test: type: cmd parent: make-build # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 command: ./runtest-sentinel module-test: type: cmd parent: make-build # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 command: ./runtest-moduleapi rotation-test: type: cmd parent: make-build # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 command: ./runtest-rotation From aedd1d4ca8f928e97f909987b1c19570dfbdfd88 Mon Sep 17 00:00:00 2001 From: zliang Date: Mon, 25 Apr 2022 15:32:37 -0600 Subject: [PATCH 11/12] revert back changes --- build.yaml | 12 ++++++------ ci.yaml | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/build.yaml b/build.yaml index af068bb8e..a291219fa 100644 --- a/build.yaml +++ b/build.yaml @@ -14,35 +14,35 @@ machamp: make-build: type: cmd # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 command: ./machamp_scripts/build.sh tls-test: type: cmd parent: make-build # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 command: ./runtest --clients $(nproc) --verbose --tls cluster-test: type: cmd parent: make-build # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 command: ./runtest-cluster --tls sentinel-test: type: cmd parent: make-build # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 command: ./runtest-sentinel module-test: type: cmd parent: make-build # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 command: ./runtest-moduleapi rotation-test: type: cmd parent: make-build # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 command: ./runtest-rotation diff --git a/ci.yaml b/ci.yaml index 26b36c06f..5614be8e6 100644 --- a/ci.yaml +++ b/ci.yaml @@ -7,8 +7,10 @@ on: - workflow_type: backend_workflow # references a build defined in build.yaml build_name: keydb-build + arch_types: ["amd64", "arm64"] push: - branches: [master] workflows: - workflow_type: backend_workflow build_name: keydb-build + arch_types: ["amd64", "arm64"] From 6ab1c2deec677ca96d90b288bd5a3280e30659e4 Mon Sep 17 00:00:00 2001 From: zliang Date: Mon, 25 Apr 2022 18:55:01 -0600 Subject: [PATCH 12/12] update builder image --- build.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/build.yaml b/build.yaml index a291219fa..0500f5b7f 100644 --- a/build.yaml +++ b/build.yaml @@ -13,36 +13,36 @@ machamp: steps: make-build: type: cmd - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + # https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-20-04 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-20-04@sha256:cf869a3f5d1de1e1d976bb906689c37b7031938eb68661b844a38c532f27248c command: ./machamp_scripts/build.sh tls-test: type: cmd parent: make-build - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + # https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-20-04 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-20-04@sha256:cf869a3f5d1de1e1d976bb906689c37b7031938eb68661b844a38c532f27248c command: ./runtest --clients $(nproc) --verbose --tls cluster-test: type: cmd parent: make-build - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + # https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-20-04 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-20-04@sha256:cf869a3f5d1de1e1d976bb906689c37b7031938eb68661b844a38c532f27248c command: ./runtest-cluster --tls sentinel-test: type: cmd parent: make-build - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + # https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-20-04 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-20-04@sha256:cf869a3f5d1de1e1d976bb906689c37b7031938eb68661b844a38c532f27248c command: ./runtest-sentinel module-test: type: cmd parent: make-build - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + # https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-20-04 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-20-04@sha256:cf869a3f5d1de1e1d976bb906689c37b7031938eb68661b844a38c532f27248c command: ./runtest-moduleapi rotation-test: type: cmd parent: make-build - # Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-latest - builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-latest@sha256:abb764c7c19a6b5ffa24db1568b6ab40b16fe1326bff6154f05f774cea990700 + # https://github.sc-corp.net/Snapchat/img/tree/master/keydb/ubuntu-20-04 + builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/keydb/keydb-ubuntu-20-04@sha256:cf869a3f5d1de1e1d976bb906689c37b7031938eb68661b844a38c532f27248c command: ./runtest-rotation