Skip to content

feat(updater): add an adhoc release channel for branch builds - #12051

Merged
nwparker merged 3 commits into
mainfrom
nwparker/adhoc-channel
Aug 2, 2026
Merged

nwparker merged 3 commits into
mainfrom
nwparker/adhoc-channel

Conversation

@nwparker

@nwparker nwparker commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

What

A third release channel, adhoc, for one-off macOS builds cut from an unlanded branch. Dispatch it, hand someone a build, they run the feature for a few days.

gh workflow run adhoc-mac-build.yml --ref main -f ref=my-branch -f label=wasm-terminal

Titles read 1.4.164 • wasm-terminal • 08-01 14:25 • abc1234. The label is where hourly puts its build number — several adhoc builds from different branches coexist, so the picker needs the branch to tell them apart.

Why these choices

Its own repo (stablyai/orca-adhoc), not orca-hourly. A branch build must not appear in the list a developer riding main is looking at. The two are different levels of unvetted.

Bottom of the version order. adhoc < hourly < rc < stable, so no routine check can walk anyone onto somebody's branch — only an explicit pinned jump reaches one. The version script drops any in-flight -rc.N tail for exactly this reason.

Notarized, like hourly. macOS anchors a notarized app's TCC grants on identifier + team rather than cdhash, so they survive an update. An unnotarized build reads as a new client and silently loses file access under Documents/Desktop/Downloads.

Stamped to the second, not the minute. Hourly runs under a concurrency group and cannot overlap itself. Adhoc is dispatched on demand, so two people cutting from different branches inside one minute is ordinary — at minute resolution the second build would collide on the tag and die after its whole pack-and-notarize run.

Pruned by age (30 days), not by count. Low-volume and bursty; a count would either hold one week's experiments forever or evict a build someone is still running after a busy afternoon.

Drift protection

Repo mapping, macOS-only support, and UpdateSource all derive from one DEDICATED_REPO_CHANNELS list. While wiring that up I found the RPC schema validating releaseChannelOverride was a hand-copied z.enum(['stable','rc','hourly']) — it would have rejected the new channel's override on its way to the main process, moving the picker while nothing installed. It reads isReleaseChannel now.

Follow-up before the first build

stablyai/orca-adhoc exists (public, issues/wiki off). The release GitHub App still needs the new repo added to its installation — I lack org-owner rights to do it via API. bash config/scripts/setup-adhoc-release-repo.sh attempts it and otherwise prints the browser steps. No new secrets: the adhoc workflow reads the same App id and key as hourly.

