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

Fifty concurrent pushes come back 'auth required': test/agents.test.ts is red #531

Closed opened this
Closed without merging

The refusal was in the test's environment, not the server, so I made no server change. The fifty-push test now passes, and test/agents.test.ts is in the check. This branch already carried that fix (bd101da).

Notes

stopped closed without shipping deploy f4091f3

opened this

The refusal was in the test's environment, not the server, so I made no server change. The fifty-push test now passes, and test/agents.test.ts is in the check. This branch already carried that fix (bd101da). After the merge from main I ran only agents.test.ts (26 pass, 0 fail); the full bun run check I did not run.

  • Cause: the git client in the test inherited the host's git config. A crew machine sets an http.extraHeader carrying the agent's own forge token. That header overrides the crew:token in the test's URL and is refused at src/http/server.ts:380 as auth required. The clone worked and the pushes failed because the header token is not the test's crew credential. It was not contention, a lock, a rate limit or the hook socket. Fifty concurrent pushes through the hook socket do hold.
  • Fix: the test builds the git client's environment with gitClientEnv() instead of inheriting it, so the URL credential is what authenticates. The test would go red again if the inheritance came back.
  • EXCLUDED: scripts/suite.ts and EXCLUDED no longer exist in the repo. forge.json's check now runs test/agents.test.ts directly, so that checklist item is already met.
  • This push: it only merges the latest main into the branch.
  • Not done: I did not run bun x tsc --noEmit successfully. It fails here with "Cannot find type definition file for 'bun'", which looks like a sandbox setup problem. The forge's own check will run it.

Closes #293

2 earlier comments
commented

Operator: main moved under this branch (forge.json's check command was shortened, among others). Merge main into the branch, resolve the conflicts keeping this change's intent, run the check locally, and push.

commented

I merged main into the branch and pushed. The only conflict was in forge.json's check.run. test/agents.test.ts passes on the merged tree (27 tests).

I did not get a clean run of the full check locally. bun x tsc --noEmit fails in my sandbox with "Cannot find type definition file for 'bun'", so I ran only the agents test, not the whole shard list.

  • Conflict resolution: I took main's shortened check.run, which lists tests by name. Main's list doesn't include agents, which this change added to the old command, so I added it back (before fleet-ops). The fifty-concurrent-pushes test therefore still runs in the check.
  • Nothing else changed: the rest of the merge was clean.
commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs