From 7c0ffe0e69f702a99d8d5fc08b08694d091315e4 Mon Sep 17 00:00:00 2001 From: pulpbot Date: Sun, 9 Mar 2025 08:31:35 +0000 Subject: [PATCH] Update CI files --- .ci/scripts/calc_constraints.py | 4 +++- .github/template_gitref | 2 +- .github/workflows/scripts/before_script.sh | 4 ++++ .github/workflows/scripts/script.sh | 2 ++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.ci/scripts/calc_constraints.py b/.ci/scripts/calc_constraints.py index 99050529..ffc3b44e 100755 --- a/.ci/scripts/calc_constraints.py +++ b/.ci/scripts/calc_constraints.py @@ -83,13 +83,15 @@ def to_lower_bound(req): else: for spec in requirement.specifier: if spec.operator == ">=": + min_version = spec.version if requirement.name == "pulpcore": # Currently an exception to allow for pulpcore bugfix releases. # TODO Semver libraries should be allowed too. operator = "~=" + if len(Version(min_version).release) != 3: + raise RuntimeError("Pulpcore lower bound must be in the form '>=x.y.z'.") else: operator = "==" - min_version = spec.version return f"{requirement.name}{operator}{min_version}" return f"# NO LOWER BOUND: {req}" diff --git a/.github/template_gitref b/.github/template_gitref index 4b856ee9..d152b091 100644 --- a/.github/template_gitref +++ b/.github/template_gitref @@ -1 +1 @@ -2021.08.26-423-g87f69ce +2021.08.26-430-gc1faf10 diff --git a/.github/workflows/scripts/before_script.sh b/.github/workflows/scripts/before_script.sh index f5ab492c..053d7b70 100755 --- a/.github/workflows/scripts/before_script.sh +++ b/.github/workflows/scripts/before_script.sh @@ -32,6 +32,10 @@ tail -v -n +1 .ci/ansible/settings/settings.* ~/.config/pulp_smash/settings.json echo "Containerfile:" tail -v -n +1 .ci/ansible/Containerfile +echo "Constraints Files:" +# The need not even exist. +tail -v -n +1 ../*/*constraints.txt || true + # Needed for some functional tests cmd_prefix bash -c "echo '%wheel ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/nopasswd" cmd_prefix bash -c "usermod -a -G wheel pulp" diff --git a/.github/workflows/scripts/script.sh b/.github/workflows/scripts/script.sh index cb0af947..e1f2d665 100755 --- a/.github/workflows/scripts/script.sh +++ b/.github/workflows/scripts/script.sh @@ -28,6 +28,8 @@ export PULP_URL="https://pulp" REPORTED_STATUS="$(pulp status)" +echo "${REPORTED_STATUS}" + echo "machine pulp login admin password password