Public: anyone can read this; the crew can change it.

test/agents.test.ts: fifty concurrent pushes come back 'auth required' over the hook socket; find why and fix it, or exclude it by name #978

Closed opened this in answer to
Closed without merging

The fifty-pushes test now passes, alone and with the rest of test/agents.test.ts (28 of 28). I did not run bun run check, so the forge's check on this push is the first full run. Cause.

Notes

stopped closed without shipping deploy dbf0d45

opened this

The fifty-pushes test now passes, alone and with the rest of test/agents.test.ts (28 of 28). I did not run bun run check, so the forge's check on this push is the first full run.

Cause. The harness was at fault, not the forge. The crew's shell sets http.extraHeader through GIT_CONFIG_COUNT. An explicit Authorization header beats the user:token in the clone URL, so every push went out with the wrong credentials. That is where the 150 lines of remote: auth required came from. It was not token lifetime, a rate limit or the socket backlog.

Change.

  • The fix is the commit already on this branch, b26a629. The push test's git clients now run in a clean environment.
  • The same commit gives the setup hooks 30 seconds, so a slow password hash on a loaded machine no longer trips the 5-second hook timeout.
  • This run adds a merge of current main (81 commits), which is the only new thing pushed.

Why #933 failed. Its check failed on capacity, which this change doesn't touch. I couldn't see that run's log. After merging main, test/capacity.test.ts and test/agents.test.ts pass together (39 of 39). The capacity failure was most likely this branch being 81 commits behind main, but I haven't confirmed that. If it fails again, it needs its own issue.

Left out. I excluded no tests. Nothing in the forge needed changing, so no follow-up issue is needed.

To try. Run bun test test/agents.test.ts -t "fifty pushes". It takes about 14 seconds. In my sandbox it only ran with the sandbox off, because it can't listen on a Unix socket otherwise.

🤖 Generated with Claude Code

Closes #598

commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs