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

build: update restore regexp in roachtest AWS suite #99022

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

renatolabs
Copy link
Contributor

In #98259, the concept of Low memory per vCPU was introduced in roachtest's ClusterSpec. That setting is currently only supported in GCE; if a test that uses that setting is run on any other cloud, roachtest will panic.

The only roachtest using the low-memory setting is currently a restore test that is meant to run on GCE. However, the check for the appropriate cloud is done by that test during runtime (necessarily so), meaning a cluster will need to be created for the check to happen. By that point, the test runner will panic due to the unsupported memory setting.

In the long term, we want to support ways for roachtests to indicate supported clouds outside the Run function (some context in #96655). For now, to stop a panic from happening in roachtest nightly runs on AWS, we update the regexp used to choose tests to run on AWS. We leverage the fact that restore tests include the cloud they are supposed to run in their name.

Epic: none

Release note: None

In cockroachdb#98259, the concept of `Low` memory per vCPU was introduced in
roachtest's `ClusterSpec`. That setting is currently only supported in
GCE; if a test that uses that setting is run on any other cloud,
roachtest will panic.

The only roachtest using the low-memory setting is currently a restore
test that is meant to run on GCE. However, the check for the appropriate
cloud is done by that test during runtime (necessarily so), meaning a
cluster will need to be created for the check to happen. By that
point, the test runner will panic due to the unsupported memory
setting.

In the long term, we want to support ways for roachtests to indicate
supported clouds outside the `Run` function (some context in cockroachdb#96655).
For now, to stop a panic from happening in roachtest nightly runs on
AWS, we update the regexp used to choose tests to run on AWS. We
leverage the fact that `restore` tests include the cloud they are
supposed to run in their name.

Epic: none

Release note: None
@renatolabs renatolabs requested review from msbutler, lidorcarmel and a team March 20, 2023 13:51
@renatolabs renatolabs requested a review from a team as a code owner March 20, 2023 13:51
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@msbutler msbutler left a comment

Choose a reason for hiding this comment

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

long live roachtest tags!

@renatolabs
Copy link
Contributor Author

bors r=msbutler

TFTR!

@craig
Copy link
Contributor

craig bot commented Mar 20, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Mar 20, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Mar 20, 2023

Build succeeded:

@craig craig bot merged commit 4e8e867 into cockroachdb:master Mar 20, 2023
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.

3 participants