Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buggy test: CancellatorTests.testConcurrency #8136

Open
1 task done
cmcgee1024 opened this issue Nov 22, 2024 · 0 comments
Open
1 task done

Buggy test: CancellatorTests.testConcurrency #8136

cmcgee1024 opened this issue Nov 22, 2024 · 0 comments
Labels

Comments

@cmcgee1024
Copy link
Member

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

This test is producing assertion failures on very similar configured docker containers as the ones used in CI. It's this assertion that's problematic because it often produces .timeout instead of the expected .success.

XCTAssertEqual(.success, finishGroup.wait(timeout: finishDeadline + .seconds(5)), "timeout finishing tasks")

Expected behavior

It is expected that the tests can run in similar environments to the CI builds, and continue to pass when they should.

Actual behavior

This test is failing due to this assert finding a value of .timeout instead of .success.

Steps to reproduce

  1. Run swift test of the swift-package-manager using a Linux docker container based on Ubuntu Noble, Jammy, or another one of the toolchain supported Linux environments

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

@cmcgee1024 cmcgee1024 added the bug label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant