Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/workflows/integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,10 @@ jobs:
if [[ "$REPO" == "gen3sdk-python" ]]; then
sed -i "s|^gen3 = \".*\"|gen3 = { git = \"https://github.com/uc-cdis/gen3sdk-python\", rev = \"$BRANCH\" }|" pyproject.toml
fi
pip install poetry
poetry lock
poetry install
poetry show
sudo apt update && poetry run playwright install-deps && poetry run playwright install --with-deps chromium
pip install uv
uv sync
uv pip list
sudo apt update && uv run playwright install-deps && uv run playwright install --with-deps chromium
sudo apt install openjdk-11-jre -y

# Configure credentials to access cluster.
Expand Down Expand Up @@ -430,7 +429,7 @@ jobs:
mkdir $HOME/.gen3
mkdir logs
echo "****** Prepare CI Environment ******" > logs/gh_action_logs.txt
if ! poetry run python -m gen3_ci.scripts.prepare_ci_environment >> logs/gh_action_logs.txt 2>&1; then
if ! uv run python -m gen3_ci.scripts.prepare_ci_environment >> logs/gh_action_logs.txt 2>&1; then
echo "PR_ERROR_MSG=Failed to Prepare CI environment" >> $GITHUB_ENV
exit 1
fi
Expand Down Expand Up @@ -466,7 +465,7 @@ jobs:
run: |
echo -e "\n\n************ Run tests ************" >> logs/gh_action_logs.txt
mkdir output
poetry run pytest --video=retain-on-failure -n logical -m "${{ inputs.SERVICE_TO_TEST }} and not wip" --alluredir allure-results --no-header --dist loadscope ${{ env.TEST_LABEL }} >> logs/gh_action_logs.txt 2>&1
uv run pytest --video=retain-on-failure -n logical -m "${{ inputs.SERVICE_TO_TEST }} and not wip" --alluredir allure-results --no-header --dist loadscope ${{ env.TEST_LABEL }} >> logs/gh_action_logs.txt 2>&1
if [ $? -ne 0 ]; then
echo "PR_ERROR_MSG=Test(s) failures encountered in PR" >> $GITHUB_ENV
fi
Expand All @@ -478,7 +477,7 @@ jobs:
run: |
echo -e "\n\n************ Run tests ************" >> logs/gh_action_logs.txt
mkdir output
poetry run pytest --video=retain-on-failure -n logical -m "not wip" --alluredir allure-results --no-header --dist loadscope ${{ env.TEST_LABEL }} >> logs/gh_action_logs.txt 2>&1
uv run pytest --video=retain-on-failure -n logical -m "not wip" --alluredir allure-results --no-header --dist loadscope ${{ env.TEST_LABEL }} >> logs/gh_action_logs.txt 2>&1
if [ $? -ne 0 ]; then
echo "PR_ERROR_MSG=Test(s) failures encountered in PR" >> $GITHUB_ENV
fi
Expand All @@ -492,7 +491,7 @@ jobs:
run: |
echo -e "\n\n************ Rerunning failed tests ************" >> logs/gh_action_logs.txt 2>&1
mv output/report.md output/report_run_before_rerun.md
poetry run pytest --video=retain-on-failure -n logical -m "not wip" --alluredir rerun-allure-results --no-header --dist loadscope --last-failed --last-failed-no-failures=none >> logs/gh_action_logs.txt 2>&1
uv run pytest --video=retain-on-failure -n logical -m "not wip" --alluredir rerun-allure-results --no-header --dist loadscope --last-failed --last-failed-no-failures=none >> logs/gh_action_logs.txt 2>&1
if [ $? -ne 0 ]; then
echo "PR_ERROR_MSG=Test(s) failures encountered in PR" >> $GITHUB_ENV
fi
Expand Down Expand Up @@ -640,7 +639,7 @@ jobs:
id: generate_slack_report
if: ${{ env.SKIP_TESTS != 'true' && inputs.EXTERNAL_TO_CTDS != 'true' && (steps.upload_allure_report.outcome == 'success' || steps.upload_gh_action_logs.outcome == 'success') }}
continue-on-error: true # if this fails, we still need to run clean-up steps
run: poetry run python -m gen3_ci.scripts.generate_slack_report
run: uv run python -m gen3_ci.scripts.generate_slack_report

- name: Publish report to Slack
id: slack_notify
Expand All @@ -659,7 +658,7 @@ jobs:
continue-on-error: true # if this fails, we still need to run clean-up steps
run: |
echo -e "\n\n****** Running Analyze Failures using AI agent ******" >> logs/gh_action_logs.txt
poetry run python -m gen3_ci.scripts.analyze_failed_tests_using_ai_agent >> logs/gh_action_logs.txt 2>&1
uv run python -m gen3_ci.scripts.analyze_failed_tests_using_ai_agent >> logs/gh_action_logs.txt 2>&1
if [[ "$IS_NIGHTLY_RUN" == "true" ]]; then
DATE=$(date +%Y%m%d)
aws s3 cp logs/failure_analysis.txt s3://ci-allure-reports/nightly-run-$CI_ENV/$DATE/$RUN_NUM/$ATTEMPT_NUM/failure_analysis.txt >> logs/gh_action_logs.txt 2>&1
Expand Down Expand Up @@ -690,4 +689,4 @@ jobs:
- name: Cleanup
if: ${{ env.SKIP_TESTS != 'true' }}
run: |
poetry run python -m gen3_ci.scripts.teardown_ci_env
uv run python -m gen3_ci.scripts.teardown_ci_env