Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
  • Loading branch information
pulpbot committed Mar 2, 2025
1 parent 77210dd commit 703053b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .ci/scripts/calc_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-423-g87f69ce
2021.08.26-429-gaaf6899
4 changes: 4 additions & 0 deletions .github/workflows/scripts/before_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export PULP_URL="https://pulp"

REPORTED_STATUS="$(pulp status)"

echo "${REPORTED_STATUS}"

echo "machine pulp
login admin
password password
Expand Down

0 comments on commit 703053b

Please sign in to comment.