Repository navigation
Conversation
Verification blocked at eeba8edThe staging diff is empty and the base/head reproduction holds. The Base (standalone module with base === RUN TestSortDevicesPreservesVariantSuffix
=== RUN TestSortDevicesPreservesVariantSuffix/variant_suffixes_survive_the_round_trip
sort_test.go:30: SortDevices([iPad16,4-B iPad16,3-A iPad16,4-A]) = []string{"0,0", "0,0", "0,0"}, want []string{"iPad16,3-A", "iPad16,4-A", "iPad16,4-B"}
=== RUN TestSortDevicesPreservesVariantSuffix/variant_and_plain_product_types_sort_together
sort_test.go:30: SortDevices([iPhone12,1 iPad16,4-A iPad16,4]) = []string{"0,0", "iPad16,4", "iPhone12,1"}, want []string{"iPad16,4", "iPad16,4-A", "iPhone12,1"}
--- FAIL: TestSortDevicesPreservesVariantSuffix (0.00s)
FAIL
FAIL sortab 0.003s
FAILHead (same test with submitted === RUN TestSortDevicesPreservesVariantSuffix
=== RUN TestSortDevicesPreservesVariantSuffix/variant_suffixes_survive_the_round_trip
=== RUN TestSortDevicesPreservesVariantSuffix/variant_and_plain_product_types_sort_together
--- PASS: TestSortDevicesPreservesVariantSuffix (0.00s)
--- PASS: TestSortDevicesPreservesVariantSuffix/variant_suffixes_survive_the_round_trip (0.00s)
--- PASS: TestSortDevicesPreservesVariantSuffix/variant_and_plain_product_types_sort_together (0.00s)
PASS
ok sortab 0.005sThe standalone module was required because the full package cgo dependencies do not build in this container. |
ReworkReply edited at head eeba8ed (no code or test change; the staging diff is still empty). The previous |
Verification at eeba8edReply-only round: the staging commit has an empty diff against submitted Verified identical copies of the submitted test file and both source versions with Base ( === RUN TestSortDevicesPreservesVariantSuffix
=== RUN TestSortDevicesPreservesVariantSuffix/variant_suffixes_survive_the_round_trip
sort_test.go:30: SortDevices([iPad16,4-B iPad16,3-A iPad16,4-A]) = []string{"0,0", "0,0", "0,0"}, want []string{"iPad16,3-A", "iPad16,4-A", "iPad16,4-B"}
=== RUN TestSortDevicesPreservesVariantSuffix/variant_and_plain_product_types_sort_together
sort_test.go:30: SortDevices([iPhone12,1 iPad16,4-A iPad16,4]) = []string{"0,0", "iPad16,4", "iPhone12,1"}, want []string{"iPad16,4", "iPad16,4-A", "iPhone12,1"}
--- FAIL: TestSortDevicesPreservesVariantSuffix (0.00s)
--- FAIL: TestSortDevicesPreservesVariantSuffix/variant_suffixes_survive_the_round_trip (0.00s)
--- FAIL: TestSortDevicesPreservesVariantSuffix/variant_and_plain_product_types_sort_together (0.00s)
FAIL
FAIL sortab 0.004s
FAILSubmitted head ( === RUN TestSortDevicesPreservesVariantSuffix
=== RUN TestSortDevicesPreservesVariantSuffix/variant_suffixes_survive_the_round_trip
=== RUN TestSortDevicesPreservesVariantSuffix/variant_and_plain_product_types_sort_together
--- PASS: TestSortDevicesPreservesVariantSuffix (0.00s)
--- PASS: TestSortDevicesPreservesVariantSuffix/variant_suffixes_survive_the_round_trip (0.00s)
--- PASS: TestSortDevicesPreservesVariantSuffix/variant_and_plain_product_types_sort_together (0.00s)
PASS
ok sortab 0.004s
Rules: deleted-tests-named-by-what-they-called=covered(deletion diff and kept test checked) | tests-sized-to-the-bug=covered(one failing-on-base regression test) | prior-art-recheck-at-gate=covered(master history and upstream PR checked) | reads-as-generated=unreachable(empty staging diff) |
sprayberry-redline
left a comment
There was a problem hiding this comment.
Approve. The reply accurately describes the test-only push, the removed coverage, and the retained regression test's path through parsing, sorting and string reconstruction. The staging diff is empty, the production file is unchanged between the cited commits, and the upstream branch remains mergeable; the supplied isolated-test results support the failure and success claims, with no CI checks reported.
|
Pushed upstream. |
Maintainer said
Review by user
beasetalk(author association: NONE, not a maintainer), APPROVED at commit 97b04c0, 2026-09-27T02:40:17Z, blacktop#1328 (review):After that review the submitted branch received one push, af34d1d (2026-09-29, "test: keep one regression test for variant product types", operator test-sizing rule). Nothing has been posted on the upstream PR since. The maintainer (blacktop) has not commented. Upstream reports no checks on the branch.
Change
none: reply only. Head of this round is an empty commit on top of the submitted branch (
af34d1d).Facts the reply rests on, re-checked at
af34d1din a fresh clone of upstreammaster:git show af34d1d --stat:internal/utils/sort_test.go | 132 ----,pkg/info/info_test.go | 23 ----,pkg/xcode/xcode_test.go | 97 ----(removed). No production file in that commit;internal/utils/sort.gois byte-identical between the approved commit97b04c0andaf34d1d.af34d1dremoved, read from the deletion diff: ininternal/utils/sort_test.go,TestDeconstructDeviceVariantSuffix,TestSortDevicesUnparsableNamesUnchanged,TestSortDevicesReverseInsertionOrder,TestDevicesLessIsAStrictOrderingandTestDeconstructDeviceRoundTripsSampleProductTypes, which callSortDevices,DeconstructDevice(...).String()andDevices.Lessdirectly, all of them changed by the fix; inpkg/info/info_test.go,TestKernelCacheFileNameKeepsProductTypeVariant(GetDevicesForKernelCache/GetKernelCacheFileName, which consume the parser); inpkg/xcode/xcode_test.go,TestByProductTypeSortsVariantSuffixedProductTypes,TestByProductTypeSortsEmbeddedDeviceListandTestByProductTypeSameModelVariantsStillTie(the xcodeByProductTypesorter over the same parser). So the deletion is a reduction of coverage over the changed code to one table test, not a removal of tests on unrelated paths. The commit message ofaf34d1d("The other tests covered paths the fix does not change.") understates this; the reply below does not repeat that line.master(c17f98dbc):internal/utils/sort.go | 10 +++++++---,internal/utils/sort_test.go | 34 ++++++(new file, one table test with two rows).git merge-tree --write-tree origin/master fork/fix/device-product-type-variant-suffix: merges clean;masterhas no commits touchinginternal/utils/sort.gosince the merge-base.sort.gowas copied into a standalone module next to the test (the real package pulls in cgo dependencies that do not build here), once with the base copy ofsort.gofromc17f98dbcand once with the head copy:go vetclean,gofmt -lprints nothing.Reply
The push after the review (af34d1d) is test-only:
internal/utils/sort.gois unchanged since 97b04c0. It reduces the tests to one table test,TestSortDevicesPreservesVariantSuffixininternal/utils/sort_test.go, which drivesSortDevicesthrough the parser, the sort andDevice.String()with variant-suffixed product types; it returns"0,0"for every variant product type onmasterand passes with the change. The ordering, round-trip, kernelcache filename and xcodeByProductTypetests from the earlier commits are removed so the PR carries one regression test sized to the bug. The branch merges clean against currentmaster.