Skip to content

Add workflow that opens a PR bumping the min overlay version - #5475

Merged
sisuresh merged 2 commits into
stellar:masterfrom
sisuresh:overlay-min-version-bump
Oct 16, 2026
Merged

sisuresh merged 2 commits into
stellar:masterfrom
sisuresh:overlay-min-version-bump

Conversation

@sisuresh

@sisuresh sisuresh commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Adds a daily workflow that reads pubnet's protocol version from Horizon and, once every release supporting that protocol has an overlay version above OVERLAY_PROTOCOL_MIN_VERSION, opens (or updates) a single PR raising the min to the lowest such overlay version and asking the reviewer to verify the versions. scripts/check-overlay-min-version.sh also fails if the min is above that value. Follow-up to #5316.

@sisuresh

sisuresh commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Example PR in my fork - sisuresh#20

@sisuresh
sisuresh marked this pull request as ready for review October 1, 2026 21:19
@sisuresh
sisuresh requested review from drebelsky and a balanced review from Copilot October 1, 2026 21:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The workflow permits shell injection from external data, may not replace closed bot PRs, and can swallow historical parsing failures.

Review effort: Balanced
Findings: 1 High severity · 2 Medium severity

Open (3)
What changed in this PR

Adds automation to align the minimum overlay version with pubnet’s active ledger protocol.

Changes:

  • Adds a script to calculate, validate, and apply the permitted minimum overlay version.
  • Adds a daily workflow that updates a bot branch and opens a pull request.
File Description
scripts/​check-overlay-min-version.sh Determines and applies the appropriate overlay minimum.
.github/​workflows/​overlay-min-version.yml Automates pubnet checks and pull request creation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/check-overlay-min-version.sh Resolved
Copilot AI balanced review requested due to automatic review settings October 1, 2026 21:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The script cannot parse the current protocol definition, preventing the workflow from reaching PR creation.

2 open findings
3 resolved since last review

🧠 Review effort: Balanced

Comment thread scripts/check-overlay-min-version.sh Resolved
Copilot AI balanced review requested due to automatic review settings October 14, 2026 00:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Manual dispatch can target unintended branches, and updated bot PRs can retain stale metadata.

2 open findings
1 resolved since last review
Previously missed (1)

In code that hasn't changed since last review

Medium severity Restrict manual runs to the default branch

.github/​workflows/​overlay-min-version.yml:22

workflow_dispatch can run this job from any selected branch. In that case the checkout and BASE both use that branch, while the fixed bot branch is force-pushed, so a manual run can publish unrelated feature commits and interfere with the bot PR intended for the default branch. Restrict this job to the repository default branch (or explicitly check out and target it).

🧠 Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 14, 2026 01:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

PR discovery can be spoofed by fork branches, and updated PR metadata can become stale.

2 open findings
Previously missed (1)

In code that hasn't changed since last review

Medium severity Restrict open PR lookup to the same repository

.github/​workflows/​overlay-min-version.yml:57

--head filters only by branch name, so an open PR from a fork with a branch named bot/bump-overlay-min-version can make OPEN_PR nonempty. The job then skips creating its own PR, and later runs can keep exiting against the internal branch, allowing an external contributor to suppress this automation. Restrict the result to same-repository PRs.

🧠 Review effort: Balanced

Once pubnet is on a new protocol, raises OVERLAY_PROTOCOL_MIN_VERSION to the lowest
OVERLAY_PROTOCOL_VERSION among releases supporting it, in a PR that asks the
reviewer to verify the versions.
Copilot AI balanced review requested due to automatic review settings October 14, 2026 01:35
@sisuresh
sisuresh force-pushed the overlay-min-version-bump branch from 3e40695 to 47a40f3 Compare October 14, 2026 01:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The workflow can overwrite its shared branch from non-default refs and its token-generated PR will not trigger pull-request CI.

3 open findings
1 resolved since last review

🧠 Review effort: Balanced

Release majors match the ledger protocol, so the script no longer reads
CURRENT_LEDGER_PROTOCOL_VERSION/MAX_SUPPORTED_PROTOCOL_VERSION from old releases.
Copilot AI balanced review requested due to automatic review settings October 15, 2026 18:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Release-tag compatibility assumptions and authenticated PR automation warrant final human verification.

3 open findings

🧠 Review effort: Balanced

@sisuresh
sisuresh enabled auto-merge October 16, 2026 18:58
@sisuresh
sisuresh added this pull request to the merge queue Oct 16, 2026
Merged via the queue into stellar:master with commit 4b7697e Oct 16, 2026
59 of 61 checks passed
@sisuresh
sisuresh deleted the overlay-min-version-bump branch October 16, 2026 20:11
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.

3 participants