Skip to content

Commit b343b8a

Browse files
craig[bot]kev-caorail
committed
148156: roachtest: increase fixture timeout to account for fingerprinting r=msbutler a=kev-cao Fixes: #147871 Release note: None 148225: aceeptance: add script to build and push the acceptance image r=rickystewart,fqazi a=rail Previously, README.md contained instructions to build the acceptance image, but they were outdated. This commit adds a script that can be used to build and push the acceptance image and adds the process instructions to README.md. Additionally, updated the script that builds and pushes the GSS images. Release note: none Epic: none Co-authored-by: Kevin Cao <[email protected]> Co-authored-by: Rail Aliiev <[email protected]>
3 parents 2b7483b + 3f1380a + 3626f28 commit b343b8a

File tree

4 files changed

+30
-10
lines changed

4 files changed

+30
-10
lines changed

pkg/acceptance/compose/gss/build-push-gss.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ set -xeuo pipefail
99

1010
TARGET=$1
1111
TAG=$(date +%Y%m%d-%H%M%S)
12+
REPO="us-east1-docker.pkg.dev/crl-ci-images/cockroach/acceptance-gss-$TARGET"
13+
1214
if which podman; then
13-
podman build --platform linux/amd64,linux/arm64 --manifest us-east1-docker.pkg.dev/crl-ci-images/cockroach/acceptance-gss-$TARGET:$TAG ./$TARGET
14-
podman manifest push us-east1-docker.pkg.dev/crl-ci-images/cockroach/acceptance-gss-$TARGET:$TAG us-east1-docker.pkg.dev/crl-ci-images/cockroach/acceptance-gss-$TARGET:$TAG
15+
podman build --platform linux/amd64,linux/arm64 --manifest $REPO:$TAG ./$TARGET
16+
podman manifest push $REPO:$TAG $REPO:$TAG
1517
else
1618
docker buildx create --use
17-
docker buildx build --push --platform linux/amd64,linux/arm64 -t us-east1-docker.pkg.dev/crl-ci-images/cockroach/acceptance-gss-$TARGET:$TAG ./$TARGET
19+
docker buildx build --push --platform linux/amd64,linux/arm64 -t $REPO:$TAG ./$TARGET
1820
fi

pkg/acceptance/testdata/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ need to update the image.
1616
## Updating the `acceptance` image
1717

1818
- (One-time setup) Depending on how your Docker instance is configured, you may have to run `docker run --privileged --rm tonistiigi/binfmt --install all`. This will install `qemu` emulators on your system for platforms besides your native one.
19-
- Build the image for both platforms and publish the cross-platform manifest. Note that the non-native build for your image will be very slow since it will have to emulate.
20-
```
21-
TAG=$(date +%Y%m%d-%H%M%S)
22-
docker buildx create --use
23-
docker buildx build --push --platform linux/amd64,linux/arm64 -t us-east1-docker.pkg.dev/crl-ci-images/cockroach/acceptance:$TAG .
24-
```
19+
- Ask someone from the Engineering Productivity team to build the image for
20+
both platforms and publish the cross-platform manifest by running
21+
`build-push-acceptance.sh`. Note that the non-native build for your image will
22+
be very slow since it will have to emulate.
2523

2624
No need to have your changes reviewed before you push an image, as we pin the
2725
container version to use in `../util_docker.go`. Once your changes are ready for
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# Copyright 2022 The Cockroach Authors.
4+
#
5+
# Use of this software is governed by the CockroachDB Software License
6+
# included in the /LICENSE file.
7+
8+
set -xeuo pipefail
9+
10+
REPO=us-east1-docker.pkg.dev/crl-ci-images/cockroach/acceptance
11+
TAG=$(date +%Y%m%d-%H%M%S)
12+
if which podman; then
13+
podman build --platform linux/amd64,linux/arm64 --manifest $REPO:$TAG ./
14+
podman manifest push $REPO:$TAG $REPO:$TAG
15+
else
16+
docker buildx create --use
17+
docker buildx build --push --platform linux/amd64,linux/arm64 -t $REPO:$TAG ./
18+
fi

pkg/cmd/roachtest/tests/backup_fixtures.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,9 @@ func registerBackupFixtures(r registry.Registry) {
538538
hardware: makeHardwareSpecs(hardwareSpecs{
539539
workloadNode: true,
540540
}),
541-
timeout: 2 * time.Hour,
541+
// Fingerprinting is measured to take about 40 minutes on a 350 GB
542+
// fixture on top of the allocated 2 hours for the test.
543+
timeout: 3 * time.Hour,
542544
suites: registry.Suites(registry.Nightly),
543545
clouds: []spec.Cloud{spec.AWS, spec.GCE},
544546
},

0 commit comments

Comments
 (0)