Skip to content

test: budget reserve catalog lifecycle children for cold Windows runners - #6321

Merged
lidge-jun merged 1 commit into
devfrom
codex/stabilize-reserve-catalog-windows-timeout
Sep 30, 2026
Merged

lidge-jun merged 1 commit into
devfrom
codex/stabilize-reserve-catalog-windows-timeout

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

reserve-catalog-lifecycle.test.ts gave each spawned Bun child 30s and the single-sync tests 40s in total. On a cold Windows runner one child took 33s, so dev-tip Cross-platform CI (lane=all, run 36706278700, windows 4/9) failed with spawnSync bun.exe ETIMEDOUT in "a retained adaptation is rejected rather than promoted to genuine source" while every assertion that ran had passed.

The child timeout is now 60s, and each test's timeout is derived from how many syncs it runs (syncs × 60s + 10s) instead of five hand-picked numbers that had drifted to barely more than one child's budget. Test-only; no product code changes.

Verification

  • bun test tests/codex-integration/reserve-catalog-lifecycle.test.ts — 5 pass, 0 fail (macOS).
  • The file runs in the parallel lane (not a serial lane), so the largest budget (310s) stays under the 900s suite timeout.
  • Windows proof: lane=all Cross-platform CI on the resulting dev tip before the 2.74.0 promotion.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

Summary by CodeRabbit

  • Tests
    • Increased the time allowed for catalog-sync processes and adjusted lifecycle test timeouts to match the number of syncs.

@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner September 30, 2026 11:36
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T11:40:40.569252Z 09c7405 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). label Sep 30, 2026
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: lidge-jun/opencodex/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: c821c2e2-10dd-47ad-997e-4bdcd74eaac9

📥 Commits

Reviewing files that changed from the base of the PR and between 3008bae and 09c7405.

📒 Files selected for processing (1)
  • tests/codex-integration/reserve-catalog-lifecycle.test.ts

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


📝 Walkthrough

Walkthrough

The catalog lifecycle tests increase the child-process timeout from 30 to 60 seconds. Each test now calculates its timeout from its sync count, using 60 seconds per sync plus 10 seconds.

Changes

Catalog lifecycle test timeouts

Layer / File(s) Summary
Child-process and test timeout budgets
tests/codex-integration/reserve-catalog-lifecycle.test.ts
The spawned child-process timeout increases to 60 seconds. Test timeouts now use the sync count multiplied by 60 seconds, plus 10 seconds.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 09c74

The larger child allowance addresses slow lifecycle tests while preserving failure checks. No actionable merge-blocking risk is established.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ 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 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ 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: increasing timeout budgets for reserve catalog lifecycle child processes on cold Windows runners.
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.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@lidge-jun

Copy link
Copy Markdown
Owner Author

리뷰 · 우선순위 28 / 80

이 PR은 제품 코드를 고치지 않아요. reserve-catalog-lifecycle 테스트만 손봐요. 예전에는 Bun 자식 하나마다 30초, 테스트 전체는 40·70·170초처럼 손으로 적은 숫자가 있었어요. 차가운 Windows 러너에서는 자식 하나가 33초가 걸려서, 자식이 30초에서 끊겼어요. 그래서 spawnSync bun.exe ETIMEDOUT이 났어요. 실제로 돌아간 검사는 다 맞았고, 시간만 모자랐어요. 실패 로그는 Cross-platform CI lane=all run 36706278700의 Windows 4/9였고, 깨진 테스트는 “a retained adaptation is rejected rather than promoted to genuine source”예요.

이번 변경은 자식 제한을 60초로 올리고, 테스트 제한을 sync 횟수 × 60초 + 10초로 맞춰요. sync를 1번·2번·5번 하는 테스트가 각각 budget(1)·budget(2)·budget(5)를 쓰게 되어서, 예전처럼 숫자만 따로 놀지 않아요. 베이스는 dev이고, 파일은 tests/codex-integration/reserve-catalog-lifecycle.test.ts 하나예요. types/config 쪼개기로 닫을 무효·중복 PR은 없어요.

라인 - budget · sync를 다섯 번 하는 테스트는 310초예요. 자식이 각각 거의 60초를 쓰면 300초가 자식에만 가고, 샌드박스 만들기·파일 쓰기·중간 expect에는 10초만 남아요. 차가운 Windows에서는 그 바깥 일도 느릴 수 있어요. 자식 한도는 이번 실패(33초)보다 넉넉하지만, 다섯 sync 테스트의 여유는 얇아요.

라인 - Windows 증명 · 이 PR tip의 체크에는 Windows 샤드가 skipping이에요. 본문은 머지 뒤 lane=all Cross-platform CI로 증명하겠다고 적었어요. 수식은 맞지만, 이 브랜치 tip에서 Windows가 초록인 증거는 아직 이 PR 체크에 없어요.

메인테이너의 판단이 필요한 지점

다섯 sync 테스트의 + 10초를 그대로 둘지, sync마다 조금 더 얹을지 정해 주세요. 또 Windows는 이 PR에서 lane=all을 돌리고 머지할지, 본문대로 tip CI에 맡길지 정해 주세요.

너의 추천

머지해도 됩니다. 원인(자식 30초 < 관측 33초)과 고침(60초 + sync 기준 예산)이 맞아요. 가능하면 budget 여유를 sync당 조금 더 주거나, 머지 전에 Windows lane=all 한 번만 확인하면 더 안전해요. 제품 동작은 안 바뀌어요.

이 댓글은 grok-bot이 작성했습니다

@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer integration (MAINTAINERS.md, 2026-09-06 policy): @lidge-jun (admin) is merging this test-only stabilization into dev without a second approval as part of the owner-requested 2.74.0 stabilization and release. Exact-head evidence: head 09c740543797e7646dde21f472f8f943d71f85e3, PR checks 19 pass / 11 path-filtered skips, no review threads or change requests. The Windows failure it addresses (run 36706278700 windows 4/9) passed on rerun, confirming a runner-speed timeout rather than a product regression.

@lidge-jun
lidge-jun merged commit 592c5cf into dev Sep 30, 2026
34 checks passed
@lidge-jun
lidge-jun deleted the codex/stabilize-reserve-catalog-windows-timeout branch September 30, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant