Skip to content

chore: Run tests in parallel, sync before read (file)#19317

Merged
kodiakhq[bot] merged 6 commits intomainfrom
fix/update-sdk-manually-file
Oct 7, 2024
Merged

chore: Run tests in parallel, sync before read (file)#19317
kodiakhq[bot] merged 6 commits intomainfrom
fix/update-sdk-manually-file

Conversation

@disq
Copy link
Copy Markdown
Member

@disq disq commented Oct 3, 2024

Getting the file plugin ready for the StreamingBatchWriter update. Incorporates cloudquery/filetypes#579 and cloudquery/plugin-sdk#1921

@disq disq added the no automerge Block automatic merging label Oct 3, 2024
@disq disq marked this pull request as ready for review October 3, 2024 15:44
@disq disq requested review from a team, erezrokah and murarustefaan and removed request for a team October 3, 2024 15:44
@disq disq changed the title fix: Update SDK chore: Run tests in parallel, sync before read Oct 4, 2024
@disq disq added automerge Automatically merge once required checks pass and removed no automerge Block automatic merging labels Oct 4, 2024
@disq disq changed the title chore: Run tests in parallel, sync before read chore: Run tests in parallel, sync before read (file) Oct 4, 2024
name := c.spec.ReplacePathVariables(table.Name, uuid.NewString(), time.Time{})

if syncAfterWrite {
time.Sleep(500 * time.Millisecond)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I've used assert.EventuallyWithT in the cloud storage destinations (gcs/azblob/S3) but here we use the TestInsert functionality from the SDK (testPlugin - except for parquet type or compressed formats) and it needs to be able to see the rows immediately after the write call. For parquet or compressed formats, we use testPluginCustom which follows the write / close / read pattern.

@kodiakhq kodiakhq bot merged commit d730d7c into main Oct 7, 2024
@kodiakhq kodiakhq bot deleted the fix/update-sdk-manually-file branch October 7, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/plugin/destination/file automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants