Skip to content

Bump Zoekt indexer image to 0.5.5

Dmitry Gruzd requested to merge bump-zoekt-indexer-to-v0-0-5 into master

What does this MR do?

This MR updates the image version of gitlab-zoekt-indexer. It includes these changes:

How to test it

  1. docker build -t registry.gitlab.com/gitlab-org/build/cng/gitlab-zoekt-indexer:master -f gitlab-zoekt-indexer/Dockerfile gitlab-zoekt-indexer
  2. docker build -t registry.gitlab.com/gitlab-org/build/cng/gitlab-zoekt-webserver:master -f gitlab-zoekt-webserver/Dockerfile gitlab-zoekt-webserver
  3. Uncomment listen_addr = "127.0.0.1:2305" in $GDK_DIR/gitaly/praefect.config.toml
  4. Execute gdk restart praefect
  5. 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
  6. docker-compose up zoekt_indexer zoekt_webserver
  7. 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
  1. Execute curl -XPOST -d '<PAYLOAD>' -H 'Content-Type: application/json' http://127.0.0.1:6065/indexer/index
  2. 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

Merge request reports

Loading