Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

search: structural search always streams by default#40872

Merged
rvantonder merged 1 commit into
mainfrom
backend-integration/rvt/ss-fix
Aug 25, 2022
Merged

search: structural search always streams by default#40872
rvantonder merged 1 commit into
mainfrom
backend-integration/rvt/ss-fix

Conversation

@rvantonder

@rvantonder rvantonder commented Aug 25, 2022

Copy link
Copy Markdown
Contributor

Structural search doesn't stream by default (in global mode or when count is not set). I really think I remember seeing global structural search on Sourcegraph.com in a past so this feels like a regression, but I really can't find any evidence. Maybe we've just always had this issue.

Test plan

unit test and backend-integration tests

@cla-bot cla-bot Bot added the cla-signed label Aug 25, 2022
@rvantonder rvantonder force-pushed the backend-integration/rvt/ss-fix branch from 26d220e to 6d6513c Compare August 25, 2022 21:50
@rvantonder rvantonder marked this pull request as ready for review August 25, 2022 21:50
@rvantonder rvantonder requested review from camdencheek and tbliu98 and removed request for camdencheek August 25, 2022 21:50
}

// For structural search with default limits we retry if we get no results.
// For batching structural search we use retry logic if we get no results.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably get rid of the batching retry logic below, but this PR focuses on fixing the hot path.

@sourcegraph-bot

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 7fc215a...6d6513c.

Notify File(s)
@beyang internal/search/job/jobutil/job.go
internal/search/job/jobutil/job_test.go
internal/search/structural/structural.go
@camdencheek internal/search/job/jobutil/job.go
internal/search/job/jobutil/job_test.go
internal/search/structural/structural.go
@keegancsmith internal/search/job/jobutil/job.go
internal/search/job/jobutil/job_test.go
internal/search/structural/structural.go

@rvantonder rvantonder merged commit 1fec8b6 into main Aug 25, 2022
@rvantonder rvantonder deleted the backend-integration/rvt/ss-fix branch August 25, 2022 22:46
@camdencheek

Copy link
Copy Markdown
Member

Nice.

Screen Shot 2022-08-30 at 16 23 59

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants