You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Mirrors what the GitLab `.linux_test` anchor did immediately before
354
-
# `checksdev test`. The script writes ~/.pip/pip.conf and a 0600 ~/.netrc,
355
-
# keeping credentials out of the index URL.
368
+
# The only step in this workflow with a secret in scope. The script writes
369
+
# ~/.netrc, downloads one fixed package set, deletes the netrc, and leaves
370
+
# ~/.pip/pip.conf pointing at a local wheelhouse. Everything after it --
371
+
# checksdev, tox, the suite's tests and their dependency tree -- runs with
372
+
# no credential on disk and no authenticated index configured.
356
373
#
357
-
# Unguarded, unlike the earlier revision: this job only runs for suites
358
-
# that cannot resolve without the private index, so a missing credential
359
-
# is a hard configuration error and must fail loudly rather than warn and
360
-
# let pip fall through to public PyPI.
374
+
# It replaces setup_artifact_registry.sh here, which left the netrc in
375
+
# place for the rest of the job (STAC-25463 review P1, STAC-25540). That
376
+
# script is untouched and still serves the GitLab pipeline definitions.
361
377
#
362
-
# NOTE: writing these under $HOME is only half the job. tox drops every
363
-
# variable absent from a testenv's `passenv`, HOME included, and pip then
364
-
# resolves `~` from the passwd database rather than the environment. Because
365
-
# a container job here runs with HOME=/github/home instead of the account
366
-
# default, a testenv that installs from this index must list HOME in its
367
-
# passenv or it will silently read a pip.conf that was never written and fall
368
-
# back to public PyPI alone -- with no auth error to show for it. See
369
-
# vsphere/tox.ini.
378
+
# The wheelhouse lives in RUNNER_TEMP rather than the workspace so it
379
+
# cannot be mistaken for repository content or swept into a build.
380
+
#
381
+
# NOTE: pip.conf is read from $HOME, so tox must still pass HOME into the
382
+
# testenv. tox drops every variable absent from `passenv`, and pip then
383
+
# resolves `~` from the passwd database rather than the environment --
384
+
# which points at the wrong home in a container job, where HOME is
385
+
# /github/home. Without it the suite silently falls back to public PyPI
386
+
# and installs the 0.0.1 placeholder. See vsphere/tox.ini.
370
387
run: |
371
388
set -eo pipefail
372
-
if [ -z "${GITLAB_PACKAGE_REGISTRY_PYPI_SIMPLE_URL}" ] \
373
-
|| [ -z "${GITLAB_PACKAGE_REGISTRY_USER}" ] \
374
-
|| [ -z "${GITLAB_PACKAGE_REGISTRY_READONLY_PASSWORD}" ]; then
375
-
echo "::error title=Private PyPI index not configured::This suite installs from the GitLab Package Registry, but its credentials are not available to this job."
0 commit comments