[ci] Align Cursor hook smoke tests with native flat preToolUse handlers
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- testing-qa
Research direction
Read the two named integration tests: tests/integration/test_hook_root_source_drift_e2e.py and tests/integration/test_audit_primitive_contract.py. Update their expectations to match Cursor's flat preToolUse handlers, then run these tests and confirm the drift test seeds a flat user hook while the audit test reports a nested Cursor group as incomplete.
Written by the indexing model from the issue text.
Description
Problem
Daily release smoke has failed since #3149 moved Cursor hooks to preToolUse with flat handlers. Two Cursor integration tests still expect the old nested shape:
tests/integration/test_hook_root_source_drift_e2e.pytests/integration/test_audit_primitive_contract.py
Tracked originally by the bot-filed smoke issue #3166 (now closed). Implementation: #3198.
Expected
The Cursor drift test reads preToolUse and seeds a flat user hook. The audit test expects a nested Cursor group to be reported incomplete (native hook event requires flat handlers). Tests only; no product behaviour change.
- Dominant language
- Python
- Stars
- 4k
- Forks
- 387
- Avg merge
- 5d 44m
- Merged PRs (30d)
- 60
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/apm
-
type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
[BUG] Flat hook entries without `type` reach `.codex/hooks.json` without the required `type: command`Possibly taken @Parth-Vasave claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/apm#3249 · 1 comment ·
Maintainers usually reply within 2 days
-
type/automation type/performance
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
status/declined type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
microsoft/apm#3169 · 2 comments ·
Maintainers usually reply within 2 days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
TomerAberbach/profiler-md#733 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
its-me-prash/vwgroup-connect-ha#1858 ·
Maintainers usually reply within 1 day
-
area: client bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Deleting all alarms or timers shows deleted ones until the next update when there are none leftOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
leikoilja/ha-google-home#1107 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Graphify-Labs/graphify#4524 · 1 comment ·
Maintainers usually reply within 1 day