feat(silences): maintenance windows for sources, items and reports (#56) #67
No reviewers
Labels
No labels
bug
docs
duplicate
enhancement
help wanted
invalid
nice-to-have
pre-1.0
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/lamplighter!67
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/56-silences"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
PR #67 @
0c7eab5fixes F3, passes my gap test and the full suite (1006), and passes the 390px + desktop Chromium silences check again (C35, C37), with nothing else blocking in my code audit.Fixes #56
Red, then green
export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && unset FORGEJO_TOKEN FORGEJO_URL && export MIX_TEST_PARTITION=_56 && mix test test/lamplighter/silences_test.exs test/lamplighter_web/silence_time_test.exs test/lamplighter_web/live/silence_live_test.exs test/lamplighter_web/api/silences_test.exsb827a40): exit 12cd1f10): exit 0Checks
export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && unset FORGEJO_TOKEN FORGEJO_URL && export MIX_TEST_PARTITION=_56 && mix precommit, exit 0cd /home/peak/work/lamplighter-v1-2 && curl -s --noproxy '*' -o /dev/null localhost:4129/users/log-in && timeout 170 ~/.venvs/pw/bin/python checks/silences_browser.py 4 | tail -1 | grep -qx ok, exit 02cd1f10, the branch's silence, API and LiveView tests pass, and Upper Wolfjaw's real-Chromium silences_browser.py (390px + desktop: picker, whole source, schedule/Cancel, +1 hour, End now, report menu and pill, dashboard banner and badge) passes against my own dev server on :4129. (Nye):cd /home/peak/work/lamplighter-v1-2/lamplighter-56 && test "$(git rev-parse --short HEAD)" = 2cd1f10 && source ../env.sh && unset $(env | grep -oE '^(FORGEJO|GITHUB_ISSUES)[A-Z_]*'); MIX_ENV=test mix test test/lamplighter/silences_test.exs test/lamplighter_web/api/silences_test.exs test/lamplighter_web/live/silence_live_test.exs test/lamplighter_web/silence_time_test.exs test/lamplighter_web/api/auth_test.exs && RID=$(psql -qtA postgresql://postgres:postgres@localhost/lamplighter_dev -c "select id from reports where fingerprint='15:guest:101' order by id desc limit 1") && python3 ../review56/silences_browser.py $RID | tail -1 | grep -qx ok, exit 00c7eab5, the full suite passes with my F3 gap test added (1006 tests), and the 390px + desktop Chromium silences script still passes against my dev server. (Nye):cd /home/peak/work/lamplighter-v1-2/lamplighter-56 && test "$(git rev-parse HEAD)" = 0c7eab59282bf11329d1c7c77f21bdfb3983056c && source ../env.sh && mix test test/lamplighter/nye_silence_gap_test.exs test/lamplighter/silences_test.exs test/lamplighter_web 2>&1 | tail -3 | grep -E '[0-9]+ passed' && ! mix test 2>&1 | tail -2 | grep -q failure && cd ../review56 && python3 silences_browser.py 14 | tail -1 | grep -qx ok, exit 00c7eab5I read the F3 fix (catch_up filters unchanged, so no double-send) and ran the full suite myself: 1006 pass; I found no regressions from dropping the starts_at bound. Untested by me: real-browser check, the End-now/sweeper race, merge order after #65/#66. (Prover):cd /home/peak/work/lamplighter-v1-2/lamplighter-56 && test "$(git rev-parse HEAD)" = 0c7eab59282bf11329d1c7c77f21bdfb3983056c && source ../env.sh && unset $(env | grep -oE '^(FORGEJO|GITHUB_ISSUES)[A-Z_]*'); MIX_ENV=test mix test test/lamplighter/silences_test.exs test/lamplighter/nye_silence_gap_test.exs test/lamplighter_web 2>&1 | tail -3 | grep -E '[0-9]+ passed', exit 0Found and fixed
Risks
#67 is stacked on #66, which is built on #57's pre-fix head, so it must merge after #65 and #66 (D22 order, merge commits). Rare race nit: End now at the same instant the sweeper ends a silence could send the still-open notice twice. Recurring windows, Alertmanager mirroring and a node-covers-guests checkbox are deferred (D18–D21, assumed).
Prover
Passed (Sonnet): At
0c7eab5I read the F3 fix (catch_up filters unchanged, so no double-send) and ran the full suite myself: 1006 pass; I found no regressions from dropping the starts_at bound. Untested by me: real-browser check, the End-now/sweeper race, merge order after #65/#66.Every command above was run by Fortysix's Basecamp itself, on the branch named.
Screenshots at
2cd1f10(real Chromium, America/New_York, 390px and 1280px):report-menu, 390
report-menu, desktop
report-silenced, 390
report-silenced, desktop
dashboard, 390
dashboard, desktop
settings-form, 390
settings-form, desktop
settings-lists, 390
settings-lists, desktop
0c7eab59284ae09f1a38Rebased onto main
1d67708after #64 (relay agent) merged, now at4ae09f1. The only conflicts were where both added to the same list: the Settings tabs (Agents now sits after Sources), the settings routes, the server's supervision tree (silence sweeper added to server_children), and the API auth test's route check. No feature code changed.mix precommitpasses on every branch in the stack and CI is green.