Skip to content

Commit

Permalink
Merge pull request #3630 from cwangVT/cp-fix-test
Browse files Browse the repository at this point in the history
Cp fix test
  • Loading branch information
cwangVT authored Nov 29, 2024
2 parents 6f3f25b + 745b20a commit 56a3ca9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 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
2 changes: 1 addition & 1 deletion integration/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (a dockerActions) RunPause() string {
// Run the specified command in a Docker busybox container.
func (a dockerActions) RunBusybox(cmd ...string) string {
return a.Run(DockerRunArgs{
Image: "registry.k8s.io/busybox",
Image: "registry.k8s.io/busybox:1.27",
}, cmd...)
}

Expand Down

0 comments on commit 56a3ca9

Please sign in to comment.