sherifnada / airbyte

Airbyte is an open-source EL(T) platform that helps you replicate your data in your warehouses, lakes and databases.
https://airbyte.io
Other
0 stars 2 forks source link

Convert from argparse to Click for CLI parsing in airbyte-cdk/python #6

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR updates the command-line argument parsing in the entrypoint.py file of the airbyte-cdk/python directory from using the argparse library to using the Click library. It also updates the setup.py file to include Click as a dependency and updates the unit tests in test_entrypoint.py to reflect the changes made to the argument parsing logic.

Summary of Changes

Please review and merge this PR. Thank you!

Fixes #4.

To checkout this PR branch, run the following command in your terminal:

git checkout sweep/convert-argparse-to-click_2
sweep-ai[bot] commented 1 year ago

GitHub actions yielded the following error.

The command that failed is Run nick-fields/private-action-loader@v3. Here are the relevant lines from the logs:

##[warning]Unexpected input(s) 'token', 'command', valid inputs are ['pal-repo-token', 'pal-repo-name', 'pal-action-directory']
##[group]Run nick-fields/private-action-loader@v3
with:
pal-repo-name: airbytehq/workflow-actions@production
command: pull
##[endgroup]
/home/runner/work/_actions/nick-fields/private-action-loader/v3/dist/index.js:8846
throw new Error(`Input required and not supplied: ${name}`);
^

Error: Input required and not supplied: pal-repo-token

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.

sweep-ai[bot] commented 1 year ago

GitHub actions yielded the following error.

The command that failed is Run actions/labeler@v3. Here are the relevant lines from the logs:

##[error]Error: Input required and not supplied: repo-token
##[error]Input required and not supplied: repo-token

Please note that the error message indicates that the repo-token input is required but not supplied.

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.

sweep-ai[bot] commented 1 year ago

GitHub actions yielded the following error.

The command that failed is Run actions/labeler@v3. Here are the relevant lines from the logs:

##[error]Error: Input required and not supplied: repo-token
##[error]Input required and not supplied: repo-token

Please note that the error message indicates that the repo-token input is required but not supplied.

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.

sweep-ai[bot] commented 1 year ago

GitHub actions yielded the following error.

The command that failed is Run nick-fields/private-action-loader@v3. Here are the relevant lines from the logs:

##[warning]Unexpected input(s) 'token', 'command', valid inputs are ['pal-repo-token', 'pal-repo-name', 'pal-action-directory']
##[group]Run nick-fields/private-action-loader@v3
with:
pal-repo-name: airbytehq/workflow-actions@production
command: pull
##[endgroup]
/home/runner/work/_actions/nick-fields/private-action-loader/v3/dist/index.js:8846
throw new Error(`Input required and not supplied: ${name}`);
^

Error: Input required and not supplied: pal-repo-token

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.