You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(j5): publish a nightly every day when j5/main has moved - #1154
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.
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.
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.
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.
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 effective changed lines (test files excluded in mixed PRs).vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:scheduletrigger 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.resolvejob'sduestep now calls upstream'sshouldReleaseNightly(.github/scripts/check-nightly-release.cjs, already on j5/main) throughactions/github-script@v8, the same way upstream'srelease.ymldoes. A scheduled run builds only whenj5/mainis ahead of the latestv*-nightly.*release and that release is at least six hours old. A run started by hand always builds, as before.due != 'true'. Thej5-publishconcurrency 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
check-nightly-release.test.cjs). The first scheduled run after merge is the proof, and I'll check it.Claude Opus 5.5 in Claude Code (J5 Code).
🤖 Generated with Claude Code