Skip to content

Tests: the next folder drop gets 20 seconds to land - #3834

Merged
FredApps merged 1 commit into
mainfrom
fix/folder-drop-test-wait
Nov 5, 2026
Merged

FredApps merged 1 commit into
mainfrom
fix/folder-drop-test-wait

Conversation

@FredApps

@FredApps FredApps commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

dont_ask_again_moves_the_next_drop_at_once checked for the moved file on the frame right after the drop. On busy Windows runners that failed on the gates of #2170 and #2206, while the rest of those runs passed.

The test now gives the file up to 20 seconds to arrive, stepping the app meanwhile. It still requires that no question was asked. Only the test changes.

The result is this PR's own CI. Windows runs on the PR's gate-windows job.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
    • Improved the folder-drop test’s reliability by allowing up to 20 seconds for the dropped file to appear in the destination. The test continues to verify that a subsequent drop does not display a confirmation dialog.

It checked the file on the frame after the drop, which failed on busy Windows
runners.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The “don’t ask again” folder-drop test now waits up to 20 seconds for dunes.png to appear in the destination folder. It still checks that the second drop does not open a confirmation dialog.

Changes: Folder drop test

Layer / File(s) Summary
Wait for moved file
crates/ui-egui/src/tests/folder_drop.rs
The test waits up to 20 seconds for dunes.png to appear in the destination folder. It still checks that no confirmation dialog appears.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Possibly related issues

  • storytold/lightcraft#3822 — The issue reports the same Windows test failure. This change waits for the moved file instead of checking immediately.

Suggested reviewers: nledford

Merge Risk: Minimal · up to 4eabb

The test now tolerates delayed file movement while still failing if the file never arrives. No actionable merge-blocking risk was identified.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title describes the main test change: allowing up to 20 seconds for the next folder drop to arrive.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fe632e0 and 4eabb7e.

Files selected for processing: 1

  • crates/ui-egui/src/tests/folder_drop.rs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@FredApps
FredApps merged commit 96f3fd2 into main Nov 5, 2026
14 checks passed
@sonarqubecloud

sonarqubecloud Bot commented Nov 5, 2026

Copy link
Copy Markdown

dylanmtaylor pushed a commit that referenced this pull request Nov 15, 2026
…tos count

dont_ask_again_moves_the_next_drop_at_once read the home row's rect one
frame after the first move. The move changes the Missing Photos count,
which a worker takes: a count already running when beach.png moved finds
its old path empty and adds the Missing Photos row, and the recount takes
it away. Each shifts every folder row below it by one row, so on a busy
machine the second drop, aimed at the rect read before the count landed,
went to the folder above (dunes.png moved into the parent folder) or to
trip ("Already in"). Waiting longer for home/dunes.png could not help.

The test now settles the sidebar before reading the row, as other
sidebar tests do, and runs with a slow count so the race happens on
every run: it checks that the row stays put for longer than the count
takes. Without the settle it fails every time ("home stays where the
drop aims"). The move is synchronous, so the 20 s wait from #3834 is
replaced by an immediate check that prints the toast, and the drag
checks the drop hint before releasing.
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