Repository navigation
Conversation
Contributor
|
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 3 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. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #17419
Closes #21351
Closes #21346
Thinking Path
#17419's last open AC is the refuse step behind its announced deadline. The detector and
UNKNOWN_KEY_REFUSE_AFTERalready landed in #22010, but backend startup only logged, and its non-criticalexcept Exceptionwould have swallowed a refusal. #21351 and #21346 are two non-blocking review findings on the pre-push hook from #21278, so they ship together.What Changed
bug(config): AUTOBOT_* vars are declared in two planes and 13 defaults already disagree (AUTOBOT_ENV: development vs production) #17419:
autobot_shared/env_drift_detector.pyraise_if_refused(report)logs each unknown key throughdescribe_unknown_keyand raisesUnknownEnvKeysRefused(inenv_unknown_keys.py).initialization/lifespan.py_check_env_drift()calls it after the non-critical try/except, so the broad handler cannot swallow it. The startup error propagates throughinitialize_critical_servicesand aborts the app.pipeline-scripts/generate_env_docs.pyemitsrefuse_notice()from the constant intodocs/developer/ENV_VARS.md.initialization/env_unknown_keys_startup_17419_test.pycovers before the deadline, on and after it with an unknown key, and on it with none. Dates and text are derived from the constant anddescribe_unknown_key, and the docs line is pinned to the constant.lifespan.pyis 2305 lines; its size ceiling is lowered to match.test(hooks): pin the pre-push interpreter fallback (floor-only when pytest is unavailable) #21351: new
repo_tests/pre_push_interpreter_fallback_21351_test.pydrives the real hook in the chore(hooks): remove the pre-push open-PR cap — owner rule: no cap on open PRs, push finished work #19397 sandbox. It covers four cases:The resolution comment in
tools/git-hooks/pre-pushnow describes the preferred-then-floor behaviour.fix(tooling): deferred review findings from #21278 #21346: both manual-validation hints in
pre-pushprint the resolved interpreter instead of a literal$PYTEST_PYTHON. This is pinned in the same test file.Verification
bash -npasses on the hook, and pre-commit hooks passed, including the env-registry/docs check (tooling: AUTOBOT_* env-var registry with auto-generated CLAUDE_RULES.md docs (143 undocumented env vars) #7081).Model Used
Claude Opus 5.5
🤖 Generated with Claude Code