Skip to content

workloadccl: fix multi-table fixture generation #37617

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

Merged

Conversation

nvanbenschoten
Copy link
Contributor

@nvanbenschoten nvanbenschoten commented May 21, 2019

This was broken in f4a0350. workload fixtures make tpcc was failing with:

Error: pq: gs://cockroach-fixtures/workload/tpcc/version=2.1.0,fks=true,interleaved=false,seed=1,warehouses=1/order_line already contains a BACKUP file

I'm surprised how long it took us to catch this. Are there tests that should have caught this? Perhaps the issue is that most nightly tests are overwriting existing fixtures.

EDIT: workload fixtures make tpcc was failing with the following error, which better explains why this wasn't caught by existing tests (due to the overwriting mentioned above):

Error: fixture table not found: workload/tpcc/version=2.1.0,fks=true,interleaved=false,seed=1,warehouses=1/warehouse

Release note: None

This was broken in f4a0350.

Release note: None
@nvanbenschoten nvanbenschoten requested review from dt and a team May 21, 2019 01:02
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@dt dt left a comment

Choose a reason for hiding this comment

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

🤦‍♂️

The number of times I've been bitten by the close-over-loop-var bug, you'd think I'd learn... but no.

@nvanbenschoten
Copy link
Contributor Author

TFTR! Merging now because I need this, but cc. @danhhz - you might be interested in the testing gap.

bors r=dt

craig bot pushed a commit that referenced this pull request May 21, 2019
37617: workloadccl: fix multi-table fixture generation r=dt a=nvanbenschoten

This was broken in f4a0350. `workload fixtures make tpcc` was failing with:

~Error: pq: gs://cockroach-fixtures/workload/tpcc/version=2.1.0,fks=true,interleaved=false,seed=1,warehouses=1/order_line already contains a BACKUP file~


I'm surprised how long it took us to catch this. Are there tests that should have caught this? Perhaps the issue is that most nightly tests are overwriting existing fixtures.

EDIT: `workload fixtures make tpcc` was failing with the following error, which better explains why this wasn't caught by existing tests (due to the overwriting mentioned above):
```
Error: fixture table not found: workload/tpcc/version=2.1.0,fks=true,interleaved=false,seed=1,warehouses=1/warehouse
```

Release note: None

Co-authored-by: Nathan VanBenschoten <[email protected]>
@craig
Copy link
Contributor

craig bot commented May 21, 2019

Build succeeded

@craig craig bot merged commit f019ba9 into cockroachdb:master May 21, 2019
@danhhz
Copy link
Contributor

danhhz commented May 21, 2019

We have a basic test, TestFixture, but it requires google storage so there isn't a great way to run it. It's triggered if the right env variables are set. (Also looks like it's a single table, so it wouldn't have caught this, but that doesn't matter if we can't run the test.)

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