Skip to content

Wait for the resolved dependencies, not for the application to go idle - #4097

Merged
siegfriedpammer merged 1 commit into
masterfrom
fix/load-dependencies-wait
Sep 1, 2026
Merged

siegfriedpammer merged 1 commit into
masterfrom
fix/load-dependencies-wait

Conversation

@siegfriedpammer

Copy link
Copy Markdown
Member

Load_Dependencies_Resolves_References_And_Keeps_Them_In_The_List timed out on a loaded CI agent: Timed out after 60s waiting for the UI to become idle.

Waiters.WaitForIdleAsync also requires the dispatcher queue to be empty, and LoadDependenciesAsync ends with RefreshDecompiledView() - so the test was waiting for a decompilation, whose duration is a property of the machine rather than of the condition being asserted. Instrumenting the wait shows every assembly loaded on the very first poll while dispatcher jobs stay queued for seconds; the assembly loads were never the holdup.

Waiting for the list to show the resolved dependencies removes the dependency on machine speed. Under a deliberately shortened one-second deadline the previous wait failed 3/3 runs and this one passed 5/5; the fixture is green (51/51).

Prepared by an AI agent (Claude, claude-opus-5, via Claude Code) and reviewed by @siegfriedpammer.

Load_Dependencies_Resolves_References_And_Keeps_Them_In_The_List timed out on a loaded
CI agent. The idle predicate it waited on also covers the dispatcher queue, and
LoadDependenciesAsync ends with RefreshDecompiledView, so the test was waiting for a
decompilation to finish - work whose duration is a property of the machine, not of the
condition being asserted. Instrumenting the wait shows every assembly already loaded on
the first poll while dispatcher jobs stay queued for seconds, so the loads were never the
holdup.

Waiting for the list to show the resolved dependencies drops the dependency on machine
speed: under a deliberately shortened one-second deadline the previous wait failed every
run and this one passed every run.

Assisted-by: Claude:claude-opus-5:Claude Code
@siegfriedpammer
siegfriedpammer merged commit ac82d71 into master Sep 1, 2026
17 checks passed
@christophwille
christophwille deleted the fix/load-dependencies-wait branch September 3, 2026 05:39
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