Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roachtest: add acceptance/decommission #29488

Merged

Conversation

petermattis
Copy link
Collaborator

Move the decommission acceptance test to a new acceptance/decommission
roachtest.

Fixes #29151

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@petermattis petermattis requested review from tbg and benesch September 3, 2018 16:42
@petermattis
Copy link
Collaborator Author

The first commit is #29470.

This removes the last usage of RunLocal from pkg/acceptance tests.

@petermattis
Copy link
Collaborator Author

github-pull-request-make is return an empty pkg from pkgsFromDiff which is causing test and testrace CI runs to fail. Taking a look.

@petermattis petermattis force-pushed the pmattis/roachtest-decommission branch from 83fdde2 to 2ecf667 Compare September 3, 2018 19:12
@petermattis
Copy link
Collaborator Author

Added a commit which should fix the github-pull-request-make problem. We apparently don't delete tests very often.

Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 of 4 files at r1, 1 of 1 files at r2, 5 of 5 files at r3.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/cmd/roachtest/decommission.go, line 261 at r3 (raw file):

		extraArgs ...string,
	) (string, error) {
		args := []string{"ssh", c.makeNodes(c.Node(runNode)), "--", cockroach}

Isn't this quite roundabout? Why not c.RunE(ctx, c.Node(runNode), "./cockroach", ...)

I think this might also reintroduce these hangs about passing stdout into child processes.


pkg/cmd/roachtest/decommission.go, line 273 at r3 (raw file):

		return buf.String(), err
	}

Any changes below this line that I should review? I skimmed it and it looks like the old test.

Copy link
Collaborator Author

@petermattis petermattis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/cmd/roachtest/decommission.go, line 261 at r3 (raw file):

Previously, tschottdorf (Tobias Schottdorf) wrote…

Isn't this quite roundabout? Why not c.RunE(ctx, c.Node(runNode), "./cockroach", ...)

I think this might also reintroduce these hangs about passing stdout into child processes.

Hmm, good point. The reason I'm not using RunE is that I need to capture stdout. I guess I could avoid the teeing to c.l.stdout, though that is really nice for debugging. Let me take another look at this.


pkg/cmd/roachtest/decommission.go, line 273 at r3 (raw file):

Previously, tschottdorf (Tobias Schottdorf) wrote…

Any changes below this line that I should review? I skimmed it and it looks like the old test.

No, everything below here was directly adapted from the old test.

@tbg
Copy link
Member

tbg commented Sep 4, 2018 via email

Copy link
Collaborator Author

@petermattis petermattis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/cmd/roachtest/decommission.go, line 261 at r3 (raw file):

Previously, petermattis (Peter Mattis) wrote…

Hmm, good point. The reason I'm not using RunE is that I need to capture stdout. I guess I could avoid the teeing to c.l.stdout, though that is really nice for debugging. Let me take another look at this.

Ok, I've changed this to use cluster.RunWithBuffer. No more fancy teeing. Oh well.

@petermattis petermattis force-pushed the pmattis/roachtest-decommission branch 2 times, most recently from 1e51020 to a8c050f Compare September 4, 2018 15:22
Copy link
Contributor

