fix(scan): "Prüfung starten" always scans, and a skipped scan says why #419

Merged
sharang merged 1 commits from fix/manual-rescan into main 2026-09-28 20:52:11 +00:00
Owner

The user's rescan of the FreeRTOS iot-reference target on staging "stuck at the first step". According to the agent log (read by the infra session), it wasn't stuck. It ended after 3 s:

20:35:11.91 [6aba48d…] No new commits, skipping scan

run_pipeline returned early for a repository without new commits, and the run was closed with only change detection done. So the dashboard kept showing every other stage as pending.

Change

  • A manual scan always runs in full. After a Prüfwerk update or a changed setting it can find something else. The trigger now reaches run_pipeline.
  • Scheduled and webhook scans still skip an unchanged repository. The run now records the skip:
    • new SkipCode::NoNewCommits, on the stage change_detection;
    • dashboard wording "Keine neuen Commits seit der letzten Prüfung, daher nicht erneut geprüft. „Prüfung starten“ prüft trotzdem vollständig."

Checks

  • clippy with the CI flags on core, agent, MCP and both dashboard feature sets.
  • Tests: agent lib 459, dashboard 61 + 45.

Seen, not changed here

Staging clones repositories into the container's /tmp, which is lost on every restart, so each restart means a fresh clone. The fix is a one-line setting in orca-platform (GIT_CLONE_BASE_PATH onto the /data volume); I'll open it separately.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

The user's rescan of the FreeRTOS iot-reference target on staging "stuck at the first step". According to the agent log (read by the infra session), it wasn't stuck. It ended after 3 s: ``` 20:35:11.91 [6aba48d…] No new commits, skipping scan ``` `run_pipeline` returned early for a repository without new commits, and the run was closed with only change detection done. So the dashboard kept showing every other stage as pending. ## Change - **A manual scan always runs in full.** After a Prüfwerk update or a changed setting it can find something else. The trigger now reaches `run_pipeline`. - **Scheduled and webhook scans** still skip an unchanged repository. The run now records the skip: - new `SkipCode::NoNewCommits`, on the stage `change_detection`; - dashboard wording *"Keine neuen Commits seit der letzten Prüfung, daher nicht erneut geprüft. „Prüfung starten“ prüft trotzdem vollständig."* ## Checks - clippy with the CI flags on core, agent, MCP and both dashboard feature sets. - Tests: agent lib 459, dashboard 61 + 45. ## Seen, not changed here Staging clones repositories into the container's `/tmp`, which is lost on every restart, so each restart means a fresh clone. The fix is a one-line setting in orca-platform (`GIT_CLONE_BASE_PATH` onto the `/data` volume); I'll open it separately. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-09-28 20:41:34 +00:00
fix(scan): "Prüfung starten" always scans, and a skipped scan says why
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 7m51s
493957624a
A manual rescan of a repository without new commits stopped after change
detection ("No new commits, skipping scan") and closed the run with only
that one stage done, so the dashboard showed every other stage as pending,
for good. A scan a person starts now always runs in full (after an update of
Prüfwerk or a changed setting it can find something else); scheduled and
webhook scans still skip an unchanged repository, and the run records it as
a skipped stage, "Keine neuen Commits seit der letzten Prüfung".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 6fe7874ccd into main 2026-09-28 20:52:11 +00:00
Sign in to join this conversation.