Skip to content

Commit

Permalink
roachtest: print cockroach random seed to test.log
Browse files Browse the repository at this point in the history
This change prints the cockroach random seed used by metamorphic
builds to test.log for ease of debugging. Before this seed was found
only in cockroach.log.

Release note: none
  • Loading branch information
DarrylWong committed Nov 7, 2023
1 parent 7a0b7f4 commit f28f648
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/roachtest/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1936,6 +1936,7 @@ func (c *clusterImpl) StartE(
// Set the same seed on every node, to be used by builds with
// runtime assertions enabled.
setUnlessExists("COCKROACH_RANDOM_SEED", c.cockroachRandomSeed())
l.Printf("ROACHTEST COCKROACH_RANDOM_SEED: %d", c.cockroachRandomSeed())

// Needed for backward-compat on crdb_internal.ranges{_no_leases}.
// Remove in v23.2.
Expand Down

0 comments on commit f28f648

Please sign in to comment.