Skip to content

ci: give each macOS shard 30 minutes (owner decision) - #8717

Merged
lidge-jun merged 1 commit into
devfrom
ci/macos-shard-timeout-30
Nov 13, 2026
Merged

lidge-jun merged 1 commit into
devfrom
ci/macos-shard-timeout-30

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

Owner decision: the platform-macos shards (macos ${{ matrix.shard }}/4) get a 30-minute cap instead of 20.

Dev run 43508374033 cancelled all four macOS shards at exactly the 20-minute cap with no failing tests. Each spent about 1 minute on checkout and install and 19 minutes in tests, reaching batch 73/83, 78/79, 67/78 and 68/75. The previous two batches also lost one or two shards at the cap. The ci.yml comment recommended adding a shard instead of raising the cap, but four suite shards plus widget/bundle already use all five macOS runner slots.

Changes:

  • .github/workflows/ci.yml: platform-macos timeout-minutes: 20 → 30, with the rationale comment shortened to this decision. Nothing else in the workflow changes: no trigger, runs-on, if, permission or other job's cap.
  • tests/ci-workflows/ci-workflows.test.ts: the pinned value becomes 30.
  • .github/scripts/release-evidence-policy.json: ci.yml is a pinned release-evidence path. Following the procedure in .github/scripts/release-evidence.cjs, a new ci entry repeats the last one with only the new ci.yml blob ID (git hash-object --no-filters). Older entries are kept, the file set and windowsShards are unchanged, and without the entry a dev run after this merge would not count as release evidence.

Security-relevant surface: a GitHub Actions workflow and the release-evidence policy. The only behavioural effect is that a wedged macOS shard (#4956) is cut off ten minutes later.

Verification

  • node .github/scripts/release-evidence.cjs policy-check: fingerprints match the working tree. A jq comparison of the new and previous ci entries shows equal key sets, windowsShards 14 in both, and .github/workflows/ci.yml as the only changed digest.
  • node --test over the five release scripts the gates job runs: 69 pass / 0 fail.
  • bun test tests/ci-workflows/ci-workflows.test.ts: 141 pass / 0 fail. bun run structure:check and bun run privacy:scan: passed.
  • tests/ci-workflows/ci-bun-install-frozen.test.ts fails 21 cases on this host on unchanged origin/dev as well (local shell tooling). This PR's Ubuntu CI is its evidence.
  • NOT RUN: a macOS shard under the new cap (next manual dev batch).

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

  • Chores
    • The macOS CI job now has a 30-minute timeout, up from 20 minutes.
  • Tests
    • Updated CI workflow checks to validate the new macOS timeout.

Dev run 43508374033 cancelled all four macOS shards at the 20-minute cap with
no failing tests (about 1m of setup and 19m of tests each; batches 67-78 of
75-83 reached). Four suite shards and widget/bundle already take all five macOS
runner slots, so another shard is not available, and the owner raised the cap
to 30. Only platform-macos timeout-minutes changes; its rationale comment is
shortened to this decision and ci-workflows.test.ts pins the new value.

ci.yml is a release-evidence policy path, so a new ci entry repeats the last one
with only the new ci.yml blob ID (git hash-object --no-filters); older entries
are kept and policy-check matches the working tree.
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 13, 2026 21:52
@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T21:53:47.297318Z 0ca81ff 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 github-actions Bot added the chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). label Nov 13, 2026
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The macOS platform CI timeout increases from 20 to 30 minutes. The test expectation changes to match. A CI evidence-policy entry records hashes and sets windowsShards to 14.

Changes: CI timeout and evidence policy

Layer / File(s) Summary
Update macOS timeout and CI evidence
.github/workflows/ci.yml, tests/ci-workflows/ci-workflows.test.ts, .github/scripts/release-evidence-policy.json
The platform-macos timeout and its test expectation change from 20 to 30 minutes. The workflow comment records that all four shards reached the 20-minute limit without test failures. The evidence policy adds a version 1 entry with hashes for the specified CI files and windowsShards set to 14.

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

Change: Other

Suggested reviewers: luvs01

Merge Risk: Minimal · up to 0ca81