Testing

  • pnpm typecheck, oxlint, oxfmt --check, verify:localization-catalog, verify:localization-extraction — clean
  • 2484 tests across the updater/store/renderer suites and 744 across the channel/builder-config suites pass
  • New coverage: adhoc classification and repo mapping, seconds-resolution stamp round-trip and impossible-calendar rejection, ordering below every other channel of the same base version, label sanitization (a • or newline in the dispatch input can't forge the title separator or the $GITHUB_OUTPUT line), and that the two dev channels stay on separate repos
  • Workflow YAML parsed and its step graph checked; not yet run end to end — that needs the App installation above

🤖 Generated with Claude Code

Made with Orca 🐋

Hourly covers main. This covers everything that is not main yet: a
dispatchable macOS build of an unlanded branch, published to
stablyai/orca-adhoc, so the team can run an experimental feature for a
few days instead of reasoning about it from a diff.

Adhoc sits at the bottom of the version order — 'adhoc' < 'hourly' <
'rc' < stable — so no routine check can walk anyone onto somebody's
branch; only an explicit pinned jump reaches one. It gets its own repo
rather than sharing orca-hourly's, because a branch build must not
appear in the list a developer riding main is looking at.

Signed and notarized exactly like hourly, for the same reason: macOS
anchors a notarized app's TCC grants on identifier + team, so an
unnotarized build reads as a new client and silently loses file access
under Documents/Desktop/Downloads.

Tags stamp to the second rather than the minute. Hourly runs under a
concurrency group and cannot overlap itself; adhoc builds are dispatched
on demand, so two people cutting from different branches inside one
minute is ordinary — and a minute-resolution tag would collide and fail
the second build after its whole pack-and-notarize run.

Channel-specific behaviour now derives from one DEDICATED_REPO_CHANNELS
list: repo mapping, macOS-only support, and UpdateSource. The RPC schema
that validates releaseChannelOverride was a hand-copied enum missing the
new channel, which would have rejected the override on its way to the
main process; it reads the predicate now.
@nwparker
nwparker requested a review from brennanb2025 as a code owner August 2, 2026 04:49
@greptile-apps

greptile-apps Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR adds a third release channel, adhoc, for one-off signed/notarized macOS builds cut from unlanded branches. It introduces a new GitHub Actions workflow, a seconds-resolution version stamp script, label sanitization, a dedicated stablyai/orca-adhoc release repository, and a shared DEDICATED_REPO_CHANNELS abstraction that keeps channel routing, platform support, and the UpdateSource type in sync.

  • New adhoc channel (release-channel.ts, adhoc-build-version.mjs, adhoc-mac-build.yml): versioned to the second (not minute like hourly) to avoid tag collisions on concurrent dispatches from different branches; published to a separate repo so branch builds never surface to developers riding main.
  • Drift-protection refactor: UpdateSource, isChannelSupportedOnPlatform, and the Zod schema for releaseChannelOverride all now derive from DEDICATED_REPO_CHANNELS rather than hard-coding channel names, so a future channel can't be silently excluded.
  • UI and i18n: the channel picker and warning banner generalize from hourly-specific strings to CHANNEL_LABELS-parameterized translations covering both dev channels.

Confidence Score: 5/5

Safe to merge — the new channel is correctly isolated from existing release and hourly paths, and the drift-protection refactors tighten the existing code.

The adhoc channel slots into every existing guard cleanly: activeUpdateSource checks use === 'release' / !== 'release' rather than explicit channel names, so the new value is handled without any missed branch. DEDICATED_REPO_CHANNELS drives UpdateSource, isChannelSupportedOnPlatform, and the Zod schema. The Zod schema fix replaces the hand-copied enum that would have silently rejected the new override. Version ordering is verified by tests.

Files Needing Attention: No files require special attention beyond the two items already raised in prior review threads on adhoc-mac-build.yml and adhoc-build-version.mjs.

Important Files Changed

Filename Overview
src/shared/release-channel.ts Adds 'adhoc' to ReleaseChannel, DEDICATED_REPO_CHANNELS, and CHANNEL_RELEASE_REPOS. Refactors parseHourlyVersionStamp into a shared parseStampedVersion. Adds parseAdhocVersionStamp, parseDevBuildStamp, isAdhocVersion, formatAdhocVersion, and hasDedicatedReleaseRepo. Channel routing and platform-support logic derive from DEDICATED_REPO_CHANNELS rather than hard-coded names.
config/scripts/adhoc-build-version.mjs New script producing the version stamp (seconds-resolution), normalizing the free-text label, and formatting the release title. normalizeAdhocLabel correctly sanitizes newlines, bullet separators, and git ref prefixes. The label='' default parameter causes an immediate throw (already flagged in previous thread).
.github/workflows/adhoc-mac-build.yml New workflow. Token expiry race (already flagged) aside: the draft-to-publish pattern correctly hides incomplete releases; the failure cleanup step guards on steps.publish_live.outcome != 'success'; the prune query correctly excludes drafts; concurrency is keyed per-ref.
src/main/updater.ts activeUpdateSource gains 'adhoc' via the DedicatedRepoChannel union type. All existing guards check === 'release' or !== 'release', so the new value is naturally handled without any missed branches.
src/main/runtime/rpc/methods/client-ui-schemas.ts Replaces the hand-copied z.enum(['stable','rc','hourly']) with z.custom(isReleaseChannel) so the schema validates against the authoritative channel list. Clean drift-protection fix.
src/renderer/src/components/settings/ReleaseChannelSection.tsx Generalizes hourly-specific strings to use CHANNEL_LABELS[channel] for parameterized translations. The warning block correctly uses hasDedicatedReleaseRepo() as the gate.
src/shared/types.ts UpdateSource is now 'local'
config/scripts/release-title-timestamp.mjs Extracts the Pacific-time timestamp formatter previously inline in hourly-build-version.mjs into a shared module. No behavioral change for hourly; reused by adhoc.
config/electron-builder.config.cjs Adds ORCA_MAC_ADHOC flag and ternary for devChannelBuildVersion / devChannelRepo. Correctly falls back to 'orca' when neither dev-channel flag is set.

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant GHA as GitHub Actions
    participant Script as adhoc-build-version.mjs
    participant EB as electron-builder
    participant Apple as Apple Notary
    participant AdhocRepo as stablyai/orca-adhoc
    participant Updater as Orca Updater

    Dev->>GHA: gh workflow run adhoc-mac-build.yml
    GHA->>GHA: "checkout ref=my-branch"
    GHA->>Script: "ORCA_ADHOC_LABEL=label node adhoc-build-version.mjs"
    Script-->>GHA: version, commit, label, name
    GHA->>AdhocRepo: gh release create --draft
    GHA->>EB: "ORCA_MAC_ADHOC=1 electron-builder"
    EB->>Apple: notarize
    Apple-->>EB: ticket
    EB->>AdhocRepo: upload assets
    GHA->>GHA: verify latest-mac.yml
    GHA->>AdhocRepo: "gh release edit --draft=false"
    GHA->>AdhocRepo: prune releases older than 30 days
    Dev->>Updater: checkForPinnedBuild('adhoc', tag)
    Updater->>Updater: "activeUpdateSource = 'adhoc'"
    Updater->>AdhocRepo: fetch latest-mac.yml
    Updater-->>Dev: install adhoc build
Loading

Reviews (3): Last reviewed commit: "fix(ci): default the adhoc build ref to ..." | Re-trigger Greptile

Comment thread .github/workflows/adhoc-mac-build.yml Resolved
Comment thread src/main/updater.ts
sendStatus({
state: 'error',
message: 'Hourly builds are produced only for macOS.',
message: `${channel} builds are produced only for macOS.`,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 The channel identifier is lowercase ('hourly', 'adhoc'), so this now produces "hourly builds are produced only for macOS." or "adhoc builds are produced only for macOS." — losing the capitalization that the previous hardcoded string had. Capitalizing the first letter restores the original user-facing presentation.

Suggested change
message: `${channel} builds are produced only for macOS.`,
message: `${channel[0].toUpperCase()}${channel.slice(1)} builds are produced only for macOS.`,

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

].join(' • ')
}

export function getAdhocBuildIdentity(now = new Date(), label = '') {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 label = '' is a misleading default — normalizeAdhocLabel('') always throws, so any call to getAdhocBuildIdentity() or getAdhocBuildIdentity(new Date()) without an explicit label immediately errors. Removing the default makes the requirement explicit at the call site.

Suggested change
export function getAdhocBuildIdentity(now = new Date(), label = '') {
export function getAdhocBuildIdentity(now = new Date(), label) {

@coderabbitai

coderabbitai Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: aabebee6-795f-4bb7-bd0c-3cbd81dcea26

📥 Commits

Reviewing files that changed from the base of the PR and between 3e98799 and fdfa815.

📒 Files selected for processing (1)
  • .github/workflows/adhoc-mac-build.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/adhoc-mac-build.yml

📝 Walkthrough

Walkthrough

Adds the adhoc release channel with second-resolution versions, dedicated repository routing, release-note URLs, and shared timestamp parsing. Adds build identity and label generation with tests. Adds a manually dispatched macOS workflow that builds, signs, notarizes, validates, publishes, cleans up, and prunes adhoc releases. Updates Electron Builder, updater logic, RPC validation, renderer settings, localization, and repository setup scripts.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description provides a detailed summary and testing results but omits the required Screenshots, AI Review Report, and Security Audit sections. Add all missing template sections, including an explicit visual-change statement, AI review findings with cross-platform checks, and a security audit summary.
Docstring Coverage ⚠️ Warning Docstring coverage is 47.83% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: adding an adhoc release channel for branch builds.
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.

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.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🧹 Nitpick comments (2)
config/scripts/setup-adhoc-release-repo.sh (1)

1-90: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚖️ Poor tradeoff

Bash-only script does not run natively on Windows.

This script requires bash and gh and does not run natively on Windows without WSL or Git Bash. It follows the same convention as setup-hourly-release-token.sh, which is a one-off admin provisioning script, so the practical impact is low.

As per path instructions: "code, commands, and scripts must work on macOS, Linux, and Windows."

Source: Path instructions

.github/workflows/adhoc-mac-build.yml (1)

64-89: 🔒 Security & Privacy | 🔵 Trivial | 🏗️ Heavy lift

Arbitrary dispatched refs get full production signing and notarization secrets.

This job checks out inputs.ref — any branch, tag, or SHA a user with write access chooses — and then runs pnpm install and pnpm build:release from that ref with CSC_LINK, CSC_KEY_PASSWORD, APPLE_ID, APPLE_APP_SPECIFIC_PASSWORD, and APPLE_TEAM_ID available. This is a wider trust surface than the hourly workflow, which only builds main. A malicious or compromised branch (for example through a package script) could exfiltrate the production Apple signing credentials.

Consider gating this job behind a protected GitHub Actions environment: with required reviewers, so dispatching against an arbitrary ref requires an explicit approval before the signing secrets are exposed.

Also applies to: 225-238


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a13f67cd-6b1a-4f62-91a2-11ea9be8d07c

📥 Commits

Reviewing files that changed from the base of the PR and between 4be4d10 and f351863.

📒 Files selected for processing (16)
  • .github/workflows/adhoc-mac-build.yml
  • config/electron-builder.config.cjs
  • config/scripts/adhoc-build-version.mjs
  • config/scripts/adhoc-build-version.test.mjs
  • config/scripts/electron-builder-config.test.mjs
  • config/scripts/hourly-build-version.mjs
  • config/scripts/release-title-timestamp.mjs
  • config/scripts/setup-adhoc-release-repo.sh
  • config/scripts/setup-hourly-release-token.sh
  • src/main/runtime/rpc/methods/client-ui-schemas.ts
  • src/main/updater.ts
  • src/renderer/src/components/settings/ReleaseChannelSection.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/shared/release-channel.test.ts
  • src/shared/release-channel.ts
  • src/shared/types.ts

Comment on lines +163 to +238
# Why the token is minted here and not at the top: installation tokens live
# one hour, everything before this point writes nothing, and the notary round
# trip inside the publish step can be tens of minutes. Minting after the build
# starts the clock at the first call that actually uses it.
- name: Mint adhoc repo token
id: app_token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.HOURLY_RELEASE_APP_ID }}
private-key: ${{ secrets.HOURLY_RELEASE_APP_PRIVATE_KEY }}
owner: stablyai
repositories: orca-adhoc

- name: Create adhoc release
id: release
shell: bash
env:
GH_TOKEN: ${{ steps.app_token.outputs.token }}
TAG: v${{ steps.adhoc.outputs.version }}
NAME: ${{ steps.adhoc.outputs.name }}
SHA: ${{ steps.adhoc.outputs.head_sha }}
REF: ${{ inputs.ref }}
# Via env, not inline `${{ }}`: both land inside a shell string, and an
# expression expanded there is substituted before bash parses the line
# (zizmor: template-injection).
ACTOR: ${{ github.actor }}
run: |
set -euo pipefail
short_sha="${SHA:0:12}"
# Why create it up front: electron-builder then uploads into a known tag
# rather than inferring one from package.json.
#
# Why --draft: everything between here and the manifest check is a window
# where the release exists but has no installable assets. A draft is
# absent from the releases list and from listReleaseBuilds, so a job that
# dies in that window — including a hard kill by the job timeout, which
# runs no cleanup step at all — leaves something invisible rather than a
# tag the picker offers and the download 404s on.
gh release create "$TAG" \
--repo "$ADHOC_REPO" \
--title "$NAME" \
--draft \
--notes "Adhoc macOS dev build of \`$REF\` at commit \`$short_sha\`.

Built from [\`stablyai/orca@$short_sha\`](https://github.com/stablyai/orca/commit/$SHA), cut by @$ACTOR.

**Unlanded and unvetted.** This is somebody's branch, not main. No tests
ran. Signed and notarized like a release, so it installs through Orca's
in-app updater and opens without a Gatekeeper prompt — but the branch may
never merge, and this build is deleted after $ADHOC_RETAIN_DAYS days."
echo "tag=$TAG" >>"$GITHUB_OUTPUT"

- name: Publish adhoc macOS artifacts
uses: nick-fields/retry@v4
with:
# Why 45: an attempt is pack + notarize + upload, and the notary queue is
# the unbounded part. Two attempts, because a failed adhoc build has a
# person waiting on it who can simply dispatch again.
timeout_minutes: 45
max_attempts: 2
retry_wait_seconds: 30
command: node config/scripts/ensure-native-runtime.mjs --runtime=electron && ORCA_MAC_ADHOC=1 pnpm exec electron-builder --config config/electron-builder.config.cjs --mac --publish always
env:
# Why: electron-builder's github publisher targets the repo named in the
# config; the token must therefore carry write access to orca-adhoc.
GH_TOKEN: ${{ steps.app_token.outputs.token }}
ORCA_ADHOC_BUILD_VERSION: ${{ steps.adhoc.outputs.version }}
ORCA_BUILD_COMMIT: ${{ steps.adhoc.outputs.commit }}
CSC_LINK: ${{ secrets.MAC_CERTS }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTS_PASSWORD }}
# Why all three: electron-builder's notarize step authenticates to the
# Apple notary service with the app-specific password, not with the
# signing cert. Omitting them fails the build rather than skipping it.
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}

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.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Workflow file:"
wc -l .github/workflows/adhoc-mac-build.yml || true

echo
echo "Relevant workflow sections:"
sed -n '1,120p' .github/workflows/adhoc-mac-build.yml
sed -n '120,340p' .github/workflows/adhoc-mac-build.yml

echo
echo "GH_TOKEN / app_token usages in workflow:"
rg -n "app_token|GH_TOKEN|github-token|token" .github/workflows/adhoc-mac-build.yml

Repository: stablyai/orca

Length of output: 17033


🌐 Web query:

GitHub App installation access token expires after 1 hour actions/create-github-app-token

💡 Result:

GitHub App installation access tokens are short-lived credentials that expire exactly 1 hour after they are created [1][2][3][4]. This expiration is a security feature by design and cannot be extended or configured [5][6]. If your process requires authentication beyond this 1-hour window, you must handle token renewal. Official documentation and community best practices recommend the following approaches: 1. Use GitHub's Octokit SDKs: The most reliable method is to use the Octokit SDK (e.g., octokit.js), which can manage authentication as an app installation automatically [1][2]. The SDK handles the generation and automatic regeneration of installation access tokens, abstracting the expiration issue away from your application logic [1][2]. 2. Use @octokit/auth-app: For lower-level control, you can use the @octokit/auth-app library, which also provides built-in mechanisms to authenticate as an installation and handle token renewal [5]. 3. Manual Token Caching: If you are not using an SDK, you should implement your own caching logic for the token [4]. It is recommended to cache the token and check for its expiration before making API calls, regenerating it if the token is near expiration (e.g., using a 5-minute buffer, meaning you refresh it after 55 minutes) [4][7]. The actions/create-github-app-token GitHub Action explicitly notes this 1-hour limitation in its documentation and directs users to these alternative approaches for long-running processes [8][9]. Using an expired token will result in a 401 Unauthorized error [6].

Citations:


Re-new the app token before the long publishing steps.

The token is minted once before the publish retry, and the same steps.app_token.outputs.token is reused for manifest verification, live publishing, draft discard, and pruning. A publish attempt can take up to 45 minutes with retries configured for 90 minutes total, but GitHub App installation tokens expire after 1 hour. Re-new the token immediately before the retry or before the later gh steps so those calls do not fail with authentication errors after the token expires.

Comment on lines +10093 to +10102
"adhocWarning": "Adhoc builds are macOS-only and come from a branch that has not landed. Whoever cut one may abandon it — keep a stable build handy.",
"loadingBuilds": "Loading builds…",
"noBuilds": "No builds found",
"refresh": "Refresh build list",
"switchTo": "Switch to build",
"alreadyRunning": "This is the build you are running.",
"willSwitch": "{{value0}} → {{value1}}",
"webUnavailable": "Switching builds is only available in the desktop app.",
"hourlyMacOnlyAria": "Hourly (macOS only)",
"hourlyMacOnly": "Hourly builds are produced only for macOS. Linux and Windows stay on Stable or RC."
"devChannelMacOnlyAria": "{{value0}} (macOS only)",
"devChannelMacOnly": "{{value0}} builds are produced only for macOS. Linux and Windows stay on Stable or RC."

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Confirm ReleaseChannelSection locale keys are in sync across all locale files.
for f in src/renderer/src/i18n/locales/*.json; do
  echo "== $f =="
  python3 - "$f" <<'PY'
import json, sys
data = json.load(open(sys.argv[1]))
section = data.get("auto", {}).get("components", {}).get("settings", {}).get("ReleaseChannelSection", {})
for key in ["adhocWarning", "devChannelMacOnlyAria", "devChannelMacOnly", "hourlyMacOnlyAria", "hourlyMacOnly"]:
    print(f"  {key}: {'present' if key in section else 'MISSING'}")
PY
done

Repository: stablyai/orca

Length of output: 1071


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== localization scripts/tasks =="
rg -n "localization|sync|catalog|verify" package.json pnpm-lock.yaml 2>/dev/null || true

echo
echo "== en.json ReleaseChannelSection context =="
python3 - <<'PY'
import json
data = json.load(open("src/renderer/src/i18n/locales/en.json", encoding="utf-8"))
section = data["auto"]["components"]["settings"]["ReleaseChannelSection"]
for key in ["adhocWarning","devChannelMacOnlyAria","devChannelMacOnly","hourlyMacOnlyAria","hourlyMacOnly"]:
    print(key, "=>", repr(section.get(key)))
PY

echo
echo "== ReleaseChannelSection usages =="
rg -n "adhocWarning|devChannelMacOnly|hourlyMacOnly|ReleaseChannelSection" src/renderer/src -S

Repository: stablyai/orca

Length of output: 9079


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Verify localization catalog without --fix =="
node config/scripts/verify-localization-catalog.mjs 2>&1 | sed -n '1,220p'

echo
echo "== Extract missing/new keys reported by catalog for non-English locales =="
node - <<'JS'
const fs = require('node:fs');
const files = ['es.json','ja.json','ko.json','zh.json'].map(f => `src/renderer/src/i18n/locales/${f}`);
const en = JSON.parse(fs.readFileSync('src/renderer/src/i18n/locales/en.json','utf8'));
const enSection = en.auto.components.settings.ReleaseChannelSection;
for (const file of files) {
  const data = JSON.parse(fs.readFileSync(file,'utf8'));
  const section = data.auto.components.settings.ReleaseChannelSection || {};
  const missing = [];
  for (const [key] of Object.entries(enSection)) {
    if (section[key] === undefined) missing.push(key);
  }
  const obsolete = Object.keys(section).filter(k => enSection[k] === undefined).filter(k => k.endsWith('MacOnly') || k === 'adhocWarning');
  if (missing.length || obsolete.length) {
    console.log(`== ${file} ==`);
    console.log('missing:', missing);
    console.log('obsolete:', obsolete);
  }
}
JS

Repository: stablyai/orca

Length of output: 2127


Run the localization catalog sync for all locale files.

src/renderer/src/i18n/locales/{es,ja,ko,zh}.json are missing the new devChannelMacOnlyAria, devChannelMacOnly, and adhocWarning entries from ReleaseChannelSection. Run pnpm run sync:localization-catalog so these keys are added to every locale catalog entry.

Source: Learnings

nwparker and others added 2 commits August 1, 2026 22:17
The Actions UI puts its own "Use workflow from" branch picker directly
above the ref field, and picking a branch there is what most people read
as "build this". Making the field optional means the obvious action is
also the correct one; naming a branch explicitly still wins, so main's
copy of the workflow runs rather than a stale one on an old branch.

Co-authored-by: Orca <[email protected]>
@nwparker
nwparker merged commit 4842738 into main Aug 2, 2026
49 checks passed
@nwparker
nwparker deleted the nwparker/adhoc-channel branch August 2, 2026 08:46
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…ai#12051)

* feat(updater): add an adhoc release channel for branch builds

Hourly covers main. This covers everything that is not main yet: a
dispatchable macOS build of an unlanded branch, published to
stablyai/orca-adhoc, so the team can run an experimental feature for a
few days instead of reasoning about it from a diff.

Adhoc sits at the bottom of the version order — 'adhoc' < 'hourly' <
'rc' < stable — so no routine check can walk anyone onto somebody's
branch; only an explicit pinned jump reaches one. It gets its own repo
rather than sharing orca-hourly's, because a branch build must not
appear in the list a developer riding main is looking at.

Signed and notarized exactly like hourly, for the same reason: macOS
anchors a notarized app's TCC grants on identifier + team, so an
unnotarized build reads as a new client and silently loses file access
under Documents/Desktop/Downloads.

Tags stamp to the second rather than the minute. Hourly runs under a
concurrency group and cannot overlap itself; adhoc builds are dispatched
on demand, so two people cutting from different branches inside one
minute is ordinary — and a minute-resolution tag would collide and fail
the second build after its whole pack-and-notarize run.

Channel-specific behaviour now derives from one DEDICATED_REPO_CHANNELS
list: repo mapping, macOS-only support, and UpdateSource. The RPC schema
that validates releaseChannelOverride was a hand-copied enum missing the
new channel, which would have rejected the override on its way to the
main process; it reads the predicate now.

* fix(updater): merge the duplicated shared/types import

Co-authored-by: Orca <[email protected]>

* fix(ci): default the adhoc build ref to the dispatch branch

The Actions UI puts its own "Use workflow from" branch picker directly
above the ref field, and picking a branch there is what most people read
as "build this". Making the field optional means the obvious action is
also the correct one; naming a branch explicitly still wins, so main's
copy of the workflow runs rather than a stale one on an old branch.

Co-authored-by: Orca <[email protected]>

---------

Co-authored-by: Orca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant