diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index b5390504..24f09a98 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -192,11 +192,22 @@ jobs: FILESERVER_NFS_TESTS: "true" steps: - uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # actions/checkout@v4.2.2 + # The NFS server is the host kernel's nfsd, which a container cannot load: the runner's daemon + # has no /lib/modules. Without the module the server exits at once and the compose step only + # says "dependency failed to start" (runs 52 and 63). The runner host loads it once, at boot: + # echo nfsd | sudo tee /etc/modules-load.d/nfsd.conf && sudo modprobe nfsd + - name: The runner host has the nfsd kernel module + run: | + grep -qw nfsd /proc/filesystems || { + echo "fileserver-nfs: the runner host kernel has no nfsd module; load it on the host:" >&2 + echo " echo nfsd | sudo tee /etc/modules-load.d/nfsd.conf && sudo modprobe nfsd" >&2 + exit 1 + } - uses: ./.gitea/actions/setup-java-gradle - - run: docker compose -f adapter/outbound/fileserver/compose/nfs/compose.yml up -d --wait + - run: docker compose -f src/adapter/outbound/fileserver/compose/nfs/compose.yml up -d --wait - run: ./gradlew :adapter:outbound:fileserver:test --tests '*NfsAmbiguityIntegrationTest' - if: ${{ always() }} - run: docker compose -f adapter/outbound/fileserver/compose/nfs/compose.yml down -v + run: docker compose -f src/adapter/outbound/fileserver/compose/nfs/compose.yml down -v # The notification fault, race and restart suites run again on their own: one green run says least # about exactly these.