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

Live tests: surface --should-read-with-state to GHAs #44173

Merged
merged 4 commits into from
Aug 16, 2024

Conversation

clnoll
Copy link
Contributor

@clnoll clnoll commented Aug 16, 2024

Surfaces live tests' --should-read-with-state option wired in GHA, and also fixes an issue using it with airbyte-ci.

Also updates live tests so there's not a requirement to read with state in CI.

Closes #43936.

@clnoll clnoll requested a review from a team August 16, 2024 02:55
Copy link

vercel bot commented Aug 16, 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 Aug 16, 2024 3:03pm

@clnoll clnoll force-pushed the catherine/regression-tests-without-state branch 7 times, most recently from b4fcf3c to bd9fb46 Compare August 16, 2024 03:48
@clnoll clnoll requested review from girarda and alafanechere August 16, 2024 03:59
Copy link
Contributor

@alafanechere alafanechere left a comment

Choose a reason for hiding this comment

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

LGTM

@clnoll clnoll force-pushed the catherine/regression-tests-without-state branch from d539c70 to 49205d9 Compare August 16, 2024 15:02
@clnoll clnoll merged commit f86b1ca into master Aug 16, 2024
33 checks passed
@clnoll clnoll deleted the catherine/regression-tests-without-state branch August 16, 2024 15:36
@natikgadzhi
Copy link
Contributor

How would people invoke this? Would it be through manual invocation of regression tests via workflow dispatch? /cc @girarda @lazebnyi

@lazebnyi, can you check and see if this is adequate, or needs more work?

Do we want to figure out how to automatically fall back to --without-state if --with-state skipped because state was not compatible? I.e. make sure people don't drop the ball?

@@ -25,6 +25,10 @@ on:
required: true
streams:
description: Streams to include in tests
should_read_with_state:
description: Whether to run tests against the read command with state
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you tell me more about how this is applied? Does it mean "with taking state in at the start of read", or something else?

@@ -114,4 +127,4 @@ jobs:
github_token: ${{ secrets.GH_PAT_MAINTENANCE_OSS }}
s3_build_cache_access_key_id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
s3_build_cache_secret_key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
subcommand: connectors ${{ env.USE_LOCAL_CDK_FLAG }} --name ${{ github.event.inputs.connector_name }} test --only-step connector_live_tests --connector_live_tests.test-suite=all --connector_live_tests.connection-id=${{ github.event.inputs.connection_id }} --connector_live_tests.pr-url=${{ github.event.inputs.pr_url }} ${{ env.STREAM_PARAMS }} ${{ env.CONNECTION_SUBSET }}
subcommand: connectors ${{ env.USE_LOCAL_CDK_FLAG }} --name ${{ github.event.inputs.connector_name }} test --only-step connector_live_tests --connector_live_tests.test-suite=live --connector_live_tests.connection-id=${{ github.event.inputs.connection_id }} --connector_live_tests.pr-url=${{ github.event.inputs.pr_url }} ${{ env.READ_WITH_STATE_FLAG }} ${{ env.STREAM_PARAMS }} ${{ env.CONNECTION_SUBSET }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is replacing "all" with "live" here intentional? I assume that all = regression + validation? what's live stand for?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I see, so live stands for validation (looked up at the top of the file).

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.

OC Postmortem/Regression tests: wire through option to run without state
3 participants