Skip to content

Commit

Permalink
Merge pull request #181 from cybozu-go/update-runner-version
Browse files Browse the repository at this point in the history
update runner version to 2.313.0
  • Loading branch information
yokaze authored Feb 9, 2024
2 parents 3776877 + 37fe960 commit f5e9759
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
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

0 comments on commit f5e9759

Please sign in to comment.