Skip to content

recover the review hook lock after a killed delivery #158

Closed

Description

@muspi-merol-review

scripts/review-hook.sh at b96823b acquires $RUNNER_TEMP/injected-deliveries.lock with mkdir and waits forever. The EXIT trap removes it on a normal exit, but a hook killed by a timeout, SIGTERM, OOM, or sandbox cancellation leaves the directory behind. Every later hook then spins in until mkdir ...; do sleep 0.01; done, so the review stops receiving activity and blocks until its deadline.

Repro: create $RUNNER_TEMP/injected-deliveries.lock, then run timeout 1 bash scripts/review-hook.sh with a Stop payload; it exits 124 and produces no output. A hook killed after acquiring the lock leaves the same state.

A bounded wait with stale-lock recovery (owner PID/age or a lock released on process death) would avoid the permanent block while keeping delivery serialized.

Seen while pinning the hosted runner in promplate/platform 1658c905fa367e301a1748109f327feba08322ed.

Activity

  1. coderabbitai commented on Nov 22, 2026

    @coderabbitai
    🔗 Related PRs

    #152 - collect hosted review metadata through a scoped relay [closed]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions