Skip to content

fix(releases): Optimize commit processing with bulk operations and truncation#115174

Draft
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/release-commit-processing-timeout
Draft

fix(releases): Optimize commit processing with bulk operations and truncation#115174
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/release-commit-processing-timeout

Conversation

@sentry
Copy link
Copy Markdown
Contributor

@sentry sentry Bot commented May 8, 2026

This PR addresses the ProcessingDeadlineExceeded error in the sentry.tasks.commits.fetch_commits task, which occurred when processing releases with a large number of commits.

Root Cause:
The set_commits_on_release function was performing individual database operations (e.g., Commit.objects.get_or_create, CommitFileChange.objects.bulk_create, ReleaseCommit.objects.create) for each commit within a loop. This N+1 query pattern, combined with scenarios where previousCommit was not provided (leading to fetching a very large number of commits), caused the task to exceed its 905-second processing deadline.

Changes Implemented:

  1. Commit List Truncation: Introduced MAX_COMMITS_IN_RELEASE = 1000 to cap the number of commits processed for a single release, preventing runaway tasks. A warning is logged if the list is truncated.
  2. Bulk Commit Upsert: Replaced the per-commit Commit.objects.get_or_create() and subsequent commit.update() calls with a single Commit.objects.bulk_create(ignore_conflicts=True) followed by a batch SELECT to retrieve all commits and a Commit.objects.bulk_update() for any changed fields.
  3. Bulk CommitFileChange Creation: Consolidated the creation of CommitFileChange objects. Instead of individual bulk_create calls per commit, all file changes are now collected and inserted in a single CommitFileChange.objects.bulk_create() operation.
  4. Bulk ReleaseCommit Creation: The ReleaseCommit.objects.create() calls, previously wrapped in per-commit atomic transactions, are now replaced by a single ReleaseCommit.objects.bulk_create(ignore_conflicts=True) for all commits.
  5. Optimized Author Lookup: Improved the logic for resolving commit authors to avoid implicit N+1 database fetches when commit.author was accessed for comparison, by batch-loading fallback authors.

These changes significantly reduce the number of database queries and overall processing time for fetch_commits, mitigating the ProcessingDeadlineExceeded errors and improving the stability of release processing.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Fixes SENTRY-44HA

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 8, 2026
@getsantry
Copy link
Copy Markdown
Contributor

getsantry Bot commented May 30, 2026

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry Bot added the Stale label May 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 30, 2026

Backend Test Failures

Failures on e828ccd in this run:

tests/sentry/api/endpoints/test_event_committers.py::EventCommittersTest::test_release_based_suspect_commit_displayedlog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/api/endpoints/test_event_committers.py:303: in test_release_based_suspect_commit_displayed
    release.set_commits([{"id": commit.key, "repository": repo.name}])
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/api/serializers/test_event.py::SqlFormatEventSerializerTest::test_adds_release_infolog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/api/serializers/test_event.py:537: in test_adds_release_info
    release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/models/test_pullrequest.py::FindReferencedGroupsTest::test_resolve_in_commit_resolved_via_releaselog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_pullrequest.py:135: in test_resolve_in_commit_resolved_via_release
    release.set_commits([{"id": commit.key, "repository": repo.name}])
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/api/endpoints/test_organization_releases.py::OrganizationReleaseCreateTest::test_commitslog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/api/endpoints/test_organization_releases.py:1778: in test_commits
    assert response.status_code == 201, (response.status_code, response.content)
E   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')
E   assert 500 == 201
E    +  where 500 = <Response status_code=500, "application/json">.status_code
tests/sentry/models/test_release.py::SetCommitsTestCase::test_multiple_releases_only_updates_oncelog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_release.py:437: in test_multiple_releases_only_updates_once
    release.set_commits([{"id": "b" * 40, "repository": repo.name, "message": "old message"}])
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/api/endpoints/test_organization_releases.py::OrganizationReleaseCreateTest::test_duplicatelog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/api/endpoints/test_organization_releases.py:1565: in test_duplicate
    assert release_commits1 == [
E   AssertionError: assert [] == ['62de626b7c7...aaaaaaaaaaaa']
E     
E     Right contains 3 more items, first extra item: �[0m�[33m'�[39;49;00m�[33m62de626b7c7cfb8e77efb4273b1a3df4123e6216�[39;49;00m�[33m'�[39;49;00m�[90m�[39;49;00m
E     
E     Full diff:
E     �[0m�[92m+ []�[39;49;00m�[90m�[39;49;00m
E     �[91m- [�[39;49;00m�[90m�[39;49;00m
E     �[91m-     '62de626b7c7cfb8e77efb4273b1a3df4123e6216',�[39;49;00m�[90m�[39;49;00m
E     �[91m-     '58de626b7c7cfb8e77efb4273b1a3df4123e6345',�[39;49;00m�[90m�[39;49;00m
E     �[91m-     'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',�[39;49;00m�[90m�[39;49;00m
E     �[91m- ]�[39;49;00m�[90m�[39;49;00m
tests/sentry/models/test_release.py::SetCommitsTestCase::test_resolution_support_full_featuredlog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_release.py:477: in test_resolution_support_full_featured
    release.set_commits([{"id": commit.key, "repository": repo.name}])
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/models/test_release.py::SetCommitsTestCase::test_simplelog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_release.py:257: in test_simple
    release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/plugins/interfaces/test_releasehook.py::SetCommitsTest::test_minimallog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/plugins/interfaces/test_releasehook.py:36: in test_minimal
    hook.set_commits(version, data_list)
src/sentry/plugins/interfaces/releasehook.py:44: in set_commits
    release.set_commits(commit_list)
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/models/test_release.py::ClearCommitsTestCase::test_clear_commits_with_multiple_repositorieslog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_release.py:1515: in test_clear_commits_with_multiple_repositories
    release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/releases/endpoints/test_organization_release_details.py::UpdateReleaseDetailsTest::test_commits_lock_conflictlog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/releases/endpoints/test_organization_release_details.py:1026: in test_commits_lock_conflict
    assert response.status_code == 409, (response.status_code, response.content)
E   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')
E   assert 500 == 409
E    +  where 500 = <Response status_code=500, "application/json">.status_code
tests/sentry/tasks/test_commits.py::FetchCommitsTest::test_github_compare_commits_cache_key_variance_on_end_shalog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/tasks/test_commits.py:203: in test_github_compare_commits_cache_key_variance_on_end_sha
    fetch_commits(
src/sentry/silo/base.py:157: in override
    return original_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/taskbroker_client/task.py:157: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/tasks/commits.py:385: in fetch_commits
    release.set_commits(commit_list)
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/tasks/test_commits.py::FetchCommitsTest::test_github_compare_commits_cache_ttllog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/tasks/test_commits.py:238: in test_github_compare_commits_cache_ttl
    fetch_commits(
src/sentry/silo/base.py:157: in override
    return original_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/taskbroker_client/task.py:157: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/tasks/commits.py:385: in fetch_commits
    release.set_commits(commit_list)
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/releases/endpoints/test_organization_release_details.py::UpdateReleaseDetailsTest::test_commits_patchset_character_limit_255log
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/releases/endpoints/test_organization_release_details.py:958: in test_commits_patchset_character_limit_255
    assert response.status_code == 200, (response.status_code, response.content)
E   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')
E   assert 500 == 200
E    +  where 500 = <Response status_code=500, "application/json">.status_code
tests/sentry/tasks/test_commits.py::FetchCommitsTest::test_simple_passes_actor_to_plugin_providerlog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/tasks/test_commits.py:136: in test_simple_passes_actor_to_plugin_provider
    self._test_simple_action(user=self.user, org=org)
tests/sentry/tasks/test_commits.py:88: in _test_simple_action
    fetch_commits(
src/sentry/silo/base.py:157: in override
    return original_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/taskbroker_client/task.py:157: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/tasks/commits.py:385: in fetch_commits
    release.set_commits(commit_list)
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/models/test_pullrequest.py::FindReferencedGroupsTest::test_resolve_in_pull_request_resolved_via_releaselog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_pullrequest.py:204: in test_resolve_in_pull_request_resolved_via_release
    release.set_commits([{"id": merge_commit_sha, "repository": repo.name}])
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/models/test_pullrequest.py::FindReferencedGroupsTest::test_resolve_in_pull_request_resolved_via_release_with_defer_flag_offlog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_pullrequest.py:234: in test_resolve_in_pull_request_resolved_via_release_with_defer_flag_off
    release.set_commits([{"id": merge_commit_sha, "repository": repo.name}])
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/api/endpoints/test_organization_releases.py::OrganizationReleaseCreateTest::test_commits_lock_conflictlog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/api/endpoints/test_organization_releases.py:1942: in test_commits_lock_conflict
    assert response.status_code == 409, (response.status_code, response.content)
E   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')
E   assert 500 == 409
E    +  where 500 = <Response status_code=500, "application/json">.status_code
tests/sentry/models/test_release.py::SetCommitsTestCase::test_backfilling_commitslog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_release.py:298: in test_backfilling_commits
    release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/models/test_release.py::SetCommitsTestCase::test_long_emaillog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_release.py:600: in test_long_email
    release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/api/endpoints/test_organization_releases.py::OrganizationReleaseCreateCommitPatch::test_commits_with_patch_setlog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/api/endpoints/test_organization_releases.py:2762: in test_commits_with_patch_set
    assert response.status_code == 201, (response.status_code, response.content)
E   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')
E   assert 500 == 201
E    +  where 500 = <Response status_code=500, "application/json">.status_code
tests/sentry/models/test_release.py::SetCommitsTestCase::test_multiple_authorslog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_release.py:631: in test_multiple_authors
    release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/models/test_release.py::SetCommitsTestCase::test_resolution_support_with_integrationlog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_release.py:573: in test_resolution_support_with_integration
    release.set_commits([{"id": commit.key, "repository": repo.name}])
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/models/test_release.py::SetCommitsTestCase::test_resolution_support_without_authorlog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_release.py:509: in test_resolution_support_without_author
    release.set_commits([{"id": commit.key, "repository": repo.name}])
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/receivers/test_sentry_apps.py::TestIssueWorkflowNotifications::test_notify_after_resolve_from_set_commitslog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/receivers/test_sentry_apps.py:189: in test_notify_after_resolve_from_set_commits
    release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/models/test_release.py::SetCommitsTestCase::test_using_saved_datalog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_release.py:397: in test_using_saved_data
    release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/models/test_release.py::ClearCommitsTestCase::test_simplelog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/models/test_release.py:1443: in test_simple
    release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/releases/endpoints/test_organization_release_details.py::UpdateReleaseDetailsTest::test_commitslog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/releases/endpoints/test_organization_release_details.py:917: in test_commits
    assert response.status_code == 200, (response.status_code, response.content)
E   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')
E   assert 500 == 200
E    +  where 500 = <Response status_code=500, "application/json">.status_code
tests/sentry/releases/endpoints/test_project_release_details.py::UpdateReleaseDetailsTest::test_commitslog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/releases/endpoints/test_project_release_details.py:98: in test_commits
    assert response.status_code == 200, (response.status_code, response.content)
E   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')
E   assert 500 == 200
E    +  where 500 = <Response status_code=500, "application/json">.status_code
tests/sentry/tasks/test_commits.py::FetchCommitsTest::test_duplicate_repositorieslog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/tasks/test_commits.py:150: in test_duplicate_repositories
    self._test_simple_action(user=self.user, org=org)
tests/sentry/tasks/test_commits.py:88: in _test_simple_action
    fetch_commits(
src/sentry/silo/base.py:157: in override
    return original_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/taskbroker_client/task.py:157: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/tasks/commits.py:385: in fetch_commits
    release.set_commits(commit_list)
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/tasks/test_commits.py::FetchCommitsTest::test_github_compare_commits_cache_enabled_by_defaultlog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/tasks/test_commits.py:169: in test_github_compare_commits_cache_enabled_by_default
    fetch_commits(
src/sentry/silo/base.py:157: in override
    return original_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/taskbroker_client/task.py:157: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/tasks/commits.py:385: in fetch_commits
    release.set_commits(commit_list)
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/releases/endpoints/test_project_releases.py::ProjectReleaseCreateTest::test_commitslog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/releases/endpoints/test_project_releases.py:500: in test_commits
    assert response.status_code == 201, (response.status_code, response.content)
E   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')
E   assert 500 == 201
E    +  where 500 = <Response status_code=500, "application/json">.status_code
tests/sentry/tasks/test_commits.py::FetchCommitsTest::test_release_lockedlog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/tasks/test_commits.py:278: in test_release_locked
    fetch_commits(
src/sentry/silo/base.py:157: in override
    return original_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/taskbroker_client/task.py:157: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/tasks/commits.py:385: in fetch_commits
    release.set_commits(commit_list)
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/tasks/test_commits.py::FetchCommitsTest::test_simplelog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/tasks/test_commits.py:123: in test_simple
    self._test_simple_action(user=self.user, org=org)
tests/sentry/tasks/test_commits.py:88: in _test_simple_action
    fetch_commits(
src/sentry/silo/base.py:157: in override
    return original_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/taskbroker_client/task.py:157: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/tasks/commits.py:385: in fetch_commits
    release.set_commits(commit_list)
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/releases/endpoints/test_project_releases.py::ProjectReleaseCreateCommitPatch::test_commits_with_patch_setlog
[gw1] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/releases/endpoints/test_project_releases.py:643: in test_commits_with_patch_set
    assert response.status_code == 201, (response.status_code, response.content)
E   AssertionError: (500, b'{"detail":"Internal Error","errorId":null}')
E   assert 500 == 201
E    +  where 500 = <Response status_code=500, "application/json">.status_code
tests/sentry/tasks/test_groupowner.py::TestGroupOwners::test_delete_old_entrieslog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/tasks/test_groupowner.py:136: in test_delete_old_entries
    self.set_release_commits(self.user.email)
tests/sentry/tasks/test_groupowner.py:74: in set_release_commits
    self.release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/tasks/test_groupowner.py::TestGroupOwners::test_owners_countlog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/tasks/test_groupowner.py:471: in test_owners_count
    self.set_release_commits(self.user.email)
tests/sentry/tasks/test_groupowner.py:74: in set_release_commits
    self.release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/tasks/test_groupowner.py::TestGroupOwners::test_simplelog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/tasks/test_groupowner.py:88: in test_simple
    self.set_release_commits(self.user.email)
tests/sentry/tasks/test_groupowner.py:74: in set_release_commits
    self.release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent
tests/sentry/tasks/test_groupowner.py::TestGroupOwners::test_update_existing_entrieslog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/tasks/test_groupowner.py:274: in test_update_existing_entries
    self.set_release_commits(self.user.email)
tests/sentry/tasks/test_groupowner.py:74: in set_release_commits
    self.release.set_commits(
.venv/lib/python3.13/site-packages/sentry_sdk/tracing_utils.py:1109: in sync_wrapper
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
src/sentry/models/release.py:679: in set_commits
    from sentry.models.releases.set_commits import set_commits
E     File "/home/runner/work/sentry/sentry/src/sentry/models/releases/set_commits.py", line 41
E       message: str
E   IndentationError: unexpected indent

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 Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants