Bump Zoekt indexer image to 0.5.5
What does this MR do?
This MR updates the image version of gitlab-zoekt-indexer
. It includes these changes:
- Export number of active indexing locks (gitlab-org/gitlab-zoekt-indexer!31 - merged)
- Fix incremental builds (gitlab-org/gitlab-zoekt-indexer!33 - merged)
How to test it
docker build -t registry.gitlab.com/gitlab-org/build/cng/gitlab-zoekt-indexer:master -f gitlab-zoekt-indexer/Dockerfile gitlab-zoekt-indexer
docker build -t registry.gitlab.com/gitlab-org/build/cng/gitlab-zoekt-webserver:master -f gitlab-zoekt-webserver/Dockerfile gitlab-zoekt-webserver
- Uncomment
listen_addr = "127.0.0.1:2305"
in$GDK_DIR/gitaly/praefect.config.toml
- Execute
gdk restart praefect
- If you have Zoekt enabled in GDK, please run
gdk stop gitlab-zoekt-indexer-development gitlab-zoekt-indexer-test zoekt-webserver-development zoekt-webserver-test
docker-compose up zoekt_indexer zoekt_webserver
- Get JSON payload by running these commands in
rails c
project = Project.find_by_full_path('flightjs/Flight')
payload = {
GitalyConnectionInfo: {
Address: 'tcp://host.docker.internal:2305',
Storage: project.repository_storage,
Path: "#{project.repository.disk_path}.git"
},
RepoId: 7,
FileSizeLimit: 2097152,
Timeout: "10m"
}.to_json
- Execute
curl -XPOST -d '<PAYLOAD>' -H 'Content-Type: application/json' http://127.0.0.1:6065/indexer/index
- See search results
curl -XPOST -d '{"Q":"test","RepoIDs":[7]}' 'http://127.0.0.1:6070/api/search' | jq .
Related issues
gitlab-org/gitlab-zoekt-indexer#13
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion
Required
-
Merge Request Title, and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com -
When ready for review, MR is labeled "~workflow::ready for review" per the Distribution MR workflow
Expected (please provide an explanation if not completing)
-
Test plan indicating conditions for success has been posted and passes -
Documentation created/updated -
Integration tests added to GitLab QA -
The impact any change in container size has should be evaluated -
New dependencies are managed with dependencies.io
Edited by Dylan Griffith