Skip to content

reviewer: bypass embargo for clean patchsets - #375

Open
kuba-moo wants to merge 1 commit into
sashiko-dev:mainfrom
kuba-moo:pr-embargo-updates
Open

reviewer: bypass embargo for clean patchsets#375
kuba-moo wants to merge 1 commit into
sashiko-dev:mainfrom
kuba-moo:pr-embargo-updates

Conversation

@kuba-moo

Copy link
Copy Markdown
Contributor

Adjust the embargo behavior to only hold back the review if we found issues. As explained in the commit message embargo is supposed to delay the next submission, if there is no feedback we can't cause re-submission.

Embargoes currently delay every completed review until the configured
deadline, including reviews which found no issues. The goal of embargo
was to avoid people using Sashiko as public CI, submitting poorly tested
code to get a review. The embargo is supposed to incentivize running
reviews locally. If Sashiko has no review comments, however, we have
nothing to hide. The submitter will not send another version based on
Sashiko's result. OTOH knowing that the review is clean is useful to
maintainers.

Let's reveal the clean status immediately.

Determine the outcome after the entire patchset has completed. Completed
patchsets qualify for immediate release only when all applicable reviews
are complete and none contains findings. Both new and pre-existing
findings retain the original embargo. Failed, incomplete, and --no-ai
reviews cannot qualify as clean.

Keep the complete-clean criteria in the release query so incomplete
patchsets cannot consume the polling batch. Claim each embargo
atomically before queuing notifications. Allow stale claims to expire
after a crash. Treat finding persistence errors as review failures so
returned issues cannot be mistaken for a clean review.

Share notification handling between immediate and deadline-based
publication. Make notification insertion idempotent and keep clean
patchsets eligible for polling retries. This prevents a partial release
from stranding an embargo or duplicating output.

Update the embargo documentation and add coverage for clean early
release, pre-existing findings, incomplete reviews, and --no-ai
handling.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
@kuba-moo
kuba-moo force-pushed the pr-embargo-updates branch from 1df6919 to c3b86a0 Compare July 25, 2026 22:52
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.

1 participant