Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update runner version to 2.313.0 #181

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ FROM quay.io/cybozu/ubuntu:22.04 as runner

# Even if the version of the runner is out of date, it will self-update at job execution time. So there is no problem to update it when you notice.
# TODO: Until https://github.com/cybozu-go/meows/issues/137 is fixed, update it manually.
ARG RUNNER_VERSION=2.304.0
ARG RUNNER_VERSION=2.313.0

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y \
Expand Down
42 changes: 24 additions & 18 deletions kindtest/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,18 @@ func testRunner() {
finishedAt := time.Now()

By("checking status")
Expect(status).To(PointTo(MatchAllFields(Fields{
"State": Equal("debugging"),
"Result": Equal("failure"),
"FinishedAt": PointTo(BeTemporally("~", finishedAt, 3*time.Second)),
"DeletionTime": BeNil(),
"Extend": PointTo(BeTrue()),
"JobInfo": Not(BeNil()),
"SlackChannel": BeEmpty(),
})))
Eventually(func(g Gomega) {
_, status = waitJobCompletion(repoRunner1NS, repoRunnerPool1Name)
g.Expect(status).To(PointTo(MatchAllFields(Fields{
"State": Equal("debugging"),
"Result": Equal("failure"),
"FinishedAt": PointTo(BeTemporally("~", finishedAt, 3*time.Second)),
"DeletionTime": Not(BeNil()),
"Extend": PointTo(BeTrue()),
"JobInfo": Not(BeNil()),
"SlackChannel": BeEmpty(),
})))
}).Should(Succeed())

By("checking pdb")
_, stderr, err := kubectl("evict", "-n", repoRunner1NS, assignedPod.Name)
Expand Down Expand Up @@ -150,15 +153,18 @@ func testRunner() {
finishedAt := time.Now()

By("checking status")
Expect(status).To(PointTo(MatchAllFields(Fields{
"State": Equal("debugging"),
"Result": Equal("failure"),
"FinishedAt": PointTo(BeTemporally("~", finishedAt, 3*time.Second)),
"DeletionTime": BeNil(),
"Extend": PointTo(BeTrue()),
"JobInfo": Not(BeNil()),
"SlackChannel": BeEmpty(),
})))
Eventually(func(g Gomega) {
_, status = waitJobCompletion(repoRunner2NS, repoRunnerPool2Name)
g.Expect(status).To(PointTo(MatchAllFields(Fields{
"State": Equal("debugging"),
"Result": Equal("failure"),
"FinishedAt": PointTo(BeTemporally("~", finishedAt, 3*time.Second)),
"DeletionTime": Not(BeNil()),
"Extend": PointTo(BeTrue()),
"JobInfo": Not(BeNil()),
"SlackChannel": BeEmpty(),
})))
}).Should(Succeed())

By("sending request to the pod")
extendTo := time.Now().Add(45 * time.Second).Truncate(time.Second)
Expand Down
Loading