Repository navigation
fix: compare configuration skip keys case-insensitively - #2689
IsmaelMartinez merged 5 commits into
Conversation
PR Summary by QodoFix config skip-key filtering to be case-insensitive
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1.
|
1f7ccff to
c810105
Compare
|
Code review by qodo was updated up to the latest commit c810105 |
|
Code review by qodo was updated up to the latest commit 96d2687 |
96d2687 to
6e1d1eb
Compare
|
Code review by qodo was updated up to the latest commit 6e1d1eb |
…ase-insensitive skip keys
…the config section after each test
… non-string skip key
6e1d1eb to
92f5961
Compare
|
Code review by qodo was updated up to the latest commit 92f5961 |
IsmaelMartinez
left a comment
There was a problem hiding this comment.
Approving and merging. Verified before the merge: the full unit suite is green at 1,962 on your branch, and reverting pr_agent/algo/utils.py to the merge base while keeping your tests fails 2 of the 4, so the coverage genuinely bites.
That is nine of the twelve merged, and this one closes #2688. #2697 is the last one still open, with the scheme redaction suggestion sitting on the line ready to commit.
Closes #2688.
Description
analytics_folderandapp_nameare published into the PR comment despite being in the default skip list.Root cause
show_relevant_configurationscompared withif key in skip_keys(pr_agent/algo/utils.py:1287,1293) while Dynaconf yields section keys lower-cased, so the upper-case entries in the default list could never match.pr_agent/tools/pr_config.py:65already does this correctly viaskip_keys_lower, so the two implementations had diverged.The fix
Lower-case both sides, mirroring the existing approach in
pr_config.py.Behaviour change
app_name: my-appandanalytics_folder: /srv/secret-analyticsrendered into the PR commentVerified the rendered block no longer contains either key.
Files changed
Testing
pytest tests/unittest— 1748 passed, 1 skipped, 1 xfailed (unchanged frommain).github/workflows/build-and-test.yamlruns it:python:3.12.13-slimmain, no longer reproducible on this branchruff— no new findings vsmain;isort— cleanRisk / compatibility
Only hides keys the default list already intended to hide.
Checklist