This raises the macOS CI shard timeout from 20 to 30 minutes and records the updated workflow in the release-evidence policy. It affects CI only, not production behavior, and it can be reverted trivially, so it is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: the platform-macos CI timeout rises from 20 to 30 minutes per shard, as the objectives describe. It is specific, concise, and names the owner decision behind the chan…
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.
Full details: Title check

Explanation

The title states the main change: the platform-macos CI timeout rises from 20 to 30 minutes per shard, as the objectives describe. It is specific, concise, and names the owner decision behind the change. The title does not describe any change outside the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 86be880 and 0ca81ff.

Files selected for processing: 3

  • .github/scripts/release-evidence-policy.json
  • .github/workflows/ci.yml
  • tests/ci-workflows/ci-workflows.test.ts

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

@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer judgment: integrating into dev under the MAINTAINERS.md maintainer-integration exception; the owner approved this change (macOS shard cap 20 → 30 minutes) directly. This is maintainer integration, not a self-approval.

Exact head 0ca81ff:

  • PR CI: all 31 checks on this head passed or were skipped by policy (including gates, which runs the release-evidence tests).
  • Fresh security review (gpt-6.1-terra, high) on this exact head: PASS, no findings. The ci.yml diff changes only platform-macos timeout-minutes and its rationale comment; no trigger, if, runs-on, permission, secret, action pin, concurrency, matrix or other job's cap changes. The appended release-evidence policy entry differs from the previous ci entry only in the ci.yml blob ID, which matches git hash-object --no-filters at this head; older entries kept; windowsShards 14. policy-check passed; release script tests 69/69; reviewer bun run 234 pass.
  • Base check before merge: the only dev commit since this branch's base (feat(link): an explicit route may name its SSH identity file (link.route/2) #8714) touches none of ci.yml, the policy file, .github/actions, scripts/test.ts or scripts/ci, so the pinned digests stay valid after the squash.
  • NOT RUN: a macOS shard under the new cap (next manual dev batch).

