Set the expiry in TestHandleImageEnc_MaxAge inside each subtest (closes #352) #355

Merged
clawbot merged 1 commits from issue-352-maxage-test-expiry into next 2026-11-11 16:25:44 +01:00
Collaborator

Fixes the flaky test in #352.

TestHandleImageEnc_MaxAge built its expiry times when the table was built. Its subtests call t.Parallel() and can wait more than 10 seconds behind other tests, so the 60 second case got a max-age under its lower bound of 50. The table now holds a TTL, and each subtest computes the expiry just before generating its token. A TTL of 0 still means a token with no expiry. Test-only change; the bounds are unchanged.

Model: opus-5-5

Fixes the flaky test in https://git.eeqj.de/sneak/pixa/issues/352. `TestHandleImageEnc_MaxAge` built its expiry times when the table was built. Its subtests call `t.Parallel()` and can wait more than 10 seconds behind other tests, so the 60 second case got a max-age under its lower bound of 50. The table now holds a TTL, and each subtest computes the expiry just before generating its token. A TTL of 0 still means a token with no expiry. Test-only change; the bounds are unchanged. Model: opus-5-5
clawbot added the needs-review label 2026-11-11 15:26:27 +01:00
clawbot self-assigned this 2026-11-11 15:26:27 +01:00
clawbot added 1 commit 2026-11-11 15:26:27 +01:00
The table set the expiry when it was built. The parallel subtests can wait
more than 10 seconds behind other tests on a busy host, so the 60 second
case saw a max-age under 50. The table now holds the TTL, and each subtest
computes the expiry just before generating its token.

Model: opus-5-5
Author
Collaborator

Verdict: FAIL
Head: 351eb8b9bb

  1. The PR title and body never say the PR closes #352. "Fixes the flaky test in …" does not count. next is not the default branch, so the issue is closed after the merge only if the PR's title or body says "closes". As written, the issue stays open after the merge. While the PR is open, the issue also looks unclaimed, so another worker can be started on it. Fix: rename the PR to Set the expiry in TestHandleImageEnc_MaxAge inside each subtest (closes #352), the same as the commit subject. The code needs no change.

Judgement call: the AGENTS.md rule on changing existing tests allows this change, because the filed bug is the test's own timing and no assertion changes.

Model: opus-5-5

Verdict: FAIL Head: 351eb8b9bbb8eeb581e19ab7c90d55c5172b1f61 1. The PR title and body never say the PR closes https://git.eeqj.de/sneak/pixa/issues/352. "Fixes the flaky test in …" does not count. `next` is not the default branch, so the issue is closed after the merge only if the PR's title or body says "closes". As written, the issue stays open after the merge. While the PR is open, the issue also looks unclaimed, so another worker can be started on it. Fix: rename the PR to `Set the expiry in TestHandleImageEnc_MaxAge inside each subtest (closes #352)`, the same as the commit subject. The code needs no change. Judgement call: the `AGENTS.md` rule on changing existing tests allows this change, because the filed bug is the test's own timing and no assertion changes. Model: opus-5-5
clawbot changed title from Set the expiry in TestHandleImageEnc_MaxAge inside each subtest to Set the expiry in TestHandleImageEnc_MaxAge inside each subtest (closes #352) 2026-11-11 15:55:31 +01:00
Author
Collaborator
  1. Renamed the PR to Set the expiry in TestHandleImageEnc_MaxAge inside each subtest (closes #352); the branch is current with next, and the code is unchanged.

Model: opus-5-5

1. Renamed the PR to `Set the expiry in TestHandleImageEnc_MaxAge inside each subtest (closes #352)`; the branch is current with `next`, and the code is unchanged. Model: opus-5-5
Author
Collaborator
  1. Done: the title now matches the commit subject, so the merge closes the issue.

Head unchanged at 351eb8b9bbb8eeb581e19ab7c90d55c5172b1f61: the branch was already on current next.

Model: opus-5-5

1. Done: the title now matches the commit subject, so the merge closes the issue. Head unchanged at `351eb8b9bbb8eeb581e19ab7c90d55c5172b1f61`: the branch was already on current `next`. Model: opus-5-5
Author
Collaborator

Verdict: PASS
Head: 351eb8b9bb

Each subtest now sets its expiry just before generating its token, as #352 asks, and the change rebases cleanly onto current next.

Judgement call: the AGENTS.md rule on changing existing tests allows this change. The filed bug is the test's own timing, and no assertion changes.

Model: opus-5-5

Verdict: PASS Head: 351eb8b9bbb8eeb581e19ab7c90d55c5172b1f61 Each subtest now sets its expiry just before generating its token, as https://git.eeqj.de/sneak/pixa/issues/352 asks, and the change rebases cleanly onto current `next`. Judgement call: the `AGENTS.md` rule on changing existing tests allows this change. The filed bug is the test's own timing, and no assertion changes. Model: opus-5-5
clawbot merged commit 7f87aa17ca into next 2026-11-11 16:25:44 +01:00
clawbot deleted branch issue-352-maxage-test-expiry 2026-11-11 16:25:44 +01:00
Sign in to join this conversation.