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

feat(source-hardcoded-records): add new source #42434

Merged
merged 11 commits into from
Jul 26, 2024

Conversation

artem1205
Copy link
Collaborator

@artem1205 artem1205 commented Jul 23, 2024

What

Resovling https://github.com/airbytehq/airbyte-internal-issues/issues/8471
add new source with 3 streams of hardcoded records to track performance of Airbyte Python CDK

Follow up

  • add 2 connections to our Airbyte Internal Performance workspace with count = 20M:
    • skinny records stream <> E2E
    • fat records stream <> E2E

How

records are hardcoded

Review guide

  1. airbyte-integrations/connectors/source-hardcoded-records/source_hardcoded_records/streams.py

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

[skip ci]

Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
@artem1205 artem1205 self-assigned this Jul 23, 2024
Copy link

vercel bot commented Jul 23, 2024

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

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2024 8:28am

[skip ci]

Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
@artem1205 artem1205 changed the title feat(source-faker-hardcode): add new source feat(source-hardcoded-records): add new source Jul 23, 2024
@artem1205 artem1205 marked this pull request as ready for review July 23, 2024 10:33
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
@artem1205 artem1205 requested review from a team and brianjlai July 23, 2024 12:40
Copy link
Contributor

@natikgadzhi natikgadzhi left a comment

Choose a reason for hiding this comment

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

I remember @cgardens told me we've used something similar when we did platform and DB sources performance testing.

Not opposed to having a Python implementation here, but maybe we have an existing one? @davinchia / @evantahler do you know?

Re: this PR: @artem1205 can you remove the boilerplate? Realistically, we are not about to change this connector often, so I'd say the boilerplate (mostly templates) in integration_tests, acceptance-test-config and such, unit_tests — they are all not needed.

@@ -0,0 +1,5 @@
#
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete the boilerplate!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

deleted

docs/integrations/sources/hardcoded-records.md Outdated Show resolved Hide resolved
docs/integrations/sources/hardcoded-records.md Outdated Show resolved Hide resolved
@evantahler
Copy link
Contributor

We have an E2E Testing source that generates fake records, but it's Java. We also have faker (python). Finally, @chandlerprall made a nodejs source recently that generates fake data too!

from airbyte_cdk.sources.streams import Stream


class HardcodedStream(Stream, ABC):
Copy link
Contributor

Choose a reason for hiding this comment

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

I would like to see a stream with 24 million rows of exactly this schemas and values:

{ field1: "valuevaluevaluevaluevalue1", 
field2: "valuevaluevaluevaluevalue1", 
field3: "valuevaluevaluevaluevalue1", 
field4: "valuevaluevaluevaluevalue1",
field5: "valuevaluevaluevaluevalue1"
}

this is the format we use for all of our other performance testing. doing the exact same thing helps make it comparable to other tests

Copy link
Collaborator Author

@artem1205 artem1205 Jul 25, 2024

Choose a reason for hiding this comment

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

this is the format we use for all of our other performance testing. doing the exact same thing helps make it comparable to other tests

added new stream with this exact record.

We still need to leave another streams, because we want to test how python/pydantic works with large/nested data structures.

Copy link
Contributor

Choose a reason for hiding this comment

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

makes sense. thank you!

Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Copy link
Contributor

@natikgadzhi natikgadzhi left a comment

Choose a reason for hiding this comment

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

Approving to unblock, use your best judgement. I strongly suggest that you delete the acceptance-test-config.yml, integration_tests, and schemas if they are only used for tests.

Basically, this is a dev tool that is unlikely to change much.

@artem1205 artem1205 merged commit 046c4b7 into master Jul 26, 2024
36 checks passed
@artem1205 artem1205 deleted the artem1205/source-faker-hardcode branch July 26, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/hardcoded-records
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants