Skip to content

test: give Git subprocesses a deterministic fixture identity - #13

Merged
Steel-tech merged 1 commit into
mainfrom
codex/swarm-harness-identity
Sep 14, 2026
Merged

Steel-tech merged 1 commit into
mainfrom
codex/swarm-harness-identity

Conversation

@Steel-tech

Copy link
Copy Markdown
Contributor

freshEnv() disabled user/system Git configuration without supplying the fixture identity already used by git(). Real Git commands launched by Herdr stubs could therefore fall back to hostname-based identity detection during commits and reflog writes.

Reuse gitIdent in freshEnv(), keeping explicit overrides last. Add a regression that launches a real Git-writing stub from a child with poisoned inherited identity/configuration, then verifies the resulting commit author/committer and branch reflog identity. user.useConfigOnly makes missing identity fail deterministically; the test does not simulate or claim to reproduce the reported DNS stall.

Validation: npm run validate passes on Node 24: all 245 tests, source/manifest checks, and ShellCheck. The new regression failed with missing identity before the fix and passes afterward. Test-only change; plugin version remains 0.3.0.

Fixes #11

Reuse gitIdent in freshEnv so real Git children do not fall back to hostname-based identity detection while user/system configuration is disabled. Verify commit and reflog identities under poisoned inherited settings without relying on a DNS timeout.
@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 26 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: e566f0fd-f8c2-4fd0-8b3a-2a9536594f5c

📥 Commits

Reviewing files that changed from the base of the PR and between da001b6 and 63449eb.

📒 Files selected for processing (3)
  • CHANGELOG.md
  • tests/harness.mjs
  • tests/harness.test.mjs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Steel-tech
Steel-tech merged commit 43b5233 into main Sep 14, 2026
7 checks passed
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.

tests: freshEnv() omits git identity, so stub ref writes stall where the hostname does not resolve (21 failures, ~880s)

1 participant