fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

switch to github.com/sourcegraph/cody-public-snapshot for e2e test (#974)

e2e tests were failing because github.com/sourcegraph/cody repository has been set to private and all tags were removed

Test plan:
CI

author
Stefan Hengl
committer
GitHub
date (Aug 5, 2025, 2:10 PM +0200) commit 87bb21ae parent 6d2e296f
+10 -10
+3 -3
internal/e2e/e2e_rank_test.go
··· 42 42 archiveURLs := []string{ 43 43 "https://github.com/sourcegraph/sourcegraph-public-snapshot/tree/v5.2.2", // Nov 1 2023 44 44 "https://github.com/golang/go/tree/go1.21.4", // Nov 7 2023 45 - "https://github.com/sourcegraph/cody/tree/vscode-v0.14.5", // Nov 8 2023 45 + "https://github.com/sourcegraph/cody-public-snapshot/tree/vscode-v0.14.5", // Nov 8 2023 46 46 // The commit before ranking e2e tests were added to avoid matching 47 47 // content inside our golden files. 48 48 "https://github.com/sourcegraph/zoekt/commit/ef907c2371176aa3f97713d5bf182983ef090c6a", // Nov 17 2023 ··· 65 65 q("Repository metadata Write rbac", "github.com/sourcegraph/sourcegraph-public-snapshot/internal/rbac/constants.go"), // unsure if this is the best doc? 66 66 67 67 // cody 68 - q("generate unit test", "github.com/sourcegraph/cody/lib/shared/src/chat/recipes/generate-test.ts"), 69 - q("r:cody sourcegraph url", "github.com/sourcegraph/cody/lib/shared/src/sourcegraph-api/graphql/client.ts"), 68 + q("generate unit test", "github.com/sourcegraph/cody-public-snapshot/lib/shared/src/chat/recipes/generate-test.ts"), 69 + q("r:cody sourcegraph url", "github.com/sourcegraph/cody-public-snapshot/lib/shared/src/sourcegraph-api/graphql/client.ts"), 70 70 71 71 // zoekt 72 72 q("zoekt searcher", "github.com/sourcegraph/zoekt/api.go"),
+6 -6
internal/e2e/testdata/r_cody_sourcegraph_url.txt
··· 2 2 query: (and repo:cody substr:"sourcegraph" substr:"url") 3 3 targetRank: 1 4 4 5 - **github.com/sourcegraph/cody/lib/shared/src/sourcegraph-api/graphql/client.ts** 5 + **github.com/sourcegraph/cody-public-snapshot/lib/shared/src/sourcegraph-api/graphql/client.ts** 6 6 611: const url = buildGraphQLUrl({ request: query, baseUrl: this.config.serverEndpoint }) 7 7 626: const url = buildGraphQLUrl({ request: query, baseUrl: this.dotcomUrl.href }) 8 8 641: const url = 'http://localhost:49300/.api/testLogging' 9 9 hidden 51 more line matches 10 10 11 - github.com/sourcegraph/cody/vscode/src/completions/client.ts 11 + github.com/sourcegraph/cody-public-snapshot/vscode/src/completions/client.ts 12 12 85: const url = getCodeCompletionsEndpoint() 13 13 1:import { FeatureFlag, featureFlagProvider } from '@sourcegraph/cody-shared/src/experimentation/FeatureFlagProvider' 14 14 5:} from '@sourcegraph/cody-shared/src/sourcegraph-api/completions/client' 15 15 hidden 6 more line matches 16 16 17 - github.com/sourcegraph/cody/vscode/scripts/download-wasm-modules.ts 17 + github.com/sourcegraph/cody-public-snapshot/vscode/scripts/download-wasm-modules.ts 18 18 83: for (const url of urls) { 19 19 93:function getFilePathFromURL(url: string): string { 20 20 20:const urls = [ 21 21 hidden 21 more line matches 22 22 23 - github.com/sourcegraph/cody/slack/src/services/local-vector-store.ts 23 + github.com/sourcegraph/cody-public-snapshot/slack/src/services/local-vector-store.ts 24 24 18: const { content, url } = codyNotice 25 25 9: owner: 'sourcegraph', 26 26 24: fileName: url, 27 27 28 - github.com/sourcegraph/cody/lib/shared/src/sourcegraph-api/completions/client.ts 28 + github.com/sourcegraph/cody-public-snapshot/lib/shared/src/sourcegraph-api/completions/client.ts 29 29 23:export abstract class SourcegraphCompletionsClient { 30 30 21: * Access the chat based LLM APIs via a Sourcegraph server instance. 31 31 36: return new URL('/.api/completions/stream', this.config.serverEndpoint).href 32 32 hidden 1 more line matches 33 33 34 - github.com/sourcegraph/cody/lib/shared/src/sourcegraph-api/completions/browserClient.ts 34 + github.com/sourcegraph/cody-public-snapshot/lib/shared/src/sourcegraph-api/completions/browserClient.ts 35 35 8:export class SourcegraphBrowserCompletionsClient extends SourcegraphCompletionsClient { 36 36 5:import { SourcegraphCompletionsClient } from './client' 37 37 20: headersInstance.set('X-Sourcegraph-Should-Trace', 'true')
+1 -1
internal/e2e/testdata/test_server.txt
··· 14 14 197:func NewServer() *Server { 15 15 hidden 104 more line matches 16 16 17 - github.com/sourcegraph/cody/vscode/test/fixtures/mock-server.ts 17 + github.com/sourcegraph/cody-public-snapshot/vscode/test/fixtures/mock-server.ts 18 18 126: const server = app.listen(SERVER_PORT, () => { 19 19 19:const SERVER_PORT = 49300 20 20 21:export const SERVER_URL = 'http://localhost:49300'