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

Bulk Load CDK: Restore CheckpointManager Test #46321

Conversation

johnny-schmidt
Copy link
Contributor

What

Restores the broken CheckpointManagerTest (by removing suspend, which was confounding ParameterizedTest).

Additionally, this required test changes to keep it working: basically, because I removed the mocks for Sync/Stream manager, I had to manipulate the state from the outside a little (like, if the test case said index 10, I had to advance the record count 10 times, etc). This makes the test more realistic.

Also I switched it to rebuildContext = true so that the managers would get rest.

Also I removed some stray println statements and (accidentally) picked up a test improvement I left out of the previous PR :)

@johnny-schmidt johnny-schmidt requested a review from a team as a code owner October 2, 2024 22:38
Copy link

vercel bot commented Oct 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2024 10:09pm

@johnny-schmidt johnny-schmidt requested a review from edgao October 2, 2024 22:38
@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Oct 2, 2024
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/issue-9970/load-cdk-checkpoint-manager-part-one branch 3 times, most recently from 2c5baa8 to 3c8a97e Compare October 3, 2024 21:45
Base automatically changed from jschmidt/issue-9970/load-cdk-checkpoint-manager-part-one to master October 3, 2024 21:48
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/issue-9970/load-cdk-checkpoint-manager-part-two branch from 85cae03 to 663d21c Compare October 3, 2024 21:55
@johnny-schmidt johnny-schmidt enabled auto-merge (squash) October 3, 2024 21:55
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/issue-9970/load-cdk-checkpoint-manager-part-two branch from 663d21c to 466fe14 Compare October 3, 2024 22:09
@johnny-schmidt johnny-schmidt merged commit 45cf615 into master Oct 3, 2024
26 checks passed
@johnny-schmidt johnny-schmidt deleted the jschmidt/issue-9970/load-cdk-checkpoint-manager-part-two branch October 3, 2024 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants