Skip to content

fix how resources with check_every: never are handled when scheduling builds - #9598

Merged
taylorsilva merged 1 commit into
masterfrom
9592-fix-check-every-never-scheduling
Jun 11, 2026
Merged

taylorsilva merged 1 commit into
masterfrom
9592-fix-check-every-never-scheduling

Conversation

@taylorsilva

@taylorsilva taylorsilva commented Jun 10, 2026 •

Copy link
Copy Markdown
Member

Changes proposed by this PR

closes #9590 #9592

  1. Removed the If-check in check_delegate. It was a little redundant to
    have since we check this in Lidar already and it would be overridden
    if manually checked. It wound up overriding the intention from the
    component that sent the check in the first place. This allows our
    call that creates checks in the Scheduler to go through and actually
    run the check.

  2. In lidar, we'll override Never == true if the resource has never been
    previously checked. We do this by checking if the resource has a
    scope ID. This helps ensure pipelines that are initially set check
    the resource at least once and therefore allow any automatically
    triggered jobs to run.
    Removed this change because I realized it would be a breaking change in behaviour. I confirmed that resource checking behaved this way in previous versions, therefore I don't want to change that unnecessarily when users may be relying on it when setting their pipelines. I have updated the docs to reflect this reality.

Another approach I looked at was trying to see if we could easily look up if a resource has check_every: never set. Sadly that information is not normalized in the database, it's sitting in a text column that stores json, making it a tad too expensive for me to want to query. Why not a jsonb column? It's probably a really old table and it's not worth the migration pain.

@taylorsilva taylorsilva added this to the v8.2.4 milestone Jun 10, 2026
@taylorsilva
taylorsilva requested a review from a team June 10, 2026 20:39
Removed the If-check in check_delegate. It was a little redundant to
have since we check this in Lidar already and it would be overridden if
manually checked. It wound up overriding the intention from the
component that sent the check in the first place. This allows our call
that creates checks in the Scheduler to go through and actually run the
check.

Another approach I looked at was trying to see if we could easily look
up if a resource has `check_every: never` set. Sadly that information is
not normalized in the database, it's sitting in a text column that
stores json, making it a tad too expensive for me to want to query.

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva force-pushed the 9592-fix-check-every-never-scheduling branch from 82f8513 to 1a76a02 Compare June 11, 2026 00:34
@taylorsilva
taylorsilva merged commit bdfdd64 into master Jun 11, 2026
12 checks passed
@taylorsilva
taylorsilva deleted the 9592-fix-check-every-never-scheduling branch June 11, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manually triggered serial jobs can deadlock when all inputs are non-trigger and check_every is never

1 participant