Skip to content

Conversation

@jennmueng
Copy link
Member

@jennmueng jennmueng commented Nov 20, 2025

We'll default PR creation to false because there's a lot of noise

  1. We add a new field auto_create_pr to the seer preferences handoff configuration.
  2. We get it from the project preferences when calling a coding agent
  3. We pass it into the launch call

Seer PR https://github.com/getsentry/seer/pull/4078
Frontend PR #103730

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 20, 2025
@codecov
Copy link

codecov bot commented Nov 20, 2025

❌ 5 Tests Failed:

Tests completed Failed Passed Skipped
30021 5 30016 240
View the top 3 failed test(s) by shortest run time
tests.sentry.integrations.api.endpoints.test_organization_coding_agents.OrganizationCodingAgentsPostInstructionTest::test_launch_with_empty_instruction
Stack Traces | 8.74s run time
#x1B[1m#x1B[.../api/endpoints/test_organization_coding_agents.py#x1B[0m:1403: in test_launch_with_empty_instruction
    response = self.get_success_response(self.organization.slug, method="post", **data)
#x1B[1m#x1B[.../sentry/testutils/cases.py#x1B[0m:628: in get_success_response
    assert_status_code(response, 200, 300)
#x1B[1m#x1B[.../sentry/testutils/asserts.py#x1B[0m:47: in assert_status_code
    assert minimum <= response.status_code < maximum, (
#x1B[1m#x1B[31mE   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')#x1B[0m
#x1B[1m#x1B[31mE   assert 500 < 300#x1B[0m
#x1B[1m#x1B[31mE    +  where 500 = <Response status_code=500, "application/json">.status_code#x1B[0m
tests.sentry.integrations.api.endpoints.test_organization_coding_agents.OrganizationCodingAgentsPostInstructionTest::test_launch_with_max_length_instruction
Stack Traces | 8.89s run time
#x1B[1m#x1B[.../api/endpoints/test_organization_coding_agents.py#x1B[0m:1448: in test_launch_with_max_length_instruction
    response = self.get_success_response(self.organization.slug, method="post", **data)
#x1B[1m#x1B[.../sentry/testutils/cases.py#x1B[0m:628: in get_success_response
    assert_status_code(response, 200, 300)
#x1B[1m#x1B[.../sentry/testutils/asserts.py#x1B[0m:47: in assert_status_code
    assert minimum <= response.status_code < maximum, (
#x1B[1m#x1B[31mE   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')#x1B[0m
#x1B[1m#x1B[31mE   assert 500 < 300#x1B[0m
#x1B[1m#x1B[31mE    +  where 500 = <Response status_code=500, "application/json">.status_code#x1B[0m
tests.sentry.integrations.api.endpoints.test_organization_coding_agents.OrganizationCodingAgentsPostInstructionTest::test_launch_with_custom_instruction
Stack Traces | 8.9s run time
#x1B[1m#x1B[.../api/endpoints/test_organization_coding_agents.py#x1B[0m:1315: in test_launch_with_custom_instruction
    response = self.get_success_response(self.organization.slug, method="post", **data)
#x1B[1m#x1B[.../sentry/testutils/cases.py#x1B[0m:628: in get_success_response
    assert_status_code(response, 200, 300)
#x1B[1m#x1B[.../sentry/testutils/asserts.py#x1B[0m:47: in assert_status_code
    assert minimum <= response.status_code < maximum, (
#x1B[1m#x1B[31mE   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')#x1B[0m
#x1B[1m#x1B[31mE   assert 500 < 300#x1B[0m
#x1B[1m#x1B[31mE    +  where 500 = <Response status_code=500, "application/json">.status_code#x1B[0m
tests.sentry.integrations.api.endpoints.test_organization_coding_agents.OrganizationCodingAgentsPostInstructionTest::test_launch_with_instruction_and_root_cause_trigger
Stack Traces | 9.05s run time
#x1B[1m#x1B[.../api/endpoints/test_organization_coding_agents.py#x1B[0m:1525: in test_launch_with_instruction_and_root_cause_trigger
    response = self.get_success_response(self.organization.slug, method="post", **data)
#x1B[1m#x1B[.../sentry/testutils/cases.py#x1B[0m:628: in get_success_response
    assert_status_code(response, 200, 300)
#x1B[1m#x1B[.../sentry/testutils/asserts.py#x1B[0m:47: in assert_status_code
    assert minimum <= response.status_code < maximum, (
#x1B[1m#x1B[31mE   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')#x1B[0m
#x1B[1m#x1B[31mE   assert 500 < 300#x1B[0m
#x1B[1m#x1B[31mE    +  where 500 = <Response status_code=500, "application/json">.status_code#x1B[0m
tests.sentry.integrations.api.endpoints.test_organization_coding_agents.OrganizationCodingAgentsPostInstructionTest::test_launch_with_blank_instruction
Stack Traces | 9.87s run time
#x1B[1m#x1B[.../api/endpoints/test_organization_coding_agents.py#x1B[0m:1361: in test_launch_with_blank_instruction
    response = self.get_success_response(self.organization.slug, method="post", **data)
#x1B[1m#x1B[.../sentry/testutils/cases.py#x1B[0m:628: in get_success_response
    assert_status_code(response, 200, 300)
#x1B[1m#x1B[.../sentry/testutils/asserts.py#x1B[0m:47: in assert_status_code
    assert minimum <= response.status_code < maximum, (
#x1B[1m#x1B[31mE   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')#x1B[0m
#x1B[1m#x1B[31mE   assert 500 < 300#x1B[0m
#x1B[1m#x1B[31mE    +  where 500 = <Response status_code=500, "application/json">.status_code#x1B[0m

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@jennmueng jennmueng marked this pull request as ready for review November 20, 2025 18:58
@jennmueng jennmueng requested review from a team as code owners November 20, 2025 18:58
@jennmueng jennmueng enabled auto-merge (squash) November 24, 2025 19:49
@jennmueng jennmueng merged commit 7b7895b into master Nov 24, 2025
65 checks passed
@jennmueng jennmueng deleted the cursor-agent-auto-create-pr-toggle branch November 24, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants