Skip to content

Runner stuck missing messages

Summary

This is to cover all the bugs we have with when the job is stuck, we are missing from showing any banners:

This job is stuck, because you don't have any active runners that can run this job.

11-3-stable 11-4-stable
Screen_Shot_2018-10-18_at_10.03.28 Screen_Shot_2018-10-18_at_10.23.00

This job is stuck, because you don't have any active runners online with any of these tags assigned to them:

11-3-stable 11-4-stable
Screen_Shot_2018-10-18_at_10.34.20 Screen_Shot_2018-10-18_at_10.31.42

This job is stuck, because the project doesn't have any runners online assigned to it.

11-3-stable 11-4-stable
Screen_Shot_2018-10-18_at_10.55.08 Screen_Shot_2018-10-18_at_10.31.42

Steps to reproduce

This job is stuck, because you don't have any active runners that can run this job.

  • Have a pending job
  • All runners are paused

This job is stuck, because you don't have any active runners online with any of these tags assigned to them:

  • Have a pending job with tag inside of it, just like the following .gitlab-ci.yml
  • All runners are paused

This job is stuck, because the project doesn't have any runners online assigned to it.

  • Have pending jobs
  • None of the runners are lonline

What is the current bug behavior?

  • Nothing is being shown

What is the expected correct behavior?

Showing the error messages the same as 11.3

Results of GitLab application Check

11.4.0-RCx

Possible fixes

!22442 (merged) will partially fix this, but still missing This job is stuck, because you don't have any active runners online with any of these tags assigned to them: If we do not want to port !22442 (merged) to 11.4 we would need to fix isJobStuck from the frontend side of things and have everything in frontend and then pay off the tech debt in %11.5 like we intend to.

The haml template we had before is the following

- if @build.stuck?
      - unless @build.any_runners_online?
        .bs-callout.bs-callout-warning.js-build-stuck
          %p
            - if no_runners_for_project?(@build.project)
              This job is stuck, because the project doesn't have any runners online assigned to it.
            - elsif @build.tags.any?
              This job is stuck, because you don't have any active runners online with any of these tags assigned to them:
              - @build.tags.each do |tag|
                %span.badge.badge-primary
                  = tag
            - else
              This job is stuck, because you don't have any active runners that can run this job.

            %br
            Go to
            = link_to project_runners_path(@build.project, anchor: 'js-runners-settings') do
              Runners page