apple / swift-collections

Commonly used data structures for Swift
Apache License 2.0
3.55k stars 270 forks source link

[1.1] Randomized test failure on CI #369

Open lorentey opened 3 weeks ago

lorentey commented 3 weeks ago

From https://ci.swift.org/view/Swift%20Packages%20-%202/view/swift-collections/view/release_1.1/job/nightly_main_macos/job/swift-collections/job/release%252F1.1/3/console:

Test Case '-[RopeModuleTests.TestBigString test_insert_string]' started.
Global seed: 466198225361778071
Stride: 1
_RopeModule/BigString+Chunk+Splitting.swift:48: Assertion failed

This job is using a nightly snapshot, but the rope tests are randomized, and this could easily indicate a subtle logic error that affects shipping toolchains, too. The seed number above will let us reproduce the failure to analyze it.