|
15 | 15 | workflow_dispatch:
|
16 | 16 | inputs:
|
17 | 17 | connector_name:
|
18 |
| - description: "Connector name (e.g. source-faker)" |
| 18 | + description: Connector name (e.g. source-faker) |
19 | 19 | required: true
|
20 | 20 | connection_id:
|
21 |
| - description: "ID of the connection to test" |
| 21 | + description: ID of the connection to test; use "auto" to let the connection retriever choose a connection |
22 | 22 | required: true
|
23 | 23 | pr_url:
|
24 |
| - description: "URL of the PR containing the code change" |
| 24 | + description: URL of the PR containing the code change |
25 | 25 | required: true
|
| 26 | + streams: |
| 27 | + description: Streams to include in regression tests |
26 | 28 |
|
27 | 29 | jobs:
|
28 | 30 | regression_tests:
|
|
61 | 63 | id: fetch_last_commit_id_wd
|
62 | 64 | run: echo "commit_id=$(git rev-parse origin/${{ steps.extract_branch.outputs.branch }})" >> $GITHUB_OUTPUT
|
63 | 65 |
|
| 66 | + - name: Setup Stream Parameters |
| 67 | + if: github.event_name == 'workflow_dispatch' |
| 68 | + run: | |
| 69 | + if [ -z "${{ github.event.inputs.streams }}" ]; then |
| 70 | + echo "STREAM_PARAMS=" >> $GITHUB_ENV |
| 71 | + else |
| 72 | + STREAMS=$(echo "${{ github.event.inputs.streams }}" | sed 's/,/ --connector_regression_tests.selected-streams=/g') |
| 73 | + echo "STREAM_PARAMS=--connector_regression_tests.selected-streams=$STREAMS" >> $GITHUB_ENV |
| 74 | + fi |
| 75 | +
|
64 | 76 | - name: Run Regression Tests [WORKFLOW DISPATCH]
|
65 | 77 | if: github.event_name == 'workflow_dispatch' # TODO: consider using the matrix strategy (https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs). See https://github.com/airbytehq/airbyte/pull/37659#discussion_r1583380234 for details.
|
66 | 78 | uses: ./.github/actions/run-airbyte-ci
|
|
77 | 89 | github_token: ${{ secrets.GH_PAT_MAINTENANCE_OSS }}
|
78 | 90 | s3_build_cache_access_key_id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
|
79 | 91 | s3_build_cache_secret_key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
|
80 |
| - subcommand: "connectors --name ${{ github.event.inputs.connector_name }} test --only-step connector_regression_tests --connector_regression_tests.connection-id=${{ github.event.inputs.connection_id }} --connector_regression_tests.pr-url=${{ github.event.inputs.pr_url }}" |
| 92 | + subcommand: connectors --name ${{ github.event.inputs.connector_name }} test --only-step connector_regression_tests --connector_regression_tests.connection-id=${{ github.event.inputs.connection_id }} --connector_regression_tests.pr-url=${{ github.event.inputs.pr_url }} ${{ env.STREAM_PARAMS }} |
0 commit comments