Skip to content

wp_seed_src: read /dev/urandom via raw fd to avoid seccomp SIGSYS (#440) #1216

wp_seed_src: read /dev/urandom via raw fd to avoid seccomp SIGSYS (#440)

wp_seed_src: read /dev/urandom via raw fd to avoid seccomp SIGSYS (#440) #1216

Workflow file for this run

name: Command Line Tests
# START OF COMMON SECTION
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE*'
- '.github/ISSUE_TEMPLATE/**'
- '.github/dependabot.yml'
- '.gitignore'
- 'AUTHORS'
- 'COPYING'
- 'README*'
- 'CHANGELOG*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# END OF COMMON SECTION
jobs:
discover_versions:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
uses: ./.github/workflows/_discover-versions.yml
cmdtest_test:
needs: discover_versions
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
name: Command line test
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
openssl_ref:
- master
- ${{ needs.discover_versions.outputs.openssl_latest_ref }}
wolfssl_ref: ${{ fromJson(needs.discover_versions.outputs.wolfssl_latest_ref_array) }}
debug: ['WOLFPROV_DEBUG=1', '']
# force_fail collapsed into sequential test runs below
steps:
- name: Checkout wolfProvider
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Cache build dependencies
id: deps
uses: ./.github/actions/oras-build-deps
with:
variant: cmdline${{ matrix.debug != '' && '-debug' || '' }}
openssl_ref: ${{ matrix.openssl_ref }}
wolfssl_ref: ${{ matrix.wolfssl_ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build wolfProvider
run: |
${{ matrix.debug }} OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh
- name: Push build dependencies
uses: ./.github/actions/oras-build-deps-push
with:
registry: ${{ steps.deps.outputs.registry }}
openssl_install_tag: ${{ steps.deps.outputs.openssl_install_tag }}
wolfssl_install_tag: ${{ steps.deps.outputs.wolfssl_install_tag }}
openssl_hit: ${{ steps.deps.outputs.openssl_hit }}
wolfssl_hit: ${{ steps.deps.outputs.wolfssl_hit }}
- name: Run tests
run: |
source scripts/env-setup
# --- normal mode ---
${{ matrix.debug }} ./scripts/cmd_test/do-cmd-tests.sh
# --- force-fail mode ---
WOLFPROV_FORCE_FAIL=1 ${{ matrix.debug }} ./scripts/cmd_test/do-cmd-tests.sh