Skip to content

fix!: --once sends no alerts now and exits 2 when it can't see everything, and unknown settings are refused - #23

Merged
NotAFlightRisk merged 1 commit into
mainfrom
fix/strict-config-and-once
Dec 3, 2026
Merged

NotAFlightRisk merged 1 commit into
mainfrom
fix/strict-config-and-once

Conversation

@NotAFlightRisk

Copy link
Copy Markdown
Owner

Category

Bugfix (mostly --once, plus a trap for typos in the config files)

Overview

--once is sold as handy for cron, but it had two habits that didn't help there. If it couldn't reach Docker, it printed the problem and exited 0, so cron read that as all clear. Now it exits 2 when nothing needs patching but it couldn't see everything, and 1 still wins when something does. It also sent real alerts and saved them to the state file, so running it beside the server (docker exec patchcall /patchcall --once) alerted twice, and then the server wrote over what it saved. It doesn't alert or touch the state file now, and leaves both to the server. make run stops pinging your phone too.

The overrides and inventory files refuse keys they don't know. An override with untrack: used to swap the bundled Jellyfin entry for one with no repo, so it went Unmapped, and an inventory line with verison: read as "Version unknown". Both show up as a problem with the line number now. An empty or comment-only overrides file still loads fine.

PATCHCALL_LOG_LEVEL=warning (which most apps take) used to drop back to info without a word. Now it refuses to start, same as a bad interval does.

Issue Number

N/A

Additional Info

⚠️ If you ran --once from cron to get alerts, that stops. Run the server for alerts, or go off the exit code.

@github-actions github-actions Bot added the bug Something isn't working label Dec 3, 2026
@NotAFlightRisk
NotAFlightRisk merged commit e31cd16 into main Dec 3, 2026
12 checks passed
@NotAFlightRisk
NotAFlightRisk deleted the fix/strict-config-and-once branch December 3, 2026 12:14
@NotAFlightRisk NotAFlightRisk changed the title fix: stop --once sending alerts, and refuse settings it doesn't know fix: --once sends no alerts now and exits 2 when it can't see everything, and unknown settings are refused Dec 3, 2026
@NotAFlightRisk NotAFlightRisk added the breaking-change Changes that break existing setups label Dec 3, 2026
@github-actions github-actions Bot removed the breaking-change Changes that break existing setups label Dec 3, 2026
@NotAFlightRisk NotAFlightRisk changed the title fix: --once sends no alerts now and exits 2 when it can't see everything, and unknown settings are refused fix!: --once sends no alerts now and exits 2 when it can't see everything, and unknown settings are refused Dec 3, 2026
@github-actions github-actions Bot added the breaking-change Changes that break existing setups label Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Changes that break existing setups bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant