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

testutils,roachtest: only use private bucket in private tests #107073

Merged

Conversation

renatolabs
Copy link
Contributor

This fixes an issue with the default location for backups taken during tests that use a real GCS bucket. Previously, some of these backups were using the hardcoded private bucket name, causing many tests to fail with permission errors.

In this commit, we centralize the logic for figuring out which bucket to use in a testutils function, and reuse that across logic tests and roachtests.

Fixes: #107056

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@renatolabs renatolabs force-pushed the rc/fix-private-bucket-nightly-tests branch 3 times, most recently from fd554ef to c991349 Compare July 18, 2023 15:10
This fixes an issue with the default location for backups taken during
tests that use a real GCS bucket. Previously, some of these backups
were using the hardcoded private bucket name, causing many tests to
fail with permission errors.

In this commit, we centralize the logic for figuring out which bucket
to use in a `testutils` function, and reuse that across logic tests
and roachtests.

Fixes: cockroachdb#107056

Release note: None
Epic: none

Release note: None
@renatolabs renatolabs force-pushed the rc/fix-private-bucket-nightly-tests branch from c991349 to 590b9e9 Compare July 18, 2023 16:41
@renatolabs renatolabs marked this pull request as ready for review July 18, 2023 18:03
@renatolabs renatolabs requested review from a team as code owners July 18, 2023 18:03
@renatolabs renatolabs requested review from herkolategan and srosenberg and removed request for a team July 18, 2023 18:03
@renatolabs
Copy link
Contributor Author

A random sample of roachtests is running on this branch (SELECT_PROBABILITY=0.2): https://teamcity.cockroachdb.com/viewLog.html?buildId=10960730&buildTypeId=Cockroach_Nightlies_RoachtestNightlyGceBazel&tab=buildResultsDiv&branch_Cockroach_Nightlies=107073.

So far, multiple tests have passed, including tests that have the default backup schedule enabled, so there's good reason to believe things are working again. Opening for review.

@renatolabs
Copy link
Contributor Author

TFTR!

bors r=srosenberg

@craig
Copy link
Contributor

craig bot commented Jul 18, 2023

Build succeeded:

@craig craig bot merged commit 66f234a into cockroachdb:master Jul 18, 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.

roachtest: scheduled backup failing because of permissions issue
4 participants