Skip to content

github-post: allow for finding the test in a parent directory of the pkg#87155

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
rickystewart:githubpost
Aug 31, 2022
Merged

github-post: allow for finding the test in a parent directory of the pkg#87155
craig[bot] merged 1 commit intocockroachdb:masterfrom
rickystewart:githubpost

Conversation

@rickystewart
Copy link
Copy Markdown
Collaborator

In some cases the Bazel test runner "incorrectly" reports the package
path for tests. For example, we have issues where the name of
the test is reported as pkg/.../package/package_test rather than
pkg/.../package as we might expect. I suspect this is confusing
github-post when it tries to find tests in the package_test
directory rather than the package directory.

We address this by allowing github-post to search up the directory
tree for the test rather than expecting it to be in one particular
directory.

Also update a repro command to use dev test rather than
make stressrace.

Closes #85420.

Release justification: Non-production code changes
Release note: None

@rickystewart rickystewart requested a review from a team as a code owner August 30, 2022 23:14
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

In some cases the Bazel test runner "incorrectly" reports the package
path for tests. For example, we have [issues](cockroachdb#85376) where the name of
the test is reported as `pkg/.../package/package_test` rather than
`pkg/.../package` as we might expect. I suspect this is confusing
`github-post` when it tries to find tests in the `package_test`
directory rather than the `package` directory.

We address this by allowing `github-post` to search up the directory
tree for the test rather than expecting it to be in one particular
directory.

Also update a repro command to use `dev test` rather than
`make stressrace`.

Closes cockroachdb#85420.

Release justification: Non-production code changes
Release note: None
@rickystewart
Copy link
Copy Markdown
Collaborator Author

TFTR!

bors r=srosenberg,rail

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 31, 2022

Build succeeded:

@craig craig bot merged commit 0bcbece into cockroachdb:master Aug 31, 2022
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.

bazel,ci: logictest failures posted to github do not tag owning team

4 participants