Repository navigation
ci(base-red): read Swift Testing display-named reds as test names #35723
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,8 @@ | |
| ANSI = re.compile(r"\x1b\[[0-9;]*[A-Za-z]") | ||
|
|
||
| FAILED = ( | ||
| re.compile(r"✘ Test (.+?\)) (?:recorded an issue|failed)"), # Swift Testing | ||
| # Swift Testing: `name()`, or a display name (`@Test("A capped plan …")` prints `✘ Test "A capped plan …"`). | ||
| re.compile(r"✘ Test (\"[^\"\n]*\"|.+?\)) (?:recorded an issue|failed)"), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| re.compile(r"Test Case '-\[(\S+ \S+)\]' failed"), # XCTest | ||
| re.compile(r"^test (\S+) \.\.\. FAILED$"), # cargo test | ||
| re.compile(r"^(?:FAIL|ERROR): (\S+ \([^)]+\))"), # unittest | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: manaflow-ai/cmux
Length of output: 1110
Script executed:
Repository: manaflow-ai/cmux
Length of output: 29941
Script executed:
Repository: manaflow-ai/cmux
Length of output: 9465
Script executed:
Repository: manaflow-ai/cmux
Length of output: 10528
Script executed:
Repository: manaflow-ai/cmux
Length of output: 1125
Script executed:
Repository: manaflow-ai/cmux
Length of output: 10265
Identify Swift Testing failures beyond their display name.
The new
✘ Test "…"alternative records only the quoted display name. Two tests with the same display name compare equal inHead.mismatch. A new head failure can then be excused as a base failure. Record a suite or source location with each display name, and compare that identity.Scope of the trigger
The collision needs two failing tests with the same display name in the same job, one on the head and one on the base. The head and base must also have the same failed steps and no crash or truncation.