Skip to content

Commit

Permalink
Add a new label for running a quick upgrade test case (#2201)
Browse files Browse the repository at this point in the history
* Add a new label for running a quick upgrade test case

* Update label names
  • Loading branch information
johscheuer authored Feb 24, 2025
1 parent d91f346 commit 0651fe8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions e2e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,20 @@ nightly-tests: GINKGO_LABEL_FILTER=--ginkgo.label-filter="pr || nightly"
# Run the actual nightly tests
nightly-tests: run

# Only run tests that are labeled with the "foundationdb-pr" label, this is used for the cluster tests in the
# foundationdb repo.
foundationdb-pr-tests: GINKGO_LABEL_FILTER=--ginkgo.label-filter="foundationdb-pr"

# Run the actual foundationdb-pr tests.
foundationdb-pr-tests: run

# Only run tests that are labeled with the "foundationdb-nightly" or "foundationdb-pr" label, this is used for the cluster tests in the
# foundationdb repo.
foundationdb-nightly-tests: GINKGO_LABEL_FILTER=--ginkgo.label-filter="foundationdb-pr || foundationdb-nightly"

# Run the actual foundationdb-nightly tests.
foundationdb-nightly-tests: run

%.run: %
@sleep $$(shuf -i 1-10 -n 1)
go test -timeout=$(TIMEOUT) $(VERBOSE) ./$< \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ var _ = Describe("Operator Upgrades", Label("e2e", "pr"), func() {
// this setup allows to dynamically generate the table entries that will be executed e.g. to test different upgrades
// for different versions without hard coding or having multiple flags.
DescribeTable(
"upgrading a cluster without chaos",
"upgrading a cluster without chaos", Label("foundationdb-pr"),
func(beforeVersion string, targetVersion string) {
performUpgrade(testConfig{
beforeVersion: beforeVersion,
Expand Down

0 comments on commit 0651fe8

Please sign in to comment.