name: Runner compatibility preflight on: push: branches: [manual-runner-preflight] jobs: preflight: runs-on: manual-latex timeout-minutes: 10 permissions: contents: read steps: - uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with: ref: ${{ github.sha }} persist-credentials: false - name: Verify revision, tools, and job boundary env: EXPECTED_SHA: ${{ github.sha }} run: | test "$(git rev-parse HEAD)" = "$EXPECTED_SHA" test ! -e /var/run/docker.sock test ! -e /data/.runner mkdir -p preflight python3 - <<'PY' > preflight/result.txt import os, socket, urllib.request print('Trigger commit:', os.environ['EXPECTED_SHA']) print('HTTPS:', urllib.request.urlopen('https://myfileagent.tech/api/v1/version').read().decode()) for host, port in [('172.20.0.2', 3000), ('172.20.0.1', 3000)]: s = socket.socket(); s.settimeout(2) result = s.connect_ex((host, port)); s.close() print('Private backend connection blocked:', result != 0) assert result != 0 print('Docker socket and runner state absent from job') PY latexmk --version >> preflight/result.txt pdflatex --version >> preflight/result.txt pygmentize -V >> preflight/result.txt node --version >> preflight/result.txt python3 -c 'import pypdf; print(pypdf.__version__)' >> preflight/result.txt cat preflight/result.txt - name: Test artifact compatibility (not a manual PDF) uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf with: name: runner-preflight-${{ github.run_number }} path: preflight/result.txt if-no-files-found: error retention-days: 14