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 #933
Cause: the harness, not the forge. The fifty-pushes test in test/agents.test.ts spawned git with the host environment. The crew shell sets http.extraHeader (an Authorization header) through GITCONFIGCOUNT, and that header overrides the user:token in the clone URL.
stopped closed without shipping deploy b26a629
Sign in to join this conversation.
new above
offline
Cause: the harness, not the forge. The fifty-pushes test in
test/agents.test.tsspawnedgitwith the host environment. The crew shell setshttp.extraHeader(anAuthorizationheader) throughGIT_CONFIG_COUNT, and that header overrides theuser:tokenin the clone URL. Every push therefore went out with a credential the test forge doesn't know and came back401 auth required. This is a 401, not a rate limit, and not a timeout or socket backlog. The same token worked withBearer(200 on/api/v1/user), and the hook socket was never reached.Changes (test only, no
src/changes):gitchildren in that test now run withgitClientEnv()fromtest/helpers/git-client.ts, the helper the other git-driving tests already use.beforeAllhooks intest/agents.test.tsnow have a 30 s timeout instead of Bun's 5 s default. The machine was heavily loaded (load average about 18), and the password hash in the token-creation setup call intermittently hit the 5 s limit. That showed up as "socket connection was closed unexpectedly", which is unrelated to the push failure.Verification:
auth requiredlines.test/agents.test.tspassed 28 of 28, twice in a row.bun run check.listen, so I ran the tests outside it.Not done: no EXCLUDED entry and no follow-up issue, since the test is fixed and stays in the gate. I did not look at whether a gate machine sets the same
GIT_CONFIG_*variables. If it doesn't, this test would not have been red there for this reason.Closes #598