Repository navigation
test: catch a stale embedded Antigravity launcher; launcher check independent of PATH - #2380
Merged
Merged
Conversation
…ependent of PATH antigravityRelayLauncher embeds antigravity_native_launch.py with include_str, which Lake does not track: an incremental build kept the pre-#2376 launcher (no keyring isolation) on spark, and the new launcher check failed there. orb-locald-test now compares the embedded launcher with the repository file, and HarnessProxy.lean is touched so caches rebuild it. The launcher check resolves python3 the way the product does (also for the stand-in agy's shebang) and prints why it failed.
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.
Follow-up to #2376: makes its launcher fix and test hold up on incremental builds. Test and comment changes only; no product behaviour changes.
Problem
OrbBin.HarnessProxy.antigravityRelayLauncherembedsantigravity_native_launch.pywithinclude_str. Lake does not trackinclude_strfiles, so when only the.pychanges, an incremental build keeps the old launcher inHarnessProxy's compiled output.That is what happened on spark.
orb-locald-testbuilt fromb1ab99613still embedded the pre-#2376 launcher, which has no keyring isolation and answers refusals with the HTML page. #2376's launcher check therefore failed there (161/162). The diagnostics added here showed the test got the oldXDG_RUNTIME_DIRand the HTML body.A desktop or Core built from a warm cache could ship the stale launcher the same way. A clean CI or Nix build is fine.
Changes
orb-locald-testgets a new check,core_accounts_antigravity_launcher_matches_source. It compares the embedded launcher withlean/OrbBin/OrbBin/antigravity_native_launch.pyin the repository, so a stale build now fails loudly.HarnessProxy.lean's doc comment now names the launcher revision. That changes the file, so every cache rebuilds it for fix: local Antigravity uses the mission login, not the desktop keyring; name relay refusals #2376. A future launcher change should update that line too.python3the way the product does. It uses that absolute path for the stand-inagy's shebang too, instead of depending onPATH, and prints the exit code, stderr and report when it fails.Tests
orb-locald-teston spark, at masterb1ab99613plus this branch, withHarnessProxyrebuilt: 163/163. This includes the launcher check (keyring isolation, relay refusal marker) and the new source match.orb-bin-teston spark atb1ab99613: all pass.agyintact throughpython3 -I -c <launcher> agy …. The launcher never reads fd 0; its relay child closes only its own descriptors.