Skip to content

[codex] Pass pinned bridge ref into Manual Build - #517

Merged
100yenadmin merged 3 commits into
mainfrom
codex/manual-build-bridge-ref-20260702
Jul 2, 2026
Merged

[codex] Pass pinned bridge ref into Manual Build#517
100yenadmin merged 3 commits into
mainfrom
codex/manual-build-bridge-ref-20260702

Conversation

@100yenadmin

@100yenadmin 100yenadmin commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • passes Manual Build managed-resource inputs through to the reusable build workflow
  • defaults Manual Build managed resources to no-acp so RC artifacts keep the intended smaller profile
  • exports the approved EVAOS_DESKTOP_BRIDGE_SOURCE_REF and source token into the macOS electron-builder step so strict release builds do not fall back to main

Root Cause

Manual Build runs workflow files from main while checking out the requested beta SHA. The default-branch workflow did not pass the pinned bridge ref into scripts/prepareEvaosDesktopBridgeResource.js, so run 28578700265 failed before packaging with Release builds require a pinned evaos-desktop-bridge source ref.

Validation

Summary by CodeRabbit

  • New Features
    • Added new build options to choose an AionCore run ID and control which managed resources bundle is produced.
    • Manual builds now support selecting between no-acp and full bundle modes.
    • macOS build jobs now include updated bridge source settings for more consistent packaging.

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 44 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: ff5f2708-b56d-411f-ad86-fc3889ccb8cb

📥 Commits

Reviewing files that changed from the base of the PR and between 714dc35 and 7fb0a0a.

📒 Files selected for processing (2)
  • .github/workflows/_build-reusable.yml
  • .github/workflows/build-manual.yml
📝 Walkthrough

Walkthrough

This PR adds two new workflow inputs, aioncore_run_id and managed_resources_bundle, to the reusable build workflow and the manual dispatch workflow, forwarding them as environment variables to control AionCore artifact preparation, and extends macOS builder env with bridge source ref/token.

Changes

Build Workflow Input Wiring

Layer / File(s) Summary
Reusable workflow inputs and step wiring
.github/workflows/_build-reusable.yml
Adds workflow_call inputs aioncore_run_id and managed_resources_bundle (default full), forwards them as AIONUI_BACKEND_RUN_ID/AIONUI_MANAGED_RESOURCES_BUNDLE env vars in the "Prepare aioncore binary" step, and extends the macOS electron-builder job env with EVAOS_DESKTOP_BRIDGE_SOURCE_REF and EVAOS_DESKTOP_BRIDGE_SOURCE_TOKEN.
Manual workflow dispatch inputs and pass-through
.github/workflows/build-manual.yml
Adds workflow_dispatch inputs aioncore_run_id (string) and managed_resources_bundle (choice no-acp/full, default no-acp), and passes both through to the reusable build-pipeline call.

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

Possibly related PRs

  • 100yenadmin/evaOS-GUI#377: Similarly wires EVAOS_DESKTOP_BRIDGE_SOURCE_TOKEN into a build job's environment from secrets.
  • 100yenadmin/evaOS-GUI#470: Depends on the same EVAOS_DESKTOP_BRIDGE_SOURCE_REF/...TOKEN env vars for preparing and verifying the Bridge resource.

Suggested labels: area:native-companion, kind:integration

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately describes the main workflow change.
Description check ✅ Passed The description covers the change, root cause, and validation, though it doesn't follow the repo template sections exactly.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/manual-build-bridge-ref-20260702

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

@coderabbitai coderabbitai Bot added area:native-companion Native macOS companion boundary kind:integration Integration implementation issue labels Jul 2, 2026
@evaos-code-review-bot

evaos-code-review-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

evaOS review status: stale head

PR: #517 - [codex] Pass pinned bridge ref into Manual Build
Head: 714dc351b91d22f35d8cd19f26fa48a21a9ae304
Updated: 2026-07-02T09:36:14.166Z

evaOS review stopped because this queued head is no longer the live PR head.

Automation note: agents should wait for this comment to reach completed, stale_head, closed_or_merged_before_review, skipped, or failed before treating evaOS review as settled for this head. provider_deferred means evaOS still intends to retry.

