Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pulpbot authored and fao89 committed Aug 1, 2022
1 parent 5ae04f6 commit bde6984
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/template_gitref
@@ -1 +1 @@
2021.08.26-154-g7bcbd1f
2021.08.26-156-gb5f4d20
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -208,7 +208,7 @@ jobs:
docker logs pulp || true
docker exec pulp ls -latr /etc/yum.repos.d/ || true
docker exec pulp cat /etc/yum.repos.d/* || true
docker exec pulp pip3 list
docker exec pulp bash -c "pip3 list && pip3 install pipdeptree && pipdeptree"
deprecations:
runs-on: ubuntu-latest
if: always()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Expand Up @@ -166,7 +166,7 @@ jobs:
docker logs pulp || true
docker exec pulp ls -latr /etc/yum.repos.d/ || true
docker exec pulp cat /etc/yum.repos.d/* || true
docker exec pulp pip3 list
docker exec pulp bash -c "pip3 list && pip3 install pipdeptree && pipdeptree"
changelog:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -363,4 +363,4 @@ jobs:
docker logs pulp || true
docker exec pulp ls -latr /etc/yum.repos.d/ || true
docker exec pulp cat /etc/yum.repos.d/* || true
docker exec pulp pip3 list
docker exec pulp bash -c "pip3 list && pip3 install pipdeptree && pipdeptree"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -240,7 +240,7 @@ jobs:
docker logs pulp || true
docker exec pulp ls -latr /etc/yum.repos.d/ || true
docker exec pulp cat /etc/yum.repos.d/* || true
docker exec pulp pip3 list
docker exec pulp bash -c "pip3 list && pip3 install pipdeptree && pipdeptree"
publish:
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/scripts/before_install.sh
Expand Up @@ -30,17 +30,6 @@ fi
COMMIT_MSG=$(git log --format=%B --no-merges -1)
export COMMIT_MSG

if [[ "$TEST" == "upgrade" ]]; then
pip install -r functest_requirements.txt
git checkout -b ci_upgrade_test
cp -R .github /tmp/.github
cp -R .ci /tmp/.ci
git checkout $FROM_PULP_ANSIBLE_BRANCH
rm -rf .ci .github
cp -R /tmp/.github .
cp -R /tmp/.ci .
fi

if [[ "$TEST" == "plugin-from-pypi" ]]; then
COMPONENT_VERSION=$(http https://pypi.org/pypi/pulp-ansible/json | jq -r '.info.version')
else
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/before_script.sh
Expand Up @@ -29,7 +29,7 @@ tail -v -n +1 .ci/ansible/vars/main.yaml
echo "PULP CONFIG:"
tail -v -n +1 .ci/ansible/settings/settings.* ~/.config/pulp_smash/settings.json

SCENARIOS=("pulp" "performance" "upgrade" "azure" "s3" "stream" "plugin-from-pypi" "generate-bindings")
SCENARIOS=("pulp" "performance" "azure" "s3" "stream" "plugin-from-pypi" "generate-bindings")
if [[ " ${SCENARIOS[*]} " =~ " ${TEST} " ]]; then
# Many functional tests require these
cmd_prefix dnf install -yq lsof which dnf-plugins-core
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/scripts/install.sh
Expand Up @@ -90,10 +90,6 @@ pulp_scheme: https
pulp_container_tag: https
VARSYAML

if [ "$TEST" = "upgrade" ]; then
sed -i "/^pulp_container_tag:.*/s//pulp_container_tag: upgrade-https/" vars/main.yaml
fi
if [ "$TEST" == 'stream' ]; then
sed -i -e '/^services:/a \
- name: ci-sftp\
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/scripts/script.sh
Expand Up @@ -89,10 +89,8 @@ cmd_prefix bash -c "cat /etc/pulp/certs/pulp_webserver.crt | tee -a "$CERTIFI"
echo "Checking for uncommitted migrations..."
cmd_prefix bash -c "django-admin makemigrations --check --dry-run"

if [[ "$TEST" != "upgrade" ]]; then
# Run unit tests.
cmd_prefix bash -c "PULP_DATABASES__default__USER=postgres pytest -v -r sx --color=yes -p no:pulpcore --pyargs pulp_ansible.tests.unit"
fi
# Run unit tests.
cmd_prefix bash -c "PULP_DATABASES__default__USER=postgres pytest -v -r sx --color=yes -p no:pulpcore --pyargs pulp_ansible.tests.unit"

# Run functional tests
if [[ "$TEST" == "performance" ]]; then
Expand Down

0 comments on commit bde6984

Please sign in to comment.