Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/observe-go-cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ observe() {
trap 'rm -rf "$scratch"' EXIT
mkdir "$scratch/logs"
gh api "repos/devantler-tech/.github/actions/runs/$run/attempts/$attempt" >"$scratch/run.json" || fail 'run metadata read failed'
gh api --paginate --slurp "repos/devantler-tech/.github/actions/runs/$run/attempts/$attempt/jobs?per_page=100" >"$scratch/jobs.json" || fail 'complete current-attempt job read failed'
gh api --paginate --slurp "repos/devantler-tech/.github/actions/runs/$run/attempts/$attempt/jobs?per_page=50" >"$scratch/jobs.json" || fail 'complete current-attempt job read failed'
jobs="$scratch/jobs.json"
validate_jobs
# Older gh versions print log bytes directly and do not accept this option.
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/catalogue-credentials/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ func checkWiring(w object) error {
}
// Pin the complete reviewed reducer, including native queue proof; arbitrary
// Bash mentions are not result admission and must not bypass either check.
if fmt.Sprintf("%x", sha256.Sum256([]byte(text(s["run"])))) != "62c7d254f2998fe3861ede8fc5c356eb38defe8e8c9be211f23af062d12ac277" {
if fmt.Sprintf("%x", sha256.Sum256([]byte(text(s["run"])))) != "87e47c8778ac03a6bddf68125ce26b580aa75ed40aba2a276f4310dbf8e5c438" {
return fail()
}
results = true
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/test-ci-selection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mkdir "$work/bin"
cat > "$work/bin/gh" <<'SH'
#!/usr/bin/env bash
set -euo pipefail
[[ "$*" == 'api repos/devantler-tech/fixture/actions/runs/123/attempts/2/jobs?per_page=100 --paginate --slurp' ]] || exit 99
[[ "$*" == 'api repos/devantler-tech/fixture/actions/runs/123/attempts/2/jobs?per_page=50 --paginate --slurp' ]] || exit 99
cat "$QUEUE_FIXTURE"
SH
chmod +x "$work/bin/gh"
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/test-go-cache-native-observer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ case "$*" in
[[ "${FAIL_HELP_READ:-false}" != true ]] || exit 1
if [[ "${MODERN_CLI:-false}" == true ]]; then printf ' --allow-escape-sequences Allow printing terminal escape sequences\n'; else printf ' --include Include HTTP response status line\n'; fi ;;
'api repos/devantler-tech/.github/actions/runs/23/attempts/2') cat "$OBSERVER_FIXTURE/run.json" ;;
'api --paginate --slurp repos/devantler-tech/.github/actions/runs/23/attempts/2/jobs?per_page=100')
'api --paginate --slurp repos/devantler-tech/.github/actions/runs/23/attempts/2/jobs?per_page=50')
[[ "${FAIL_JOB_READ:-false}" != true ]] || exit 1
cat "$OBSERVER_FIXTURE/jobs.json" ;;
'api repos/devantler-tech/.github/actions/jobs/'*'/logs')
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/test-native-queue-gate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mkdir "$work/bin"
cat > "$work/bin/gh" <<'SH'
#!/usr/bin/env bash
set -euo pipefail
[[ "$*" == 'api repos/devantler-tech/fixture/actions/runs/123/attempts/2/jobs?per_page=100 --paginate --slurp' ]] || exit 99
[[ "$*" == 'api repos/devantler-tech/fixture/actions/runs/123/attempts/2/jobs?per_page=50 --paginate --slurp' ]] || exit 99
printf 'read\n' >> "$FIXTURE/reads"
cat "$FIXTURE/response.json"
SH
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/test-queue-observer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mkdir "$work/bin"
cat >"$work/bin/gh" <<'SH'
#!/usr/bin/env bash
set -euo pipefail
[[ "$*" == 'api repos/devantler-tech/fixture/actions/runs/123/attempts/2/jobs?per_page=100 --paginate --slurp' ]] || exit 99
[[ "$*" == 'api repos/devantler-tech/fixture/actions/runs/123/attempts/2/jobs?per_page=50 --paginate --slurp' ]] || exit 99
count=0
[[ ! -f "$FIXTURE/count" ]] || read -r count <"$FIXTURE/count"
count=$((count + 1))
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6642,8 +6642,10 @@ jobs:
fi
# Retry only server failures, restarting the entire paginated read.
# A failed later page can already have emitted convincing partial data.
# Pages of 100 jobs on the full catalogue run fail with HTTP 502 every
# time, while pages of 50 succeed, so the page size stays at 50.
for attempt in 1 2 3; do
if gh api "repos/$REPOSITORY/actions/runs/$RUN_ID/attempts/$RUN_ATTEMPT/jobs?per_page=100" \
if gh api "repos/$REPOSITORY/actions/runs/$RUN_ID/attempts/$RUN_ATTEMPT/jobs?per_page=50" \
--paginate --slurp > jobs.json 2> jobs.error; then
break
fi
Expand Down
Loading