@benesch benesch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2, 5 of 5 files at r5.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/cmd/github-pull-request-make/main.go, line 119 at r5 (raw file):

				case len(curTestName) > 0:
					if !(curPkgName == "build" && curTestName == "TestStyle") {
						fmt.Printf("adding test: name=%s pkg=%s\n", curTestName, curPkgName)

Did you mean to leave this in?

When deleting a go test it was possible to add a package with an empty
name. This in turn would cause CI failure as the top-level cockroach
package contains no Go sources.

Release note: None
Move the decommission acceptance test to a new acceptance/decommission
roachtest.

Fixes cockroachdb#29151

Release note: None
Copy link
Collaborator Author

@petermattis petermattis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/cmd/github-pull-request-make/main.go, line 119 at r5 (raw file):

Previously, benesch (Nikhil Benesch) wrote…

Did you mean to leave this in?

Nope. Removed.

@petermattis petermattis force-pushed the pmattis/roachtest-decommission branch from a8c050f to 9dd2f22 Compare September 4, 2018 17:10
@petermattis
Copy link
Collaborator Author

bors r=benesch,tschottdorf

@petermattis
Copy link
Collaborator Author

(bors crash, I think)

bors r=benesch,tschottdorf

@craig
Copy link
Contributor

craig bot commented Sep 4, 2018

Merge conflict (retrying...)

@petermattis
Copy link
Collaborator Author

bors r=benesch,tschottdorf

craig bot pushed a commit that referenced this pull request Sep 4, 2018
29367: changefeedccl: error when a watched table backfills r=mrtracy,vivekmenezes a=danhhz

When a table is currently being backfilled for a schema change (e.g.
adding a column with a default value), it's unclear what the expectation
is for any rows that are changed during the backfill. Our current
invariant is that rows are emitted with an updated timestamp and a later
SELECT ... AS OF SYSTEM TIME for that row would exactly match the
emitted data. During the backfill, there is nothing we can emit that
would definitely meet that invariant (because the backfill can be
aborted and rolled back).

In the meantime, this commit makes sure that we error whenever a
backfill happens, even if it's fast enough that we never get it from
leasing.

This also paves the way for switching to RangeFeed, which doesn't have
the convenient `fetchSpansForTargets` hook that the ExportRequest based
poller was (ab)using.

Closes #28643

Release note (bug fix): CHANGEFEEDs now error when a watched table
backfills (instead of undefined behavior)

29427: docs: Fix replace and link in table_ref diagram r=jseldess a=jseldess

Needed for cockroachdb/docs#3682.

Release note: None

29488: roachtest: add acceptance/decommission r=benesch,tschottdorf a=petermattis

Move the decommission acceptance test to a new acceptance/decommission
roachtest.

Fixes #29151

Release note: None

29538: stats: document stats-related commands as experimental r=RaduBerinde a=RaduBerinde

Update the documentation inside `sql.y` to designate the stats-related
statements as experimental.

Release note: None

29546: roachtest: skip (intentionally) failing Kafka chaos test r=petermattis a=tschottdorf

This test has no chance of passing until Kafka chaos is actually
supported (see #28636).

Touches #29196.

Release note: None

29550: testcluster: make manual replication mode disable the merge queue r=petermattis a=benesch

TestClusters have a manual replication mode for use in tests that need
to precisely control replication on a cluster. Teach that mode to
disable the merge queue in addition to the split and replicate queues.
This decreases the number of tests that need to directly disable the
merge queue.

Release note: None

29552: ui: add attributes to login form so LastPass will autofill it r=vilterp a=vilterp

LastPass wasn't confident enough to autofill and autologin without these
attributes.

Fixes #29529 (fixes for LastPass, but maybe not other PW managers)

Release note (admin ui change): Add attributes to the login form to allow LastPass to properly recognize it.

Co-authored-by: Daniel Harrison <[email protected]>
Co-authored-by: Jesse Seldess <[email protected]>
Co-authored-by: Peter Mattis <[email protected]>
Co-authored-by: Radu Berinde <[email protected]>
Co-authored-by: Tobias Schottdorf <[email protected]>
Co-authored-by: Nikhil Benesch <[email protected]>
Co-authored-by: Pete Vilter <[email protected]>
@craig
Copy link
Contributor

craig bot commented Sep 4, 2018

Build succeeded

@craig craig bot merged commit 9dd2f22 into cockroachdb:master Sep 4, 2018
@petermattis petermattis deleted the pmattis/roachtest-decommission branch September 4, 2018 21:03
Amruta-Ranade pushed a commit that referenced this pull request Sep 4, 2018
29367: changefeedccl: error when a watched table backfills r=mrtracy,vivekmenezes a=danhhz

When a table is currently being backfilled for a schema change (e.g.
adding a column with a default value), it's unclear what the expectation
is for any rows that are changed during the backfill. Our current
invariant is that rows are emitted with an updated timestamp and a later
SELECT ... AS OF SYSTEM TIME for that row would exactly match the
emitted data. During the backfill, there is nothing we can emit that
would definitely meet that invariant (because the backfill can be
aborted and rolled back).

In the meantime, this commit makes sure that we error whenever a
backfill happens, even if it's fast enough that we never get it from
leasing.

This also paves the way for switching to RangeFeed, which doesn't have
the convenient `fetchSpansForTargets` hook that the ExportRequest based
poller was (ab)using.

Closes #28643

Release note (bug fix): CHANGEFEEDs now error when a watched table
backfills (instead of undefined behavior)

29427: docs: Fix replace and link in table_ref diagram r=jseldess a=jseldess

Needed for cockroachdb/docs#3682.

Release note: None

29488: roachtest: add acceptance/decommission r=benesch,tschottdorf a=petermattis

Move the decommission acceptance test to a new acceptance/decommission
roachtest.

Fixes #29151

Release note: None

29538: stats: document stats-related commands as experimental r=RaduBerinde a=RaduBerinde

Update the documentation inside `sql.y` to designate the stats-related
statements as experimental.

Release note: None

29546: roachtest: skip (intentionally) failing Kafka chaos test r=petermattis a=tschottdorf

This test has no chance of passing until Kafka chaos is actually
supported (see #28636).

Touches #29196.

Release note: None

29550: testcluster: make manual replication mode disable the merge queue r=petermattis a=benesch

TestClusters have a manual replication mode for use in tests that need
to precisely control replication on a cluster. Teach that mode to
disable the merge queue in addition to the split and replicate queues.
This decreases the number of tests that need to directly disable the
merge queue.

Release note: None

29552: ui: add attributes to login form so LastPass will autofill it r=vilterp a=vilterp

LastPass wasn't confident enough to autofill and autologin without these
attributes.

Fixes #29529 (fixes for LastPass, but maybe not other PW managers)

Release note (admin ui change): Add attributes to the login form to allow LastPass to properly recognize it.

Co-authored-by: Daniel Harrison <[email protected]>
Co-authored-by: Jesse Seldess <[email protected]>
Co-authored-by: Peter Mattis <[email protected]>
Co-authored-by: Radu Berinde <[email protected]>
Co-authored-by: Tobias Schottdorf <[email protected]>
Co-authored-by: Nikhil Benesch <[email protected]>
Co-authored-by: Pete Vilter <[email protected]>
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.

4 participants