Skip to content

x/tools/go/analysis/internal/checker: TestRunDespiteErrors failures #56203

@gopherbot

Description

@gopherbot
#!watchflakes
post <- pkg == "golang.org/x/tools/go/analysis/internal/checker" && test == "TestRunDespiteErrors"

Issue created automatically to collect these failures.

Example (log):

/tmp/workdir/tmp/analysistest3759492721/src/rename/test.go:4:2: renaming "bar" to "baz"
/tmp/workdir/tmp/analysistest3759492721/src/rename/test.go:5:6: renaming "bar" to "baz"
/tmp/workdir/tmp/analysistest1503881322/src/rderr/test.go:5:9: invalid operation: s + 1 (mismatched types string and untyped int)
rename: analysis skipped due to errors in package
/tmp/workdir/tmp/analysistest1503881322/src/rderr/test.go:5:9: invalid operation: s + 1 (mismatched types string and untyped int)
/tmp/workdir/tmp/analysistest1503881322/src/rderr/test.go:5:9: invalid operation: s + 1 (mismatched types string and untyped int)
rename: analysis skipped due to errors in package
-: package xyz is not in GOROOT (/tmp/workdir/go/src/xyz)
2022/10/10 10:32:04 error during loading
-: package abc is not in GOROOT (/tmp/workdir/go/src/abc)
2022/10/10 10:32:04 error during loading
-: package xyz is not in GOROOT (/tmp/workdir/go/src/xyz)
-: package abc is not in GOROOT (/tmp/workdir/go/src/abc)
2022/10/10 10:32:04 2 errors during loading
-: package xyz is not in GOROOT (/tmp/workdir/go/src/xyz)
/tmp/workdir/tmp/analysistest1503881322/src/rderr/test.go:5:9: invalid operation: s + 1 (mismatched types string and untyped int)
2022/10/10 10:32:05 2 errors during loading
2022/10/10 10:32:06 file=non/existing/dir matched no packages
2022/10/10 10:32:07 sort matched no packages
--- FAIL: TestRunDespiteErrors (15.98s)
    checker_test.go:154: got incorrect exit code 1 for test no-errors; want 0
/tmp/workdir/tmp/analysistest3090848665/src/comment/doc.go:1:1: 

watchflakes

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions