Closed
Description
The TestFixedbugs/issue70549.go
test recently added in CL 662775 (for #70549) is consistently failing on linux-s390x-ibm and linux-s390x-ibm-race builders:
--- FAIL: TestFixedbugs (0.61s)
--- FAIL: TestFixedbugs/issue70549.go (0.00s)
check_test.go:281: ../../internal/types/testdata/fixedbugs/issue70549.go:12:11: no error expected: "undefined: math.sin (but have Sin)"
check_test.go:319: --- p: unreported errors:
check_test.go:323: ../../internal/types/testdata/fixedbugs/issue70549.go:12:11: ERROR "name sin not exported by package math"
check_test.go:281: ../../internal/types/testdata/fixedbugs/issue70549.go:12:11: no error expected: "undefined: math.sin (but have Sin)"
check_test.go:319: --- p: unreported errors:
check_test.go:323: ../../internal/types/testdata/fixedbugs/issue70549.go:12:11: ERROR "name sin not exported by package math"
FAIL
FAIL go/types 8.428s
(build log) (This wasn't caught by watchflakes because this builder hasn't been migrated to LUCI yet; that work is tracked in #67307.)
CC @golang/s390x, @mrkfrmn, @griesemer.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
gabyhelp commentedon Apr 7, 2025
Related Issues
Related Code Changes
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
mrkfrmn commentedon Apr 7, 2025
The error seems to indicate that the private function
sin
plainly does not exist on s390x, not that it's just unexported.Looking at the math library, it does appear that there is some special handling for s390x (see
sin_s390x.s
and friends).mrkfrmn commentedon Apr 7, 2025
Perhaps this is a sign that we should not be altering error behavior based on unexported package internals.
Though, it does appear that we could simply move to a different function like
Sqrt
and friends.gopherbot commentedon Apr 7, 2025
Change https://go.dev/cl/663635 mentions this issue:
go/types, types2: fix failing error message test for s390x
go/types, types2: fix failing error message test for s390x