PR URL: #517

Details: Superseded by a newer PR head.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/build-manual.yml:
- Around line 33-45: Add workflow/job-level concurrency controls to the manual
build workflow to prevent overlapping dispatches from racing on shared aioncore
run artifacts. Update the workflow definition in build-manual.yml by adding a
concurrency group keyed off the workflow and branch/ref, and enable
cancel-in-progress where appropriate. Make sure the concurrency setting is
applied at the top-level workflow or the relevant job so repeated manual runs
serialize correctly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 57a647e4-7919-4f48-a417-52eb1df5f7a3

📥 Commits

Reviewing files that changed from the base of the PR and between 2fbde19 and 714dc35.

📒 Files selected for processing (2)
  • .github/workflows/_build-reusable.yml
  • .github/workflows/build-manual.yml
📜 Review details
⏰ Context from checks skipped due to timeout. (3)
  • GitHub Check: Thin App Smoke (macos-arm64)
  • GitHub Check: Unit Tests (macos-14)
  • GitHub Check: Coverage Test
🧰 Additional context used
🪛 zizmor (1.26.1)
.github/workflows/build-manual.yml

[warning] 7-45: insufficient job-level concurrency limits (concurrency-limits): workflow is missing concurrency setting

(concurrency-limits)

🔇 Additional comments (4)
.github/workflows/_build-reusable.yml (3)

26-33: New workflow_call inputs look correct.

Types, descriptions and defaults are consistent with how they're consumed downstream (AIONUI_BACKEND_RUN_ID / AIONUI_MANAGED_RESOURCES_BUNDLE, validated in scripts/prepare-aioncore.js).


322-323: LGTM!


463-464: 🩺 Stability & Availability

macOS-only bridge prep makes this env wiring sufficient. scripts/build-with-builder.js gates scripts/prepareEvaosDesktopBridgeResource.js behind an isMacBuild check, so Windows/Linux packaging won’t reach the strict-ref path.

			> Likely an incorrect or invalid review comment.
.github/workflows/build-manual.yml (1)

98-99: LGTM!

Comment thread .github/workflows/build-manual.yml Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 714dc351b9

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/_build-reusable.yml
Comment thread .github/workflows/_build-reusable.yml Outdated
@evaos-code-review-bot

evaos-code-review-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

evaOS review status: closed or merged before review

PR: #517 - [codex] Pass pinned bridge ref into Manual Build
Head: 72125ec26c3a39e6daef5564ee44c7b9a6a816f3
Updated: 2026-07-02T10:13:39.962Z

evaOS review stopped because the PR closed or merged before this queued head could be reviewed.

Automation note: agents should wait for this comment to reach completed, stale_head, closed_or_merged_before_review, skipped, or failed before treating evaOS review as settled for this head. provider_deferred means evaOS still intends to retry.

PR URL: #517

Details: state=closed

@100yenadmin
100yenadmin merged commit 241ac65 into main Jul 2, 2026
13 checks passed
@100yenadmin
100yenadmin deleted the codex/manual-build-bridge-ref-20260702 branch July 2, 2026 09:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7fb0a0ab08

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

CSC_NAME: ${{ secrets.IDENTITY }}
CSC_IDENTITY_AUTO_DISCOVERY: false
EVAOS_DESKTOP_BRIDGE_REQUIRE_REAL: 'true'
EVAOS_DESKTOP_BRIDGE_SOURCE_REF: ${{ vars.EVAOS_DESKTOP_BRIDGE_SOURCE_REF }}

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 Badge Fall back to the pinned bridge ref

When Manual Build checks out an older/beta branch via ref: inputs.branch, the scripts/prepareEvaosDesktopBridgeResource.js that runs is from that checked-out branch, not necessarily the current one with the hard-coded pinned default. If the repo/org variable EVAOS_DESKTOP_BRIDGE_SOURCE_REF is unset, this line exports an empty value, so strict macOS builds can still fall back to that branch's mutable/default ref and fail the pinned-ref check. Add a literal approved SHA fallback here, or make the ref a required manual input, so the default-branch workflow is self-contained for older build refs.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:native-companion Native macOS companion boundary kind:integration Integration implementation issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant