Skip to content

Fix agent runner base action sparse checkout - #2745

Merged
stranske merged 1 commit into
mainfrom
codex/fix-agent-run-base-sparse-checkout
Jul 10, 2026
Merged

Fix agent runner base action sparse checkout#2745
stranske merged 1 commit into
mainfrom
codex/fix-agent-run-base-sparse-checkout

Conversation

@stranske

Copy link
Copy Markdown
Owner

Summary

  • use non-cone sparse checkout when reusable Codex/Claude runners fetch .github/actions/agent-run-base
  • cover the checkout mode in the shared runner regression test

Root cause

Workflows PR #2744 failed Keepalive next task (Codex) / Codex (keepalive) in run 29066229837/job 86278429797 after the agent run. GitHub could not reload the local action at .workflows-actions/.github/actions/agent-run-base during post-job cleanup. The pre-checkout was sparse-checking a nested action path without sparse-checkout-cone-mode: false, unlike the other local-action sparse checkouts in this repo.

Validation

  • python -m pytest -q tests/workflows/test_reusable_run_shared_base.py
  • python -m pytest -q tests/scripts/test_validate_workflow_yaml.py
  • git diff --check

Fixes keepalive runner infrastructure for #2744.

Copilot AI review requested due to automatic review settings July 10, 2026 03:22
@stranske
stranske temporarily deployed to agent-standard July 10, 2026 03:22 — with GitHub Actions Inactive
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 46 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: d87ce09a-ae3b-41d7-a238-11d1cad297c2

📥 Commits

Reviewing files that changed from the base of the PR and between cb498d7 and 25605bb.

📒 Files selected for processing (3)
  • .github/workflows/reusable-claude-run.yml
  • .github/workflows/reusable-codex-run.yml
  • tests/workflows/test_reusable_run_shared_base.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-agent-run-base-sparse-checkout

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

@stranske-keepalive

Copy link
Copy Markdown
Contributor

Workflow source needed

PR #2745 needs either a linked GitHub issue or one valid non-issue Workflow Source before PR metadata automation can manage it safely.

Please do one of:

  • Add <!-- meta:issue:123 --> or a normal Closes #123 / Related to #123 line.
  • Check one Workflow Source option in the PR body.
  • Add a hidden marker such as <!-- workflow-source:local_request -->, <!-- workflow-source:manual_remote -->, <!-- workflow-source:review_followup -->, <!-- workflow-source:sync_campaign -->, or <!-- workflow-source:dependabot -->.
  • Add a workflow source label such as workflow:source-direct-pr, workflow:source-local-request, workflow:source-review-followup, workflow:source-sync, or workflow:no-automation.

Once a valid source is present, this warning will not be reposted.

@stranske-keepalive

stranske-keepalive Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Automated Status Summary

Head SHA: 4c35da3
Latest Runs: ⏳ pending — Gate
Required contexts: Gate / gate, Health 45 Agents Guard / guard
Required: core tests (3.12): ⏳ pending, core tests (3.13): ⏳ pending, docker smoke: ⏳ pending, gate: ⏳ pending

Workflow / Job Result Logs
(no jobs reported) ⏳ pending

Coverage Overview

  • Coverage history entries: 1

Coverage Trend

Metric Value
Current 75.70%
Baseline 85.00%
Delta -9.30%
Minimum 70.00%
Status ✅ Pass

Top Coverage Hotspots (lowest coverage)

File Coverage Missing
scripts/issue_dedup_smoke.py 0.0% 4
scripts/runner_lib/__main__.py 0.0% 3
scripts/validate_template_sync.py 0.0% 77
scripts/langchain/topic_splitter.py 19.1% 57
tools/codex_log_analyzer.py 19.6% 140
scripts/repo_review_round2_runner.py 25.1% 344
scripts/prune_agent_stubs.py 39.7% 26
scripts/repo_review_round1_runner.py 40.7% 133
tools/ensure_workflow_timeout_variables.py 42.1% 74
scripts/sync_label_docs.py 42.9% 64
tools/ci_failure_triage.py 44.2% 123
scripts/repo_review_backlog_scan.py 45.3% 116
scripts/repo_review_body_writer.py 46.5% 86
tools/codex_session_analyzer.py 47.9% 59
scripts/create_verifier_labels.py 48.3% 58

Low Coverage Files (<50.0%)

File Coverage Missing
scripts/issue_dedup_smoke.py 0.0% 4
scripts/runner_lib/__main__.py 0.0% 3
scripts/validate_template_sync.py 0.0% 77
scripts/langchain/topic_splitter.py 19.1% 57
tools/codex_log_analyzer.py 19.6% 140
scripts/repo_review_round2_runner.py 25.1% 344
scripts/prune_agent_stubs.py 39.7% 26
scripts/repo_review_round1_runner.py 40.7% 133
tools/ensure_workflow_timeout_variables.py 42.1% 74
scripts/sync_label_docs.py 42.9% 64
tools/ci_failure_triage.py 44.2% 123
scripts/repo_review_backlog_scan.py 45.3% 116
scripts/repo_review_body_writer.py 46.5% 86
tools/codex_session_analyzer.py 47.9% 59
scripts/create_verifier_labels.py 48.3% 58

Updated automatically; will refresh on subsequent CI/Docker completions.


Keepalive checklist

Scope

No scope information available

Tasks

  • No tasks defined

Acceptance criteria

  • No acceptance criteria defined

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ensures the reusable Codex/Claude runner workflows pre-checkout the local agent-run-base composite action using non-cone sparse checkout, matching the repo’s established sparse-checkout usage and preventing post-job failures when GitHub reloads the local action during cleanup.

Changes:

  • Set sparse-checkout-cone-mode: false on the Workflows run-base action pre-checkout in the reusable Codex runner workflow.
  • Set sparse-checkout-cone-mode: false on the Workflows run-base action pre-checkout in the reusable Claude runner workflow.
  • Extend the shared runner regression test to assert the non-cone mode setting is present (and parsed as a boolean) for both workflows.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/workflows/test_reusable_run_shared_base.py Adds a regression assertion that the run-base pre-checkout explicitly disables cone-mode sparse checkout.
.github/workflows/reusable-codex-run.yml Forces non-cone sparse checkout when pre-checking out .github/actions/agent-run-base into .workflows-actions.
.github/workflows/reusable-claude-run.yml Forces non-cone sparse checkout when pre-checking out .github/actions/agent-run-base into .workflows-actions.

@stranske
stranske temporarily deployed to agent-high-privilege July 10, 2026 03:32 — with GitHub Actions Inactive
@stranske
stranske merged commit f3036c1 into main Jul 10, 2026
114 of 130 checks passed
@stranske
stranske deleted the codex/fix-agent-run-base-sparse-checkout branch July 10, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants