Skip to content

[Test] 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

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Full description

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

Expected to find Using locally found image version due to "if-not-present" pull policy in job log but didn't.

File path

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

Commit diff

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.9.1 (d540b510)
  2  on qa-runner-02hjv3kh 1CAsViZq, system ID: r_Dvx9ckCWpgLO
  3
  Resolving secrets
  00:00
  5
  Preparing the "docker" executor
  00:20
  6Using Docker executor with image ruby:2.6 ...
  7Pulling docker image ruby:2.6 ...
  8Using docker image sha256:b71cca836fff8e4f14f8575e25a157f3e253bcd1a039432f4980728c846603f7 for ruby:2.6 with digest ruby@sha256:a79c8ddb7f3d3748427e2d3a45dcae6d42f1d80d9ae3b98959b3a27b220bf434 ...
  10
  Preparing environment
  00:03
  11Running on runner-1casvizq-project-44306776-concurrent-0 via 9bf884c38216...
  13
  Getting source from Git repository
  00:01
  14Fetching changes with git depth set to 20...
  15Initialized empty Git repository in /builds/gitlab-qa-sandbox-group-3/qa-test-2023-03-14-13-40-19-7ad1521e16e76749/pipeline-with-image-pull-policy-a21d650ee28403bf/.git/
  16Created fresh repository.
  17Checking out 5b26609b as detached HEAD (ref is main)...
  18Skipping Git submodules setup
  20
  Executing "step_script" stage of the job script
  00:00
  21Using docker image sha256:b71cca836fff8e4f14f8575e25a157f3e253bcd1a039432f4980728c846603f7 for ruby:2.6 with digest ruby@sha256:a79c8ddb7f3d3748427e2d3a45dcae6d42f1d80d9ae3b98959b3a27b220bf434 ...
  22$ echo "Using pull policies ["if-not-present"]"
  23Using pull policies [if-not-present]
  25
  Cleaning up project directory and file based variables
  00:01
  27Job succeeded, but didn't.

First happened in https://ops.gitlab.net/gitlab-org/quality/production/-/jobs/9483393.

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-presen_2023-03-14-13-54-00.731

Reports (2)

  1. 2023-10-02: https://gitlab.com/gitlab-org/gitlab/-/jobs/5206770985 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1023361378)
  2. 2023-10-28: https://gitlab.com/gitlab-org/gitlab/-/jobs/5407367764 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1053405592)
Edited by 🤖 GitLab Bot 🤖