Skip to content

Commit 23a9524

Browse files
committed
debugging
1 parent 7421e3d commit 23a9524

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

.github/actions/config-poetry/action.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,45 @@ runs:
6767
secrets: |
6868
development/artifactory/token/{REPO_OWNER_NAME_DASH}-${{ env.ARTIFACTORY_READER_ROLE }} access_token | ARTIFACTORY_ACCESS_TOKEN;
6969
# yamllint enable rule:line-length
70+
- name: Check if python.exe or parent paths exist
71+
shell: bash
72+
continue-on-error: true
73+
run: |
74+
target="C:/hostedtoolcache/windows/Python/3.9.13/x64/python.exe"
75+
parents=(
76+
"C:/hostedtoolcache/windows/Python/3.9.13/x64"
77+
"C:/hostedtoolcache/windows/Python/3.9.13"
78+
"C:/hostedtoolcache/windows/Python"
79+
"C:/hostedtoolcache/windows"
80+
"C:/hostedtoolcache"
81+
"C:/hostedtoolcache"
82+
)
83+
echo "Checking: $target"
84+
if [ -e "$target" ]; then
85+
echo "Exists: $target"
86+
else
87+
echo "Does not exist: $target"
88+
fi
89+
for path in "${parents[@]}"; do
90+
echo "Checking: $path"
91+
if [ -e "$path" ]; then
92+
echo "Exists: $path"
93+
ls -l "$path"
94+
else
95+
echo "Does not exist: $path"
96+
fi
97+
done
98+
- name: Check python installation folder
99+
shell: bash
100+
continue-on-error: true
101+
run: |
102+
echo "Attempting to locate python executable with 'which python' and 'which python3'"
103+
which python || echo "'python' not found in PATH"
104+
which python3 || echo "'python3' not found in PATH"
105+
echo "Python location (python --version):"
106+
python --version 2>/dev/null || echo "python command not available"
107+
echo "Python3 location (python3 --version):"
108+
python3 --version 2>/dev/null || echo "python3 command not available"
70109
- name: Config Poetry
71110
id: config
72111
shell: bash
@@ -76,6 +115,8 @@ runs:
76115
ARTIFACTORY_ACCESS_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
77116
POETRY_VIRTUALENVS_PATH: ${{ github.workspace }}/${{ inputs.poetry-virtualenvs-path }}
78117
POETRY_CACHE_DIR: ${{ github.workspace }}/${{ inputs.poetry-cache-dir }}
118+
MISE_VERBOSE: 1
119+
RUST_BACKTRACE: full
79120
run: |
80121
echo "POETRY_VIRTUALENVS_PATH=${POETRY_VIRTUALENVS_PATH}" >> "$GITHUB_ENV"
81122
echo "POETRY_CACHE_DIR=${POETRY_CACHE_DIR}" >> "$GITHUB_ENV"

.github/actions/config-poetry/config-poetry.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ set_build_env() {
1313
}
1414

1515
config_poetry() {
16+
echo "add repox"
1617
jf config add repox --artifactory-url "$ARTIFACTORY_URL" --access-token "$ARTIFACTORY_ACCESS_TOKEN"
18+
echo "poetry-config"
1719
jf poetry-config --server-id-resolve repox --repo-resolve "$ARTIFACTORY_PYPI_REPO"
20+
echo "poetry install"
1821
jf poetry install --build-name="$PROJECT" --build-number="$BUILD_NUMBER"
1922
}
2023

mise.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"pipx:poetry" = "2.2.1"
33

44
[tools."asdf:jfrog-cli"]
5-
version = "2.77.0"
5+
version = "2.88.0"
66
os = ["linux", "macos"]
77

88
[tools."http:jfrog-cli"]
9-
version = "2.77.0"
9+
version = "2.88.0"
1010
os = ["windows"]
1111

1212
[tools."http:jfrog-cli".platforms]
13-
windows-x64 = { url = "https://releases.jfrog.io/artifactory/jfrog-cli/v2-jf/2.77.0/jfrog-cli-windows-amd64/jf.exe", install = "cp ${MISE_DOWNLOAD_PATH} ${MISE_INSTALL_PATH}/bin/jf.exe" }
13+
windows-x64 = { url = "https://releases.jfrog.io/artifactory/jfrog-cli/v2-jf/2.88.0/jfrog-cli-windows-amd64/jf.exe", install = "cp ${MISE_DOWNLOAD_PATH} ${MISE_INSTALL_PATH}/bin/jf.exe" }

0 commit comments

Comments
 (0)