Repository navigation
[release] Await gh availability check before verifying artifacts - #37855
Merged
Merged
Conversation
executableIsAvailable is async, so the bare call in the if condition was a Promise and always truthy. Without the gh CLI installed, the script ran gh attestation verify anyway and failed instead of skipping verification. Claude-Session: https://claude.ai/code/session_01W9Mk18mBNfkPfgg3hYweKq
|
Comparing: 99c106c...2e1141b Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) Generated by sizebot against 2e1141b |
yoominho91
added a commit
to m1kapp/fixearly
that referenced
this pull request
Oct 15, 2026
…55 (#200) A same-file async function or method called without await in an if, while, ternary condition or under ! is a Promise: always truthy, and always false when negated. Corpus prototype: 6 hits, 4 real (vscode skips its can-install check, REPL early return, gulp file existence; react's release script runs gh attestation without gh). The two false positives were bare calls to imported sync functions sharing a name with an async method; bare names now only match function declarations and variables, this.x() only methods [FP:async-cond-name-kind]. Diagnostics 24 -> 25 (correctness 10). Registers react/react#37855, the first PR from this rule. Claude-Session: https://claude.ai/code/session_01W9Mk18mBNfkPfgg3hYweKq Co-authored-by: Minho Yoo <[email protected]>
This was referenced Oct 15, 2026
eps1lon
pushed a commit
to vercel/next.js
that referenced
this pull request
Oct 20, 2026
[diff react/react@99c106c4...ba39b32a](react/react@99c106c...ba39b32) <details> <summary>React upstream changes</summary> - react/react#37853 - react/react#37856 - react/react#37855 </details> --------- Co-authored-by: next-js-bot[bot] <279046576+next-js-bot[bot]@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
executableIsAvailableinscripts/release/shared-commands/download-build-artifacts.jsisasync, butprocessArtifactcalls it withoutawait:The condition is a
Promise, so it is always truthy. On a machine without theghCLI the script still runsgh attestation verifyand fails, instead of skipping verification as the check intends. This adds the missingawait.How did you test this change?
The helper is not exported, so I reproduced it standalone with the same implementation and a command that isn't installed:
The diff is the single
await;processArtifactis alreadyasync.https://claude.ai/code/session_01W9Mk18mBNfkPfgg3hYweKq