Revise isGhes logic (#963)
Some checks failed
e2e-cache / Test pip (Python 3.9, macos-latest) (push) Waiting to run
e2e-cache / Test pip (Python pypy-3.9-v7.x, macos-latest) (push) Waiting to run
e2e-cache / Test pip (Python 3.9, ubuntu-latest) (push) Waiting to run
e2e-cache / Test pip (Python pypy-3.9-v7.x, ubuntu-latest) (push) Waiting to run
e2e-cache / Test pip (Python 3.9, windows-latest) (push) Waiting to run
e2e-cache / Test pip (Python pypy-3.9-v7.x, windows-latest) (push) Waiting to run
e2e-cache / Test poetry (Python pypy-3.9, ubuntu-latest) (push) Waiting to run
e2e-cache / Test poetry (Python 3.9, windows-latest) (push) Waiting to run
e2e-cache / Test poetry (Python pypy-3.9, windows-latest) (push) Waiting to run
e2e-cache / Test pip (Python 3.9, macos-latest, caching path) (push) Waiting to run
e2e-cache / Test pip (Python pypy-3.9-v7.x, macos-latest, caching path) (push) Waiting to run
e2e-cache / Test pip (Python 3.9, ubuntu-latest, caching path) (push) Waiting to run
e2e-cache / Test pip (Python pypy-3.9-v7.x, ubuntu-latest, caching path) (push) Waiting to run
e2e-cache / Test pip (Python 3.9, windows-latest, caching path) (push) Waiting to run
e2e-cache / Test pip (Python pypy-3.9-v7.x, windows-latest, caching path) (push) Waiting to run
Basic validation / Basic validation (push) Failing after 0s
e2e-cache / Test pipenv (Python pypy-3.9-v7.x, windows-latest, caching path) (push) Waiting to run
e2e-cache / Test pipenv (Python 3.9, macos-latest) (push) Waiting to run
e2e-cache / Test pipenv (Python pypy-3.9-v7.x, macos-latest) (push) Waiting to run
e2e-cache / Test pipenv (Python 3.9, ubuntu-latest) (push) Waiting to run
e2e-cache / Test pipenv (Python pypy-3.9-v7.x, ubuntu-latest) (push) Waiting to run
e2e-cache / Test pipenv (Python 3.9, windows-latest) (push) Waiting to run
e2e-cache / Test pipenv (Python pypy-3.9-v7.x, windows-latest) (push) Waiting to run
e2e-cache / Test poetry (Python 3.9, macos-latest) (push) Waiting to run
e2e-cache / Test poetry (Python pypy-3.9, macos-latest) (push) Waiting to run
e2e-cache / Test poetry (Python 3.9, ubuntu-latest) (push) Waiting to run
Check dist/ / Check dist/ (push) Failing after 1s
e2e-cache / Test pipenv (Python 3.9, macos-latest, caching path) (push) Waiting to run
e2e-cache / Test pipenv (Python pypy-3.9-v7.x, macos-latest, caching path) (push) Waiting to run
e2e-cache / Test pipenv (Python 3.9, ubuntu-latest, caching path) (push) Waiting to run
e2e-cache / Test pipenv (Python pypy-3.9-v7.x, ubuntu-latest, caching path) (push) Waiting to run
e2e-cache / Test pipenv (Python 3.9, windows-latest, caching path) (push) Waiting to run
e2e tests / Test setup-python (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy-22.3 macos-latest (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy-22.3 ubuntu-20.04 (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy-22.3 ubuntu-latest (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy-23.0 macos-latest (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy-23.0 ubuntu-20.04 (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy-23.0 ubuntu-latest (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy22.3 macos-latest (noenv) (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy22.3 ubuntu-20.04 (noenv) (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy22.3 ubuntu-latest (noenv) (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy23.0 macos-latest (noenv) (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy23.0 ubuntu-20.04 (noenv) (push) Waiting to run
Validate GraalPy e2e / Setup GraalPy graalpy23.0 ubuntu-latest (noenv) (push) Waiting to run
Validate GraalPy e2e / check-latest (macos-latest) (push) Waiting to run
Validate GraalPy e2e / check-latest (ubuntu-latest) (push) Waiting to run
Validate PyPy e2e / setup-pypy-multiple-versions (macos-latest) (push) Waiting to run
Validate PyPy e2e / setup-pypy-multiple-versions (ubuntu-latest) (push) Waiting to run
Validate PyPy e2e / setup-pypy-multiple-versions (windows-latest) (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7 macos-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.12rc1 macos-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.14 macos-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10 macos-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-nightly macos-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.14 macos-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.15 macos-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.x macos-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.x macos-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.10-v7.3.15 macos-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.9 macos-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7 ubuntu-20.04 (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.12rc1 ubuntu-20.04 (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.14 ubuntu-20.04 (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10 ubuntu-20.04 (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-nightly ubuntu-20.04 (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.14 ubuntu-20.04 (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.15 ubuntu-20.04 (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.x ubuntu-20.04 (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.x ubuntu-20.04 (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.10-v7.3.15 ubuntu-20.04 (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.9 ubuntu-20.04 (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7 ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.12rc1 ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.14 ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10 ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-nightly ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.14 ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.15 ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.x ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.x ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.10-v7.3.15 ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.9 ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7 windows-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.12rc1 windows-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.14 windows-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10 windows-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-nightly windows-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.14 windows-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.15 windows-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.3.x windows-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy-3.10-v7.x windows-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.10-v7.3.15 windows-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.9 windows-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy2.7 macos-latest (noenv) (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.10-nightly macos-latest (noenv) (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.9 macos-latest (noenv) (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy2.7 ubuntu-20.04 (noenv) (push) Waiting to run
CodeQL analysis / CodeQL analysis (push) Failing after 0s
Licensed / Licensed (push) Failing after 0s
Validate Python e2e / Setup 3.9.13 macos-latest (push) Waiting to run
Validate Python e2e / Setup 3.10.11 ubuntu-20.04 (push) Waiting to run
Validate Python e2e / Setup 3.13.0-alpha.6 macos-latest (push) Waiting to run
Validate Python e2e / Setup 3.13.0-alpha.6 ubuntu-20.04 (push) Waiting to run
Validate Python e2e / Setup 3.13.0-alpha.6 ubuntu-22.04 (push) Waiting to run
Validate Python e2e / Setup 3.13.0-alpha.6 windows-latest (push) Waiting to run
Validate Python e2e / Setup 3.13-dev macos-latest (push) Waiting to run
Validate Python e2e / Setup 3.13-dev ubuntu-latest (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.10-nightly ubuntu-20.04 (noenv) (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.9 ubuntu-20.04 (noenv) (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy2.7 ubuntu-latest (noenv) (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.10-nightly ubuntu-latest (noenv) (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.9 ubuntu-latest (noenv) (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy2.7 windows-latest (noenv) (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.10-nightly windows-latest (noenv) (push) Waiting to run
Validate PyPy e2e / Setup PyPy pypy3.9 windows-latest (noenv) (push) Waiting to run
Validate PyPy e2e / check-latest (macos-latest) (push) Waiting to run
Validate PyPy e2e / check-latest (ubuntu-latest) (push) Waiting to run
Validate PyPy e2e / check-latest (windows-latest) (push) Waiting to run
Validate Python e2e / Setup 3.11 macos-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.10.11 macos-latest (push) Waiting to run
Validate Python e2e / Setup 3.11.9 macos-latest (push) Waiting to run
Validate Python e2e / Setup 3.12.3 macos-latest (push) Waiting to run
Validate Python e2e / Setup 3.8.10 macos-latest (push) Waiting to run
Validate Python e2e / Setup 3.11.9 ubuntu-20.04 (push) Waiting to run
Validate Python e2e / Setup 3.12.3 ubuntu-20.04 (push) Waiting to run
Validate Python e2e / Setup 3.8.10 ubuntu-20.04 (push) Waiting to run
Validate Python e2e / Setup 3.9.13 ubuntu-20.04 (push) Waiting to run
Validate Python e2e / Setup 3.10.11 ubuntu-22.04 (push) Waiting to run
Validate Python e2e / Setup 3.11.9 ubuntu-22.04 (push) Waiting to run
Validate Python e2e / Setup 3.12.3 ubuntu-22.04 (push) Waiting to run
Validate Python e2e / Setup 3.9.13 ubuntu-22.04 (push) Waiting to run
Validate Python e2e / Setup 3.10.11 windows-latest (push) Waiting to run
Validate Python e2e / Setup 3.11.9 windows-latest (push) Waiting to run
Validate Python e2e / Setup 3.12.3 windows-latest (push) Waiting to run
Validate Python e2e / Setup 3.8.10 windows-latest (push) Waiting to run
Validate Python e2e / Setup 3.9.13 windows-latest (push) Waiting to run
Validate Python e2e / Setup 3.10.11 macos-latest version file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 macos-latest version file (push) Waiting to run
Validate Python e2e / Setup 3.12.3 macos-latest version file (push) Waiting to run
Validate Python e2e / Setup 3.8.10 macos-latest version file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 macos-latest version file (push) Waiting to run
Validate Python e2e / Setup 3.10.11 ubuntu-20.04 version file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 ubuntu-20.04 version file (push) Waiting to run
Validate Python e2e / Setup 3.12.3 ubuntu-20.04 version file (push) Waiting to run
Validate Python e2e / Setup 3.8.10 ubuntu-20.04 version file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 ubuntu-20.04 version file (push) Waiting to run
Validate Python e2e / Setup 3.10.11 ubuntu-22.04 version file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 ubuntu-22.04 version file (push) Waiting to run
Validate Python e2e / Setup 3.12.3 ubuntu-22.04 version file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 ubuntu-22.04 version file (push) Waiting to run
Validate Python e2e / Setup 3.10.11 windows-latest version file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 windows-latest version file (push) Waiting to run
Validate Python e2e / Setup 3.12.3 windows-latest version file (push) Waiting to run
Validate Python e2e / Setup 3.8.10 windows-latest version file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 windows-latest version file (push) Waiting to run
Validate Python e2e / Setup 3.10.11 macos-latest version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.11.9 macos-latest version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.12.3 macos-latest version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.8.10 macos-latest version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.9.13 macos-latest version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.10.11 ubuntu-20.04 version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.11.9 ubuntu-20.04 version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.12.3 ubuntu-20.04 version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.8.10 ubuntu-20.04 version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.9.13 ubuntu-20.04 version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.10.11 ubuntu-22.04 version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.11.9 ubuntu-22.04 version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.12.3 ubuntu-22.04 version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.9.13 ubuntu-22.04 version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.10.11 windows-latest version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.11.9 windows-latest version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.12.3 windows-latest version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.8.10 windows-latest version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.9.13 windows-latest version file without parameter (push) Waiting to run
Validate Python e2e / Setup 3.10.11 macos-latest standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 macos-latest standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.8.10 macos-latest standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 macos-latest standard pyproject file (push) Waiting to run
Validate Python e2e / Setup ==3.12.3 macos-latest standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.10.11 ubuntu-20.04 standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 ubuntu-20.04 standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.8.10 ubuntu-20.04 standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 ubuntu-20.04 standard pyproject file (push) Waiting to run
Validate Python e2e / Setup ==3.12.3 ubuntu-20.04 standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.10.11 ubuntu-22.04 standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 ubuntu-22.04 standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 ubuntu-22.04 standard pyproject file (push) Waiting to run
Validate Python e2e / Setup ==3.12.3 ubuntu-22.04 standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.10.11 windows-latest standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 windows-latest standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.8.10 windows-latest standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 windows-latest standard pyproject file (push) Waiting to run
Validate Python e2e / Setup ==3.12.3 windows-latest standard pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.10.11 macos-latest poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 macos-latest poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.12.3 macos-latest poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.8.10 macos-latest poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 macos-latest poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.10.11 ubuntu-20.04 poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 ubuntu-20.04 poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.12.3 ubuntu-20.04 poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.8.10 ubuntu-20.04 poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 ubuntu-20.04 poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.10.11 ubuntu-22.04 poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 ubuntu-22.04 poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.12.3 ubuntu-22.04 poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 ubuntu-22.04 poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.10.11 windows-latest poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.11.9 windows-latest poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.12.3 windows-latest poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.8.10 windows-latest poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.9.13 windows-latest poetry pyproject file (push) Waiting to run
Validate Python e2e / Setup 3.13-dev windows-latest (push) Waiting to run
Validate Python e2e / Setup 3.13 macos-latest (push) Waiting to run
Validate Python e2e / Setup 3.13 ubuntu-latest (push) Waiting to run
Validate Python e2e / Setup 3.13 windows-latest (push) Waiting to run
Validate Python e2e / Setup 3.10 macos-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.12 macos-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.8 macos-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.9 macos-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.10 ubuntu-20.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.11 ubuntu-20.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.12 ubuntu-20.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.8 ubuntu-20.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.9 ubuntu-20.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.10 ubuntu-22.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.11 ubuntu-22.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.12 ubuntu-22.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.8 ubuntu-22.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.9 ubuntu-22.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.10 windows-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.11 windows-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.12 windows-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.8 windows-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.9 windows-latest (noenv) (push) Waiting to run
Validate Python e2e / check-latest (macos-latest, 3.10) (push) Waiting to run
Validate Python e2e / check-latest (macos-latest, 3.11) (push) Waiting to run
Validate Python e2e / check-latest (macos-latest, 3.12) (push) Waiting to run
Validate Python e2e / check-latest (macos-latest, 3.8) (push) Waiting to run
Validate Python e2e / check-latest (macos-latest, 3.9) (push) Waiting to run
Validate Python e2e / check-latest (ubuntu-latest, 3.10) (push) Waiting to run
Validate Python e2e / check-latest (ubuntu-latest, 3.11) (push) Waiting to run
Validate Python e2e / check-latest (ubuntu-latest, 3.12) (push) Waiting to run
Validate Python e2e / check-latest (ubuntu-latest, 3.8) (push) Waiting to run
Validate Python e2e / check-latest (ubuntu-latest, 3.9) (push) Waiting to run
Validate Python e2e / check-latest (windows-latest, 3.10) (push) Waiting to run
Validate Python e2e / check-latest (windows-latest, 3.11) (push) Waiting to run
Validate Python e2e / check-latest (windows-latest, 3.12) (push) Waiting to run
Validate Python e2e / check-latest (windows-latest, 3.8) (push) Waiting to run
Validate Python e2e / check-latest (windows-latest, 3.9) (push) Waiting to run
Validate Python e2e / setup-python-multiple-python-versions (macos-latest) (push) Waiting to run
Validate Python e2e / setup-python-multiple-python-versions (ubuntu-latest) (push) Waiting to run
Validate Python e2e / setup-python-multiple-python-versions (windows-latest) (push) Waiting to run

* Revise `isGhes` logic

* ran `npm run format`

* add unit test

* ran `npm run format`
This commit is contained in:
John Wesley Walker III 2024-10-21 18:42:17 +02:00 committed by GitHub
parent 19dfb7b659
commit f4c5a1183d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 51 additions and 2 deletions

View file

@ -13,6 +13,7 @@ import {
getVersionInputFromPlainFile, getVersionInputFromPlainFile,
getVersionInputFromTomlFile, getVersionInputFromTomlFile,
getNextPageUrl, getNextPageUrl,
isGhes,
IS_WINDOWS, IS_WINDOWS,
getDownloadFileName getDownloadFileName
} from '../src/utils'; } from '../src/utils';
@ -195,3 +196,41 @@ describe('getDownloadFileName', () => {
} }
}); });
}); });
describe('isGhes', () => {
const pristineEnv = process.env;
beforeEach(() => {
jest.resetModules();
process.env = {...pristineEnv};
});
afterAll(() => {
process.env = pristineEnv;
});
it('returns false when the GITHUB_SERVER_URL environment variable is not defined', async () => {
delete process.env['GITHUB_SERVER_URL'];
expect(isGhes()).toBeFalsy();
});
it('returns false when the GITHUB_SERVER_URL environment variable is set to github.com', async () => {
process.env['GITHUB_SERVER_URL'] = 'https://github.com';
expect(isGhes()).toBeFalsy();
});
it('returns false when the GITHUB_SERVER_URL environment variable is set to a GitHub Enterprise Cloud-style URL', async () => {
process.env['GITHUB_SERVER_URL'] = 'https://contoso.ghe.com';
expect(isGhes()).toBeFalsy();
});
it('returns false when the GITHUB_SERVER_URL environment variable has a .localhost suffix', async () => {
process.env['GITHUB_SERVER_URL'] = 'https://mock-github.localhost';
expect(isGhes()).toBeFalsy();
});
it('returns true when the GITHUB_SERVER_URL environment variable is set to some other URL', async () => {
process.env['GITHUB_SERVER_URL'] = 'https://src.onpremise.fabrikam.com';
expect(isGhes()).toBeTruthy();
});
});

6
dist/setup/index.js vendored
View file

@ -92017,7 +92017,11 @@ function validatePythonVersionFormatForPyPy(version) {
exports.validatePythonVersionFormatForPyPy = validatePythonVersionFormatForPyPy; exports.validatePythonVersionFormatForPyPy = validatePythonVersionFormatForPyPy;
function isGhes() { function isGhes() {
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com'); const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM'; const hostname = ghUrl.hostname.trimEnd().toUpperCase();
const isGitHubHost = hostname === 'GITHUB.COM';
const isGitHubEnterpriseCloudHost = hostname.endsWith('.GHE.COM');
const isLocalHost = hostname.endsWith('.LOCALHOST');
return !isGitHubHost && !isGitHubEnterpriseCloudHost && !isLocalHost;
} }
exports.isGhes = isGhes; exports.isGhes = isGhes;
function isCacheFeatureAvailable() { function isCacheFeatureAvailable() {

View file

@ -116,7 +116,13 @@ export function isGhes(): boolean {
const ghUrl = new URL( const ghUrl = new URL(
process.env['GITHUB_SERVER_URL'] || 'https://github.com' process.env['GITHUB_SERVER_URL'] || 'https://github.com'
); );
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
const hostname = ghUrl.hostname.trimEnd().toUpperCase();
const isGitHubHost = hostname === 'GITHUB.COM';
const isGitHubEnterpriseCloudHost = hostname.endsWith('.GHE.COM');
const isLocalHost = hostname.endsWith('.LOCALHOST');
return !isGitHubHost && !isGitHubEnterpriseCloudHost && !isLocalHost;
} }
export function isCacheFeatureAvailable(): boolean { export function isCacheFeatureAvailable(): boolean {