mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-22 05:42:19 +01:00
Install reflector DNS-retry drop-in
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b889a8e2d6
commit
075ceb3dcb
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"intent": "reflector.service no longer stays in systemctl --failed after a boot where DNS comes up after network-online.target.",
|
||||||
|
"scope": ["linux_configuration/periodic_background/setup_periodic_system.sh", "drop-in source lives in kuhyx/system-maintenance systemd/reflector.service.d/retry-on-dns.conf"],
|
||||||
|
"changes": ["setup_periodic_system.sh installs the reflector Restart=on-failure drop-in next to periodic-system-startup.service"],
|
||||||
|
"verification": [
|
||||||
|
{
|
||||||
|
"command": "bash tests/test_boot_dns_retry.sh (system-maintenance)",
|
||||||
|
"result": "pass",
|
||||||
|
"evidence": "red before the drop-in existed, then PASS for both units and systemd-analyze verify"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "shellcheck linux_configuration/periodic_background/setup_periodic_system.sh",
|
||||||
|
"result": "pass",
|
||||||
|
"evidence": "no findings"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"risks": ["Installer aborts if ~/src/system-maintenance is not pulled first (install -D on a missing template)"],
|
||||||
|
"rollback": ["git revert; rm /etc/systemd/system/reflector.service.d/retry-on-dns.conf; systemctl daemon-reload"]
|
||||||
|
}
|
||||||
@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
"intent": "Every subagent in the token audit carries a task label and type; no '?' / 'unknown' rows in the subagent tables.",
|
|
||||||
"scope": [
|
|
||||||
"python_pkg/token_audit/discover.py, python_pkg/token_audit/parse.py and their tests",
|
|
||||||
"Non-goal: no hook or settings.json change; every Agent launch already records a description"
|
|
||||||
],
|
|
||||||
"changes": [
|
|
||||||
"agent_meta borrows a missing description/type from the same agent-<id>.meta.json in another session dir (background agents that outlive /clear continue in the new session's subagents/ with no meta)",
|
|
||||||
"load_session falls back to the first user prompt line (60 chars), then '(no label) agent-<id>', instead of '?'"
|
|
||||||
],
|
|
||||||
"verification": [
|
|
||||||
{
|
|
||||||
"command": "python3 -m pytest -q python_pkg/token_audit/tests --cov=python_pkg.token_audit --cov-branch",
|
|
||||||
"result": "pass",
|
|
||||||
"evidence": "200 passed, 100.00% branch coverage"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command": "python3 -m python_pkg.token_audit --since 1791123199.748 --until 1791627950.749 --no-write",
|
|
||||||
"result": "pass",
|
|
||||||
"evidence": "Same window as the 2026-10-10 snapshot: 'unknown' ($35.23) and '?' ($35.93) rows gone; all 14 affected files labelled from the spawning session's meta"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"risks": [
|
|
||||||
"Agent ids colliding across sessions would borrow the wrong label (ids are 17 random hex chars; none seen across 479 files)",
|
|
||||||
"One extra glob over projects/*/*/subagents per unlabelled subagent file"
|
|
||||||
],
|
|
||||||
"rollback": [
|
|
||||||
"git revert the commit",
|
|
||||||
"Re-run the audit with --no-write and confirm the old '?' row returns"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@ -160,6 +160,8 @@ create_startup_service() {
|
|||||||
local startup_service="/etc/systemd/system/periodic-system-startup.service"
|
local startup_service="/etc/systemd/system/periodic-system-startup.service"
|
||||||
install -m 0644 "$TEMPLATE_STARTUP" "$startup_service"
|
install -m 0644 "$TEMPLATE_STARTUP" "$startup_service"
|
||||||
echo "✓ Installed startup service from template: $startup_service"
|
echo "✓ Installed startup service from template: $startup_service"
|
||||||
|
# Boot-time network units race DNS here; both retry instead of staying failed.
|
||||||
|
install -D -m 0644 "$SYSTEMD_TEMPLATES/reflector.service.d/retry-on-dns.conf" /etc/systemd/system/reflector.service.d/retry-on-dns.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to create hosts file monitor service
|
# Function to create hosts file monitor service
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user