Skip to content

[Bounty proposal] main is red: enable_app_endpoint test misses the new request argument ($50 proposed) #15195

Closed

Description

@singhharsh1708

Summary

The backend unit suite is red on main, so every backend shard fails and no backend PR can go green.

$ cd backend && python -m pytest tests/unit/test_setup_completed_url_uid_query.py -q
FAILED tests/unit/test_setup_completed_url_uid_query.py::test_setup_url_with_a_query_gets_uid_as_its_own_param[apps-enable]
FAILED tests/unit/test_setup_completed_url_uid_query.py::test_setup_url_without_a_query_is_unchanged[apps-enable]
E   TypeError: enable_app_endpoint() missing 1 required positional argument: 'request'

#15099 gave enable_app_endpoint a request: Request parameter so it can call record_product_event. This suite calls the endpoint directly rather than through the app, so its two apps-enable cases no longer construct a valid call. The oauth-token half of the same parametrization still passes, which is why it reads as a partial failure rather than an obviously broken module.

Fix

Pass a request at the call site. record_product_event only reads headers off it, via extract_client_kind and extract_app_build, and its body is wrapped so telemetry cannot fail a request, so a headers-only stub keeps the suite at the level it is written for: the uid query parameter appended to setup_completed_url.

PR follows.

Bounty: $50 proposed, not for the size of the change but because main is red for every backend contributor until it lands.

cc @kodjima33 @josancamon19

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Sep 20, 2026
  2. aryanorastar commented on Sep 21, 2026

    @aryanorastar
    Collaborator

    Fixed by #15219, merged 2026-09-20.

    test_setup_completed_url_uid_query.py on current main already passes request= into enable_app_endpoint. Closing as completed.

  3. moved this from In progress to In review in omi TODO / bountieson Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions