Skip to content

fix: give the test suite its own git identity for CI runners - #15

Merged
d6veteran merged 1 commit into
mainfrom
claude/add-team-personas-9jyqiz
Jul 27, 2026
Merged

fix: give the test suite its own git identity for CI runners#15
d6veteran merged 1 commit into
mainfrom
claude/add-team-personas-9jyqiz

Conversation

@d6veteran

Copy link
Copy Markdown
Collaborator

Summary

Fixes the tests (linux) CI failure from #14's runs (13 failed session assertions, example run).

Root cause: the session tests seed throwaway repos with git commit --allow-empty, which fails on machines with no git identity configured, exactly what GitHub runners are. The repo then has no commits, git worktree add has nothing to branch from, and every session assertion downstream fails. It passed locally only because the dev machine happened to have user.name/user.email set.

Fix: the suite exports GIT_AUTHOR_*/GIT_COMMITTER_* itself, so it is self-contained on any machine. Also tightens two assertions that false-passed on the runner by matching leftover index rows (active/merged anywhere in the file); they now match the specific feat/session-test row, so this failure mode can't hide again.

Verification

  • Reproduced the exact CI failure locally with GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_SYSTEM=/dev/null bash tests/run.sh (same 13 session failures).
  • With the fix: 123/123 passing both with ambient git config and with it stripped.
  • shellcheck clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Nx3U4ZrUAmCpsCeSxvzRWX


Generated by Claude Code

The session tests seed throwaway repos with git commit, which fails on
machines with no git identity configured (GitHub runners, fresh
installs): the repo then has no commits, worktree creation has nothing
to branch from, and 13 session assertions fail. The suite now exports
GIT_AUTHOR/COMMITTER identity itself instead of depending on ambient
config.

Also tightens two assertions that false-passed on the runner by
matching leftover index rows ("active"/"merged" anywhere in the file);
they now match the specific branch row.

Reproduced the CI failure locally with GIT_CONFIG_GLOBAL=/dev/null and
verified 123/123 both with and without ambient git config.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nx3U4ZrUAmCpsCeSxvzRWX
@d6veteran
d6veteran merged commit 98c2b60 into main Jul 27, 2026
3 checks passed
@d6veteran
d6veteran deleted the claude/add-team-personas-9jyqiz branch July 27, 2026 04:08
d6veteran pushed a commit that referenced this pull request Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants