Skip to content

Commit 56a3ca9

Browse files
authored
Merge pull request #3630 from cwangVT/cp-fix-test
Cp fix test
2 parents 6f3f25b + 745b20a commit 56a3ca9

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

Diff for: .github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
strategy:
66
matrix:
77
go-versions: ['1.22', '1.21']
8-
platform: [ubuntu-20.04]
8+
platform: [ubuntu-22.04]
99
environment-variables: [build/config/plain.sh, build/config/libpfm4.sh, build/config/libipmctl.sh]
1010
runs-on: ${{ matrix.platform }}
1111
timeout-minutes: 30
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
matrix:
3434
go-versions: ['1.22', '1.21']
35-
platform: [ubuntu-20.04]
35+
platform: [ubuntu-22.04]
3636
environment-variables: [build/config/plain.sh, build/config/libpfm4.sh, build/config/libipmctl.sh]
3737
runs-on: ${{ matrix.platform }}
3838
timeout-minutes: 30

Diff for: build/config/libipmctl.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
# limitations under the License.
1414

1515
export GO_FLAGS="-tags=libipmctl,cgo -race"
16-
export PACKAGES="sudo libipmctl4"
17-
export BUILD_PACKAGES="libipmctl4 libipmctl-dev"
16+
export PACKAGES="sudo libipmctl5"
17+
export BUILD_PACKAGES="libipmctl5 libipmctl-dev"
1818
export CADVISOR_ARGS="-perf_events_config=perf/testing/perf-non-hardware.json"

Diff for: build/integration-in-docker.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function run_tests() {
4242
docker run --rm \
4343
-w /go/src/github.com/google/cadvisor \
4444
-v ${PWD}:/go/src/github.com/google/cadvisor \
45-
golang:"$GOLANG_VERSION-bullseye" \
45+
golang:"$GOLANG_VERSION-bookworm" \
4646
bash -c "$BUILD_CMD"
4747

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

7068
GO_FLAGS=${GO_FLAGS:-"-tags=netgo -race"}

Diff for: integration/framework/framework.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (a dockerActions) RunPause() string {
220220
// Run the specified command in a Docker busybox container.
221221
func (a dockerActions) RunBusybox(cmd ...string) string {
222222
return a.Run(DockerRunArgs{
223-
Image: "registry.k8s.io/busybox",
223+
Image: "registry.k8s.io/busybox:1.27",
224224
}, cmd...)
225225
}
226226

0 commit comments

Comments
 (0)