-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump k3s to v1.29.4+k3s1, and add basic sig-api-machinery e2e against sqlite and nats Signed-off-by: Brad Davidson <[email protected]>
- Loading branch information
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
set -e | ||
cd $(dirname $0)/.. | ||
|
||
# sig-api-machinery e2e tests take about 20 minutes to complete. | ||
# Only run conformance on sqlite and nats, to reduce CI run time. | ||
if [[ "$LABEL" != "sqlite" ]] && [[ "$LABEL" != "nats-embedded" ]]; then | ||
echo "Skipping conformance" | ||
exit | ||
fi | ||
|
||
test-conformance() { | ||
local count=$(inc-count conformance) | ||
local testID=$(basename $TEST_DIR) | ||
local name=$(echo "conformance-$count-$testID" | tee $TEST_DIR/conformance/$count/metadata/name) | ||
local server_name=$(cat $TEST_DIR/servers/1/metadata/name) | ||
local version=$(docker exec $server_name k3s --version | grep -Eo 'v[0-9]+\.[0-9]+\.[0-9]+') | ||
echo "Running conformance tests against $(grep server: $KUBECONFIG)" | ||
# We can't just mount $KUBECONFIG as a volume, because in CI this script is | ||
# also running in a docker container, and the mount will not work. | ||
docker container run \ | ||
--rm -d --name $name \ | ||
--entrypoint /usr/bin/sh \ | ||
-e "KUBECONFIG=/root/.kube/config" \ | ||
-e "E2E_FOCUS=sig-api-machinery" \ | ||
-e "E2E_SKIP=StorageVersionAPI|Slow|Flaky" \ | ||
registry.k8s.io/conformance:$version \ | ||
-c 'mkdir -p /root/.kube; sleep 36000' | ||
docker cp $KUBECONFIG $name:/root/.kube/config | ||
docker exec $name /usr/local/bin/kubeconformance | ||
} | ||
|
||
test-conformance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ provision-database $DB_ARGS | |
start-test $@ | ||
|
||
./scripts/test-load | ||
./scripts/test-conformance |