Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uproachtest: move the logger from cluster to test #31321
Conversation
andreimatei
assigned
petermattis
Oct 12, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
First commit is elsewhere. |
andreimatei
requested a review
from
benesch
Oct 16, 2018
benesch
approved these changes
Oct 16, 2018
but I didn't look at the first commit
Reviewed 3 of 3 files at r2, 27 of 27 files at r3, 6 of 6 files at r4.
Reviewable status:complete! 0 of 0 LGTMs obtained (and 1 stale)
pkg/cmd/roachtest/cluster.go, line 832 at r3 (raw file):
// This cloned cluster is not taking ownership. The parent retains it. cpy.owned = false cpy.destroyed = nil
Is this in the right commit?
pkg/cmd/roachtest/test.go, line 919 at r2 (raw file):
c = c.clone() } c.setTest(t)
Is this in the right commit?
andreimatei
reviewed
Oct 16, 2018
Reviewable status:
complete! 1 of 0 LGTMs obtained
pkg/cmd/roachtest/cluster.go, line 832 at r3 (raw file):
Previously, benesch (Nikhil Benesch) wrote…
Is this in the right commit?
no, moved to the previous one. thanks
pkg/cmd/roachtest/test.go, line 919 at r2 (raw file):
Previously, benesch (Nikhil Benesch) wrote…
Is this in the right commit?
yes. The setTest() call got moved below the clone() call; clone() used to take a test, but no longer.
benesch
approved these changes
Oct 16, 2018
Reviewed 31 of 31 files at r5, 26 of 26 files at r6, 6 of 6 files at r7.
Reviewable status:complete! 0 of 0 LGTMs obtained (and 1 stale)
andreimatei
added some commits
Oct 12, 2018
andreimatei
reviewed
Oct 16, 2018
bors r+
Reviewable status:
complete! 0 of 0 LGTMs obtained (and 1 stale)
bot
pushed a commit
that referenced
this pull request
Oct 16, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
craig
bot
commented
Oct 16, 2018
Build succeeded |
andreimatei commentedOct 12, 2018
Before this patch, c.l was essentially a test's logger. But that logger
belongs better on a test than on a cluster, and so I've moved it.
c.l still exists, and it's being set at a high level to t.l. The idea is
that c.l will still be used, at least for the time being, by other
cluster methods, but otherwise tests will switch to using t.l instead of
c.l (this is being done in the next commit).
Release note: None