Skip to content

test(agentflow): dispatch records match workers in herdr worktrees - #703

Open
lis186 wants to merge 2 commits into
mainfrom
test/agentflow-herdr-worktree
Open

lis186 wants to merge 2 commits into
mainfrom
test/agentflow-herdr-worktree

Conversation

@lis186

@lis186 lis186 commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Summary

Test-only: an agentflow dispatch record whose clone path is a herdr worktree (a linked git worktree, not agentflow's default external-runner temp clone) matches the worker sessions that ran in that worktree.

  • New test/agentflow-herdr-worktree.test.js (synthetic data; one case creates a real linked worktree in a temp dir, reads its dispatch record from disk with clone.root, and reaches it through a symlinked cwd).
  • No production change. Finding: none needed — attributeWorkers already treats any path a dispatch record names as a clone (except the reported checkout root), so herdr worktree paths match.

Verification

  • New file 5/5; all agentflow test files 171/171; unit group (2 workers) 2071/2071.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T14:24:47.707893Z f3c86cd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f3c86cdb36

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

try {
const repo = path.join(dir, 'repo');
const wt = path.join(dir, 'repo-feature-x');
const git = (...a) => execFileSync('git', ['-c', 'user.name=t', '-c', '[email protected]', ...a], { cwd: repo, stdio: 'pipe' });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Isolate the Git fixture from global configuration

When the developer has global Git settings such as commit.gpgSign=true, this helper inherits them and the empty commit fails before the assertions run; a global hooks path or init template can similarly change the fixture. This is reproducible by running the test with a temporary HOME containing a .gitconfig that enables signing. Disable signing and hooks explicitly, or give these Git commands an isolated global/system config, so the test behaves the same on developer machines and clean CI.

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
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.

1 participant