Skip to content

Fix flaky CreatePlaceholderTests stderr comparison#1987

Open
tyrielv wants to merge 1 commit into
microsoft:masterfrom
tyrielv:tyrielv/fix-placeholder-flaky-test
Open

Fix flaky CreatePlaceholderTests stderr comparison#1987
tyrielv wants to merge 1 commit into
microsoft:masterfrom
tyrielv:tyrielv/fix-placeholder-flaky-test

Conversation

@tyrielv
Copy link
Copy Markdown
Contributor

@tyrielv tyrielv commented May 26, 2026

The AllowsPlaceholderCreationWhileGitCommandIsRunning test fails intermittently because git reset --hard produces non-deterministic Updating files progress output on stderr. When one repo emits progress and the other does not, ErrorsShouldMatch fails.

Set GIT_PROGRESS_DELAY=3600 on all test git invocations (in GitProcess.InvokeProcess) so progress output is never emitted for commands completing under an hour. This eliminates the flake at the source without skipping error validation.

Comment thread GVFS/GVFS.FunctionalTests/Tests/GitCommands/CreatePlaceholderTests.cs Outdated
@tyrielv tyrielv force-pushed the tyrielv/fix-placeholder-flaky-test branch from 2d0caba to 703d1b2 Compare May 26, 2026 20:17
Git's "Updating files" progress output on stderr is
timing-dependent, causing ErrorsShouldMatch to fail when one repo
emits progress and the other does not.

Set GIT_PROGRESS_DELAY=3600 on all test git invocations so
progress output is never emitted for commands completing under an
hour. This eliminates the flake at the source without skipping
error validation.

Assisted-by: Claude Opus 4.6
Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
@tyrielv tyrielv force-pushed the tyrielv/fix-placeholder-flaky-test branch from 703d1b2 to 249b895 Compare May 26, 2026 20:18
@tyrielv tyrielv enabled auto-merge May 26, 2026 20:19
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