Skip to content

Commit

Permalink
ci: Use the correct Python executables for extracting plugin metadata (
Browse files Browse the repository at this point in the history
…#1883)

Co-authored-by: MeltyBot <[email protected]>
Co-authored-by: edgarrmondragon <[email protected]>
  • Loading branch information
3 people authored Nov 5, 2024
1 parent a7ef09a commit e6ce9fe
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 93 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/metadata-extract-airbyte.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
87 changes: 33 additions & 54 deletions .github/workflows/metadata-extract-extractors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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
54 changes: 21 additions & 33 deletions .github/workflows/metadata-extract-loaders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
8 changes: 8 additions & 0 deletions _data/meltano/extractors/tap-aircall/ticketswap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ settings:
kind: string
label: Batch Config Storage Root
name: batch_config.storage.root
- description: 'One or more LCID locale strings to produce localized output for: https://faker.readthedocs.io/en/master/#localization'
kind: array
label: Faker Config Locale
name: faker_config.locale
- description: 'Value to seed the Faker generator for deterministic output: https://faker.readthedocs.io/en/master/#seeding-the-generator'
kind: string
label: Faker Config Seed
name: faker_config.seed
- description: "'True' to enable schema flattening and automatically expand nested
properties."
kind: boolean
Expand Down
14 changes: 14 additions & 0 deletions _data/meltano/extractors/tap-apple-search-ads/ticketswap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,20 @@ settings:
label: Org ID
name: org_id
sensitive: true
- description: The granularity of reporting streams. One of HOURLY, DAILY, WEEKLY,
MONTHLY.
kind: options
label: Report Granularity
name: report_granularity
options:
- label: Hourly
value: HOURLY
- label: Daily
value: DAILY
- label: Weekly
value: WEEKLY
- label: Monthly
value: MONTHLY
- description: Start date for reporting streams, format in YYYY-MM-DD.
kind: date_iso8601
label: Start Date
Expand Down
2 changes: 1 addition & 1 deletion _data/meltano/extractors/tap-circle-ci/meltanolabs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ settings:
kind: string
label: User Agent
name: user_agent
value: tap-circle-ci/0.3.2 Singer tap for the CircleCI API.
value: tap-circle-ci/0.3.3 Singer tap for the CircleCI API.
settings_group_validation:
- - org_slug
- token
Expand Down
2 changes: 1 addition & 1 deletion _data/meltano/extractors/tap-dbt/meltanolabs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ settings:
kind: string
label: User Agent
name: user_agent
value: tap-dbt/0.12.3.post1.dev8+a4e0b7b Singer tap for the dbt Cloud API.
value: tap-dbt/0.12.3.post1 Singer tap for the dbt Cloud API.
settings_group_validation:
- - account_ids
- api_key
Expand Down
17 changes: 16 additions & 1 deletion _data/meltano/extractors/tap-mysql/meltanolabs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ settings:
kind: string
label: Host
name: host
- description: By default we'll check if the database is a Vitess instance. If you
would rather not automatically check, set this to `False`. See Vitess/PlanetScale
documentation below for more information.
kind: boolean
label: Is Vitess
name: is_vitess
- description: Password used to authenticate. Note if sqlalchemy_url is set this will
be ignored.
kind: password
Expand All @@ -92,7 +98,16 @@ settings:
label: Port
name: port
value: 3306
- description: Example mysql://[username]:[password]@localhost:3306/[db_name]
- description: Sqlalchemy_url options (also called the query), to connect to PlanetScale
you must turn on SSL see PlanetScale information below. Note if sqlalchemy_url
is set this will be ignored.
kind: object
label: Sqlalchemy Options
name: sqlalchemy_options
- description: Example pymysql://[username]:[password]@localhost:3306/[db_name][?options]
see
https://docs.sqlalchemy.org/en/20/dialects/mysql.html#module-sqlalchemy.dialects.mysql.pymysql
for more information
kind: string
label: Sqlalchemy URL
name: sqlalchemy_url
Expand Down

0 comments on commit e6ce9fe

Please sign in to comment.