-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Live tests: surface --should-read-with-state to GHAs #44173
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
default: "true" | ||
type: boolean | ||
use_local_cdk: | ||
description: Use the local CDK when building the target connector | ||
default: "false" | ||
|
@@ -93,6 +97,15 @@ jobs: | |
echo "USE_LOCAL_CDK_FLAG=" >> $GITHUB_ENV | ||
fi | ||
|
||
- name: Setup State Flag | ||
if: github.event_name == 'workflow_dispatch' | ||
run: | | ||
if ${{ github.event.inputs.should_read_with_state }}; then | ||
echo "READ_WITH_STATE_FLAG=--connector_live_tests.should-read-with-state" >> $GITHUB_ENV | ||
else | ||
echo "READ_WITH_STATE_FLAG=" >> $GITHUB_ENV | ||
fi | ||
|
||
- name: Setup Connection Subset Option | ||
if: github.event_name == 'workflow_dispatch' | ||
run: | | ||
|
@@ -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 }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah I see, so |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "live-tests" | ||
version = "0.18.1" | ||
version = "0.18.2" | ||
description = "Contains utilities for testing connectors against live data." | ||
authors = ["Airbyte <[email protected]>"] | ||
license = "MIT" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "pipelines" | ||
version = "4.32.4" | ||
version = "4.32.5" | ||
description = "Packaged maintained by the connector operations team to perform CI for connectors' pipelines" | ||
authors = ["Airbyte <[email protected]>"] | ||
|
||
|
There was a problem hiding this comment.
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?