@lidge-jun
lidge-jun merged commit 2563463 into dev Nov 13, 2026
35 checks passed
lidge-jun added a commit that referenced this pull request Nov 16, 2026
scripts/ci/docker-smoke.ts is a release-evidence policy path, so a new ci
entry repeats the last one with only the new docker-smoke blob ID
(git hash-object --no-filters); older entries are kept. Same procedure as
#8717.
lidge-jun added a commit that referenced this pull request Nov 16, 2026
…less (#8788)

* feat(codex): give Luna Reserve its own setting, seeded once from authless

Luna Reserve compatibility was gated on codexDesktopAuthless, a switch
documented as controlling whether Codex Desktop asks for a sign-in. Add
codexReserveEnabled and route catalog advertisement and request
eligibility through one predicate, isCodexReserveEnabled.

Existing installs keep their Reserve state: the first persisted write (or
startup) copies the legacy authless value once and records
codexReserveMigration. Every whole-config writer projects the seed from
the persisted pre-write document via projectPersistedConfigMigrations, so
a write that also flips authless cannot move Reserve; /api/settings seeds
the live config before changing either switch. After the marker, an
absent value means off, so deleting the field cannot restore inheritance.
New configurations start disabled.

Expose it as codexReserveEnabled in /api/settings and as
'ocx system settings --reserve <on|off>'. The refusal for an unopted
gpt-reserve request now names the new setting. Enabling the capability
grants no entitlement; upstream Reserve permission, role and listener
admission still decide each request.

Closes #4961

* fix(codex): keep Reserve state consistent across startup and failed saves

Review round 1:
- the startup migration adopts the seed onto the loaded object in place,
  so its file-backed provenance survives
- /api/settings no longer rolls live Reserve back after the config was
  published; only a pre-publication failure restores the old fields
- tests exercise the real writer, the live writer's handling of another
  process's Reserve change, and both sides of the publication boundary

* fix(codex): adopt published Reserve fields after a post-publication failure

Review round 2: a save can publish and then fail before the live writer
adopts its projection. The settings route now rereads the published file
on ConfigWritePublishedError and adopts its Reserve fields, so the running
proxy matches disk.

* chore(structure): move the Reserve capability note into its own doc

structure/config.md is at its 600-line budget, so the Reserve capability
contract lives in structure/codex-reserve-capability.md, registered in the
manifest. The docker smoke startup oracle now expects the two Reserve
fields a fresh install persists (codexReserveEnabled false, migration 1).

* ci: pin the updated docker smoke script in the release-evidence policy

scripts/ci/docker-smoke.ts is a release-evidence policy path, so a new ci
entry repeats the last one with only the new docker-smoke blob ID
(git hash-object --no-filters); older entries are kept. Same procedure as
#8717.

* Revert "ci: pin the updated docker smoke script in the release-evidence policy"

This reverts commit d8af7b7.

* fix(codex): record the Reserve seed only when authless or Reserve changes

Writing the seed on every save added two fields to configs whose authless
value never changed, which broke byte-identity, generation-bump and
admission invariants for unchanged saves. The projection now records the
seed only when a write changes authless (seeding from the persisted
document), sets Reserve explicitly, or carries an already migrated file;
otherwise an unmarked document is left alone, since its reading already
equals authless. Startup records the seed only for a file that sets
codexDesktopAuthless, so a fresh install gains no fields and the docker
smoke oracle and release-evidence pin are unchanged (reverted).

Also: keep carried Reserve keys in seed order so an unchanged carried
state rewrites identical bytes; reserve ingress and Claude replay tests
now flip codexReserveEnabled, the setting that decides Reserve.

* docs(codex): describe when the Reserve seed is recorded

Reserve follows authless until the one-time seed is recorded: at startup
for a file that sets codexDesktopAuthless, otherwise at the first authless
or Reserve change through ocx or the dashboard. Notes the remaining
hand-edit gap in the structure doc.

* Reapply "ci: pin the updated docker smoke script in the release-evidence policy"

This reverts commit 769694f.

* fix(codex): seed Reserve under the writer's lock and at every first start

Review round 3:
- the settings route no longer seeds the live object before the locked
  merge; an authless-only change is seeded by the writer from the file,
  so a stale live object cannot overwrite another process's Reserve
  decision. An explicit Reserve choice is recorded as the operator's.
- a new document starts disabled even when created with authless on.
- startup records the seed for every unmarked file once, so after the
  first start on this version a hand edit of authless cannot move
  Reserve. A fresh install therefore persists codexReserveEnabled false
  and the marker: the docker smoke oracle and its release-evidence pin
  return (re-applied).

Tests drive the real settings writer for both concurrent directions and
for creation; the ingress fixture sets Reserve explicitly.

* docs(codex): the Reserve seed is recorded at first start

* fix(config): keep src/types/config.ts under the 2000-line ratchet

The Reserve field docs took the file to 2001 lines (NEW_OVERSIZED). Compress them, and register the new test in the config layout shard instead of layout.json, which sits at 1999 lines.

* test(responses): enable Reserve through its own setting in the vision-helper refusal case

The fixture creates a new config, which now starts with Reserve off even with authless on; set codexReserveEnabled, the setting that decides Reserve.

* fix(config): keep another process's Reserve value across an unrelated live save

CodeRabbit on #8788: when the file is migrated but codexReserveEnabled is
absent (absent means off), the key is missing from both the live config and
its baseline, so the live writer skipped it and wrote the file without a
value another process had just set. A concurrent "Reserve on" could be
silently undone by any live save.

The live writer now always rebases the two Reserve fields against disk.
Explicit live edits, and deletions of a key present in the baseline, still
win the three-way merge. Tests cover the absent-value case (red before),
the explicit-value case and a live deletion.

Also moves this branch's layout registration into the middle of
layout-config.json so it stops colliding with other queued registrations.

* docs(config): name the main-account selector the Reserve row needs

CodeRabbit on #8788: enabling codexReserveEnabled alone does not add the gpt-reserve row; a codexAccountNamespaces selector must target the main Codex account, and the picker can hide it. Same identifiers in en and es.

* docs(providers): Reserve's stored-main selector follows codexReserveEnabled, not authless

CodeRabbit on #8788 (outside-diff comment): the provider guide still named effective local authless Desktop mode as the Reserve prerequisite. The gate reads codexReserveEnabled on a loopback, non-client proxy. en and es.
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