From 9abefd1b4c951c83099068c2c335a646f868da5d Mon Sep 17 00:00:00 2001 From: Sebastian Zumbrunn Date: Wed, 21 Jan 2026 10:46:41 +0100 Subject: [PATCH] debugging --- .github/actions/config-poetry/action.yml | 41 +++++++++++++++++++ .../actions/config-poetry/config-poetry.sh | 3 ++ 2 files changed, 44 insertions(+) diff --git a/.github/actions/config-poetry/action.yml b/.github/actions/config-poetry/action.yml index 67069dd7..64b491db 100644 --- a/.github/actions/config-poetry/action.yml +++ b/.github/actions/config-poetry/action.yml @@ -67,6 +67,45 @@ runs: secrets: | development/artifactory/token/{REPO_OWNER_NAME_DASH}-${{ env.ARTIFACTORY_READER_ROLE }} access_token | ARTIFACTORY_ACCESS_TOKEN; # yamllint enable rule:line-length + - name: Check if python.exe or parent paths exist + shell: bash + continue-on-error: true + run: | + target="C:/hostedtoolcache/windows/Python/3.9.13/x64/python.exe" + parents=( + "C:/hostedtoolcache/windows/Python/3.9.13/x64" + "C:/hostedtoolcache/windows/Python/3.9.13" + "C:/hostedtoolcache/windows/Python" + "C:/hostedtoolcache/windows" + "C:/hostedtoolcache" + "C:/hostedtoolcache" + ) + echo "Checking: $target" + if [ -e "$target" ]; then + echo "Exists: $target" + else + echo "Does not exist: $target" + fi + for path in "${parents[@]}"; do + echo "Checking: $path" + if [ -e "$path" ]; then + echo "Exists: $path" + ls -l "$path" + else + echo "Does not exist: $path" + fi + done + - name: Check python installation folder + shell: bash + continue-on-error: true + run: | + echo "Attempting to locate python executable with 'which python' and 'which python3'" + which python || echo "'python' not found in PATH" + which python3 || echo "'python3' not found in PATH" + echo "Python location (python --version):" + python --version 2>/dev/null || echo "python command not available" + echo "Python3 location (python3 --version):" + python3 --version 2>/dev/null || echo "python3 command not available" - name: Config Poetry id: config shell: bash @@ -76,6 +115,8 @@ runs: ARTIFACTORY_ACCESS_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }} POETRY_VIRTUALENVS_PATH: ${{ github.workspace }}/${{ inputs.poetry-virtualenvs-path }} POETRY_CACHE_DIR: ${{ github.workspace }}/${{ inputs.poetry-cache-dir }} + MISE_VERBOSE: 1 + RUST_BACKTRACE: full run: | echo "POETRY_VIRTUALENVS_PATH=${POETRY_VIRTUALENVS_PATH}" >> "$GITHUB_ENV" echo "POETRY_CACHE_DIR=${POETRY_CACHE_DIR}" >> "$GITHUB_ENV" diff --git a/.github/actions/config-poetry/config-poetry.sh b/.github/actions/config-poetry/config-poetry.sh index 98aa7628..7e315f74 100755 --- a/.github/actions/config-poetry/config-poetry.sh +++ b/.github/actions/config-poetry/config-poetry.sh @@ -13,8 +13,11 @@ set_build_env() { } config_poetry() { + echo "add repox" jf config add repox --artifactory-url "$ARTIFACTORY_URL" --access-token "$ARTIFACTORY_ACCESS_TOKEN" + echo "poetry-config" jf poetry-config --server-id-resolve repox --repo-resolve "$ARTIFACTORY_PYPI_REPO" + echo "poetry install" jf poetry install --build-name="$PROJECT" --build-number="$BUILD_NUMBER" }