Skip to content

Promote the Upstream-Dependency Watcher Hold to Main - #411

Merged
ptr727 merged 3 commits into
mainfrom
develop
Nov 9, 2026
Merged

ptr727 merged 3 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

Promotes develop to main, carrying the commits in origin/main..origin/develop.

  • #410: the upstream-dependency watcher now holds while its open PR on upstream-dependency-develop carries a commit its App did not author. Before this, create-pull-request rebuilt the branch from develop on the next daily run and force-reset any maintainer commit, such as a Docker/Dockerfile change, off the review PR. The hold reads the open, same-repository PR rather than the branch. It treats a commit with no linked author as not the App's. WORKFLOW.md section 7 records the hold in the watcher section, D10.6, its audit bullet, and trace S25.
  • #412: answers this PR's review. The hold now finds the open PR by its owner-qualified head (<owner>:upstream-dependency-develop) through the REST API, so same-named fork PRs can't crowd it out. It also runs immediately before create-pull-request and gates only that step. The race left is the action's own runtime, declined under "Trust Boundaries and Hardening Effort".
  • #413: starts both of the watcher's bash blocks with set -Eeuo pipefail, per D9.3.

Neither file is upstream-version.json, so this promotion does not trigger an image publish.

Fixes #408

🤖 Generated with Claude Code

…r Commit (#410)

* Hold the Upstream-Dependency Watcher While Its PR Carries a Maintainer Commit

create-pull-request rebuilds upstream-dependency-develop from develop and
force-updates it, so a Dockerfile commit a maintainer added to the open
review PR was lost at the next daily run. The watcher now skips its
checkout, resolve, and PR steps while the open PR carries a commit the App
did not author. The check reads the open PR rather than the branch, since
merged head branches are not auto-deleted here.

WORKFLOW.md records the hold in the watcher section, D10.6, and trace S25.

Fixes #408

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Ignore a Fork's Same-Named Pull Request in the Watcher Hold

gh pr list --head matches the branch name only, so a fork's pull request
on a branch named upstream-dependency-develop would have held the watcher
for as long as it stayed open. The hold now skips cross-repository pull
requests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Hold the Watcher on a Commit With No Listed Author

A commit whose author email links to no GitHub account can come back from
gh pr list with an empty authors array, which the earlier filter skipped,
so the hold cleared. A commit with no listed author now counts as not the
App's, alongside one listed with an empty login.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings November 9, 2026 20:34
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 40 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2a7cb9c and 8ca8660.

Files selected for processing: 2

  • .github/workflows/check-upstream-dependency.yml
  • WORKFLOW.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Two critical workflow issues remain: a race can overwrite a newly pushed PR commit, and the head query can miss the repository’s held PR when same-named fork PRs fill the default results page.

2 open issues
What changed in this PR

Promotes the upstream-dependency watcher hold from develop to main, protecting maintainer commits on its open review PR and documenting the behavior.

Changes:

  • Adds held-PR detection for same-repository watcher pull requests containing non-App commits.
  • Skips checkout, dependency resolution, and PR updates while a hold is active.
  • Documents the hold in the workflow guidance, D10.6, audit evidence, and scenario S25.

This pull request requires changes.

File Review summary
.github/​workflows/​check-upstream-dependency.yml Adds held-PR detection and conditional watcher steps. Findings: preserve ERR propagation with set -Eeuo pipefail (nit, 1 vote); recheck the PR or make the branch update conditional on the observed head to prevent a race (critical, 2 votes); restrict or paginate the head query to avoid missing same-repository PRs behind fork PRs (critical, 1 vote).
WORKFLOW.md Documents the watcher hold, guarantee, audit coverage, and S25 verification scenario.

Review effort: Lite

…ep (#412)

gh pr list matched the head by branch name and read only its default
page, so enough same-named fork pull requests could push the real one off
that page and clear the hold. The check now asks the REST API for
<owner>:upstream-dependency-develop, which returns only this repository's
pull request, then reads that one pull request's commits.

The check also moves to immediately before create-pull-request and gates
only that step, since checkout and resolve write nothing remote. That
leaves the action's own runtime as the only window for a push to race it.

Co-authored-by: Claude Opus 5.5 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new multi-line Bash block omits the repository-required set -Eeuo pipefail ERR-trap mode, leaving an active workflow-convention issue.

1 open issue
2 resolved since last review

Review effort: Lite

WORKFLOW.md D9.3 and GOVERNANCE.md "Workflow YAML Conventions" require
every multi-line bash run block to start with set -Eeuo pipefail, so an
ERR trap is inherited by functions and subshells. Both of this workflow's
blocks used set -euo pipefail, the held step and the resolve step alike.

Co-authored-by: Claude Opus 5.5 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes address the watcher’s maintainer-commit overwrite risk through scoped pull-request detection, targeted creation gating, shell hardening, and corresponding documentation, with no unresolved review issues indicated.

No open issues 🎉

1 resolved since last review

Review effort: Lite

@ptr727
ptr727 merged commit 9045a80 into main Nov 9, 2026
13 checks passed
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.

Upstream-Dependency Watcher Overwrites a Maintainer Commit on Its Open PR

2 participants