Skip to content

Adds gdk-image dependency to db:gitlabcom-database-testing job

Leonardo da Rosa requested to merge add-pipeline-to-security-project-1 into master

What does this MR do and why?

Adds a dependency to gdk-image to gitlabcom-database-testing job

This change adds support to use gitlab-com-database-testing to test security/gitlab too. To achieve this, we need to build the build-gdk-image based on the same commit SHA and reuse the same image in gitlab-com-database-testing jobs.

Changes

  1. db:gitlabcom-database-testing job depends on build-gdk-image being finished.
  2. Forward extra arguments when triggering upstream gitlab-com-database-testing CI:
{
  ...

  "GITLAB_COMMIT_SHA" => "f65fe318920d798d087059e0aab76cbc84221195",
  "TOP_UPSTREAM_SOURCE_SHA" => "f65fe318920d798d087059e0aab76cbc84221195",
  "TRIGGERED_USER_LOGIN" => "l.rosa",
  "MIGRATION_CHANGES" => "A\tdb/migrate/20240202180458_dummy_migration.rb\n",
  "REGISTRY_IMAGE" => "registry.gitlab.com/gitlab-org/gitlab/gitlab-qa-gdk:2a4dea6cd6339343c854ad1cf6ed60b29f0178bb", 
  "IMAGE_SHA" => "2a4dea6cd6339343c854ad1cf6ed60b29f0178bb"
}

Example job

Upstream Job Variables

https://gitlab.com/gitlab-org/database-team/gitlab-com-database-testing/-/issues/50

Edited by Leonardo da Rosa

Merge request reports

Loading