Skip to content

gotest-annotations: don't only post annotations for _test.go files#9

Merged
crazy-max merged 1 commit into
crazy-max:mainfrom
jedevc:gotest-annotations-test-suffix
May 18, 2023
Merged

gotest-annotations: don't only post annotations for _test.go files#9
crazy-max merged 1 commit into
crazy-max:mainfrom
jedevc:gotest-annotations-test-suffix

Conversation

@jedevc
Copy link
Copy Markdown
Contributor

@jedevc jedevc commented May 18, 2023

In the context of docker/buildx#1770, I discovered that only files that end in _test.go are detected for annotations. This meant annotations weren't posted because the names of the test files reflected the name of the commands file, e.g. so tests/build.go tested commands/build.go.

Ideally, we should post annotations no matter which file the failure occurs in, which could also occur if a test helper failed which was not in a _test.go file.

Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc
Copy link
Copy Markdown
Contributor Author

jedevc commented May 18, 2023

cc @crazy-max

Copy link
Copy Markdown
Owner

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@crazy-max crazy-max merged commit 1a64ea6 into crazy-max:main May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants