Skip to content

test(scripts): identify the Windows native probe by executable - #21774

Merged
shivamhwp merged 1 commit into
pingdotgg:mainfrom
UtkarshUsername:test/windows-native-probe-detection
Oct 31, 2026
Merged

shivamhwp merged 1 commit into
pingdotgg:mainfrom
UtkarshUsername:test/windows-native-probe-detection

Conversation

@UtkarshUsername

Copy link
Copy Markdown
Contributor

Problem

The cross-architecture Windows payload test treats any command with ELECTRON_RUN_AS_NODE=1 as the primary native-load probe. When the test runner inherits this variable, unrelated validation commands inherit it too, causing a false failure.

Change

Identify the primary probe by the packaged application executable path. Keep checking that the host Node validation command runs with an empty NODE_PATH. This changes only the test assertion.

Scope and approval

This is a small, focused fix for an obvious environment-sensitive test defect, qualifying for the exception without a prior issue or discussion. It starts from upstream main independently of #21766.

Verification

On Windows x64 with inherited ELECTRON_RUN_AS_NODE=1:

  • Before: the cross-architecture probe test failed with expected false, received true.
  • After: vp test run lib/cli-external-packages.test.ts build-desktop-artifact.test.ts -t '^(?!.*builds and stages native capture helpers for each Linux architecture).*$' passed 97 tests, skipping only the existing Windows POSIX-permission failure addressed separately in test(scripts): skip POSIX helper permission checks on Windows #21766. Runtime: 9.85s.
  • vp lint scripts/build-desktop-artifact.test.ts passed.
  • vp run --filter @t3tools/scripts typecheck passed.
  • git diff --check passed.

Model: gpt-6.1-sol. Harness: Codex in T3 Code.

@macroscopeapp

macroscopeapp Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 323756b

Macroscope's review found this PR approvable — The sole changed file is an ignored test script, so the change is confined to test-harness behavior and does not alter product runtime behavior or defaults. It also introduces no static-analysis suppression or sensitive-area changes.

Notes:

  • No code objects were reviewed. Approvability was decided on eligibility alone.

No code changes detected at 535d415. Prior analysis still applies.

You can add or adjust custom eligibility rules. Learn more.

@github-actions github-actions Bot added size:XS 0-9 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 1c43770 and 535d415.

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
Walkthrough

The cross-architecture Windows payload test now asserts that validation does not spawn the packaged application executable.

Changes: Windows Payload Validation

Layer / File(s) Summary
Executable spawn assertion
scripts/build-desktop-artifact.test.ts
The test now checks that validation does not spawn the packaged Windows executable, replacing the check for ELECTRON_RUN_AS_NODE=1.

Priority: Low

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

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · previous review 1c437

The test change is mergeable with no identified correctness or availability risk.

Architecture risk: Low · up to 32375

The change affects 1 system.

Changed systems: scripts

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — scripts (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in scripts/build-desktop-artifact.test.ts: The test now asserts that the packaged Windows executable was not spawned, replacing the check that no spawned command had ELECTRON_RUN_AS_NODE set to "1".
Pre-merge checks: Passed 4
Check name Status Explanation
Description check Passed The description includes all required sections. It clearly explains the environment-sensitive test defect, the executable-path assertion change, scope justification, focused Windows verification, and …
Title check Passed The title is concise, specific, and accurately describes the main test assertion change: identifying the Windows native probe by its executable.
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: Description check

Explanation

The description includes all required sections. It clearly explains the environment-sensitive test defect, the executable-path assertion change, scope justification, focused Windows verification, and additional lint, typecheck, and diff checks.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@UtkarshUsername
UtkarshUsername force-pushed the test/windows-native-probe-detection branch from 1c43770 to 535d415 Compare October 30, 2026 13:08
@shivamhwp
shivamhwp merged commit 44d91c5 into pingdotgg:main Oct 31, 2026
32 checks passed
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Oct 31, 2026
**v0.1.7-nightly.20261031.3991** · 6 changes from 4 contributors

## Highlights
Gemini quota limits now appear for Antigravity users.

## Fixes
- Gemini quota limits appear for Antigravity users (#28090)
- OpenCode text generation works with the default model (#22442)

<details>
<summary>Full changelog</summary>

## What's Changed
* fix(clients): stop loading thread families when opening chats by @Yash-Singh1 in pingdotgg/t3code#26762
* fix(server): bump Antigravity quota probe UA to hub/2.24.0 so Gemini limits appear by @LVC-Chakresh in pingdotgg/t3code#28090
* fix(opencode): use Big Pickle for default text generation by @UtkarshUsername in pingdotgg/t3code#22442
* test(scripts): identify the Windows native probe by executable by @UtkarshUsername in pingdotgg/t3code#21774
* fix(web): effort picker shows Default or the checkmark, flush right by @shivamhwp in pingdotgg/t3code#28162

## New Contributors
* @LVC-Chakresh made their first contribution in pingdotgg/t3code#28090

**Full Changelog**: pingdotgg/t3code@v0.1.6-nightly.20261031.3977...v0.1.7-nightly.20261031.3991

</details>


Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.7-nightly.20261031.3991
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:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants