Skip to content

feat(versioniq): build advisories-ncsc-feed - #797

Merged
rubenvdlinde merged 3 commits into
developmentfrom
quality/build-advisories-ncsc-feed
Nov 20, 2026
Merged

rubenvdlinde merged 3 commits into
developmentfrom
quality/build-advisories-ncsc-feed

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Round 2 of advisories-ncsc-feed: the e2e spec task 3.5 had no spec yet. Every code task (1.1–3.4) is already on development, including the NCSC-NL switch in the Advisories settings.

Done

  • 3.5 (written, not ticked): the fixture forge (tests/e2e/fixtures/forge/server.mjs) serves a CSAF directory at /csaf/v2/: a changes.csv (newest first, times relative to now so the 365-day first read includes them) and two Nextcloud Server documents: NCSC-2099-0001 with a range covering any CI server version, and NCSC-2099-0002 with vers:unknown/*. POST /control/csaf replaces the documents or forces a status; /control/reset restores them.
  • tests/e2e/advisories.spec.ts, block "NCSC-NL advisories": points advisory.ncsc_feed_base at the fixture (through occ, using the bootstrap's forgejo web base, so it works in Docker and on the CI runner), clears the cursor and index, switches NCSC-NL on through PUT /api/advisory/settings, runs AdvisoryRefreshJob, and asserts the affected advisory (NCSC-NL label, severity high, CVE, ratings) and the "does not state which versions" advisory in the server block. A second test asserts nothing is read with the switch off. afterEach switches it off, removes the base and state, and sweeps again.

Left

  • 3.5 stays unticked until the Playwright job has run the spec (no Nextcloud instance in this session).
  • 4.1 (PHPUnit and Playwright on stable32/33/34) and 4.2 (matrix row, archive): CI and release steps.

Tests

  • No production code changed. eslint clean on both files; playwright test --list lists the two new tests.
  • vitest before/after: 97 files, 3233 tests passed.

Generated by Claude Code

Serve an NCSC-NL CSAF directory from the fixture forge (changes.csv and
two Nextcloud Server documents, one affected, one vers:unknown/*,
switchable through /control/csaf) and add the NCSC-NL e2e block to
advisories.spec.ts: switched on, one sweep shows the affected advisory
and the version-not-stated advisory in the server block; switched off,
nothing is read.

Assisted-by: ClaudeCode:claude-opus-5-5
Resolve the e2e conflicts with the advisory triage suite: the spec keeps
development's triage block and adds the NCSC-NL block after it, importing
both fixture resets; the forge fixture routes both the CSAF directory and
the OSV API.

Assisted-by: ClaudeCode:claude-opus-5-5
@rubenvdlinde
rubenvdlinde merged commit af0ae43 into development Nov 20, 2026
5 of 9 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/versioniq @ 395ece0

Check PHP Vue Security License Tests
lint ✅
phpcs ✅
phpmd ✅
psalm ❌
phpstan ✅
phpmetrics ✅
eslint ❌
stylelint ❌
build ✅
composer ✅ ✅ 58/58
npm ✅ ✅ 314/314
app:check-code ⏭️
info.xml ✅
REUSE ❌
lockfile sync ✅
PHPUnit ❌
Newman ⏭️
Playwright ⏭️ deferred: E2E runs locally and on the promotion path only. This pull request targets development, so the suite is asked once per promotion into beta and main rather than once per push per open pull request. Run it locally with npx playwright test, or from the Actions tab on a branch with no open pull request into development.
Hydra gates ❌

Quality workflow — 2026-11-20 10:27 UTC

Download the full PDF report from the workflow artifacts.

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.

1 participant