_Filed by the scheduled full-suite report, not written by a person. It holds no pull, batch or release._
test/contribute-token.test.ts failed in the full suite on main (check run 01m7egg61rp67ega656jdzxe62, 0b4b4ed).
minting, renewing, revoking > an owner's yes lets it mint; the token expires, renews once, and is revoked
minting, renewing, revoking > two tokens that claim the same name cannot push over, or delete, each other's branches
minting, renewing, revoking > a token opens at most a few pulls, and a repository takes a day's worth from all of them
minting, renewing, revoking > an owner's yes lets it mint; the token expires, renews once, and is revoked failed: error: expect(received).toEqual(expected)
175 | if (!made.ok) throw new Error(JSON.stringify(made.error));
176 | expect(made.value.branches).toBe(`contrib/codex/${contribSegment(made.value.id)}/*`);
177 | expect(Date.parse(made.value.expiresAt) - now.getTime()).toBe(CONTRIBUTE_TTL_MS);
178 |
179 | const verified = verifyToken(app.db, made.value.token);
180 | expect(verified.ok && verified.value.contribute).toEqual({
^
error: expect(received).toEqual(expected)
- {
- "agent": "codex",
- "namespace": "codex/cf4d0d3b",
- "repoId": "01m7egnqey0k37kkenz23wneh5",
- "tokenId": "01m7egnqnqjpckankvgaf0g4p8",
- }
+ false
- Expected - 6
+ Received + 1
at <anonymous> (test/contribute-token.test.ts:180:54)
(fail) minting, renewing, revoking > an owner's yes lets it mint; the token expires, renews once, and is revoked [3.15ms]
minting, renewing, revoking > two tokens that claim the same name cannot push over, or delete, each other's branches failed
302 | const nsA = contribNamespace("twin", a.value.id);
303 | const nsB = contribNamespace("twin", b.value.id);
304 | expect(nsA).not.toBe(nsB);
305 | const as = (t: typeof a.value) => {
306 | const verified = verifyToken(app.db, t.token) as { ok: true; value: { user: User } };
307 | return `${servers.url.replace("://", `://${verified.value.user.username}:${t.token}@`)}/alice/lib.git`;
^
TypeError: undefined is not an object (evaluating 'verified.value.user')
at as (test/contribute-token.test.ts:307:59)
at <anonymous> (test/contribute-token.test.ts:309:32)
(fail) minting, renewing, revoking > two tokens that claim the same name cannot push over, or delete, each other's branches [2.37ms]
minting, renewing, revoking > a token opens at most a few pulls, and a repository takes a day's worth from all of them failed
324 | setOutsideContributions(app, alice, pub, true);
325 | const made = await mint("alice/lib", "spam", "203.0.113.60");
326 | if (!made.ok) throw new Error("mint");
327 | const ns = contribNamespace("spam", made.value.id);
328 | const verified = verifyToken(app.db, made.value.token) as { ok: true; value: { user: User } };
329 | const url = `${servers.url.replace("://", `://${verified.value.user.username}:${made.value.token}@`)}/alice/lib.git`;
^
TypeError: undefined is not an object (evaluating 'verified.value.user')
at <anonymous> (test/contribute-token.test.ts:329:62)
(fail) minting, renewing, revoking > a token opens at most a few pulls, and a repository takes a day's worth from all of them [1.90ms]
To reproduce:
bun test ./test/contribute-token.test.ts
bun test ./test/contribute-token.test.ts --rerun-each10
The full suite ran it in shard 130/3295, 4 files at a time.
_Filed by the scheduled full-suite report, not written by a person. It holds no pull, batch or release._
test/contribute-token.test.tsfailed in the full suite on main (check run 01m7egg61rp67ega656jdzxe62, 0b4b4ed).minting, renewing, revoking > an owner's yes lets it mint; the token expires, renews once, and is revokedminting, renewing, revoking > two tokens that claim the same name cannot push over, or delete, each other's branchesminting, renewing, revoking > a token opens at most a few pulls, and a repository takes a day's worth from all of themminting, renewing, revoking > an owner's yes lets it mint; the token expires, renews once, and is revokedfailed:error: expect(received).toEqual(expected)minting, renewing, revoking > two tokens that claim the same name cannot push over, or delete, each other's branchesfailedminting, renewing, revoking > a token opens at most a few pulls, and a repository takes a day's worth from all of themfailedTo reproduce:
The full suite ran it in shard 130/3295, 4 files at a time.
Files: test/contribute-token.test.ts