Skip to content

Commit

Permalink
Temporarily run conformance in PR
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola committed Jan 27, 2025
1 parent d7d9ac7 commit f0100d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ fi
. ./tests/docker/test-run-hardened
echo "Did test-run-hardened $?"

# go test -timeout=30m ./tests/docker/conformance/conformance_test.go -k3sImage="$K3S_IMAGE" -serial -ginkgo.v

if [ "$ARCH" != 'arm' ]; then
go test -timeout=50m ./tests/docker/conformance/conformance_test.go -k3sImage="$K3S_IMAGE" -ginkgo.v
echo "Did go test conformance $?"
fi
# ---

[ "$ARCH" != 'amd64' ] && \
Expand Down
9 changes: 5 additions & 4 deletions tests/docker/conformance/conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ var _ = Describe("Conformance Tests", Ordered, func() {
if *serial {
Skip("Skipping parallel conformance tests")
}
cmd := fmt.Sprintf("%s -o %s --focus=\"Conformance\" --skip=\"Serial|Flaky\" -p %d --extra-ginkgo-args=\"%s\" --kubeconfig %s",
cmd := fmt.Sprintf("%s --focus=\"Conformance\" --skip=\"Serial|Flaky\" -p %d --extra-ginkgo-args=\"%s\" --kubeconfig %s",
filepath.Join(config.TestDir, "hydrophone"),
filepath.Join(config.TestDir, "logs"),
runtime.NumCPU()/2,
"--poll-progress-after=60s,--poll-progress-interval=30s",
config.KubeconfigFile)
By("Hydrophone: " + cmd)
Expect(tester.RunCommand(cmd)).Error().ShouldNot(HaveOccurred())
res, err := tester.RunCommand(cmd)
Expect(err).NotTo(HaveOccurred(), res)
})
It("should run serial conformance tests", func() {
if !*serial {
Expand All @@ -78,7 +78,8 @@ var _ = Describe("Conformance Tests", Ordered, func() {
"--poll-progress-after=60s,--poll-progress-interval=30s",
config.KubeconfigFile)
By("Hydrophone: " + cmd)
Expect(tester.RunCommand(cmd)).Error().ShouldNot(HaveOccurred())
res, err := tester.RunCommand(cmd)
Expect(err).NotTo(HaveOccurred(), res)
})
})

Expand Down

0 comments on commit f0100d0

Please sign in to comment.