Skip to content

fix(e2e): recover unstable publication run pagination - #13638

Merged
prekshivyas merged 2 commits into
mainfrom
codex/ci-publication-pagination-instability
Oct 22, 2026
Merged

prekshivyas merged 2 commits into
mainfrom
codex/ci-publication-pagination-instability

Conversation

@rsliter

@rsliter rsliter commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

Base-image publication lookup now recovers when GitHub's global workflow-run count changes during pagination. It continues to accept only a verified publication from the exact first-parent commit history.

Reason

The shared publication lookup failed before target selection in both PR qualification attempts on #13637 and in its trusted manual PR E2E run. GitHub reported a changing total_count across pages, exhausting the existing three pagination attempts. This blocked E2E evidence for the crun repair.

Related issues

Refs #13482. Unblocks #13637.

Changes

  • Classify exhausted global pagination as an unstable pagination error and reuse the existing exact-SHA query fallback. The fallback is needed because another attempt at global pagination cannot make a changing result set stable.
  • Add focused tests for successful exact first-parent recovery and rejection of a run returned for a different SHA.

Verification

  • npx vitest run --project e2e-support test/e2e/support/base-image-publication.test.ts test/e2e/support/base-image-publication-unstable-pagination.test.ts — 80 passed.
  • npx vitest run --project integration test/automation/pull-requests/growth-guardrails.test.ts — 7 passed.
  • npm run checks:repository — all 18 repository checks passed.
  • Installed pre-commit and commit-msg hooks — passed.
  • Reviewed the two-file diff; no secrets, API keys, or credentials added.

Review notes

Sensitive path: tools/e2e/base-image-publication.mts. The source and test diff was reviewed locally at commit cd6937e1988def4fd3acda0201be58f7c74cff75; focused tests cover the accepted fallback and SHA mismatch. No independent pre-publication review exists. The PR remains draft for CI and automated review.


Signed-off-by: Rebecca Sliter [email protected]

Summary by CodeRabbit

  • Bug Fixes
    • Improved reliability when retrieving publication history if the total number of results changes during pagination. The system now retries using targeted queries when the overall result set remains unstable.

@copy-pr-bot

copy-pr-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between cd6937e and 74d06f6.

📒 Files selected for processing: 1
  • test/e2e/support/base-image-publication-pagination.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

📝 Walkthrough

Global publication pagination now has a dedicated error for changing total_count values. The collector handles that error by using per-head-SHA queries. Tests cover run selection and rejection of a mismatched SHA.

Changes: Publication run pagination

Layer / File(s) Summary
Unstable pagination fallback and validation
tools/e2e/base-image-publication.mts, test/e2e/support/base-image-publication-pagination.test.ts
collectPaginated raises PaginationUnstableError when counts keep changing. collectPublicationRuns then uses per-head-SHA queries. Tests cover successful selection and rejection when a queried response has a different SHA.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: cv

Merge Risk: ⚪ Minimal · up to 74d06

No issue requiring correction before merge is established by the supplied evidence.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: recovering from unstable publication-run pagination in E2E workflows.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/plugin

main 63002cd codex/ci-publication... 74d06f6 +/-
96% 97% +1%
View coverage of the 10 most impacted files.
File main 63002cd codex/ci-publication... 74d06f6 +/-
nemoclaw/src/onboard/config.ts 98% 96% -2%
nemoclaw/src/index.ts 94% 93% -1%
nemoclaw/src/bl...print/runner.ts 95% 95% 0%
nemoclaw/src/bl...ime-identity.ts 97% 97% 0%
nemoclaw/src/bl...t-management.ts 100% 100% 0%
nemoclaw/src/co.../config-show.ts 100% 100% 0%
nemoclaw/src/commands/slash.ts 100% 100% 0%
nemoclaw/src/ru...time-context.ts 100% 100% 0%
nemoclaw/src/sh...er-boundary.cts 100% 100% 0%
nemoclaw/src/on...native-route.ts 0% 100% +100%

TypeScript / code-coverage/cli

main 63002cd codex/ci-publication... 74d06f6 +/-
84% 86% +2%
View coverage of the 10 most impacted files.
File main 63002cd codex/ci-publication... 74d06f6 +/-
src/lib/onboard.ts 62% 50% -12%
src/lib/actions...ess-recovery.ts 65% 81% +16%
src/lib/state/l...diness-lease.ts 66% 83% +17%
src/lib/inferen...ollama/proxy.ts 41% 61% +20%
src/lib/onboard.../application.ts 55% 84% +29%
src/lib/domain/...y/dimensions.ts 0% 71% +71%
src/lib/inferen...er/lifecycle.ts 0% 73% +73%
src/lib/actions...ry/operation.ts 0% 76% +76%
src/lib/actions...try/snapshot.ts 0% 78% +78%
src/lib/inferen...ovider/index.ts 0% 88% +88%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated October 22, 2026 19:57 UTC

@rsliter
rsliter marked this pull request as ready for review October 22, 2026 18:33
@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit 74d06f6. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

Request review only when Require no Advisor blockers is green.

All previous runs

@rsliter

rsliter commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

Exact-head premerge E2E evidence for 74d06f60a58d886a1b2c4172363877d6ea30da2d: trusted run 39846111207 passed on first attempt using main workflow/base 7312e7f49e3e96125b8237968e2552a48e2cb1b6 and mock inference. The e2e-dispatch-39846111207-1 receipt binds the PR, candidate SHA, base/workflow SHA, and selectors.

Base-image publication passed. Selected jobs uploaded artifacts and completed Docker auth cleanup. Exact-head Advisor cleared all nine specialists and recommended no additional selectors.

@prekshivyas
prekshivyas merged commit c3692b2 into main Oct 22, 2026
77 of 78 checks passed
@prekshivyas
prekshivyas deleted the codex/ci-publication-pagination-instability branch October 22, 2026 21:07
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance labels Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants