You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
64153: bazel: bazci appropriately captures sharded test/log output r=rail a=rickystewart
Some tests, like `//pkg/server:server_test`, are sharded, meaning that
their `test.log`/`test.xml` files are split into many different folders
in the `bazel-testlogs` directory, like:
bazel-testlogs/pkg/server/server_test/shard_1_of_16/test.log
Before this patch, `bazci` would only look in the `server_test`
directory for the `test.{log,xml}`, and would therefore miss these. Now,
`bazci` globs and mirrors the directory structure of the source test
directory.
Also add unit tests to cover this case.
Resolves#63960.
Release note: None
Co-authored-by: Ricky Stewart <ricky@cockroachlabs.com>
Unlike the majority of tests,
server_test
is sharded, so logs are also sharded:bazci
checks under the literal pathbazel-testlogs/pkg/server/server_test/test.{log,xml}
, so that doesn't work.We should probably be globbing and then mirroring the directory structure into the artifacts directory.
Also, consider whether it makes sense to add assertions in some places when we expect an artifact will be present, but it's not.
The text was updated successfully, but these errors were encountered: