-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bazel: bazci appropriately captures sharded test/log output
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
- Loading branch information
1 parent
3fcf931
commit 44da455
Showing
9 changed files
with
667 additions
and
81 deletions.
There are no files selected for viewing
287 changes: 287 additions & 0 deletions
287
pkg/cmd/bazci/testdata/bazel-testlogs/pkg/server/server_test/shard_1_of_16/test.log
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
pkg/cmd/bazci/testdata/bazel-testlogs/pkg/server/server_test/shard_1_of_16/test.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<testsuites> | ||
<testsuite errors="0" failures="0" skipped="0" tests="11" time="16.885" name="github.com/cockroachdb/cockroach/pkg/server"> | ||
<testcase classname="server" name="TestAdminAPITableStats" time="2.690"></testcase> | ||
<testcase classname="server" name="TestAdminAPIZoneDetails" time="0.690"></testcase> | ||
<testcase classname="server" name="TestAllVersionsAgree" time="2.090"></testcase> | ||
<testcase classname="server" name="TestEndpointTelemetryBasic" time="0.310"></testcase> | ||
<testcase classname="server" name="TestGraphite" time="0.670"></testcase> | ||
<testcase classname="server" name="TestInitializeFromConfig" time="5.940"></testcase> | ||
<testcase classname="server" name="TestMetricsRecording" time="0.630"></testcase> | ||
<testcase classname="server" name="TestNodeJoin" time="1.110"></testcase> | ||
<testcase classname="server" name="TestPlainHTTPServer" time="0.570"></testcase> | ||
<testcase classname="server" name="TestRemoteDebugModeSetting" time="0.870"></testcase> | ||
<testcase classname="server" name="TestSettingsRefresh" time="0.770"></testcase> | ||
</testsuite> | ||
</testsuites> |
214 changes: 214 additions & 0 deletions
214
pkg/cmd/bazci/testdata/bazel-testlogs/pkg/server/server_test/shard_2_of_16/test.log
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
pkg/cmd/bazci/testdata/bazel-testlogs/pkg/server/server_test/shard_2_of_16/test.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<testsuites> | ||
<testsuite errors="0" failures="0" skipped="0" tests="11" time="26.365" name="github.com/cockroachdb/cockroach/pkg/server"> | ||
<testcase classname="server" name="TestAdminAPIUsers" time="0.410"></testcase> | ||
<testcase classname="server" name="TestClusterVersionMixedVersionTooOld" time="0.740"></testcase> | ||
<testcase classname="server" name="TestCorruptedClusterID" time="0.130"></testcase> | ||
<testcase classname="server" name="TestDecommissionSelf" time="2.300"></testcase> | ||
<testcase classname="server" name="TestDummyInitializeNodeFromBundle" time="7.330"></testcase> | ||
<testcase classname="server" name="TestLivenessAPI" time="2.750"></testcase> | ||
<testcase classname="server" name="TestMakeIdleMonitor" time="2.270"></testcase> | ||
<testcase classname="server" name="TestMetricsEndpoint" time="0.610"></testcase> | ||
<testcase classname="server" name="TestSecureHTTPRedirect" time="0.430"></testcase> | ||
<testcase classname="server" name="TestSettingsSetAndShow" time="0.360"></testcase> | ||
<testcase classname="server" name="TestStatusAPITransactions" time="8.880"></testcase> | ||
</testsuite> | ||
</testsuites> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<testsuite errors="0" failures="0" skipped="0" tests="11" time="16.885" name="github.com/cockroachdb/cockroach/pkg/server"> | ||
<testcase name="TestAdminAPITableStats" time="2.690"></testcase> | ||
<testcase name="TestAdminAPIZoneDetails" time="0.690"></testcase> | ||
<testcase name="TestAllVersionsAgree" time="2.090"></testcase> | ||
<testcase name="TestEndpointTelemetryBasic" time="0.310"></testcase> | ||
<testcase name="TestGraphite" time="0.670"></testcase> | ||
<testcase name="TestInitializeFromConfig" time="5.940"></testcase> | ||
<testcase name="TestMetricsRecording" time="0.630"></testcase> | ||
<testcase name="TestNodeJoin" time="1.110"></testcase> | ||
<testcase name="TestPlainHTTPServer" time="0.570"></testcase> | ||
<testcase name="TestRemoteDebugModeSetting" time="0.870"></testcase> | ||
<testcase name="TestSettingsRefresh" time="0.770"></testcase> | ||
</testsuite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<testsuite errors="0" failures="0" skipped="0" tests="11" time="26.365" name="github.com/cockroachdb/cockroach/pkg/server"> | ||
<testcase name="TestAdminAPIUsers" time="0.410"></testcase> | ||
<testcase name="TestClusterVersionMixedVersionTooOld" time="0.740"></testcase> | ||
<testcase name="TestCorruptedClusterID" time="0.130"></testcase> | ||
<testcase name="TestDecommissionSelf" time="2.300"></testcase> | ||
<testcase name="TestDummyInitializeNodeFromBundle" time="7.330"></testcase> | ||
<testcase name="TestLivenessAPI" time="2.750"></testcase> | ||
<testcase name="TestMakeIdleMonitor" time="2.270"></testcase> | ||
<testcase name="TestMetricsEndpoint" time="0.610"></testcase> | ||
<testcase name="TestSecureHTTPRedirect" time="0.430"></testcase> | ||
<testcase name="TestSettingsSetAndShow" time="0.360"></testcase> | ||
<testcase name="TestStatusAPITransactions" time="8.880"></testcase> | ||
</testsuite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters