-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use the correct Python executables for extracting plugin metadata (…
…#1883) Co-authored-by: MeltyBot <[email protected]> Co-authored-by: edgarrmondragon <[email protected]>
- Loading branch information
1 parent
a7ef09a
commit e6ce9fe
Showing
8 changed files
with
97 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
- uses: actions/[email protected] | ||
|
||
- name: Install hub-utils | ||
run: pipx install git+https://github.com/meltano/hub-utils.git | ||
run: pipx install git+https://github.com/meltano/hub-utils.git@edgarrmondragon/fix/custom-python-executable | ||
|
||
- name: Get Variants List - Airbyte | ||
id: get-variants-list-airbyte | ||
|
@@ -34,7 +34,7 @@ jobs: | |
id: setmatrix_airbyte | ||
run: | | ||
matrixStringifiedObject="{\"include\": ${{ steps.get-variants-list-airbyte.outputs.VARIANTS_AIRBYTE }}}" | ||
echo "::set-output name=airbyte_matrix::$matrixStringifiedObject" | ||
echo "airbyte_matrix=$matrixStringifiedObject" >> $GITHUB_ENV | ||
metadata_extract_airbyte_p1: | ||
name: Airbyte - Part 1 Metadata Extract | ||
|
@@ -83,7 +83,7 @@ jobs: | |
name: extractor--${{ matrix.source-name }}--airbyte.json | ||
|
||
- name: Install hub-utils | ||
run: pipx install git+https://github.com/meltano/hub-utils.git | ||
run: pipx install git+https://github.com/meltano/hub-utils.git@edgarrmondragon/fix/custom-python-executable | ||
|
||
- name: Upload Metadata | ||
run: hub-utils upload-airbyte "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" extractor--${{ matrix.source-name }}--airbyte.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
- uses: actions/[email protected] | ||
|
||
- name: Install hub-utils | ||
run: pipx install git+https://github.com/meltano/hub-utils.git | ||
run: pipx install git+https://github.com/meltano/hub-utils.git@edgarrmondragon/fix/custom-python-executable | ||
|
||
- name: Get Variants List - SDK Extractors (p1) | ||
id: get-variants-list-sdk-ex-p1 | ||
|
@@ -35,7 +35,7 @@ jobs: | |
id: setmatrix_sdk_ex_p1 | ||
run: | | ||
matrixStringifiedObject="{\"include\": ${{ steps.get-variants-list-sdk-ex-p1.outputs.VARIANTS_SDK_EX_P1 }}}" | ||
echo "::set-output name=sdk_ex_p1_matrix::$matrixStringifiedObject" | ||
echo "sdk_ex_p1_matrix=$matrixStringifiedObject" >> $GITHUB_ENV | ||
- name: Get Variants List - SDK Extractors (p2) | ||
id: get-variants-list-sdk-ex-p2 | ||
|
@@ -45,7 +45,7 @@ jobs: | |
id: setmatrix_sdk_ex_p2 | ||
run: | | ||
matrixStringifiedObject="{\"include\": ${{ steps.get-variants-list-sdk-ex-p2.outputs.VARIANTS_SDK_EX_P2 }}}" | ||
echo "::set-output name=sdk_ex_p2_matrix::$matrixStringifiedObject" | ||
echo "sdk_ex_p2_matrix=$matrixStringifiedObject" >> $GITHUB_ENV | ||
metadata_extract_sdk_ex_p1: | ||
name: SDK Extractors - Metadata Extract (p1) | ||
|
@@ -70,67 +70,55 @@ jobs: | |
role-session-name: "GitHubActions" | ||
|
||
- name: Install hub-utils | ||
run: pipx install git+https://github.com/meltano/hub-utils.git | ||
run: pipx install git+https://github.com/meltano/hub-utils.git@edgarrmondragon/fix/custom-python-executable | ||
|
||
# This starts the attempts to install and extract metadata. Since we don't | ||
# know what python versions are accepted we start with the latest and continue | ||
# decreasing until we have a success or run out of python versions to attempt. | ||
- name: Install Python 3.12 | ||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
python-version: | | ||
3.13 | ||
3.12 | ||
3.11 | ||
3.10 | ||
3.9 | ||
3.8 | ||
- name: Extract Metadata (3.13) | ||
id: extract_313 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.13 | ||
continue-on-error: true | ||
|
||
- name: Extract Metadata (3.12) | ||
if: always() && (steps.extract_313.outcome == 'failure') | ||
id: extract_312 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.12 | ||
continue-on-error: true | ||
|
||
- name: Install Python 3.11 (Only if 3.12 failed) | ||
if: always() && (steps.extract_312.outcome == 'failure') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Extract Metadata (3.11) | ||
if: always() && (steps.extract_312.outcome == 'failure') | ||
id: extract_311 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.11 | ||
continue-on-error: true | ||
|
||
- name: Install Python 3.10 (Only if 3.11 failed) | ||
if: always() && (steps.extract_311.outcome == 'failure') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Extract Metadata (3.10) | ||
if: always() && (steps.extract_311.outcome == 'failure') | ||
id: extract_310 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.10 | ||
continue-on-error: true | ||
|
||
- name: Install Python 3.9 (Only if 3.10 failed) | ||
if: always() && (steps.extract_310.outcome == 'failure') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Extract Metadata (3.9) | ||
if: always() && (steps.extract_310.outcome == 'failure') | ||
id: extract_39 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.9 | ||
continue-on-error: true | ||
|
||
- name: Install Python 3.8 (Only if 3.9 failed) | ||
if: always() && (steps.extract_39.outcome == 'failure') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Extract Metadata (3.8) | ||
if: always() && (steps.extract_39.outcome == 'failure') | ||
id: extract_38 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.8 | ||
|
||
metadata_extract_sdk_ex_p2: | ||
name: SDK Extractors - Metadata Extract (p2) | ||
|
@@ -155,37 +143,28 @@ jobs: | |
role-session-name: "GitHubActions" | ||
|
||
- name: Install hub-utils | ||
run: pipx install git+https://github.com/meltano/hub-utils.git | ||
run: pipx install git+https://github.com/meltano/hub-utils.git@edgarrmondragon/fix/custom-python-executable | ||
|
||
- name: Install Python 3.10 | ||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
python-version: | | ||
3.10 | ||
3.9 | ||
3.8 | ||
- name: Extract Metadata (3.10) | ||
id: extract_310 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.10 | ||
continue-on-error: true | ||
|
||
- name: Install Python 3.9 (Only if 3.10 failed) | ||
if: always() && (steps.extract_310.outcome == 'failure') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Extract Metadata (3.9) | ||
if: always() && (steps.extract_310.outcome == 'failure') | ||
id: extract_39 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.9 | ||
continue-on-error: true | ||
|
||
- name: Install Python 3.8 (Only if 3.9 failed) | ||
if: always() && (steps.extract_39.outcome == 'failure') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Extract Metadata (3.8) | ||
if: always() && (steps.extract_39.outcome == 'failure') | ||
id: extract_38 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
- uses: actions/[email protected] | ||
|
||
- name: Install hub-utils | ||
run: pipx install git+https://github.com/meltano/hub-utils.git | ||
run: pipx install git+https://github.com/meltano/hub-utils.git@edgarrmondragon/fix/custom-python-executable | ||
|
||
- name: Get Variants List - SDK Loaders | ||
id: get-variants-list-sdk-loaders | ||
|
@@ -34,7 +34,7 @@ jobs: | |
id: setmatrix_sdk_loaders | ||
run: | | ||
matrixStringifiedObject="{\"include\": ${{ steps.get-variants-list-sdk-loaders.outputs.VARIANTS_SDK_LOADERS }}}" | ||
echo "::set-output name=sdk_loaders_matrix::$matrixStringifiedObject" | ||
echo "sdk_loaders_matrix=$matrixStringifiedObject" >> $GITHUB_ENV | ||
metadata_extract_sdk_loaders: | ||
name: SDK Loaders - Metadata Extract | ||
|
@@ -59,64 +59,52 @@ jobs: | |
role-session-name: "GitHubActions" | ||
|
||
- name: Install hub-utils | ||
run: pipx install git+https://github.com/meltano/hub-utils.git | ||
run: pipx install git+https://github.com/meltano/hub-utils.git@edgarrmondragon/fix/custom-python-executable | ||
|
||
# This starts the attempts to install and extract metadata. Since we don't | ||
# know what python versions are accepted we start with the latest and continue | ||
# decreasing until we have a success or run out of python versions to attempt. | ||
- name: Install Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: | | ||
3.13 | ||
3.12 | ||
3.11 | ||
3.10 | ||
3.9 | ||
3.8 | ||
- name: Extract Metadata (3.13) | ||
id: extract_313 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.13 | ||
continue-on-error: true | ||
|
||
- name: Extract Metadata (3.12) | ||
if: always() && (steps.extract_313.outcome == 'failure') | ||
id: extract_312 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.12 | ||
continue-on-error: true | ||
|
||
- name: Install Python 3.11 (Only if 3.12 failed) | ||
if: always() && (steps.extract_312.outcome == 'failure') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Extract Metadata (3.11) | ||
if: always() && (steps.extract_312.outcome == 'failure') | ||
id: extract_311 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.11 | ||
continue-on-error: true | ||
|
||
- name: Install Python 3.10 (Only if 3.11 failed) | ||
if: always() && (steps.extract_311.outcome == 'failure') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Extract Metadata (3.10) | ||
if: always() && (steps.extract_311.outcome == 'failure') | ||
id: extract_310 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.10 | ||
continue-on-error: true | ||
|
||
- name: Install Python 3.9 (Only if 3.10 failed) | ||
if: always() && (steps.extract_310.outcome == 'failure') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Extract Metadata (3.9) | ||
if: always() && (steps.extract_310.outcome == 'failure') | ||
id: extract_39 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.9 | ||
continue-on-error: true | ||
|
||
- name: Install Python 3.8 (Only if 3.9 failed) | ||
if: always() && (steps.extract_39.outcome == 'failure') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Extract Metadata (3.8) | ||
if: always() && (steps.extract_39.outcome == 'failure') | ||
id: extract_38 | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data | ||
run: hub-utils extract-sdk-metadata-to-s3 "/home/runner/work/hub/hub/_data/meltano/${{ matrix.plugin-name }}" $(pwd)/extract_data --python=python3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters