Skip to content

Commit 16ee4d9

Browse files
authored
Merge branch 'main' into fix/litellm-tool-id-thought-signature
2 parents b018630 + 3f51e9d commit 16ee4d9

310 files changed

Lines changed: 17778 additions & 1756 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/actions/setup-node-pnpm/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
node-version:
77
description: "Node.js version to use"
88
required: false
9-
default: "22.23.1"
9+
default: "22.23.4"
1010
pnpm-version:
1111
description: "pnpm version to use"
1212
required: false

‎.github/workflows/code-qa.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ jobs:
9898
run: pnpm check-types
9999
- name: Validate Code QA workflow
100100
run: pnpm test:code-qa-ci
101+
- name: Validate Solheim provider smoke workflow
102+
run: pnpm test:solheim-smoke-ci
103+
- name: Test Solheim provider smoke units
104+
run: pnpm test:solheim-smoke:unit
105+
- name: Check Solheim provider smoke types
106+
run: pnpm solheim-smoke:check-types
107+
- name: Test agent evals units
108+
run: pnpm test:agent-evals:unit
109+
- name: Check agent evals types
110+
run: pnpm agent-evals:check-types
101111
- name: Model-check task lifecycle protocols
102112
run: pnpm lifecycle:model-check
103113
- name: Validate MCP OAuth integration

‎.github/workflows/label-pr-review-state-fork-review-followup.yml‎

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -52,43 +52,44 @@ jobs:
5252
return;
5353
}
5454
55-
// Same-repository review runs already ran with a privileged
56-
// token and wrote their labels; only fork runs need the
57-
// follow-up.
58-
if (run.head_repository && run.head_repository.fork === false) {
59-
core.info('Ignoring same-repository pull_request_review run');
60-
return;
61-
}
62-
63-
// Resolve which PRs the completed run targeted. Fork runs
64-
// backfill pull_requests empty, so fall back to the exact head
65-
// owner, branch, and SHA lookup used by the resolve job of
66-
// label-pr-review-state.yml. Keep both copies in sync.
55+
// GitHub reports the base repository as head_repository on
56+
// every pull_request_review run, fork PR or not (issue
57+
// #2133), so the payload cannot tell fork from same-repo
58+
// runs. Dispatching for a same-repo PR is idempotent: the
59+
// reconciliation writes the same labels, and its completion
60+
// carries event 'workflow_dispatch', which the guard above
61+
// filters out.
62+
//
63+
// Resolve which PRs the completed run targeted. Review runs
64+
// backfill pull_requests empty for fork PRs, and the head
65+
// owner is not recoverable from head_repository, so the
66+
// fallback lists open PRs and matches the exact head branch,
67+
// SHA, and base repository. The workflow_run branch of
68+
// label-pr-review-state.yml keeps an owner-and-branch query
69+
// instead: its runs are CI runs triggered by pull_request,
70+
// whose head_repository is the real fork.
6771
let prNumbers = [];
6872
if (run.pull_requests?.length > 0) {
6973
prNumbers = run.pull_requests.map(pr => pr.number);
70-
} else {
71-
const headOwner = run.head_repository?.owner?.login;
72-
if (headOwner && run.head_branch && run.head_sha) {
73-
const candidates = await github.paginate(github.rest.pulls.list, {
74-
owner,
75-
repo,
76-
state: 'open',
77-
head: `${headOwner}:${run.head_branch}`,
78-
per_page: 100,
79-
});
80-
const baseRepository = `${owner}/${repo}`.toLowerCase();
81-
prNumbers = candidates
82-
.filter(pr =>
83-
pr.head?.sha === run.head_sha &&
84-
pr.base?.repo?.full_name?.toLowerCase() === baseRepository
85-
)
86-
.map(pr => pr.number);
87-
core.info(
88-
`Resolved workflow_run ${run.id ?? '(unknown)'} to ` +
89-
`${prNumbers.length} PR(s) by exact head owner, branch, and SHA`
90-
);
91-
}
74+
} else if (run.head_branch && run.head_sha) {
75+
const candidates = await github.paginate(github.rest.pulls.list, {
76+
owner,
77+
repo,
78+
state: 'open',
79+
per_page: 100,
80+
});
81+
const baseRepository = `${owner}/${repo}`.toLowerCase();
82+
prNumbers = candidates
83+
.filter(pr =>
84+
pr.head?.sha === run.head_sha &&
85+
pr.head?.ref === run.head_branch &&
86+
pr.base?.repo?.full_name?.toLowerCase() === baseRepository
87+
)
88+
.map(pr => pr.number);
89+
core.info(
90+
`Resolved workflow_run ${run.id ?? '(unknown)'} to ` +
91+
`${prNumbers.length} PR(s) by exact head branch, SHA, and base repository`
92+
);
9293
}
9394
9495
// Each dispatch starts a privileged workflow_dispatch run of the

0 commit comments

Comments
 (0)