Skip to content

Resource with check_every: never deadlocks the job(serial: true + a trigger: true) , stuck at pending #9665

Closed

Description

@sankar17

Summary

On Concourse 8.2.4, a job with serial: true whose trigger: true input has check_every: never never gets that resource's initial automatic check. The build sits in pending ("waiting for a suitable set of input versions... latest version of resource not found") forever, until a fly check-resource is run manually.

Removing serial: true (everything else identical) makes the same resource get its automatic first check within seconds, and the job runs normally with zero manual intervention.

This looks like an incompletely-fixed variant of #9590. That issue's repro used a job where all inputs were non-trigger get steps with check_every: never, and was closed as fixed in the 8.2.4 milestone. This repro instead has the check_every: never resource as the trigger itself (trigger: true), a combination that appears to still deadlock under serial: true after the #9598 fix.

Steps to Reproduce

Environment:
Concourse: 8.2.4 (quickstart, containerd runtime)
Previously not observed on Concourse 8.1.x (upgrade-triggered regression)
Related: #9590, #9592, #9598, #9573

Hangs (serial: true):

resources:
  - name: pcf-image
    type: registry-image
    source:
      repository: busybox
  - name: pcf-repo
    type: git
    check_every: never
    source:
      uri: https://github.com/concourse/git-resource.git
      branch: master

jobs:
  - name: verify-image
    serial: true
    plan:
      - get: pcf-image
      - get: pcf-repo
        trigger: true
      - task: verify-image
        image: pcf-image
        config:
          platform: linux
          inputs: [{name: pcf-repo}]
          run: {path: sh, args: ["-cx", "echo SUCCESS"]}

Works fine - identical, minus serial: true:

resources:
  - name: pcf-image
    type: registry-image
    source:
      repository: busybox
  - name: pcf-repo
    type: git
    check_every: never
    source:
      uri: https://github.com/concourse/git-resource.git
      branch: master

jobs:
  - name: verify-image
    plan:
      - get: pcf-image
      - get: pcf-repo
        trigger: true
      - task: verify-image
        image: pcf-image
        config:
          platform: linux
          inputs: [{name: pcf-repo}]
          run: {path: sh, args: ["-cx", "echo SUCCESS"]}

Steps:

fly -t <target> set-pipeline -p repro -c <file>.yml -n
fly -t <target> unpause-pipeline -p repro
fly -t <target> trigger-job -j repro/verify-image

Observed (with serial: true)
ATC logs show zero check attempts on pcf-repo for 80–110+ seconds (verified via docker logs | grep).
Build stays pending with missing_input_reasons: {"pcf-repo": "latest version of resource not found"} via GET /api/v1/builds/:id/preparation.
Running fly check-resource -r repro/pcf-repo once immediately unblocks the pending build, which then succeeds.

Observed (without serial: true, otherwise identical)
ATC logs show a check attempt on pcf-repo within ~1–7 seconds of set-pipeline.
Build self-resolves and succeeds within ~20–25 seconds with zero manual intervention.
Verified this A/B twice in the same warmed-up environment (not a cold-start artifact) - consistent both times.

Expected Results

serial: true should not change whether a trigger: true resource with check_every: never gets its one-time bootstrap check.

Actual Results

No response

Web Node(s) configuration

No response

Worker(s) configuration

No response

Concourse Version

8.2.4

Browser (if applicable)

No response

Did this use to work?

Yes , it was working with 8.1

Activity

  1. moved this from Icebox to In progress in Concourse Roadmapon Jul 29, 2026
  2. taylorsilva commented on Jul 29, 2026

    @taylorsilva
    Member

    I've got a fix for this. I will note that serial: true has no effect on determining when resources are checked.

    The reason your resource wasn't being checked was only because of check_every: never causing lidar to skip the resource here:

    if checkable.CheckEvery() != nil && checkable.CheckEvery().Never {
    return
    }

    I tried your initial steps to reproduce and removing serial: true from the job had no effect. The resource remained unchecked and the job never started.

    After locally fixing the code to check the resource, I wondered if there was a second bug related to serial: true and the job not scheduling. I didn't notice anything though. Once I fixed the resource checking, the job automatically ran as expected.

  3. taylorsilva commented on Jul 29, 2026

    @taylorsilva
    Member

    I realized I missed one thing from your report which is that you're manually triggering the job. I see that the resource doesn't get checked and I fully expect it to. Still not sure how serial: true affects that, but digging into it now.

  4. moved this from In progress to Done in Concourse Roadmapon Jul 31, 2026
  5. sanjimoh commented on Aug 3, 2026

    @sanjimoh

    @taylorsilva - Thanks for turning this around quickly.

    One follow-up on where the fix lands. Would this change see it on release/8.2.x too? I tried the cherry-pick locally and it applies to release/8.2.x with no conflicts. Also, six commits have landed on release/8.2.x since v8.2.4 was tagged on 16 June. So, two questions: is an 8.2.5 on the cards, and would you take a backport PR for this one?

  6. taylorsilva commented on Aug 3, 2026

    @taylorsilva
    Member

    Just cherry picked it over and yes you can expect an 8.2.5 release.

  7. sanjimoh commented on Aug 3, 2026

    @sanjimoh

    Thanks @taylorsilva , that was quick. Any rough sense of when 8.2.5 might tag? I'm trying to work out whether to plan around it.

  8. sanjimoh commented on Aug 4, 2026

    @sanjimoh

    @taylorsilva, I do see now the new 8.2.5 tag. Thank you! I've one observation on the release/8.2.x branch of Concourse Chart - https://github.com/concourse/concourse-chart/blob/release/8.2.x/Chart.yaml#L5. It still pointing to 8.2.4 instead of the new 8.2.5 tag. Would you be able to help fixing this up?

  9. taylorsilva commented on Aug 4, 2026

    @taylorsilva
    Member

    Yup the chart has been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions