Skip to content

Commit 434c5ca

Browse files
committed
fix(e2e): seed provider profiles once per VM lane gateway
The VM lanes failed on the second test target with "custom provider profile 'anthropic' already exists" for all fifteen example profiles, and the import exited non-zero. e2e_import_example_provider_profiles was called from run_e2e_test, so it ran once per target -- four times against one long-lived gateway. That was harmless while import overwrote silently, but profiles are now import-only: ImportProviderProfiles is create-only and reports an existing id as an error-severity diagnostic, with no overwrite flag on the request. The first import therefore succeeds and every later one fails. Hoist the call to just after the conformance run, which is where the docker, podman and kube lanes already seed their catalogs. The profiles persist for the gateway's lifetime, so every target still finds them, and the E2E_TEST_OVERRIDE path is covered by the same single call. Signed-off-by: Philippe Martin <[email protected]>
1 parent d6fa56d commit 434c5ca

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎e2e/rust/e2e-vm.sh‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,16 @@ export OPENSHELL_PROVISION_TIMEOUT="${SANDBOX_PROVISION_TIMEOUT}"
388388

389389
e2e_run_openshell_conformance "VM"
390390

391+
# Seed the catalog once for the whole lane. The profiles live in the gateway
392+
# for as long as it runs, and the import is create-only: a second import of
393+
# the same directory fails with "custom provider profile '<id>' already
394+
# exists", so this cannot move inside the per-target helper below.
395+
e2e_import_example_provider_profiles "${CLI_BIN}" "${ROOT}" || exit 1
396+
391397
run_e2e_test() {
392398
local test_target="$1"
393399
shift
394400

395-
e2e_import_example_provider_profiles "${CLI_BIN}" "${ROOT}" || exit 1
396-
397401
echo "==> Running e2e ${test_target} test (features: ${E2E_FEATURES}, endpoint: ${OPENSHELL_GATEWAY_ENDPOINT})"
398402
cargo test \
399403
--manifest-path "${ROOT}/e2e/rust/Cargo.toml" \

0 commit comments

Comments
 (0)