Skip to content

ci(j5): publish a nightly every day when j5/main has moved - #1154

Merged
Jacksondr5 merged 2 commits into
j5/mainfrom
j5code/nightly-schedule
Nov 22, 2026
Merged

Jacksondr5 merged 2 commits into
j5/mainfrom
j5code/nightly-schedule

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Problem

Nightlies only publish when someone runs J5 Nightly by hand. #507's last step is a daily schedule, gated so a day with no new commits builds nothing.

Fix

.github/workflows/j5-nightly.yml:

  • Schedule: a schedule trigger at 11:17 UTC daily: before the US morning, and over six hours after the late-evening hand runs, which would otherwise make the gate skip it. It.s off the hour, when GitHub.s scheduled jobs are busiest.
  • Gate: the resolve job's due step now calls upstream's shouldReleaseNightly (.github/scripts/check-nightly-release.cjs, already on j5/main) through actions/github-script@v8, the same way upstream's release.yml does. A scheduled run builds only when j5/main is ahead of the latest v*-nightly.* release and that release is at least six hours old. A run started by hand always builds, as before.
  • Unchanged: the build and release jobs already skip when due != 'true'. The j5-publish concurrency group, shared with J5 Stable, still keeps a nightly from landing during a promotion.

docs/j5/runbooks/macos-packaging.md: the Nightly section now says it runs daily and when it skips.

Refs #507.

Checklist

  • One concern
  • Tests: none apply. The gate is upstream's tested script (check-nightly-release.test.cjs). The first scheduled run after merge is the proof, and I'll check it.
  • UI changes: none
  • Live testing: not applicable, CI only
  • Upstream-owned files: none edited. The workflow and the runbook are J5's, and the upstream script is only called.
  • Upstream product: unchanged
  • Surfaces: release channel only
  • Docs: runbook updated

Claude Opus 5.5 in Claude Code (J5 Code).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 22, 2026 4:56pm UTC

Request Review

@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Nov 22, 2026
@github-actions github-actions Bot added the size:S 10-29 effective changed lines (test files excluded in mixed PRs). label Nov 22, 2026
@Jacksondr5

Copy link
Copy Markdown
Owner Author

Review round 1, Claude Opus 5.5 and GPT-6.2 Sol:

  • Fixed (Opus 1): a nightly run by hand in the early hours UTC made the 09:17 scheduled run skip under the six-hour gap. Three of the last five hand runs landed in that window. The cron is now 11:17 UTC.
  • Fixed (Opus 2): the header comment now matches the runbook. The last nightly must be published at least six hours earlier.
  • Declined (Sol 1, a partial retry publishing the same commit twice): it needs someone to re-run the failed jobs of a scheduled run after a later scheduled run already published that commit. The worst outcome is a duplicate nightly pre-release, never a wrong stable. AGENTS.md says not to build machinery for rare cases.
  • Declined (Sol 2, tag date from the runner clock): this predates the PR and is unchanged by it.
  • Declined (Sol 3, Opus "move due first"): install and version resolution still run on unchanged days. That's optional. When due is false, the reusable workflow is skipped whole: no build and no draft.
  • Noted (Opus 3): I'll watch the first few scheduled runs.

@Jacksondr5
Jacksondr5 enabled auto-merge (squash) November 22, 2026 16:56
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The J5 Nightly workflow now runs on a daily schedule and on manual dispatch. Scheduled runs check release eligibility; manual runs are marked due. The runbook documents the schedule and eligibility conditions.

Changes: Nightly release workflow

Layer / File(s) Summary
Schedule and release eligibility
.github/workflows/j5-nightly.yml, docs/j5/runbooks/macos-packaging.md
The workflow adds a daily 11:17 UTC schedule and checks scheduled runs with shouldReleaseNightly. Manual runs are marked due. The runbook documents that scheduled runs build when j5/main has moved since a nightly published at least six hours earlier, and that manual runs on j5/main always build.

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

Merge Risk: Minimal · up to 8626d

The J5 Nightly workflow gains a daily schedule that publishes only when j5/main has advanced and the last nightly is at least six hours old. Manual runs still always build. The change is low risk, and the first scheduled run after merge will confirm it works.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the J5 Nightly workflow now publishes a nightly every day, but only when j5/main has moved. It is specific and matches the diff (daily schedule plus gate in j5-nightly…
Description check Passed The description follows the template's main sections: Problem, What changed (Fix), Checklist. It states the scope, the schedule time, the gate logic, the unchanged build and release jobs, and the runb…
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 names the main change: the J5 Nightly workflow now publishes a nightly every day, but only when j5/main has moved. It is specific and matches the diff (daily schedule plus gate in j5-nightly.yml and the runbook).

Full details: Description check

Explanation

The description follows the template's main sections: Problem, What changed (Fix), Checklist. It states the scope, the schedule time, the gate logic, the unchanged build and release jobs, and the runbook update. The template's UI changes section is omitted, which is acceptable because the PR has no UI changes. The Live testing section is marked not applicable. The Upstream impact section is missing, but the checklist states that no upstream-owned files were edited, so the template's delete-if-J5-only rule applies. The checklist also omits the FORK.md and upstream product items, which are marked as not applicable. The Checklist does not link the model and harness as the template asks, but it does name Claude Code at the end.

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
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0adbc92 and 8626d03.

Files selected for processing: 2

  • .github/workflows/j5-nightly.yml
  • docs/j5/runbooks/macos-packaging.md

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

@Jacksondr5
Jacksondr5 merged commit 8e9fd12 into j5/main Nov 22, 2026
34 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/nightly-schedule branch November 22, 2026 17:19

This branch was successfully deployed

1 active deployment
Preview — 8626d033 Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant