Files
archived-orca/config/scripts/test-runtime/environment/vitest-caller-identity-env-setup.ts
Neilandoutof-place 7c38e53284 test: keep real git and shell test fixtures off developer config (#41278)
Disable commit/tag GPG signing via a cached wrapper GIT_CONFIG_GLOBAL when
the developer's global gitconfig enables signing, clear inherited GIT_CONFIG_GLOBAL
in GitBinaryTestFixture, strip inherited TERM_PROGRAM* in Vitest setup, and
run ssh-posix-command-wrapper shell checks against an empty HOME/ZDOTDIR/XDG_CONFIG_HOME.

Fixes #27210

Co-authored-by: outof-place <contact@outofplace.space>
2026-11-11 15:03:49 -08:00

17 lines
577 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Clear the launching terminal’s inherited Orca identity so test branches depend on fixture env, not which agent launched runner.
// Clear the launching terminal's identity too: macOS /etc/zshrc and /etc/bashrc source /etc/{zsh,bash}rc_$TERM_PROGRAM.
for (const name of [
'ORCA_AGENT_SESSION_ID',
'ORCA_STRUCTURED_SESSION',
'ORCA_WORKTREE_ID',
'ORCA_WORKSPACE_ID',
'ORCA_RUNTIME_SOURCE_ID',
'ORCA_RUNTIME_SOURCE_INCARNATION',
'ORCA_RUNTIME_SOURCE_PROFILE_PATH',
'TERM_PROGRAM',
'TERM_PROGRAM_VERSION',
'TERM_SESSION_ID'
]) {
delete process.env[name]
}