Public: anyone can read this; the crew can change it.
Full suite red: test/outbound-gate.test.ts #12792
Pull #12809 was closed
Still red in the full suite (check run 01m7dp4w5mj2dsp13bjervc8q0, cb42fc8).
outboundFetch in a cell > a name the gate refuses is the gate's refusal, not a connection failureoutboundFetch in a cell > a name the gate could not resolve says soa refused host says why > the gate does not let the forge reach it: the refusal says so, names where to ask, and carries the name for the aska refused host says why > the name did not resolve
outboundFetch in a cell > a name the gate refuses is the gate's refusal, not a connection failure failed: error: expect(received).toBeInstanceOf(expected)
176 | const failure = await outboundFetch(
177 | "https://github.com/x",
178 | {},
179 | { proxy: g.url },
180 | ).catch((e: unknown) => e);
181 | expect(failure).toBeInstanceOf(GateRefusedError);
^
error: expect(received).toBeInstanceOf(expected)
Expected constructor: [class GateRefusedError extends Error]
Received value: 147 | throw new Error(UNRESOLVED_SENTENCE);
148 | }
149 | const name = target.hostname.replace(/^\[|\]$/g, "");
150 | const tls = { ...(options.ca ? { ca: options.ca } : {}) };
151 | if (vetted.value.via === "gate") {
152 | const answer = await fetch(target, {
^
error: Proxy refused to open a tunnel: 403 Refused
status: 403,
statusText: "Refused",
headers: Headers {
"content-length": "77",
"x-forge-egress": "refused",
},
code: "ERR_PROXY_TUNNEL"
at async outboundFetch (src/kernel/outbound.ts:152:26)
at async <anonymous> (test/outbound-gate.test.ts:180:9)
outboundFetch in a cell > a name the gate could not resolve says so failed: error: expect(received).toBe(expected)
191 | "https://nowhere.example.test/x",
192 | {},
193 | { proxy: g.url },
194 | ).catch((e: unknown) => e);
195 | expect(failure).toBeInstanceOf(Error);
196 | expect((failure as Error).message).toBe("unresolved host");
^
error: expect(received).toBe(expected)
Expected: "unresolved host"
Received: "Proxy refused to open a tunnel: 403 Refused"
at <anonymous> (test/outbound-gate.test.ts:196:40)
(fail) outboundFetch in a cell > a name the gate could not resolve says so [0.54ms]
a refused host says why > the gate does not let the forge reach it: the refusal says so, names where to ask, and carries the name for the ask failed: error: expect(received).toEqual(expected)
284 | t(
285 | "the gate does not let the forge reach it: the refusal says so, names where to ask, and carries the name for the ask",
286 | async () => {
287 | const g = allowing();
288 | const found = await discover("https://git.sr.ht", env, { proxy: g.url });
289 | expect(found).toEqual({
^
error: expect(received).toEqual(expected)
{
- "error": {
- "error": "unreachable",
- "gate": {
- "host": "git.sr.ht",
- },
- "message": "that host could not be reached: the forge that hosts this one has not allowed it to reach git.sr.ht yet. Ask it to on Settings, Connected accounts (/settings/origins?host=git.sr.ht)…
- },
+ "error": "unreachable",
"ok": false,
}
- Expected - 7
+ Received + 1
at <anonymous> (test/outbound-gate.test.ts:289:21)
(fail) a refused host says why > the gate does not let the forge reach it: the refusal says so, names where to ask, and carries the name for the ask [4.81ms]
To reproduce:
bun test ./test/outbound-gate.test.ts
bun test ./test/outbound-gate.test.ts --rerun-each 10
The full suite ran it in shard 301/3246, 4 files at a time.
Sign in to join this conversation.
new above
offline
_Filed by the scheduled full-suite report, not written by a person. It holds no pull, batch or release._
test/outbound-gate.test.tsfailed in the full suite on main (check run 01m7dkp2v9chbrrdr359cf2j4j, 5347ed3).outboundFetch in a cell > a name the gate refuses is the gate's refusal, not a connection failureoutboundFetch in a cell > a name the gate could not resolve says soa refused host says why > the gate does not let the forge reach it: the refusal says so, names where to ask, and carries the name for the aska refused host says why > the name did not resolveoutboundFetch in a cell > a name the gate refuses is the gate's refusal, not a connection failurefailed:error: expect(received).toBeInstanceOf(expected)outboundFetch in a cell > a name the gate could not resolve says sofailed:error: expect(received).toBe(expected)a refused host says why > the gate does not let the forge reach it: the refusal says so, names where to ask, and carries the name for the askfailed:error: expect(received).toEqual(expected)To reproduce:
The full suite ran it in shard 309/3240, 4 files at a time.
Files: test/outbound-gate.test.ts