auth e2e test: the logged-in accounts create child reaches no store
TestAccountsCreateUsesTheLoggedInIdentity takes the console path, so its child env now comes from carlosTestEnv with CARLOS_DEPLOYMENT_BUCKET, CARLOS_DEPLOYMENT_DIR and AWS_PROFILE blanked: no inherited deployment store can be reached. Verified with CARLOS_DEPLOYMENT_BUCKET= nonexistent-bucket-xyz exported.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+7
−4
auth_e2e_test.go+7 −4
CI cancelled — superseded by a newer push — run details
CI log
=== gate === cd launchctx && go vet ./... && go test ./... -count=1 ok amadan.net/carlos/platform.git/launchctx 0.012s ? amadan.net/carlos/platform.git/launchctx/controlname [no test files] ? amadan.net/carlos/platform.git/launchctx/wireid [no test files] go vet ./... gofmt -l .: clean go test ./... -count=1 -timeout 30m amadan: job cancelled — a newer push superseded it
diff --git a/auth_e2e_test.go b/auth_e2e_test.go| index 465bdc06e..22ee1dfb7 100644 |
| --- a/auth_e2e_test.go |
| +++ b/auth_e2e_test.go |
| @@ -331,13 +331,16 @@ func TestAccountsCreateUsesTheLoggedInIdentity(t *testing.T) { |
| t.Fatal(err) |
| } |
| cmd := exec.Command(bin, "accounts", "create", "-name", "kass") |
| - cmd.Env = append(os.Environ(), |
| + cmd.Env = carlosTestEnv(t, |
| + // No deployment store of any kind: the console owns the bucket write |
| + // on this path, and a laptop has none configured. Blanked rather than |
| + // left out, so an inherited bucket (or dir) can never be reached. |
| + "CARLOS_DEPLOYMENT_BUCKET=", |
| + "CARLOS_DEPLOYMENT_DIR=", |
| + "AWS_PROFILE=", |
| "CARLOS_CREDENTIALS="+creds, |
| "CARLOS_DATA_DIR="+tmp, |
| "HOME="+tmp, |
| - "CARLOS_CONSOLE=", |
| - // Deliberately no CARLOS_DEPLOYMENT_DIR: the console owns the bucket |
| - // write on this path, and a laptop has no deployment store configured. |
| ) |
| // pick() walks cwd ancestors for .carlos/config, so the subprocess must not run from the real checkout. |
| cmd.Dir = tmp |