Issue 6561 - TLS 1.2 stickiness in FIPS mode #7471
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
inputs: | |
pytest_tests: | |
description: 'Run only specified suites or test modules delimited by space, for example "basic/basic_test.py replication"' | |
required: false | |
default: false | |
debug_enabled: | |
description: 'Set to "true" to enable debugging with tmate (https://github.com/marketplace/actions/debugging-with-tmate)' | |
required: false | |
default: false | |
permissions: | |
actions: read | |
packages: read | |
contents: read | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
container: | |
image: quay.io/389ds/ci-images:test | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get a list of all test suites | |
id: set-matrix | |
run: echo "::set-output name=matrix::$(python3 .github/scripts/generate_matrix.py)" | |
- name: Build RPMs | |
run: cd $GITHUB_WORKSPACE && SKIP_AUDIT_CI=1 make -f rpm.mk dist-bz2 rpms | |
- name: Tar build artifacts | |
run: tar -cvf dist.tar dist/ | |
- name: Upload RPMs | |
uses: actions/upload-artifact@v2 | |
with: | |
name: rpms | |
path: dist.tar | |
test: | |
name: Test | |
runs-on: ubuntu-20.04 | |
needs: build | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.build.outputs.matrix) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt update -y | |
sudo apt install -y docker.io containerd runc | |
sudo cp .github/daemon.json /etc/docker/daemon.json | |
sudo systemctl unmask docker | |
sudo systemctl start docker | |
- name: Download RPMs | |
uses: actions/download-artifact@v3 | |
with: | |
name: rpms | |
- name: Extract RPMs | |
run: tar xvf dist.tar | |
- name: Run pytest in a container | |
run: | | |
set -x | |
CID=$(sudo docker run -d -h server.example.com --privileged --rm --shm-size=4gb -v /sys/fs/cgroup:/sys/fs/cgroup:rw,rslave -v ${PWD}:/workspace quay.io/389ds/ci-images:test) | |
sudo docker exec $CID sh -c "dnf install -y -v dist/rpms/*rpm" | |
sudo docker exec $CID py.test --suppress-no-test-exit-code -m "not flaky" --junit-xml=pytest.xml --html=pytest.html -v dirsrvtests/tests/suites/${{ matrix.suite }} | |
- name: Make the results file readable by all | |
if: always() | |
run: | | |
sudo chmod -f -v -R a+r pytest.*ml assets | |
sudo chmod -f -v a+x assets | |
- name: Sanitize filename | |
if: always() | |
run: echo "PYTEST_SUITE=$(echo ${{ matrix.suite }} | sed -e 's#\/#-#g')" >> $GITHUB_ENV | |
- name: Upload pytest test results | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: pytest-${{ env.PYTEST_SUITE }} | |
path: | | |
pytest.xml | |
pytest.html | |
assets | |