Skip to content

Fix the learning-later deck test near rollover - #115

Merged
float3 merged 2 commits into
mainfrom
decks-test-learn-ahead
Nov 4, 2026
Merged

float3 merged 2 commits into
mainfrom
decks-test-learn-ahead

Conversation

@float3

@float3 float3 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

AnkiquestDecksTest.learning later today keeps deck and parent unfinished fails in the last 40 minutes before the Anki day rolls over. It puts a learning card halfway between now and the cutoff, and Anki treats learning cards due within 20 minutes (collapseTime) as due now, so the deck read REVIEW_NOW instead of LEARNING_LATER. The app is right; the test now sets collapseTime to 0, as upstream's ReviewCompletionTest and DeckStudyStateTest do.

Seen locally at 03:25 (fails), passes at 03:29 with the change.

Anki shows learning cards up to 20 minutes early as due now. The test puts a
card halfway between now and the day cutoff, so in the last 40 minutes before
rollover it landed inside that window and the deck read as REVIEW_NOW.
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Snapshot diff report vs main. Open screenshot-diff for diffs.

  • AnkiquestHomeScreenshotTest: 1 change
All 1 changed screenshots

AnkiquestHomeScreenshotTest

  • today_320dp_compare.png

@float3
float3 merged commit 85a500f into main Nov 4, 2026
40 of 41 checks passed
@float3
float3 deleted the decks-test-learn-ahead branch November 4, 2026 15:27
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.

1 participant