Skip to content

Commit 44b41d5

Browse files
authored
fix(scripts): avoid false PR head changes during GitHub outages (#125517)
gh exit status was treated as proof that stdout held a PR object. The Octopool cache shim reports upstream 5xx responses as exit 0 with empty stdout, so reads now use a bounded-retry validation helper. Convert 9 of 28 gh pr view sites where an empty payload could produce a wrong decision.
1 parent 4739931 commit 44b41d5

9 files changed

Lines changed: 192 additions & 23 deletions

File tree

‎scripts/pr‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@ require_cmds() {
240240

241241
require_main_target_pr() {
242242
local pr="$1"
243-
local base
244-
base=$(gh pr view "$pr" --json baseRefName --jq .baseRefName)
243+
local base base_json
244+
base_json=$(read_pr_view_json "$pr" "baseRefName") || exit 1
245+
base=$(pr_view_string_field "$base_json" "baseRefName" "$pr" "Retry the scripts/pr command.") || exit 1
245246
if [ "$base" != "main" ]; then
246247
echo "scripts/pr prepare and merge commands only support PRs targeting main; PR #$pr targets $base." >&2
247248
echo "Use the reviewed release-branch landing flow for non-main PRs." >&2

‎scripts/pr-lib/common.sh‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,60 @@ bootstrap_deps_if_needed() {
145145
fi
146146
}
147147

148+
read_pr_view_json() {
149+
local pr="$1"
150+
local fields="$2"
151+
local max_attempts=3
152+
local temp_dir
153+
temp_dir=$(mktemp -d "${TMPDIR:-/tmp}/openclaw-pr-view.XXXXXX") || {
154+
echo "Unable to create temporary storage for GitHub PR metadata." >&2
155+
return 1
156+
}
157+
local stdout_file="$temp_dir/stdout"
158+
local stderr_file="$temp_dir/stderr"
159+
local attempt exit_code reason
160+
161+
for attempt in $(seq 1 "$max_attempts"); do
162+
exit_code=0
163+
if gh pr view "$pr" --json "$fields" >"$stdout_file" 2>"$stderr_file"; then
164+
if [ -s "$stdout_file" ] && jq -se 'length == 1 and (.[0] | type == "object")' "$stdout_file" >/dev/null 2>&1; then
165+
cat "$stdout_file"
166+
rm -rf "$temp_dir"
167+
return 0
168+
fi
169+
if [ ! -s "$stdout_file" ]; then
170+
reason="gh pr view returned empty stdout"
171+
else
172+
reason="gh pr view did not return one JSON object"
173+
fi
174+
else
175+
exit_code=$?
176+
reason="gh pr view exited with status $exit_code"
177+
fi
178+
[ "$attempt" -eq "$max_attempts" ] || sleep "$attempt"
179+
done
180+
181+
echo "GitHub API failure while reading PR #$pr: $reason after $max_attempts attempts." >&2
182+
[ ! -s "$stderr_file" ] || cat "$stderr_file" >&2
183+
rm -rf "$temp_dir"
184+
return 1
185+
}
186+
187+
pr_view_string_field() {
188+
local json="$1" field="$2" pr="$3" remedy="${4:-Retry the command.}" label value
189+
case "$field" in
190+
headRefOid) label="a head SHA" ;;
191+
baseRefName) label="a base branch" ;;
192+
headRefName) label="a head branch" ;;
193+
*) label="a non-empty .$field string" ;;
194+
esac
195+
if ! value=$(printf '%s\n' "$json" | jq -er --arg field "$field" '.[$field] | if type == "string" and length > 0 then . else error("missing string field") end' 2>/dev/null); then
196+
echo "GitHub PR metadata for #$pr did not include $label. $remedy" >&2
197+
return 1
198+
fi
199+
printf '%s\n' "$value"
200+
}
201+
148202
wait_for_pr_head_sha() {
149203
local pr="$1"
150204
local expected_sha="$2"

‎scripts/pr-lib/gates.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ run_hosted_prepare_gates() {
44
local changelog_only="$3"
55
local recent_sha=""
66
local remote_record remote_head remote_head_ref remote_is_cross_repository
7-
remote_record=$(gh pr view "$pr" --json headRefName,headRefOid,isCrossRepository)
8-
remote_head=$(printf '%s\n' "$remote_record" | jq -r .headRefOid)
7+
remote_record=$(read_pr_view_json "$pr" "headRefName,headRefOid,isCrossRepository") || return 1
8+
remote_head=$(pr_view_string_field "$remote_record" "headRefOid" "$pr" "Re-run prepare-init.") || return 1
99
remote_head_ref=$(printf '%s\n' "$remote_record" | jq -r .headRefName)
1010
remote_is_cross_repository=$(printf '%s\n' "$remote_record" | jq -r .isCrossRepository)
1111
if [ "$remote_head" != "$current_head" ]; then

‎scripts/pr-lib/merge.sh‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ merge_run() {
242242
source .local/prep.env
243243

244244
local pr_meta_json
245-
pr_meta_json=$(gh pr view "$pr" --json state,isDraft)
245+
pr_meta_json=$(read_pr_view_json "$pr" "state,isDraft") || exit 1
246246
local is_draft
247247
is_draft=$(printf '%s\n' "$pr_meta_json" | jq -r .isDraft)
248248
if [ "$is_draft" = "true" ]; then
@@ -312,7 +312,7 @@ merge_run() {
312312
# artifact, exact-head, required-check, and drift check in merge_verify.
313313
if [ "$auto_merge_requested" = "true" ]; then
314314
local auto_meta
315-
auto_meta=$(gh pr view "$pr" --json state,headRefOid,mergeable,mergeStateStatus,autoMergeRequest)
315+
auto_meta=$(read_pr_view_json "$pr" "state,headRefOid,mergeable,mergeStateStatus,autoMergeRequest") || exit 1
316316
local auto_head_sha
317317
auto_head_sha=$(printf '%s\n' "$auto_meta" | jq -r .headRefOid)
318318
if [ "$auto_head_sha" != "$PREP_HEAD_SHA" ]; then
@@ -338,7 +338,7 @@ merge_run() {
338338
print_relevant_log_excerpt .local/merge-output.log
339339
exit 1
340340
fi
341-
auto_meta=$(gh pr view "$pr" --json state,headRefOid,mergeable,mergeStateStatus,autoMergeRequest)
341+
auto_meta=$(read_pr_view_json "$pr" "state,headRefOid,mergeable,mergeStateStatus,autoMergeRequest") || exit 1
342342
auto_head_sha=$(printf '%s\n' "$auto_meta" | jq -r .headRefOid)
343343
mergeable=$(printf '%s\n' "$auto_meta" | jq -r '.mergeable // "UNKNOWN"')
344344
merge_state_status=$(printf '%s\n' "$auto_meta" | jq -r '.mergeStateStatus // "UNKNOWN"')
@@ -365,7 +365,7 @@ merge_run() {
365365
--match-head-commit "$PREP_HEAD_SHA" \
366366
>.local/merge-output.log 2>&1
367367
then
368-
auto_meta=$(gh pr view "$pr" --json state,headRefOid,mergeable,mergeStateStatus,autoMergeRequest)
368+
auto_meta=$(read_pr_view_json "$pr" "state,headRefOid,mergeable,mergeStateStatus,autoMergeRequest") || exit 1
369369
auto_head_sha=$(printf '%s\n' "$auto_meta" | jq -r .headRefOid)
370370
state=$(printf '%s\n' "$auto_meta" | jq -r .state)
371371
existing_auto_method=$(printf '%s\n' "$auto_meta" | jq -r '.autoMergeRequest.mergeMethod // ""')
@@ -385,7 +385,7 @@ merge_run() {
385385
exit 1
386386
fi
387387
else
388-
auto_meta=$(gh pr view "$pr" --json state,headRefOid,autoMergeRequest)
388+
auto_meta=$(read_pr_view_json "$pr" "state,headRefOid,autoMergeRequest") || exit 1
389389
auto_head_sha=$(printf '%s\n' "$auto_meta" | jq -r .headRefOid)
390390
existing_auto_method=$(printf '%s\n' "$auto_meta" | jq -r '.autoMergeRequest.mergeMethod // ""')
391391
if [ "$auto_head_sha" = "$PREP_HEAD_SHA" ] && [ -n "$existing_auto_method" ]; then

‎scripts/pr-lib/push.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,9 @@ verify_pr_head_branch_matches_expected() {
179179
local pr="$1"
180180
local expected_head="$2"
181181

182-
local current_head
183-
current_head=$(gh pr view "$pr" --json headRefName --jq .headRefName)
182+
local current_head current_head_json
183+
current_head_json=$(read_pr_view_json "$pr" "headRefName") || exit 1
184+
current_head=$(pr_view_string_field "$current_head_json" "headRefName" "$pr" "Re-run prepare-init.") || exit 1
184185
if [ "$current_head" != "$expected_head" ]; then
185186
echo "PR head branch changed from $expected_head to $current_head. Re-run prepare-init."
186187
exit 1

‎scripts/pr-lib/worktree.sh‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,13 @@ enter_worktree() {
268268

269269
pr_meta_json() {
270270
local pr="$1"
271-
local metadata files expected_file_count actual_file_count head_before head_after
272-
metadata=$(gh pr view "$pr" --json number,title,state,isDraft,author,baseRefName,headRefName,headRefOid,headRepository,headRepositoryOwner,url,body,labels,assignees,changedFiles,additions,deletions,statusCheckRollup,files)
273-
head_before=$(printf '%s\n' "$metadata" | jq -r .headRefOid)
274-
expected_file_count=$(printf '%s\n' "$metadata" | jq -r .changedFiles)
271+
local metadata files expected_file_count actual_file_count head_before head_after head_after_json
272+
metadata=$(read_pr_view_json "$pr" "number,title,state,isDraft,author,baseRefName,headRefName,headRefOid,headRepository,headRepositoryOwner,url,body,labels,assignees,changedFiles,additions,deletions,statusCheckRollup,files") || return 1
273+
head_before=$(pr_view_string_field "$metadata" "headRefOid" "$pr" "Retry review initialization.") || return 1
274+
if ! expected_file_count=$(printf '%s\n' "$metadata" | jq -er '.changedFiles | if type == "number" and . >= 0 and . == floor then . else error("invalid changed file count") end' 2>/dev/null); then
275+
echo "Invalid PR metadata for #$pr: changedFiles must be a non-negative integer." >&2
276+
return 1
277+
fi
275278

276279
# `gh pr view --json files` is cacheable but stops at 100 entries. Use it
277280
# when complete; only large or incomplete responses spend uncached REST quota.
@@ -327,7 +330,8 @@ pr_meta_json() {
327330
fi
328331
fi
329332

330-
head_after=$(gh pr view "$pr" --json headRefOid | jq -r .headRefOid)
333+
head_after_json=$(read_pr_view_json "$pr" "headRefOid") || return 1
334+
head_after=$(pr_view_string_field "$head_after_json" "headRefOid" "$pr" "Retry review initialization.") || return 1
331335
if [ "$head_after" != "$head_before" ]; then
332336
echo "PR head changed while collecting file metadata for #$pr (started at $head_before, ended at $head_after). Retry review initialization." >&2
333337
return 1

‎test/scripts/pr-merge.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { afterEach, describe, expect, it } from "vitest";
55
import { useAutoCleanupTempDirTracker } from "../helpers/temp-dir.js";
66

77
const tempDirs = useAutoCleanupTempDirTracker(afterEach);
8+
const commonScript = join(process.cwd(), "scripts/pr-lib/common.sh");
89
const mergeScript = join(process.cwd(), "scripts/pr-lib/merge.sh");
910
const headSha = "0123456789abcdef0123456789abcdef01234567";
1011
const landedSha = "fedcba9876543210fedcba9876543210fedcba98";
@@ -89,6 +90,7 @@ process.exit(new RegExp(pattern, flags).test(readFileSync(file, "utf8")) ? 0 : 1
8990

9091
const shell = `
9192
set -euo pipefail
93+
source "$OPENCLAW_TEST_COMMON_SCRIPT"
9294
source "$OPENCLAW_TEST_MERGE_SCRIPT"
9395
script_parent_dir="$OPENCLAW_TEST_SCRIPTS_DIR"
9496
enter_worktree() { :; }
@@ -259,6 +261,7 @@ merge_run 123 "$OPENCLAW_TEST_AUTO_REQUESTED"
259261
OPENCLAW_TEST_COMMENT_BODY: commentBody,
260262
OPENCLAW_TEST_COMMENT_EMPTY: scenario.commentEmpty ? "true" : "false",
261263
OPENCLAW_TEST_COMMENT_FAILURES: String(scenario.commentFailures ?? 0),
264+
OPENCLAW_TEST_COMMON_SCRIPT: commonScript,
262265
OPENCLAW_TEST_DISABLED_AUTO_META: disabledAutoMeta,
263266
OPENCLAW_TEST_GH_CALLS: calls,
264267
OPENCLAW_TEST_LANDED_SHA: landedSha,

‎test/scripts/pr-metadata.test.ts‎

Lines changed: 107 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,41 @@ function createFakeGh(): string {
1616
set -euo pipefail
1717
1818
if [ "$1" = "pr" ] && [ "$2" = "view" ]; then
19+
pr_view_count=0
20+
if [ -f "$FAKE_PR_VIEW_COUNT_FILE" ]; then
21+
IFS= read -r pr_view_count < "$FAKE_PR_VIEW_COUNT_FILE"
22+
fi
23+
pr_view_count=$((pr_view_count + 1))
24+
printf '%s\n' "$pr_view_count" > "$FAKE_PR_VIEW_COUNT_FILE"
25+
26+
failure_target_matches=0
27+
if [ "\${FAKE_PR_VIEW_FAILURE_TARGET:-all}" = "all" ] || {
28+
[ "\${FAKE_PR_VIEW_FAILURE_TARGET:-all}" = "head" ] && [[ "$*" != *changedFiles* ]]
29+
}; then
30+
failure_target_matches=1
31+
fi
32+
if [ -n "\${FAKE_PR_VIEW_FAILURE_MODE:-}" ] && [ "$failure_target_matches" = "1" ] && {
33+
[ "\${FAKE_PR_VIEW_FAILURE_COUNT:--1}" = "-1" ] || [ "$pr_view_count" -le "\${FAKE_PR_VIEW_FAILURE_COUNT}" ]
34+
}; then
35+
echo "HTTP 503: No server is currently available to service your request. (https://api.github.com/graphql)" >&2
36+
case "$FAKE_PR_VIEW_FAILURE_MODE" in
37+
empty) exit 0 ;;
38+
exit) exit 7 ;;
39+
non-json) printf 'upstream unavailable\n'; exit 0 ;;
40+
null) printf 'null\n'; exit 0 ;;
41+
esac
42+
fi
43+
1944
if [[ "$*" == *changedFiles* ]]; then
2045
if [ "\${FAKE_REJECT_REVIEW_REQUESTS:-0}" = "1" ] && [[ "$*" == *reviewRequests* ]]; then
2146
echo "GraphQL: Resource not accessible by integration (repository.pullRequest.reviewRequests.nodes.0.requestedReviewer)" >&2
2247
exit 1
2348
fi
24-
jq -nc --argjson changedFiles "\${FAKE_CHANGED_FILES:-101}" --argjson fileCount "\${FAKE_GRAPHQL_FILE_COUNT:-100}" --argjson includeChangeType "\${FAKE_GRAPHQL_CHANGE_TYPE:-true}" '
49+
jq -nc --arg headRefOid "\${FAKE_HEAD_BEFORE-head-a}" --argjson changedFiles "\${FAKE_CHANGED_FILES:-101}" --argjson fileCount "\${FAKE_GRAPHQL_FILE_COUNT:-100}" --argjson includeChangeType "\${FAKE_GRAPHQL_CHANGE_TYPE:-true}" '
2550
{
2651
number: 42,
2752
url: "https://example.test/pr/42",
28-
headRefOid: "head-a",
53+
headRefOid: $headRefOid,
2954
changedFiles: $changedFiles,
3055
files: [
3156
range(0; $fileCount)
@@ -77,6 +102,10 @@ function readPrMetadata(
77102
graphqlChangeType?: boolean;
78103
graphqlFileCount?: string;
79104
headAfter?: string;
105+
headBefore?: string;
106+
prViewFailureCount?: string;
107+
prViewFailureMode?: "empty" | "exit" | "non-json" | "null";
108+
prViewFailureTarget?: "all" | "head";
80109
rejectReviewRequests?: boolean;
81110
restFileCount?: string;
82111
} = {},
@@ -85,7 +114,7 @@ function readPrMetadata(
85114
"bash",
86115
[
87116
"-c",
88-
"set -euo pipefail; source scripts/lib/plain-gh.sh; source scripts/pr-lib/worktree.sh; pr_meta_json 42",
117+
"set -euo pipefail; source scripts/lib/plain-gh.sh; source scripts/pr-lib/worktree.sh; source scripts/pr-lib/common.sh; pr_meta_json 42",
89118
],
90119
{
91120
cwd: process.cwd(),
@@ -96,6 +125,11 @@ function readPrMetadata(
96125
FAKE_GRAPHQL_CHANGE_TYPE: options.graphqlChangeType === false ? "false" : "true",
97126
FAKE_GRAPHQL_FILE_COUNT: options.graphqlFileCount ?? "100",
98127
FAKE_HEAD_AFTER: options.headAfter ?? "head-a",
128+
FAKE_HEAD_BEFORE: options.headBefore ?? "head-a",
129+
FAKE_PR_VIEW_COUNT_FILE: join(fakeGhDir, "pr-view-count"),
130+
FAKE_PR_VIEW_FAILURE_COUNT: options.prViewFailureCount ?? "-1",
131+
FAKE_PR_VIEW_FAILURE_MODE: options.prViewFailureMode ?? "",
132+
FAKE_PR_VIEW_FAILURE_TARGET: options.prViewFailureTarget ?? "all",
99133
FAKE_REJECT_REVIEW_REQUESTS: options.rejectReviewRequests ? "1" : "0",
100134
FAKE_REST_FILE_COUNT: options.restFileCount ?? "101",
101135
OPENCLAW_GH_BIN: join(fakeGhDir, "gh"),
@@ -216,4 +250,74 @@ describe("PR metadata", () => {
216250
"PR head changed while collecting file metadata for #42 (started at head-a, ended at head-b). Retry review initialization.",
217251
);
218252
});
253+
254+
it("rejects metadata without an observed initial head SHA", () => {
255+
const result = readPrMetadata(createFakeGh(), {
256+
changedFiles: "2",
257+
graphqlFileCount: "2",
258+
headBefore: "",
259+
});
260+
261+
expect(result.status).toBe(1);
262+
expect(result.stderr).toContain(
263+
"GitHub PR metadata for #42 did not include a head SHA. Retry review initialization.",
264+
);
265+
expect(result.stderr).not.toContain("PR head changed");
266+
});
267+
268+
it("rejects a non-numeric changed file count before shell comparison", () => {
269+
const result = readPrMetadata(createFakeGh(), { changedFiles: "null" });
270+
271+
expect(result.status).toBe(1);
272+
expect(result.stderr).toContain(
273+
"Invalid PR metadata for #42: changedFiles must be a non-negative integer.",
274+
);
275+
expect(result.stderr).not.toContain("integer expected");
276+
expect(result.stderr).not.toContain("integer expression expected");
277+
});
278+
279+
it.each([
280+
["empty stdout", "empty", "returned empty stdout"],
281+
["a non-zero exit", "exit", "exited with status 7"],
282+
["non-JSON stdout", "non-json", "did not return one JSON object"],
283+
["a non-object JSON value", "null", "did not return one JSON object"],
284+
] as const)("reports a GitHub API failure for %s", (_label, prViewFailureMode, detail) => {
285+
const result = readPrMetadata(createFakeGh(), { prViewFailureMode });
286+
287+
expect(result.status).toBe(1);
288+
expect(result.stderr).toContain(
289+
`GitHub API failure while reading PR #42: gh pr view ${detail}`,
290+
);
291+
expect(result.stderr).toContain("HTTP 503: No server is currently available");
292+
expect(result.stderr).not.toContain("integer expected");
293+
expect(result.stderr).not.toContain("PR head changed");
294+
});
295+
296+
it("reports an API failure when the post-collection head read fails", () => {
297+
const result = readPrMetadata(createFakeGh(), {
298+
changedFiles: "2",
299+
graphqlFileCount: "2",
300+
prViewFailureMode: "empty",
301+
prViewFailureTarget: "head",
302+
});
303+
304+
expect(result.status).toBe(1);
305+
expect(result.stderr).toContain(
306+
"GitHub API failure while reading PR #42: gh pr view returned empty stdout",
307+
);
308+
expect(result.stderr).not.toContain("PR head changed");
309+
});
310+
311+
it("recovers when a transient API failure is followed by a valid PR object", () => {
312+
const result = readPrMetadata(createFakeGh(), {
313+
changedFiles: "2",
314+
graphqlFileCount: "2",
315+
prViewFailureCount: "1",
316+
prViewFailureMode: "empty",
317+
});
318+
319+
expect(result.status).toBe(0);
320+
expect(result.stderr).toBe("");
321+
expect(JSON.parse(result.stdout)).toMatchObject({ headRefOid: "head-a", changedFiles: 2 });
322+
});
219323
});

‎test/scripts/pr-wrappers.test.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function makeMismatchedWrapperRepo() {
3434
mkdirSync(bin, { recursive: true });
3535
mkdirSync(home, { recursive: true });
3636
// This fixture exercises wrapper trust routing, not the host command inventory.
37-
for (const command of ["jq", "pnpm", "rg"]) {
37+
for (const command of ["pnpm", "rg"]) {
3838
const commandPath = join(bin, command);
3939
writeFileSync(commandPath, "#!/bin/sh\nexit 0\n");
4040
chmodSync(commandPath, 0o755);
@@ -44,7 +44,7 @@ function makeMismatchedWrapperRepo() {
4444
const ghStub = join(bin, "gh");
4545
writeFileSync(
4646
ghStub,
47-
'#!/bin/sh\nif [ "$1" = "pr" ] && [ "$2" = "view" ]; then\n echo not-main\n exit 0\nfi\nexit 0\n',
47+
'#!/bin/sh\nif [ "$1" = "pr" ] && [ "$2" = "view" ]; then\n printf \'{"baseRefName":"not-main"}\\n\'\n exit 0\nfi\nexit 0\n',
4848
);
4949
chmodSync(ghStub, 0o755);
5050

@@ -219,13 +219,15 @@ describe("scripts/pr wrappers", () => {
219219

220220
it("routes cached reads and writer-sensitive operations through their owning gh seams", () => {
221221
const script = readScript("scripts/pr");
222+
const common = readScript("scripts/pr-lib/common.sh");
222223
const worktree = readScript("scripts/pr-lib/worktree.sh");
223224
const review = readScript("scripts/pr-lib/review.sh");
224225
const push = readScript("scripts/pr-lib/push.sh");
225226
const merge = readScript("scripts/pr-lib/merge.sh");
226227

227-
expect(script).toContain('base=$(gh pr view "$pr" --json baseRefName --jq .baseRefName)');
228-
expect(worktree).toContain('metadata=$(gh pr view "$pr" --json');
228+
expect(script).toContain('base_json=$(read_pr_view_json "$pr" "baseRefName")');
229+
expect(common).toContain('gh pr view "$pr" --json "$fields"');
230+
expect(worktree).toContain('metadata=$(read_pr_view_json "$pr"');
229231
expect(worktree).toContain('gh_plain api --paginate "repos/{owner}/{repo}/pulls/$pr/files');
230232
expect(review).toContain("reviewer=$(gh_plain api user --jq .login");
231233
expect(review).toContain('gh_plain pr edit "$pr" --add-assignee "$reviewer"');

0 commit comments

Comments
 (0)