buildkite / buildkite/agent

auto release lock on failure

Open
#2,519 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.1k
Forks
378
Avg merge
2d 6h
Merged PRs (30d)
74

Description

**Is your feature request related to a problem? Please describe.**
According to [this discussion](https://forum.buildkite.community/t/buildkite-agent-lock-what-happens-on-failure/3358/3), locks are not automatically released if a job fails.

**Describe the solution you'd like**
Automatically release locks at exit

**Describe alternatives you've considered**
The suggested solutions (using pre-exit hooks) are somewhat cumbersome.

**Additional context**

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Buildkite Agent's lock lifecycle and the job exit path, using the linked discussion for the reported failure behavior. Determine where failed jobs leave locks held and identify the existing tests around lock release or job termination. Done means locks are released automatically when a job exits, including after failure, with tests covering that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.