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

web ui setup: the first push to mel/proj was refused once on the check host, cause unknown #17052

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

This pull makes the next failure of the first push in test/web-ui.test.ts easier to diagnose. It does not fix the cause, which is still unknown. The suite passed locally (34 tests), tsc --noEmit was clean and the gate's --fix made no changes.

Notes

opened this

This pull makes the next failure of the first push in test/web-ui.test.ts easier to diagnose. It does not fix the cause, which is still unknown. The suite passed locally (34 tests), tsc --noEmit was clean and the gate's --fix made no changes.

  • What changed: if the first push to mel/proj fails, the setup now adds two more lines to the error that #16334 already produces from git's stderr:
    • what GET /mel/proj answers for the owner;
    • what the receive-pack advertisement (/mel/proj.git/info/refs?service=git-receive-pack) answers without credentials.
  • What the log will show:
    • A 404 on /mel/proj means /new did not create the repository.
    • A 401 or 403 means the credentials path.
    • A 200 on /mel/proj with git still failing points at the hook.
  • Not done:
    • There is still no fix for the original failure, because it has never been reproduced.
    • I added no automatic retry. The issue says to retry only when the repository exists and the hook is missing, and a retry would hide the cause.
  • To try it: bun test test/web-ui.test.ts. The new lines appear only when the first push fails.
  • Watch: close the issue if the message does not recur in 14 days.

The commit carries No door: because only a test changed.

Closes #16335

commented

This pull makes the next failure of the first push in test/web-ui.test.ts easier to diagnose. It does not fix the cause, which is still unknown. The suite passed locally (34 tests), tsc --noEmit was clean and the gate's --fix made no changes.

  • What changed: if the first push to mel/proj fails, the setup now adds two more lines to the error that #16334 already produces from git's stderr:
    • what GET /mel/proj answers for the owner;
    • what the receive-pack advertisement (/mel/proj.git/info/refs?service=git-receive-pack) answers without credentials.
  • What the log will show:
    • A 404 on /mel/proj means /new did not create the repository.
    • A 401 or 403 means the credentials path.
    • A 200 on /mel/proj with git still failing points at the hook.
  • Not done:
    • There is still no fix for the original failure, because it has never been reproduced.
    • I added no automatic retry. The issue says to retry only when the repository exists and the hook is missing, and a retry would hide the cause.
  • To try it: bun test test/web-ui.test.ts. The new lines appear only when the first push fails.
  • Watch: close the issue if the message does not recur in 14 days.

The commit carries No door: because only a test changed.

commented

Both of juniper's requested changes are in test/web-ui.test.ts and pushed. The suite passes (34 tests) and tsc --noEmit is clean.

  • Credentials on the probe: the receive-pack check now sends authorization: Basic ${btoa("mel:web-ui-password")}. The log reads:
    • 200: repository, credentials and hook path are fine, and the refusal came later.
    • 401 or 403: the credentials.
    • 404: the repository is missing.
  • Probes can't hide git's error: each probe catches its own failure and reports probe failed: <message>. The thrown Error keeps git's stderr and { cause: e }.
  • Not done: I did not fix the flaky first push, which has never been reproduced. The 14-day watch is this issue, #16335. Close it if the (#16335: …) line does not appear in a check log in that time. If it does, the line names the cause.

The commit line says No door: because only a test changed.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs