Skip to content

fix(build): identify cross-architecture probe by executable - #7253

Open
lastobelus wants to merge 1 commit into
pingdotgg:mainfrom
lastobelus:fix/windows-cross-arch-probe-test
Open

fix(build): identify cross-architecture probe by executable#7253
lastobelus wants to merge 1 commit into
pingdotgg:mainfrom
lastobelus:fix/windows-cross-arch-probe-test

Conversation

@lastobelus

@lastobelus lastobelus commented Aug 16, 2026

Copy link
Copy Markdown

The cross-architecture Windows payload test treats any child command carrying ELECTRON_RUN_AS_NODE=1 as the packaged primary probe. When tests are launched from Electron, that variable is inherited by the ordinary Node self-containment check, so the assertion fails even though the primary probe was correctly skipped.

Identify the primary probe by both its packaged executable path and Electron runtime flag. This keeps the assertion scoped to the behavior it intends to test and makes it independent of ambient Electron environment variables.

Downstream port: lastobelus#18

Validation: vp test run build-desktop-artifact.test.ts (46 passed).

Implemented with GPT-5.6-Sol through the Codex harness in T3 Code.

@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5748bf5a-3aee-435a-8ff5-47cb1f6211d6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Aug 16, 2026
@macroscopeapp

macroscopeapp Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved c8a24eb

Test-only change that makes an assertion more specific by also verifying the command path. No runtime code is affected.

You can customize Macroscope's approvability policy. Learn more.

lastobelus added a commit to lastobelus/lastCode that referenced this pull request Aug 16, 2026
The cross-architecture Windows payload test treats any child command
carrying ELECTRON_RUN_AS_NODE=1 as the packaged primary probe. LastCode
local updates run from Electron and inherit that variable, so the
ordinary Node self-containment check is misclassified and full local CI
fails before a build can be produced.

Identify the primary probe by both its packaged executable path and
Electron runtime flag. This keeps the assertion scoped to its intended
behavior and allows local update builds launched from LastCode.

Upstream: pingdotgg#7253

Validation:
- focused scripts/build-desktop-artifact.test.ts: 47 passed
- exact-head full local CI passed for
dfdb1d4 against eab34f9
- pre-push quick local CI passed

Implemented with GPT-5.6-Sol through the Codex harness in T3 Code.
lastobelus added a commit to lastobelus/lastCode that referenced this pull request Aug 16, 2026
The cross-architecture Windows payload test treats any child command
carrying ELECTRON_RUN_AS_NODE=1 as the packaged primary probe. LastCode
local updates run from Electron and inherit that variable, so the
ordinary Node self-containment check is misclassified and full local CI
fails before a build can be produced.

Identify the primary probe by both its packaged executable path and
Electron runtime flag. This keeps the assertion scoped to its intended
behavior and allows local update builds launched from LastCode.

Upstream: pingdotgg#7253

Validation:
- focused scripts/build-desktop-artifact.test.ts: 47 passed
- exact-head full local CI passed for
dfdb1d4 against eab34f9
- pre-push quick local CI passed

Implemented with GPT-5.6-Sol through the Codex harness in T3 Code.
lastobelus added a commit to lastobelus/lastCode that referenced this pull request Aug 17, 2026
The cross-architecture Windows payload test treats any child command
carrying ELECTRON_RUN_AS_NODE=1 as the packaged primary probe. LastCode
local updates run from Electron and inherit that variable, so the
ordinary Node self-containment check is misclassified and full local CI
fails before a build can be produced.

Identify the primary probe by both its packaged executable path and
Electron runtime flag. This keeps the assertion scoped to its intended
behavior and allows local update builds launched from LastCode.

Upstream: pingdotgg#7253

Validation:
- focused scripts/build-desktop-artifact.test.ts: 47 passed
- exact-head full local CI passed for
dfdb1d4 against eab34f9
- pre-push quick local CI passed

Implemented with GPT-5.6-Sol through the Codex harness in T3 Code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant