GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — pm-stack(drills): kill-collector chaos drill, first slice of #1283 by dezren39 · Pull Request #1823 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 28 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: b339aef3c0
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| sudo -n systemctl start "$COLLECTOR_TIMER" 2>/dev/null || log "WARN: could not start $COLLECTOR_TIMER" | ||
| sudo -n systemctl start "$COLLECTOR_SERVICE" 2>/dev/null || log "WARN: could not start $COLLECTOR_SERVICE" | ||
| } | ||
| trap restore EXIT INT TERM |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Exit after restoring on termination signals
If SIGTERM or SIGINT arrives during the preconditions, the handler restores the collector and sets RESTORED=1, but then returns instead of terminating the script. Execution subsequently stops the timer and service, while both the explicit restore and EXIT handler skip restoration because that flag is already set. An isolated mock reproduction confirmed the sequence of starts followed by stops with no later restart, leaving the collector disabled. Use termination handlers that exit after cleanup rather than resuming the drill.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if [ "$AGE" -gt "$STALE_MS" ]; then | ||
| SIGNAL=1 |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Validate the aggregator's stale signal before declaring success
When the feed timestamp becomes old but the aggregator incorrectly continues reporting healthy services and degraded=false, this condition still sets SIGNAL=1: it checks only the age calculated locally by feed_facts, not the aggregator's response to staleness. A mocked run with exactly that payload completed with outcome=passed. This means the drill passes for the silent-health regression it is intended to detect. Require the relevant feed-backed health states and degradation signal to reflect staleness in the captured response before declaring success.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| sudo -n systemctl start "$COLLECTOR_TIMER" 2>/dev/null || log "WARN: could not start $COLLECTOR_TIMER" | ||
| sudo -n systemctl start "$COLLECTOR_SERVICE" 2>/dev/null || log "WARN: could not start $COLLECTOR_SERVICE" | ||
| } | ||
| trap restore EXIT INT TERM |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Arm restoration only when the drill starts changing collector state
If the timer is inactive, the health endpoint is unreadable, or the feed is already stale, the precondition exits through die, but this already-installed EXIT trap starts both the timer and collector anyway. A mocked inactive-timer run confirmed both start commands despite reporting refusal. This violates the stated no-touch precondition behavior and can restart a deliberately stopped collector or alter a real incident before any drill action occurred. Gate cleanup on whether this run has begun stopping the collector, or arm it immediately before that operation after all preconditions pass.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: f73e1eb951
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if [ "$AGE" -ge 0 ] && [ "$AGE" -le "$STALE_MS" ]; then | ||
| CONFIRMED=1 |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Verify the collector timer before confirming restoration
If restarting the collector timer fails but the immediate service run succeeds, this freshness check declares restoration successful even though recurring collection remains stopped. An isolated mock reproduced the timer-start warning followed by outcome=passed and exit status 0. The one-off refresh only temporarily masks the outage because fleet-feed-collector.timer supplies the recurring collection cadence. Require successful timer restoration before setting CONFIRMED=1, and retry failed restoration; systemctl --help documents is-active as “Check whether units are active.”
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| sleep 60 | ||
| WAITED=$((WAITED + 60)) | ||
| FACTS="$(health_json | feed_facts)" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Include health-request time in the drill's wait limit
If /api/health starts timing out after the collector is stopped, WAITED excludes the time spent fetching health. Each health_json call can consume 90 seconds across three 25-second transfers and retry sleeps (curl --help all describes --max-time as “Maximum time allowed for transfer”). Consequently, the default 25-minute limit permits roughly 62.5 minutes before restoration, exceeding the 45-minute TimeoutStartSec in systemd/kill-collector-drill.service and reaching service termination before the normal failure report. An accelerated mock confirmed that a one-minute limit waits 150 seconds before restoration. Use an elapsed-time deadline that includes requests and retries.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…core-1823 Rename fleet-built providers to leading-underscore ids (#1823)
…main / _openai.alt (code#8163) Drew, 2026-11-10: 'update all old names to use equivalent new names.' On top of PR #8329 (openaiPoolServiceId + the _openai quota id): - quota-gather-map: OPENAI_MAIN_SERVICE_ID -> _openai.main, OPENAI_ALTERNATE_SERVICE_ID -> _openai.alt, OPENAI_SELF folds into _openai.main (the dedicated _openai door and the openai.main instance are the same drewrypope account). serviceIdFor('_openai') -> _openai.main. canonicalProviderId('codex') -> '_openai' (the #1823 module-spelling rule), so a gatherer still paired with a pre-#2261 fork binary files under the new ids; the branch-level dual-accept of the 'codex' spelling is retired. - quota-extract: POOL_SPECS ids _openai.main / _openai.alt; POOL NAMING note records the rename (fresh snapshot series; pre-rename series stay in the store under the old ids, unrewritten). - snapshot-records: the legacy codex_usage API snapshot files under _openai.main. - collect-fleet-feed poolFor: codex-family rows -> _openai.main; _openai.alt -> _openai.alt. - aa.ts: catalog keys _openai.alt / _openai.main (display notes only). - Tests updated to the new ids, incl. a legacy-spelling filing test. The one quota.test.ts failure ('every pool renders') fails identically on the unmodified PR #8329 head — pre-existing, untouched here.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.