Skip to content

Fix job unblock data precedence - #927

Open
nobradov1c wants to merge 7 commits into
buildkite:mainfrom
nobradov1c:nobradovic/fix-unblock-data-precedence
Open

Fix job unblock data precedence#927
nobradov1c wants to merge 7 commits into
buildkite:mainfrom
nobradov1c:nobradovic/fix-unblock-data-precedence

Conversation

@nobradov1c

@nobradov1c nobradov1c commented Jul 28, 2026

Copy link
Copy Markdown

Summary

  • prefer an explicitly supplied --data value over stdin in bk job unblock
  • preserve piped stdin as the fallback when --data is absent
  • add regression coverage for --data precedence, stdin fallback, and no-input behavior

Fixes #926.

Testing

  • go test -race ./cmd/job
  • go vet ./cmd/job
  • git diff --check

I also ran go test ./...; all relevant packages passed, but the existing keyring tests failed because this development environment has an active shared-memory credential store.

Comment thread cmd/job/unblock.go Outdated
Comment thread cmd/job/unblock_test.go
@nobradov1c
nobradov1c force-pushed the nobradovic/fix-unblock-data-precedence branch from e075178 to 8c68a8d Compare August 7, 2026 13:45
@nobradov1c
nobradov1c marked this pull request as ready for review August 7, 2026 14:12
@nobradov1c
nobradov1c requested review from a team as code owners August 7, 2026 14:12
@nobradov1c

Copy link
Copy Markdown
Author

Cleaned up the PR, sorry for the delay.

Comment thread cmd/job/unblock_test.go
@nobradov1c
nobradov1c force-pushed the nobradovic/fix-unblock-data-precedence branch from 7e1b271 to fe5f7c4 Compare August 14, 2026 14:40
@Damilola-obasa

Copy link
Copy Markdown

Thanks a lot! I believe this should be all good now. The status check would likely be resolved if you update the branch by merging main to this branch.

@nobradov1c

nobradov1c commented Aug 18, 2026

Copy link
Copy Markdown
Author

Thanks a lot! I believe this should be all good now. The status check would likely be resolved if you update the branch by merging main to this branch.

Updated, thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

job unblock --data is ignored when stdin is a non-TTY with no data

2 participants