Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ignore me] Testing #607

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/seer/automation/autofix/autofix.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def _get_slug_id(self, organization_id: int) -> str | None:
"get_organization_slug", org_id=organization_id
)
slug = None if response is None else response.get("slug", None)
if slug == None:
if slug is None:
autofix_logger.warn(
f"Slug lookup call for organization {organization_id} succeeded but returned value None."
)
Expand Down
3 changes: 2 additions & 1 deletion src/seer/automation/codebase/codebase_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ def process_stacktrace(self, stacktrace: Stacktrace):
def _populate_chunks(
self, chunks: list[DbDocumentChunk]
) -> list[StoredDocumentChunkWithRepoName]:
### This seems awfully wasteful to chunk and hash a document for each returned chunk but I guess we are offloading the work to when it's needed?
# This seems awfully wasteful to chunk and hash a document for each returned chunk but I
# guess we are offloading the work to when it's needed?
assert self.repo_info is not None, "Repository info is not set"

doc_parser = DocumentParser(self.embedding_model)
Expand Down
2 changes: 1 addition & 1 deletion src/seer/grouping/grouping.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_nearest_neighbors(self, issue: GroupingRequest) -> SimilarityResponse:
DbGroupingRecord.project_id == issue.project_id,
DbGroupingRecord.stacktrace_embedding.cosine_distance(embedding) <= 0.15,
DbGroupingRecord.group_id != issue.group_id,
DbGroupingRecord.group_id != None,
DbGroupingRecord.group_id is not None,
)
.order_by("distance")
.limit(issue.k)
Expand Down
2 changes: 1 addition & 1 deletion tests/automation/autofix/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def test_autofix_request_with_multiple_repos(self):
@parametrize
def test_event_no_exception_events(event: SentryEventData, entry: InvalidEventEntry):
event["entries"] = [entry]
assert len(EventDetails.from_event(event).exceptions) is 0
assert len(EventDetails.from_event(event).exceptions) == 0


@parametrize
Expand Down
Loading