Skip to content

Failure in browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb | Verify Pipeline with image:pull_policy when policy is allowed with [if-not-present] policy applies pull policy in job correctly

Full description

Verify Pipeline with image:pull_policy when policy is allowed with [if-not-present] policy applies pull policy in job correctly

File path

./qa/specs/features/browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb

Stack trace

Failure/Error:
  expect(job_log).to have_content(message),
                     "Expected to find #{message} in #{job_log}, but didn't."

  Expected to find Using locally found image version due to "if-not-present" pull policy in 1Running with gitlab-runner 15.3.0 (bbcb5aba)
  2  on qa-runner-x1mp0bjm Xzki-cvo
  3
  Resolving secrets
  00:00
  5
  Preparing the "docker" executor
  00:16
  6Using Docker executor with image ruby:2.6 ...
  7Pulling docker image registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-bbcb5aba ...
  8Using docker image sha256:eb09578c512493961df34d9fcea26ec9beba73f6888b35dfe36858c36accf8fa for registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-bbcb5aba with digest registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper@sha256:24641a70251a846357ccb5866ae834e9907eb1d1e52f2dcaa02cf5e88e6481b3 ...
  9ERROR: Preparation failed: failed to pull image 'ruby:2.6': pull_policy ([if-not-present]) defined in GitLab pipeline config is not one of the allowed_pull_policies ([always])
  10Will be retried in 3s ...
  11Using Docker executor with image ruby:2.6 ...
  12ERROR: Preparation failed: failed to pull image 'ruby:2.6': pull_policy ([if-not-present]) defined in GitLab pipeline config is not one of the allowed_pull_policies ([always])
  13Will be retried in 3s ...
  14Using Docker executor with image ruby:2.6 ...
  15ERROR: Preparation failed: failed to pull image 'ruby:2.6': pull_policy ([if-not-present]) defined in GitLab pipeline config is not one of the allowed_pull_policies ([always])
  16Will be retried in 3s ...
  18ERROR: Job failed (system failure): failed to pull image 'ruby:2.6': pull_policy ([if-not-present]) defined in GitLab pipeline config is not one of the allowed_pull_policies ([always]), but didn't.

First happened in https://gitlab.com/gitlab-org/gitlab-qa-mirror/-/jobs/2951104526.

Related test case: https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/368858.

Screenshot: verify_pipeline_with_image_pull_policy_when_policy_is_allowed_with_if-not-present_policy_applies_pul