Skip to content

Use released mock scanner for fast CI - #47

Merged
clawosiris merged 5 commits into
mainfrom
feat/issue-46-mock-release-ci
May 30, 2026
Merged

clawosiris merged 5 commits into
mainfrom
feat/issue-46-mock-release-ci

Conversation

@clawosiris

Copy link
Copy Markdown
Owner

Summary

  • Pins fast mock-backed CI to ghcr.io/clawosiris/openvas-mock-scanner:v0.2.1 instead of :latest.
  • Adds feed-derived mock compatibility fixtures and coverage for VT metadata lookup, result shape, and paged result retrieval.
  • Gates the heavyweight real scan to PRs targeting main, manual validation, pushes to main, and v* release tag pushes while keeping normal PRs on the fast mock-backed path.
  • Documents the mock release update policy and CI split.

Closes #46

Agent: Osiris

Validation

  • python3 -m json.tool on all new mock feed fixtures
  • uv run pytest tests/test_client.py tests/test_compose_feed_sync.py tests/test_mock_server_smoke.py -> 12 passed, 3 skipped locally because no Docker/Podman or local mock checkout is available
  • uv run pytest -> 71 passed, 3 skipped locally for the same mock-server runtime availability reason
  • uv run ruff check . -> passed
  • cargo fmt --check -> passed
  • cargo build --locked -p scan-enrichment -> passed

Remaining Risk

  • The pinned-image mock smoke path could not be executed in this workspace because neither Docker nor Podman is installed; CI should exercise it with the published image.

@clawosiris
clawosiris merged commit a3e3e9e into main May 30, 2026
4 checks passed
@clawosiris
clawosiris deleted the feat/issue-46-mock-release-ci branch May 30, 2026 16:31
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.

Proposal: use released openvas-mock-scanner builds for fast CI, with feed-derived compatibility tests and real-scan gates on main/release PRs

1 participant