sourcegraph/dev/update-embeddings-list
Quinn Slack 4002774429
reapply "switch from jest to vitest for faster, simpler tests (#57886)" (#58145)
* reapply "switch from jest to vitest for faster, simpler tests (https://github.com/sourcegraph/sourcegraph/pull/57886)"

This was reverted in https://github.com/sourcegraph/sourcegraph/pull/58116 due to an issue with the browser tests.

* include fetch-mock

* fix flakiness

* rm mock that did not work in experimentalVmThreads

* fix

* timeout

* fixup

---------

Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
2023-11-07 12:00:18 +02:00
..
src reapply "switch from jest to vitest for faster, simpler tests (#57886)" (#58145) 2023-11-07 12:00:18 +02:00
.gitignore docs: embeddings list automation (#52879) 2023-06-05 15:30:34 -07:00
package.json reapply "switch from jest to vitest for faster, simpler tests (#57886)" (#58145) 2023-11-07 12:00:18 +02:00
README.md fix: remove build files and fix all working dirs (#54980) 2023-07-14 15:01:18 -07:00
tsconfig.json docs: embeddings list automation (#52879) 2023-06-05 15:30:34 -07:00

Overview

This folder contains the scripts needed to automatically update the list of embedded repos on Sourcegraph.com. It calls the RepoEmbeddingJobs GraphQL endpoint to generate the list of embeddings and converts it into markdown.

Development

To work on this file:

  1. get access from here
  2. set access token set SOURCEGRAPH_DOCS_ACCESS_TOKEN=<access_token> or hard code const access_token = <access_token>
  3. run ts-node src/index.ts

Alternatively you can also:

  1. run pnpm run start