Conversation
Review Summary by QodoEnable skills scanning by default with toggle support
WalkthroughsDescription• Changed --skills flag to be enabled by default • Implemented BooleanOptionalAction for toggle behavior • Added --no-skills option to disable skills scanning • Updated help text and CLI examples for clarity • Added comprehensive test coverage for skills flag behavior Diagramflowchart LR
A["--skills flag"] -- "Changed from opt-in" --> B["Enabled by default"]
B -- "Uses BooleanOptionalAction" --> C["--skills and --no-skills both work"]
C -- "Tested with" --> D["New test suite"]
File Changes1. src/agent_scan/cli.py
|
Code Review by Qodo
1. E2E tests now fail
|
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
| "--skills", | ||
| default=False, | ||
| action="store_true", | ||
| help="Scan skills beyond mcp servers.", | ||
| default=True, | ||
| action=argparse.BooleanOptionalAction, | ||
| help="Scan skills beyond mcp servers (default: enabled). Use --no-skills to disable.", |
There was a problem hiding this comment.
1. E2e tests now fail 🐞 Bug ≡ Correctness
--skills now defaults to True, but e2e tests still assert that skill scanning does not happen unless --skills is explicitly provided, so they will fail under the new default behavior.
Agent Prompt
### Issue description
The CLI now scans skills by default, but e2e tests still assume the old behavior (skills scanned only when `--skills` is passed). These tests will fail because they assert there are *no* skill servers when the flag is omitted.
### Issue Context
`--skills` switched from `store_true` default-off to `BooleanOptionalAction` default-on; the opt-out is now `--no-skills`.
### Fix Focus Areas
- tests/e2e/test_scan.py[147-170]
- tests/e2e/test_inspect.py[153-176]
### What to change
- For tests that verify "no skill servers", add `--no-skills` to the CLI invocation.
- Optionally add new assertions that default behavior *does* include skills, and keep `--no-skills` as the explicit opt-out path.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
No description provided.