Skip to content

Add zoekt services to run zoekt tests in CI

Dylan Griffith requested to merge zoekt-code-search-with-ci into master

What does this MR do and why?

Zoekt is a standalone search engine database that will perform similar functionality that we have implemented in Elasticsearch today and may eventually replace Elasticsearch for code search specifically.

In !105049 (merged) we added a new Zoekt integration for code search. This MR introduced a few RSpec tests with the :zoekt tag that we needed to skip in CI because they depend on having running zoekt services. We have since created a docker image in gitlab-build-images!624 (merged) for running the necessary dependencies in CI as services. This MR adds this image as a service and removes the rule for ignoring the :zoekt tag in CI.

We also needed to update Webmock stubbing to allow requests to these services.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Dylan Griffith

Merge request reports