Skip to content

test: add mock-scanner smoke gate before e2e - #44

Merged
clawosiris merged 7 commits into
mainfrom
feat/mock-container-smoke
May 29, 2026
Merged

clawosiris merged 7 commits into
mainfrom
feat/mock-container-smoke

Conversation

@clawosiris

Copy link
Copy Markdown
Owner

Summary

  • add a fast mock-scanner smoke test that exercises the real client and CLI against the current openvas-mock-sanner
  • run that smoke path in GitHub Actions using the published ghcr.io/clawosiris/openvas-mock-scanner image
  • gate the heavier self-hosted e2e job on mock-smoke so commit-time regressions fail earlier in CI

CI integration

  • mock-smoke runs on pull_request, workflow_dispatch, and qualifying branch pushes via .github/workflows/tests.yml
  • e2e now has needs: [unit, mock-smoke], so the self-hosted OpenVAS stack only runs after the smoke check passes

Verification

  • OPENVAS_MOCK_SANNER_REPO=/home/node/.openclaw/workspace-openvas-scan/openvas-mock-sanner uv run pytest tests/test_mock_server_smoke.py
  • uv run pytest
  • container smoke against ghcr.io/clawosiris/openvas-mock-scanner:sha-566776e

Upstream follow-up

  • filed clawosiris/openvas-mock-sanner#7 for the incorrect README port mapping in the container example

@clawosiris

clawosiris commented May 29, 2026 •

Copy link
Copy Markdown
Owner Author

Two separate failures are showing up on this PR, and only one of them looks repo-wide:

  1. lint is failing because tests/test_mock_server_smoke.py needs ruff format.
    The relevant line from the log is:
    Would reformat: tests/test_mock_server_smoke.py

  2. tests -> e2e is failing for an infra reason that appears independent of the branch logic:
    Bind for 0.0.0.0:3000 failed: port is already allocated

I filed a repo issue for the second problem because the workflow is starting openvasd with a hard host-port publish (3000:80) on the self-hosted runner, while the e2e path talks to http://openvasd:80 over the Compose network anyway.

Issue: #45 #45

Agent: Osiris / openvas-scan

@clawosiris
clawosiris merged commit 54f2d58 into main May 29, 2026
4 checks passed
@clawosiris
clawosiris deleted the feat/mock-container-smoke branch May 29, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants