Repository navigation
fix(swift): branch counts decisions, not optional ?, for labels, enum case (#8895) - #9053
squid-protocol wants to merge 5 commits into
Conversation
… case (#8895) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…enum case (#8895) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #9053 @ db6a6cc: 1 failed check(s) == rosetta-audit (failure) -- real |
|
PR #9053 @ db6a6cc: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
|
No description provided. |
|
PR #9053 @ 4078f6b: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (d297bfb) is not the one a maintainer labelled |
|
No description provided. |
|
PR #9053 @ d297bfb: 13 failed check(s) == crucible (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == equivalence-e2e (cancelled) -- infra == full-suite (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (cancelled) -- infra == measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra == publish-history (cancelled) -- infra == rosetta-audit (failure) -- real == shard ${{ matrix.shard }} (cancelled) -- infra == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
No description provided. |
|
Waiting on an owner decision (asked privately, 2026-11-22). Nothing is needed from contributors; work resumes once it is answered. |
#9056 #9057 #9058 #9059 #9061 #9067) (#9111) * apply #9053 (non-snapshot changes) * apply #9054 (non-snapshot changes) * apply #9057 (non-snapshot changes) * apply #9059 (non-snapshot changes) * apply #9061 (non-snapshot changes) * apply #9067 (non-snapshot changes) * apply #9055 (non-snapshot changes) * golden: re-bless once for the seven stacked engine fixes (#9053 #9054 #9055 #9057 #9059 #9061 #9067) Each of the seven PRs conflicted with the others in the golden-master snapshots, so merging them one at a time would have re-conflicted the rest each time. One combined branch, one bless (crucible_check.py --update --yes through golden-lock.sh, both legs) plus the dartdoom DOOM golden. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * apply #9056 #9058 (non-snapshot changes) * golden: re-bless with #9056 and #9058 folded in (powershell, perl) plus odamex and prboom-plus DOOM goldens Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…draft PR with one re-bless (#9120) The recipe done by hand for #9111 (nine PRs, #9053-#9067): apply each PR's hand-written diff to a fresh branch off main, bless the goldens once, open a draft PR that lists them. Refuses on a diff that does not apply or two PRs touching the same lines; never marks ready, merges or closes the originals. Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Fixes #8895 (Part of #8863).
What
The Swift
branchregex counted the?of optional types and chains,foras an argument label, and enum/identifiercase/default. Now: the ternary?needs whitespace on both sides (T?,x?.y,try?,as?out);foris excluded after(/,and before:;casecounts only with a depth-0:ending its pattern (enumcase a, b(x: Int)out);defaultonly before:.Class
Branch keyword/sigil counting a non-decision (type, label, declaration) in Swift. Siblings fixed here:
try?/as?/x?[i],@unknown default, enum raw-value cases. Sibling gaps: other brace languages listing a bare\?inbranch(kotlin, dart, csharp, scala, typescript) were not audited in this PR; no burned estate needs them.Tests
test_swift_branch_counts_decisions_not_types_labels_or_enum_cases_8895(issue's four functions plus whole-class cases). The oldtry? perform()positive row was a pin of the bug and is now a ternary positive withtry?as the negative.Goldens
Re-blessed with
crucible_check.py --update --yes: swift branch counts drop; the rest of the drift (e.g. fastapi coordinates) is the spatial layout following the changed swift scores.rosetta:rebless-owedif keyword-rosetta swift counts move.Not measured
vapor precision (0.66 -> ?) and CPU timing on keyword-rosetta/language-crucible were not measured here (no parser oracle in this worktree); the regex adds only bounded lookarounds.
🤖 Generated with Claude Code