Repository navigation
test(backend): pass a request to enable_app_endpoint - #15194
singhharsh1708 wants to merge 2 commits into
Conversation
BasedHardware#15099 gave the endpoint a request parameter for record_product_event; this suite calls it directly, so both apps-enable cases died with a TypeError and took every backend shard red on main.
731dc75 to
165ff03
Compare
|
Pushed a second commit: Both files fail on current main. On fdcae0a, with no changes: On this branch both files pass, 3 and 4 tests, exit 0. |
|
Verified — thanks for the quick fix and the precise diagnosis. What I checked against the head (
The Backend unit suite, hermetic merge gate, unit shards, Hygiene, and Formatting are all green on this head. Bounty adjudication for #15195 stays with the maintainers and is unaffected by this review. 🤖 Automated review on behalf of the maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Genuine fix for a self-caused test failure (enable_app_endpoint now requires a Request param since #15099); scoped, well-tested. Approving only, not merging: PR Metadata Preflight is currently failing with a real merge conflict against origin/main in both touched test files (backend/tests/unit/test_app_enable_install_count.py and test_setup_completed_url_uid_query.py), confirmed via reran CI, not a stale run. Needs a rebase, which I won't do.
|
Closing as tests-only of FIXED_OPEN. |
|
Hey @singhharsh1708 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Fixes #15195.
tests/unit/test_setup_completed_url_uid_query.pyfails on main, which reds every backend shard:#15099 gave
enable_app_endpointarequest: Requestparameter forrecord_product_event, and this suite calls the endpoint directly rather than through the app, so its twoapps-enablecases stopped constructing a valid call. Theoauth-tokenhalf of the same parametrization still passes, which is why the failure reads as a partial one.The call now passes a request.
record_product_eventonly reads headers off it, throughextract_client_kindandextract_app_build, and the whole body is wrapped so telemetry cannot fail a request, soSimpleNamespace(headers={})is enough and keeps the test at its existing level of abstraction: this suite is about theuidquery parameter appended tosetup_completed_url, not about metrics.Failure-Class: none