Skip to content

Commit

Permalink
Merge pull request #3540 from iwankgb/bookworm
Browse files Browse the repository at this point in the history
Using bookworm images
  • Loading branch information
bobbypage authored Jun 21, 2024
2 parents 54dff2b + 39fbc44 commit ca6468b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
strategy:
matrix:
go-versions: ['1.22', '1.21']
platform: [ubuntu-20.04]
platform: [ubuntu-22.04]
environment-variables: [build/config/plain.sh, build/config/libpfm4.sh, build/config/libipmctl.sh]
runs-on: ${{ matrix.platform }}
timeout-minutes: 30
Expand All @@ -32,7 +32,7 @@ jobs:
strategy:
matrix:
go-versions: ['1.22', '1.21']
platform: [ubuntu-20.04]
platform: [ubuntu-22.04]
environment-variables: [build/config/plain.sh, build/config/libpfm4.sh, build/config/libipmctl.sh]
runs-on: ${{ matrix.platform }}
timeout-minutes: 30
Expand Down
4 changes: 2 additions & 2 deletions build/config/libipmctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
# limitations under the License.

export GO_FLAGS="-tags=libipmctl,cgo -race"
export PACKAGES="sudo libipmctl4"
export BUILD_PACKAGES="libipmctl4 libipmctl-dev"
export PACKAGES="sudo libipmctl5"
export BUILD_PACKAGES="libipmctl5 libipmctl-dev"
export CADVISOR_ARGS="-perf_events_config=perf/testing/perf-non-hardware.json"
10 changes: 4 additions & 6 deletions build/integration-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function run_tests() {
docker run --rm \
-w /go/src/github.com/google/cadvisor \
-v ${PWD}:/go/src/github.com/google/cadvisor \
golang:"$GOLANG_VERSION-bullseye" \
golang:"$GOLANG_VERSION-bookworm" \
bash -c "$BUILD_CMD"

EXTRA_DOCKER_OPTS="-e DOCKER_IN_DOCKER_ENABLED=true"
Expand All @@ -58,13 +58,11 @@ function run_tests() {
--privileged \
--cap-add="sys_admin" \
--entrypoint="" \
gcr.io/k8s-testimages/bootstrap \
gcr.io/k8s-staging-test-infra/bootstrap \
bash -c "export DEBIAN_FRONTEND=noninteractive && \
echo 'deb http://deb.debian.org/debian buster-backports main'>/etc/apt/sources.list.d/buster.list && \
cat /etc/apt/sources.list.d/buster.list && \
apt update && \
apt install -y -t buster-backports $PACKAGES && \
CADVISOR_ARGS="$CADVISOR_ARGS" /usr/local/bin/runner.sh build/integration.sh"
apt install -y $PACKAGES && \
CADVISOR_ARGS=$CADVISOR_ARGS /usr/local/bin/runner.sh build/integration.sh"
}

GO_FLAGS=${GO_FLAGS:-"-tags=netgo -race"}
Expand Down

0 comments on commit ca6468b

Please sign in to comment.