Skip to content

go/types: TestFixedbugs/issue70549.go fails on linux-s390x-ibm builder #73206

Closed
@dmitshur

Description

@dmitshur

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.

Activity

added
arch-s390xIssues solely affecting the s390x architecture.
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
on Apr 7, 2025
added
BugReportIssues describing a possible bug in the Go implementation.
on Apr 7, 2025
mrkfrmn

mrkfrmn commented on Apr 7, 2025

@mrkfrmn
Contributor

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

mrkfrmn commented on Apr 7, 2025

@mrkfrmn
Contributor

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

gopherbot commented on Apr 7, 2025

@gopherbot
Contributor

Change https://go.dev/cl/663635 mentions this issue: go/types, types2: fix failing error message test for s390x

added
TestingAn issue that has been verified to require only test changes, not just a test failure.
NeedsFixThe path to resolution is known, but the work has not been done.
and removed
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
on Apr 7, 2025
added this to the Go1.25 milestone on Apr 7, 2025
added a commit that references this issue on Apr 8, 2025
559b5d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.NeedsFixThe path to resolution is known, but the work has not been done.OS-LinuxTestingAn issue that has been verified to require only test changes, not just a test failure.arch-s390xIssues solely affecting the s390x architecture.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dmitshur@gopherbot@gabyhelp@mrkfrmn

        Issue actions

          go/types: TestFixedbugs/issue70549.go fails on linux-s390x-ibm builder · Issue #73206 · golang/go