Skip to content

ci: port shared engineer bot learnings - #1027

Merged
vuanhphung merged 1 commit into
mainfrom
vu-phung/port-engineer-bot-learnings
Nov 14, 2026
Merged

vuanhphung merged 1 commit into
mainfrom
vu-phung/port-engineer-bot-learnings

Conversation

@vuanhphung

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • Other — CI and bot guidance

Description

Port the shared engineer/reviewer bot lessons from databricks/databricks-sql-nodejs#571 and #572: keep changes within maintainer scope, ground findings in evidence, select unit or live tests by behavior, and handle stale reviews. Follow-ups load trusted default-branch config; agents cannot edit their own .bot/ settings.

Sync conflicting bot PRs only when CHANGELOG.md changes are additive # Unreleased entries. Other conflicts receive a maintainer comment. Sync is limited to PRs targeting the default branch.

How is this tested?

  • Unit tests

Passed 18 local changelog/branch-sync cases, YAML parsing, shell syntax checks, and git diff --check. Added a CI workflow to run the sync tests.

Related Tickets & Documents

databricks/databricks-sql-nodejs#571
databricks/databricks-sql-nodejs#572


This PR was created with GitHub MCP.

@peco-review-bot peco-review-bot Bot 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.

Verdict: 1 Low

Looks good. I found one low-severity issue: gh pr list --limit 100 can silently skip bot PRs past the first 100. The sync script handles this repo's # X.Y.Z (date) changelog headings correctly, and the trusted-config and fork gating hold up. Not verified: the engine's --bot flag isn't visible from this repo. Nit: the comment near engineer-bot.yml's live-warehouse env still says the flow always reproduces the bug through tests/e2e, which no longer matches the new choice between unit and e2e tests.

@peco-review-bot peco-review-bot Bot 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.

Verdict: 1 Low

Looks good overall, with one low concern: the new sync job can race with a follow-up run that is already in progress on the same PR. The changelog-merge logic and its tests reject everything except additive Unreleased entries. Main-branch config is extracted with git archive, which keeps the agent from editing its own config. I couldn't check whether the pinned engine supports the new --bot flag because no engine context repo is available. Nit: two lines in sync-engineer-bot-prs.py (the SECTION regex and the gh pr list call) go past the 100-char limit in CONTRIBUTING.md. Also, --limit 100 will silently skip any PRs beyond 100.

@vuanhphung
vuanhphung added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
@vuanhphung
vuanhphung added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
@vuanhphung
vuanhphung added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
@vuanhphung
vuanhphung added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit b4cec22 Nov 14, 2026
53 checks passed
@vuanhphung
vuanhphung deleted the vu-phung/port-engineer-bot-learnings branch November 14, 2026 00:59

This branch was previously deployed

1 inactive deployment
azure-prod — ff132195 Deployed Nov 13, 2026 by peco-review-bot[bot] via followup #2247
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants