This is an automated email from the ASF dual-hosted git repository.
hello-stephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new f550a4374ec [chore](ci) Accept Gemini 4 and GPT-6.2 local review
receipts (#70881)
f550a4374ec is described below
commit f550a4374ec1642f323ecd9f8119d16533aecac9
Author: 924060929 <[email protected]>
AuthorDate: Mon Nov 23 18:57:45 2026 +0800
[chore](ci) Accept Gemini 4 and GPT-6.2 local review receipts (#70881)
### Background
When a committer runs the `doris-repo-review` workflow locally and
reaches a converged `APPROVE` verdict, the skill posts a
machine-readable `doris-repo-review/v1` comment on the pull request.
`.github/workflows/code-review-sync-result.yml` runs
`.github/scripts/validate_review_pass_comment.py` against that comment
and marks the `code-review` commit status as successful when the commit,
base lag, author permission, model, and effort all pass.
### What problem does this PR solve?
Issue Number: None
Related PR: #68677 (builds on)
PR Type: Build/CI/Chore
Problem Summary:
Local pipeline-equivalent reviews performed with `gpt-6.2-astra`,
`gpt-6.2-sol`, `gemini-4-carbon`, or `gemini-4-neon` are rejected by
`.github/scripts/validate_review_pass_comment.py` with `INVALID: model
is not allowed`. Extend `ALLOWED_EFFORTS_BY_MODEL` to accept
`gpt-6.2-astra` and `gpt-6.2-sol` at `xhigh`, `max`, or `ultra`,
`gemini-4-carbon` at `high` (its highest published reasoning tier), and
`gemini-4-neon` at `xhigh`, while preserving every existing model and
effort decision. Most of the diff adds unit tests for the new
combinations, per-model effort gates, and unlisted near-miss
identifiers. Existing pull requests and CI review runs are unaffected.
### Details
- **Affected:** `.github/scripts/validate_review_pass_comment.py` and
`.github/scripts/test_validate_review_pass_comment.py` executed by
`.github/workflows/code-review-sync-result.yml` on Ubuntu GitHub Actions
runners (Python 3).
- **Developer and release impact:** Maintainers with `write` or `admin`
repository permission can satisfy the `code-review` status check using
verified local review receipts from GPT-6.2 Astra/Sol on Codex and
Gemini 4 Carbon (`high`) or Gemini 4 Neon (`xhigh`) on Antigravity once
the companion `apache/doris-skills` sender update lands. No release
impact.
- **License and third-party:** None.
- **Rollback:** Revert this commit; no workflow permissions, secrets,
runner images, or caches are changed.
### Testing
- `python3 -m unittest discover -s .github/scripts -p
test_validate_review_pass_comment.py -v` locally on macOS: 27 tests
passed, covering all 29 allowed model/effort pairs, lower and
unsupported effort rejection (`high` rejected for `gemini-4-neon` and
Codex/Claude models; `xhigh`, `max`, and `ultra` rejected for
`gemini-4-carbon`), retired models, and unlisted near-miss identifiers
(`gemini-4-carbon-high`, `gemini-4-neon-xhigh`,
`gemini-pro-orchestrator`, `gpt-6.2`).
- Cross-repository policy matrix locally against the companion
`apache/doris-skills` sender policy: 352 model/effort combinations agree
with zero mismatches (29 accepted, adding only the 8 intended
combinations over the 21-combination baseline), and a mocked
`gemini-4-carbon` (`high`) receipt rendered by `post-pass-comment.sh
--dry-run` passes `validate_review_pass_comment.py validate`.
### Notes for Reviewers
- Merge this receiver update before the companion sender PR
(https://github.com/apache/doris-skills/pull/18) so newly posted
receipts are accepted immediately on `master`.
- `gemini-4-carbon` publishes `high` as its maximum reasoning effort
tier (no `xhigh` variant exists), whereas `gemini-4-neon` publishes
`xhigh` (`Extra` in the Antigravity UI); unsplit CLI suffixes
(`gemini-4-carbon-high`, `gemini-4-neon-xhigh`) and
`gemini-pro-orchestrator*` identifiers are rejected so receipts carry
canonical split `model` and `effort` fields from standalone runs.
### Release note
None
### Check List (For Author)
- Behavior changed: No
- Does this need documentation: No
- Pre-submission status: Ready
### AI Disclosure
- Tool: Antigravity (Gemini 4 Carbon High)
- Generated: code, tests, this description
- Human review: not stated
- Prompts: Asked whether `doris-repo-review` could add Gemini 4 Neon
(`xhigh`) and Carbon (`high`), then requested companion PRs across
`apache/doris` and `apache/doris-skills` adding `gemini-4-carbon`
(`high`), `gemini-4-neon` (`xhigh`), `gpt-6.2-astra`, and `gpt-6.2-sol`
while keeping existing models and Codex defaults unchanged.
---
.../scripts/test_validate_review_pass_comment.py | 47 +++++++++++++++++++++-
.github/scripts/validate_review_pass_comment.py | 4 ++
2 files changed, 50 insertions(+), 1 deletion(-)
diff --git a/.github/scripts/test_validate_review_pass_comment.py
b/.github/scripts/test_validate_review_pass_comment.py
index 97c0bbbc591..f9e301f92ac 100644
--- a/.github/scripts/test_validate_review_pass_comment.py
+++ b/.github/scripts/test_validate_review_pass_comment.py
@@ -86,9 +86,17 @@ class ValidateReviewPassCommentTest(unittest.TestCase):
("claude-fable-5-1", "max"),
("claude-fable-5-1[1m]", "xhigh"),
("claude-fable-5-1[1m]", "max"),
+ ("gpt-6.2-sol", "xhigh"),
+ ("gpt-6.2-sol", "max"),
+ ("gpt-6.2-sol", "ultra"),
+ ("gpt-6.2-astra", "xhigh"),
+ ("gpt-6.2-astra", "max"),
+ ("gpt-6.2-astra", "ultra"),
("gpt-6-astra", "xhigh"),
("gpt-6-astra", "max"),
("gpt-6-astra", "ultra"),
+ ("gemini-4-carbon", "high"),
+ ("gemini-4-neon", "xhigh"),
)
for model, effort in combinations:
with self.subTest(model=model, effort=effort):
@@ -108,6 +116,25 @@ class ValidateReviewPassCommentTest(unittest.TestCase):
with self.assertRaisesRegex(ValidationError, "is not allowed
for model"):
validate(make_comment(model=model, effort="ultra"))
+ def test_rejects_unsupported_efforts_for_gemini_models(self) -> None:
+ cases = (
+ ("gemini-4-carbon", "none"),
+ ("gemini-4-carbon", "minimal"),
+ ("gemini-4-carbon", "low"),
+ ("gemini-4-carbon", "medium"),
+ ("gemini-4-carbon", "xhigh"),
+ ("gemini-4-carbon", "max"),
+ ("gemini-4-carbon", "ultra"),
+ ("gemini-4-carbon", "unknown"),
+ ("gemini-4-carbon", ""),
+ ("gemini-4-neon", "max"),
+ ("gemini-4-neon", "ultra"),
+ )
+ for model, effort in cases:
+ with self.subTest(model=model, effort=effort):
+ with self.assertRaisesRegex(ValidationError, "is not allowed
for model"):
+ validate(make_comment(model=model, effort=effort))
+
def test_rejects_retired_models(self) -> None:
for model in ("gpt-5.6-sol", "claude-opus-5", "claude-opus-5[1m]"):
for effort in ("xhigh", "max", "ultra"):
@@ -123,9 +150,12 @@ class ValidateReviewPassCommentTest(unittest.TestCase):
"claude-fable-5[1m]",
"claude-fable-5-1",
"claude-fable-5-1[1m]",
+ "gpt-6.2-sol",
+ "gpt-6.2-astra",
"gpt-6.1-sol",
"gpt-6-sol",
"gpt-6-astra",
+ "gemini-4-neon",
):
for effort in ("none", "minimal", "low", "medium", "high",
"unknown", ""):
with self.subTest(model=model, effort=effort):
@@ -133,7 +163,22 @@ class ValidateReviewPassCommentTest(unittest.TestCase):
validate(make_comment(model=model, effort=effort))
def test_rejects_unlisted_model(self) -> None:
- for model in ("gpt-5.6", "gpt-6.1", "gpt-6.1-sol-preview",
"gpt-6.1-sol[1m]"):
+ for model in (
+ "gpt-5.6",
+ "gpt-6.1",
+ "gpt-6.1-sol-preview",
+ "gpt-6.1-sol[1m]",
+ "gpt-6.2",
+ "gpt-6.2-astra-preview",
+ "gpt-6.2-sol[1m]",
+ "gemini-4",
+ "gemini-4-carbon-high",
+ "gemini-4-neon-xhigh",
+ "gemini-4-argon",
+ "gemini-4-hydrogen",
+ "gemini-pro-orchestrator",
+ "gemini-pro-orchestrator-neon",
+ ):
with self.subTest(model=model):
with self.assertRaisesRegex(ValidationError, "model is not
allowed"):
validate(make_comment(model=model))
diff --git a/.github/scripts/validate_review_pass_comment.py
b/.github/scripts/validate_review_pass_comment.py
index 4dbb8020fc9..6a9b9fb3ea8 100644
--- a/.github/scripts/validate_review_pass_comment.py
+++ b/.github/scripts/validate_review_pass_comment.py
@@ -22,9 +22,13 @@ ALLOWED_EFFORTS_BY_MODEL = {
"claude-fable-5[1m]": frozenset({"xhigh", "max"}),
"claude-fable-5-1": frozenset({"xhigh", "max"}),
"claude-fable-5-1[1m]": frozenset({"xhigh", "max"}),
+ "gpt-6.2-sol": frozenset({"xhigh", "max", "ultra"}),
+ "gpt-6.2-astra": frozenset({"xhigh", "max", "ultra"}),
"gpt-6.1-sol": frozenset({"xhigh", "max", "ultra"}),
"gpt-6-sol": frozenset({"xhigh", "max", "ultra"}),
"gpt-6-astra": frozenset({"xhigh", "max", "ultra"}),
+ "gemini-4-carbon": frozenset({"high"}),
+ "gemini-4-neon": frozenset({"xhigh"}),
}
ALLOWED_AUTHOR_PERMISSIONS = frozenset({"write", "admin"})
EXPECTED_FIELDS = (
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]