Skip to content

Commit 1d17044

Browse files
committed
fix for TERMINATED state VMs, update runner version for container gha runners
Signed-off-by: Koray Oksay <koray.oksay@gmail.com>
1 parent a7c3f10 commit 1d17044

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

ci/cloudrunners/oci/pkg/oci/ephemeralmachine.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ func (m *EphemeralMachine) WaitForInstanceReady(ctx context.Context) error {
6565
m.instance = &getInstanceResponse.Instance
6666
break
6767
}
68+
// Sometimes the API request is correct, but machine creation fails and jumps to TERMINATED state, then the pod runs forever
69+
if getInstanceResponse.Instance.LifecycleState == core.InstanceLifecycleStateTerminated {
70+
return fmt.Errorf("failed to create the machine, it's in TERMINATED state")
71+
}
6872
time.Sleep(15 * time.Second)
6973
}
7074

ci/gha-runner-image/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ ARG BASE_IMAGE
22

33
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/runtime-deps:8.0-${BASE_IMAGE} AS build
44

5-
ARG RUNNER_VERSION=2.329.0
5+
ARG RUNNER_VERSION=2.330.0
66
ARG RUNNER_CONTAINER_HOOKS_VERSION=0.8.0
7-
ARG DOCKER_VERSION=28.5.1
8-
ARG BUILDX_VERSION=0.29.1
7+
ARG DOCKER_VERSION=29.0.2
8+
ARG BUILDX_VERSION=0.30.1
99
ARG TARGETOS
1010
ARG TARGETARCH
1111

@@ -100,9 +100,9 @@ COPY --from=build /usr/local/lib/docker/cli-plugins/docker-buildx /usr/local/lib
100100

101101
RUN install -o root -g root -m 755 docker/* /usr/bin/ && rm -rf docker
102102

103-
RUN curl -LO https://go.dev/dl/go1.25.3.linux-${TARGETARCH}.tar.gz \
104-
&& tar -C /usr/local -xzf go1.25.3.linux-${TARGETARCH}.tar.gz \
105-
&& rm go1.25.3.linux-${TARGETARCH}.tar.gz \
103+
RUN curl -LO https://go.dev/dl/go1.25.4.linux-${TARGETARCH}.tar.gz \
104+
&& tar -C /usr/local -xzf go1.25.4.linux-${TARGETARCH}.tar.gz \
105+
&& rm go1.25.4.linux-${TARGETARCH}.tar.gz \
106106
&& echo 'export PATH=$PATH:/usr/local/go/bin:/home/runner/go/bin:/home/runner/.local/bin' >> /etc/profile \
107107
&& echo 'export PATH=$PATH:/usr/local/go/bin:/home/runner/go/bin:/home/runner/.local/bin' >> /home/runner/.profile \
108108
&& echo 'export PATH=$PATH:/usr/local/go/bin:/home/runner/go/bin:/home/runner/.local/bin' >> /home/runner/.bashrc

0 commit comments

Comments
 (0)