Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(branch-profile): say how to select an adopted profile in the namespace refusal
Alfredo Lopez03b6c1ea8d00
diff --git a/scripts/minikube-profiles/branch-profile.sh b/scripts/minikube-profiles/branch-profile.shindex b502df10d..e17153e23 100755--- a/scripts/minikube-profiles/branch-profile.sh+++ b/scripts/minikube-profiles/branch-profile.sh@@ -132,7 +132,7 @@ validate_profile_name() {# clerum-<branch slug>-<owner id prefix> (profile_owner_stable_profile in# scripts/minikube/profile-owner.sh), so it must carry the hex suffix.[[ "${PROFILE}" =~ ^clerum-[a-z0-9][a-z0-9._-]*-[0-9a-f]{7,8}$ ]] ||- die "resolver returned a profile outside the branch-scoped clerum-<branch>-<owner-id> namespace: ${PROFILE}"+ die "resolver returned a profile outside the branch-scoped clerum-<branch>-<owner-id> namespace: ${PROFILE}; select an adopted profile explicitly with MINIKUBE_PROFILE=<name>"}set_profile_paths() {diff --git a/scripts/tests/test-branch-profile-lifecycle.sh b/scripts/tests/test-branch-profile-lifecycle.shindex 622611d4f..5c4838af9 100755--- a/scripts/tests/test-branch-profile-lifecycle.sh+++ b/scripts/tests/test-branch-profile-lifecycle.sh@@ -409,6 +409,8 @@ bp derived-unhashed resolveassert_rc 1 'resolver-derived profile without the hashed suffix'assert_output_has "outside the branch-scoped clerum-<branch>-<owner-id> namespace: ${adopted}" \'the resolver found the unhashed profile and refused it'+assert_output_has 'select an adopted profile explicitly with MINIKUBE_PROFILE=<name>' \+ 'the refusal of a resolver-derived unhashed profile says how to select it'assert_output_lacks "PROFILE=${adopted}" 'a resolver-derived unhashed profile must not resolve'mv "${tmp}/branch-profile-aside" "${profile_dir}"rm -rf "${cache_root:?}/${adopted}"