Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI and add FIPS test #72

Merged
merged 1 commit into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/ansible/start_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
follow_redirects: none
register: result
until: result.status == 200
retries: 6
retries: 12
delay: 5
rescue:
- name: "Output pulp container log"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,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
61 changes: 61 additions & 0 deletions .github/workflows/fips.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# WARNING: DO NOT EDIT!
#
# This file was generated by plugin_template, and is managed by it. Please use
# './plugin-template --github pulp_npm' to update this file.
#
# For more info visit https://github.com/pulp/plugin_template
---
name: Pulp FIPS Nightly CI
on:
schedule:
# * is a special character in YAML so you have to quote this string
# runs at 4:00 UTC daily
- cron: '00 4 * * *'

jobs:
vagrant:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- test_type: pulp3-source-centos8-fips
- test_type: pulp3-source-centos7-fips
steps:
- uses: actions/checkout@v2.3.1
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Pulp Installer
run: |
cd ..
git clone --depth=1 https://github.com/pulp/pulp_installer
- name: Install Vagrant
shell: bash
run: |
cd ../pulp_installer/
git submodule update --init
.github/workflows/scripts/install.sh ${{ matrix.test_type }}
- name: Run Vagrant
shell: bash
run: |
cd ../pulp_installer
sed -i "s/pulp-file/pulp-npm/g" example.dev-config.yml
sed -i "s/pulp_file/pulp_npm/g" example.dev-config.yml
.github/workflows/scripts/script.sh ${{ matrix.test_type }}
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
- name: Testing
run: |
cd ../pulp_installer
vagrant ssh $1 -c "workon pulp && cd devel/pulp_npm && pip install -r functest_requirements.txt"
vagrant ssh $1 -c "workon pulp && cd devel/pulp_npm/ && pytest -v -r sx --color=yes --pyargs pulp_npm.tests.functional"
- name: After failure
if: failure()
run: |
cd ../pulp_installer
.github/workflows/scripts/after_failure.sh ${{ matrix.test_type }}
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,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
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,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
6 changes: 6 additions & 0 deletions .github/workflows/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ REPO_ROOT="$PWD"

set -euv

source .github/workflows/scripts/utils.sh

if [ "${GITHUB_REF##refs/tags/}" = "${GITHUB_REF}" ]
then
TAG_BUILD=0
Expand Down Expand Up @@ -92,3 +94,7 @@ fi

ansible-playbook build_container.yaml
ansible-playbook start_container.yaml

echo ::group::PIP_LIST
cmd_prefix bash -c "pip3 list && pip3 install pipdeptree && pipdeptree"
echo ::endgroup::