Skip to content

roachtest: remove cloud from registry and ClusterSpec#113505

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
RaduBerinde:test-spec-no-cloud
Nov 8, 2023
Merged

roachtest: remove cloud from registry and ClusterSpec#113505
craig[bot] merged 1 commit intocockroachdb:masterfrom
RaduBerinde:test-spec-no-cloud

Conversation

@RaduBerinde
Copy link
Copy Markdown
Member

This change is the last step in removing runtime state from the test
registry and the cluster spec. The cloud is no longer accessible at
test registration time.

Fixes #104029
Release note: None

@RaduBerinde RaduBerinde requested a review from a team as a code owner October 31, 2023 16:47
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown

@renatolabs renatolabs left a comment

Choose a reason for hiding this comment

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

:lgtm:

Minor comments, nice work!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde and @srosenberg)


pkg/cmd/roachtest/spec/cluster_spec.go line 252 at r1 (raw file):

	//  - the existing cluster's arch, if we are reusing a cluster;
	//  - otherwise, it is the test'
	// it; it is not guaranteed

Documentation is off here.


pkg/cmd/roachtest/spec/cluster_spec.go line 348 at r1 (raw file):

			// based on the cloud and CPU count.
			var err error
			switch params.Cloud {

Nit: we're switching on cloud directly above; might make sense to do this here too to lower cognitive load.

Copy link
Copy Markdown
Member Author

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

TFTR!

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @renatolabs and @srosenberg)


pkg/cmd/roachtest/spec/cluster_spec.go line 252 at r1 (raw file):

Previously, renatolabs (Renato Costa) wrote…

Documentation is off here.

Done. Not sure where the change came from, reverted.

@RaduBerinde RaduBerinde force-pushed the test-spec-no-cloud branch 2 times, most recently from d3b5d32 to a392efb Compare November 6, 2023 19:43
This change is the last step in removing runtime state from the test
registry and the cluster spec. The cloud is no longer accessible at
test registration time.

Fixes cockroachdb#104029
Release note: None
@RaduBerinde
Copy link
Copy Markdown
Member Author

Rebased and started test run: https://teamcity.cockroachdb.com/viewQueued.html?itemId=12554668

@RaduBerinde
Copy link
Copy Markdown
Member Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Nov 8, 2023

Build succeeded:

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.

roachtest: ClusterSpec should support user-specified clouds _compatible_ with a test

3 participants