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 not allowed fails job with policy not allowed message

Full description

Verify Pipeline with image:pull_policy when policy is not allowed fails job with policy not allowed message

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 ERROR: Preparation failed: the configured PullPolicies ([always]) are not allowed by AllowedPullPolicies ([never]) in 1Running with gitlab-runner 15.3.0 (bbcb5aba)
  2  on qa-runner-g3mo437r eHyazWei
  3
  Resolving secrets
  00:00
  5
  Preparing the "docker" executor
  00:09
  6Using Docker executor with image ruby:2.6 ...
  7ERROR: Preparation failed: failed to pull image 'registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-bbcb5aba': pull_policy ([always]) defined in Runner config (default) is not one of the allowed_pull_policies ([never])
  8Will be retried in 3s ...
  9Using Docker executor with image ruby:2.6 ...
  10ERROR: Preparation failed: failed to pull image 'registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-bbcb5aba': pull_policy ([always]) defined in Runner config (default) is not one of the allowed_pull_policies ([never])
  11Will be retried in 3s ...
  12Using Docker executor with image ruby:2.6 ...
  13ERROR: Preparation failed: failed to pull image 'registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-bbcb5aba': pull_policy ([always]) defined in Runner config (default) is not one of the allowed_pull_policies ([never])
  14Will be retried in 3s ...
  16ERROR: Job failed (system failure): failed to pull image 'registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-bbcb5aba': pull_policy ([always]) defined in Runner config (default) is not one of the allowed_pull_policies ([never]), but didn't.

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

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

Screenshot: verify_pipeline_with_image_pull_policy_when_policy_is_not_allowed_fails_job_with_policy_not_allowed_