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

Summary

Failing job(s): https://ops.gitlab.net/gitlab-org/quality/canary/-/jobs/9757137

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

Corresponding test case(s): https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/368858

Stack trace

  2) Verify Pipeline with image:pull_policy when policy is allowed with [if-not-present] policy applies pull policy in job correctly
     Got 0 failures and 2 other errors:
     2.1) Failure/Error:
            Resource::ProjectRunner.fabricate! do |runner|
              runner.project = project
              runner.name = runner_name
              runner.tags = [runner_name]
              runner.executor = :docker
            end
          
          QA::Resource::Errors::ResourceNotFoundError:
            Resource at https://gitlab.com/api/v4/runners/22613269?private_token=[MASKED] could not be found (403): `{"message":"403 Forbidden - No access granted"}`.
            Correlation Id: 13c06c9ab38c25ee46948dd6d84646cc
            Sentry Url: https://sentry.gitlab.net/gitlab/gitlabcom/?environment=gprd&query=correlation_id%3A%2213c06c9ab38c25ee46948dd6d84646cc%22
            Kibana - Discover Url: https://log.gprd.gitlab.net/app/discover#/?_a=%28index:%277092c4e2-4eb5-46f2-8305-a7da2edad090%27%2Cquery%3A%28language%3Akuery%2Cquery%3A%27json.correlation_id%20%3A%2013c06c9ab38c25ee46948dd6d84646cc%27%29%29&_g=%28time%3A%28from%3A%272023-04-11T18:00:47.686Z%27%2Cto%3A%272023-04-12T18:00:47.686Z%27%29%29
            Kibana - Dashboard Url: https://log.gprd.gitlab.net/app/dashboards#/view/5e6d3440-7597-11ed-9f43-e3784d7fe3ca?_g=%28time%3A%28from:%272023-04-11T18:00:47.686Z%27%2Cto%3A%272023-04-12T18:00:47.686Z%27%29%29&_a=%28filters%3A%21%28%28query%3A%28match_phrase%3A%28json.correlation_id%3A%2713c06c9ab38c25ee46948dd6d84646cc%27%29%29%29%29%29
          # ./qa/resource/api_fabricator.rb:94:in `api_get_from'
          # ./qa/resource/api_fabricator.rb:74:in `api_get'
          # ./qa/resource/runner_base.rb:57:in `rescue in fabricate_via_api!'
          # ./qa/resource/runner_base.rb:51:in `fabricate_via_api!'
          # ./qa/resource/base.rb:65:in `block (2 levels) in fabricate_via_api!'
          # ./qa/resource/base.rb:96:in `log_and_record_fabrication'
          # ./qa/resource/base.rb:65:in `block in fabricate_via_api!'
          # ./qa/resource/base.rb:86:in `do_fabricate!'
          # ./qa/resource/base.rb:64:in `fabricate_via_api!'
          # ./qa/resource/base.rb:37:in `fabricate!'
          # ./qa/specs/features/browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb:16:in `block (3 levels) in <module:QA>'
          # ./qa/specs/spec_helper.rb:121:in `block (2 levels) in <top (required)>'
          # ./qa/specs/knapsack_runner.rb:17:in `run'
          # ./qa/specs/runner.rb:57:in `perform'
          # ./qa/scenario/template.rb:10:in `block in perform'
          # ./qa/scenario/template.rb:8:in `perform'
          # ./qa/scenario/template.rb:50:in `perform'
          # ./qa/scenario/template.rb:10:in `block in perform'
          # ./qa/scenario/template.rb:8:in `perform'
          # ./qa/scenario/bootable.rb:52:in `launch!'
          # ------------------
          # --- Caused by: ---
          # QA::Resource::Base::NoValueError:
          #   No value was computed for id of QA::Resource::ProjectRunner.
          #   ./qa/resource/base.rb:264:in `attribute_value'
     2.2) Failure/Error:
            Resource::ProjectRunner.fabricate! do |runner|
              runner.project = project
              runner.name = runner_name
              runner.tags = [runner_name]
              runner.executor = :docker
            end
          
          QA::Service::Shellout::CommandError:
            Command: `docker run -d --rm --network bridge --name qa-runner-o1z8bx7l -v /var/run/docker.sock:/var/run/docker.sock --privileged registry.gitlab.com/gitlab-org/gitlab-runner:alpine  && docker cp /tmp/gitlab-cert20230412-26-90x0nn qa-runner-o1z8bx7l:/etc/gitlab-runner/certs/gitlab.test.crt  && docker exec --detach qa-runner-o1z8bx7l sh -c "printf 'concurrent = 1\ncheck_interval = 0\n\n[session_server]\n  session_timeout = 1800' > /etc/gitlab-runner/config.toml && gitlab-runner register   --non-interactive --name qa-runner-o1z8bx7l --url https://gitlab.com --registration-token **** --tag-list qa-runner-o1z8bx7l --executor docker --docker-image registry.gitlab.com/           gitlab-org/gitlab-build-images:gitlab-qa-alpine-ruby-2.7 --docker-tlsverify=false --docker-privileged=true --docker-network-mode=bridge --docker-volumes=/certs/client && gitlab-runner run" ` failed! ✘
/builds/gitlab-org/quality/canary/.gems/bin/gitlab-qa: Command `docker run -t --rm --net=bridge --env QA_CAN_TEST_GIT_PROTOCOL_V2="$QA_CAN_TEST_GIT_PROTOCOL_V2" ...` failed! \e[31m✘\e[0m (Gitlab::QA::Support::ShellCommand::StatusError)
          # ./qa/service/shellout.rb:41:in `block in shell'
          # ./qa/service/shellout.rb:20:in `shell'
          # ./qa/service/docker_run/gitlab_runner.rb:49:in `register!'
          # ./qa/resource/runner_base.rb:111:in `block in start_container_and_register'
          # ./qa/resource/runner_base.rb:97:in `start_container_and_register'
          # ./qa/resource/runner_base.rb:56:in `rescue in fabricate_via_api!'
          # ./qa/resource/runner_base.rb:51:in `fabricate_via_api!'
          # ./qa/resource/base.rb:65:in `block (2 levels) in fabricate_via_api!'
          # ./qa/resource/base.rb:96:in `log_and_record_fabrication'
          # ./qa/resource/base.rb:65:in `block in fabricate_via_api!'
          # ./qa/resource/base.rb:86:in `do_fabricate!'
          # ./qa/resource/base.rb:64:in `fabricate_via_api!'
          # ./qa/resource/base.rb:37:in `fabricate!'
          # ./qa/specs/features/browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb:16:in `block (3 levels) in <module:QA>'
          # ./qa/specs/features/browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb:33:in `block (3 levels) in <module:QA>'
          # ./qa/specs/spec_helper.rb:121:in `block (2 levels) in <top (required)>'
          # ./qa/specs/knapsack_runner.rb:17:in `run'
          # ./qa/specs/runner.rb:57:in `perform'
          # ./qa/scenario/template.rb:10:in `block in perform'
          # ./qa/scenario/template.rb:8:in `perform'
          # ./qa/scenario/template.rb:50:in `perform'
          # ./qa/scenario/template.rb:10:in `block in perform'
          # ./qa/scenario/template.rb:8:in `perform'
          # ./qa/scenario/bootable.rb:52:in `launch!'
          # ------------------
          # --- Caused by: ---
          # QA::Resource::Base::NoValueError:
          #   No value was computed for id of QA::Resource::ProjectRunner.
          #   ./qa/resource/base.rb:264:in `attribute_value'

Screenshot / HTML page

verify_pipeline_with_image_pull_policy_when_policy_is_allowed_with_never_policy__2023-04-12-18-01-42.483.html

verify_pipeline_with_image_pull_policy_when_policy_is_allowed_with_never_policy__2023-04-12-18-01-42.483

Possible fixes