-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Airbyte-ci: Add path warning to check #33239
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
12ec40a
to
e6454e4
Compare
airbyte-ci/connectors/pipelines/pipelines/external_scripts/airbyte_ci_check.sh
Show resolved
Hide resolved
# If not print an error message and exit | ||
if ! which airbyte-ci >/dev/null 2>&1; then | ||
echo "airbyte-ci is not on the PATH" | ||
echo "Check that \$HOME/.local/bin is part of the PATH" |
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.
I'm not sure I get what's exactly checking that \$HOME/.local/bin is part of the PATH
Could we have a prior step that just checks:
~/.local/bin
directory exists- That this path is part of the
$PATH
variable?
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.
Good catch. I had the absense of airbyte-ci as an indication of a improper path.
Update these to be separate checks
7ff635a
to
dd1b331
Compare
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.
# Check that airbyte-ci is on the PATH | ||
# If not print an error message and exit | ||
if ! which airbyte-ci >/dev/null 2>&1; then | ||
echo "airbyte-ci is not installed" | ||
echo "" | ||
echo "Please run 'make tools.airbyte-ci.install' to install airbyte-ci" | ||
exit 1 | ||
fi | ||
|
||
EXPECTED_PATH="$INSTALL_DIR/airbyte-ci" | ||
AIRBYTE_CI_PATH=$(which airbyte-ci 2>/dev/null) |
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.
Super nit: we could set this AIRBYTE_CI_PATH
variable earlier, and check whether it is empty on L21 instead of running the command twice. E.g.
# Check that airbyte-ci is on the PATH | |
# If not print an error message and exit | |
if ! which airbyte-ci >/dev/null 2>&1; then | |
echo "airbyte-ci is not installed" | |
echo "" | |
echo "Please run 'make tools.airbyte-ci.install' to install airbyte-ci" | |
exit 1 | |
fi | |
EXPECTED_PATH="$INSTALL_DIR/airbyte-ci" | |
AIRBYTE_CI_PATH=$(which airbyte-ci 2>/dev/null) | |
# Check that airbyte-ci is on the PATH | |
AIRBYTE_CI_PATH=$(which airbyte-ci 2>/dev/null) | |
# If not print an error message and exit | |
if [ -z "$AIRBYTE_CI_PATH" ]; then | |
echo "airbyte-ci is not installed" | |
echo "" | |
echo "Please run 'make tools.airbyte-ci.install' to install airbyte-ci" | |
exit 1 | |
fi | |
EXPECTED_PATH="$INSTALL_DIR/airbyte-ci" |
echo "airbyte-ci is not installed" | ||
echo "" | ||
echo "Please run 'make tools.airbyte-ci.install' to install airbyte-ci" |
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.
I guess my only question is "if I hit this right after (trying to) installing airbyte ci, then what?"
But i guess the answer is come talk to connector ops :D
Co-authored-by: Ella Rohm-Ensing <erohmensing@gmail.com>
Co-authored-by: Ella Rohm-Ensing <erohmensing@gmail.com>
Co-authored-by: Ella Rohm-Ensing <erohmensing@gmail.com>
Problem
$HOME/.local/bin/airbyte-ci
is not on the path by defaultSolution