Skip to content

x/review/git-codereview: skip tests that require "gofmt" binary when it's not available #36801

@bcmills

Description

@bcmills

https://build.golang.org/log/36fc6a856500bd206f0f994b1565fb6badbe7034

aix-ppc64 at 6fbdfe48041c883a9f6d8c981a7205b7c327862a building review at f51a73253c4da005cfdf18a036e11185c04c8ce3
…
--- FAIL: TestGofmt (0.55s)
    gofmt_test.go:46: git-codereview gofmt -l
    util_test.go:323: died
        stdout:
        stderr:
        git-codereview: invoking gofmt: exec: "gofmt": executable file not found in $PATH
…

I'm not sure whether this should be resolved by adding gofmt to the builder's PATH, by updating the git-codereview tool to invoke go fmt instead, by updating the test to install that tool if not present, or by updating the test to skip those cases if the gofmt binary is not found.

This is technically a release-blocker via #11811, but seems pretty minor.
(CC @dmitshur @cagedmantis @toothrot @trex58)

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.help wanted

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions