Skip to content

test: scan only r/racb_test_2 in the live gallery duplicate test - #99

Merged
Toldry merged 1 commit into
masterfrom
claude/project-thread-2dh5ho
Oct 16, 2026
Merged

Toldry merged 1 commit into
masterfrom
claude/project-thread-2dh5ho

Conversation

@Toldry

@Toldry Toldry commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Requested by Querent · project thread

Before: test_live_duplicate_detector_scans_gallery_posts failed in 3 of the last 4 master runs (#92, #95, #97 merges; https://github.com/Toldry/RedditAutoCrosspostBot/actions/runs/38960526904), always on the second direction: the gallery is scanned against r/racb_test_1 and the image post just made there is never found (assert '1x7qq0j' in []), even after 30 s of retries. Each failure blocks the deploy; v3.0.5 is released but not deployed.

After: both posts go to r/racb_test_2 and both directions scan it. Every scan of r/racb_test_2 (this test's first direction and the other live scan tests) has passed. On failure, the message now lists the ids the "new" listing returned and how many posts were compared, so a missing post can be told apart from a mismatch.

How: test-only change, so no changelog fragment and no release; the merge still runs the integration tests and deploys master (with 3.0.5). The root cause of r/racb_test_1's missing post is not confirmed (no live credentials here); the likeliest suspects are its "new" listing coming back empty for the bot, which makes list_newest_posts fall back to the cached "hot" listing, or listing lag specific to that subreddit. The production scan reads public subreddits' "new" listings and is unaffected either way.


Generated by Claude Code

The gallery test scanned r/racb_test_1 for an image post it had just made
there and failed in 3 of the last 4 master runs: the post never showed
up in the scan within 30 s. Every scan of r/racb_test_2 passes, so post
both pictures there and scan only it. On failure, the message now lists
the posts the listing returned, to tell a missing post from a mismatch.

Co-Authored-By: Toldry <toldry@gmail.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tmfrdbu22giRiunXYbSuHx
@Toldry Toldry self-assigned this Oct 16, 2026
@Toldry
Toldry merged commit 2e7938b into master Oct 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants