Share GitHub login config validation#887
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesGitHub login validation refactoring
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
mauricemohr88-debug
left a comment
There was a problem hiding this comment.
Reviewed current head e512e97bb6c2b4802502ca5190826611679e5cb1.
Approved. I inspected app/config.py and verified this is a behavior-preserving deploy-readiness refactor:
_github_login_list_errors()centralizes the existing required, empty-entry, duplicate-login, and invalid-login checks for GitHub login lists;validate_deploy_settings()now uses the helper for bothMERGEWORK_ADMIN_LOGINSandMERGEWORK_GITHUB_ACCEPTED_LABELERSwhile preserving the prior error text for each setting;- the admin-includes-labelers cross-list check remains separate and still runs only when both lists are present;
- existing deploy-readiness coverage still exercises missing maintainer logins, duplicate admin/labeler logins, invalid login values, and empty CSV entries;
- no runtime auth behavior, ledger, wallet, treasury, payout, proposal execution, admin-token API, bridge, exchange, cash-out, MRWK price, private-data, credential, or secret-handling behavior is changed.
Validation on this exact head:
uv run --python 3.12 --extra dev python -m pytest tests/test_deploy_readiness.py -q-> 36 passed.uv run --python 3.12 --extra dev ruff check app/config.py tests/test_deploy_readiness.py-> passed.uv run --python 3.12 --extra dev ruff format --check app/config.py tests/test_deploy_readiness.py-> 2 files already formatted.uv run --python 3.12 --extra dev mypy app/config.py-> success.uv run --python 3.12 --extra dev python scripts/docs_smoke.py-> docs smoke ok.git diff --check origin/main...HEAD-> clean.git merge-tree --write-tree origin/main HEAD-> clean tree6855bd12da7fec87e704ac451aa01d089ef161d1.
GitHub state checked before approval: mergeStateStatus=CLEAN; hosted Quality, readiness, docs, and image checks and CodeRabbit statuses are successful on this head. I found no prior human review and no existing #838 claim for PR #887 / this head before posting this review.
Refs #846 / Bounty #846.
Summary
_github_login_list_errors()helper for deploy-time GitHub login list validation.MERGEWORK_ADMIN_LOGINSandMERGEWORK_GITHUB_ACCEPTED_LABELERS.Duplicate check
I searched open PRs for deploy settings login validation helpers,
MERGEWORK_ADMIN_LOGINS/MERGEWORK_GITHUB_ACCEPTED_LABELERScleanup, and duplicate GitHub login config cleanup before opening this. I did not find an open PR covering this same helper extraction.Validation
uv run --extra dev python -m pytest tests/test_deploy_readiness.py -q-> 36 passed.uv run --extra dev ruff check app/config.py tests/test_deploy_readiness.py-> passed.uv run --extra dev ruff format --check app/config.py tests/test_deploy_readiness.py-> 2 files already formatted.uv run --extra dev mypy app/config.py-> success.git diff --check origin/main...HEAD-> clean.git merge-tree --write-tree origin/main HEAD-> clean treeabda6f4c7b8cc6d19c1ef4bc0fd2711b121cfce1.Scope
Focused deploy-readiness maintainability cleanup only. No runtime auth behavior, ledger, wallet, treasury, payout, proposal execution, bridge, exchange, cash-out, MRWK price, private data, credentials, or secrets behavior changed.
Summary by CodeRabbit