mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:51:43 +00:00
* Support indexing entire workspace * Separate evaluate and index subcommands into different modules * Add --evaluate argument to index command, use serde for json * Punish candidates with high ambiguity Candidate ambiguity is a measure of how detailed the candidate SCIP in comparison to ground truth. When a candidate symbol has high ambiguity, it means that it occurs in a lot of places where ground truth SCIP uses different symbols. A demonstration of this method overloads in Java. If you have 20 overloads of the same method (but with different parameters), scip-java actually produces 20 different symbols (e.g. "NodeRenderer#render(+19)"). Our current methods just produce a single symbol "NodeRenderer#render()" for all those occurrences. This commit penalises such occurrences by the logarithm of ambiguity. * Introduce normalised weighting of candidates After computing the weights (using same jaccard measure) of individual pairs of (candidate, ground truth) symbols, we collect all the ground truth symbols that can be assigned to a given candidate, and normalise the weights of each pair by dividing it by sum of all weights. The idea behind this is to reassert the fact that mapping of symbols is fuzzy, and therefore we shouldn't be selecting just 1 symbol - instead we spread the fuzziness over all the occurrences, normalise them so they add up to one. Note that for a single alternative the weight will be 1, but that's not a problem because even if some occurrences were missed, they will be counted as part of false negatives, heavily discounting the effect of this spurious 1.0 TP * bzl: Remove library target from Rust crate (#58221) * fix: Stop sanitizing path unnecessarily * cleanup: Remove incorrect dep on CLI in highlighter binary * bzl: Re-add library target for cargo compat * build: Add comment for build targets * config: Hoist walkdir to workspace-level dep --------- Co-authored-by: Varun Gandhi <varun.gandhi@sourcegraph.com> |
||
|---|---|---|
| .. | ||
| alpine-3.14 | ||
| blobstore | ||
| cadvisor | ||
| codeinsights-db | ||
| codeintel-db | ||
| dind | ||
| executor-vm | ||
| grafana | ||
| indexed-searcher | ||
| initcontainer | ||
| jaeger-agent | ||
| jaeger-all-in-one | ||
| node-exporter | ||
| opentelemetry-collector | ||
| postgres_exporter | ||
| postgres-12-alpine | ||
| prometheus | ||
| prometheus-gcp | ||
| qdrant | ||
| redis_exporter | ||
| redis-cache | ||
| redis-store | ||
| search-indexer | ||
| sg | ||
| syntax-highlighter | ||
| README.md | ||
Sourcegraph derivative Docker images
This directory contains Sourcegraph docker images which are derivatives of an existing Docker image, but with better defaults for our use cases. For example:
sourcegraph/alpinehandles setting up asourcegraphuser account, installing common packages.sourcegraph/postgres-11.4ispostgres-11.4but with some Sourcegraph defaults.
If you are looking for our non-derivative Docker images, see e.g. /cmd/.../Dockerfile instead.
Building
All images in this directory are built and published automatically on CI:
- See the handbook for more information
- Or see how to build a test image if you need to build a test image without merging your change to
masterfirst.
Adding a new image
- Create a
build.shand add your publishing script to it - the script should end withdocker tag ... "$IMAGE". See the scripts in this directory for examples. - Ensure your new script is executable with
chmod +x build.sh(you can try it via e.g.IMAGE=fake-repo/cadvisor:latest docker-images/$SERVICE/build.sh, or by building a test image) - Add an image to the automated builds pipeline by adding it to
SourcegraphDockerImages.