Skip to content

fix(ci): live-session script +x and Format e2b SHA false positive - #297

Closed
ZhiXiao-Lin wants to merge 16 commits into
mainfrom
fix/live-session-script-exec-bit
Closed

ZhiXiao-Lin wants to merge 16 commits into
mainfrom
fix/live-session-script-exec-bit

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Mark elevate / live-session / KVM qualification scripts 100755 so Linux Sandbox CI can run the v3 gate (missing executable elevate-linux-sandbox-owner.sh).
  • Format anti-compat grep uses word-regexp so OCI pin 7001ce5…e2bbb9a… is not a false E2B hit.

Test plan

  • Format job passes on tip
  • SDK Local Sandbox live-session v3 step runs past elevate and produces a verified report
  • B2 / fixture / KVM honesty flags stay false

Made with Cursor

ZhiXiao-Lin and others added 16 commits September 10, 2026 17:31
Linux Sandbox checkouts need 100755 on elevate/qualification scripts.
Word-regexp Format grep so OCI pin hex …e2bbb9a… is not treated as E2B.
Word-regexp still matched whole-word banned tokens inside the Format gate
comments; reword comments so only real product tokens fail the check.
Capability probe reads /proc/self; without probe migration (unlike
run-linux-sandbox-ci) Sandbox CI failed cgroup cpu/memory/pids after +x fix.
Re-prepare the CI cgroup tree immediately before the v3 gate.
Mid-job prepare rm -rf /sys/fs/cgroup/a3s-box-ci fails while earlier steps
still hold the tree. Keep probe migration only; reuse the job-start prepare.
Elevating the whole qualification example left geteuid()==0, skipped the
owner SETPRIV_WRAPPER, and CI Broken-piped on the first SDK frame. Match
Sandbox smoke: run-linux-sandbox-ci for the harness, elevate only for the
owner, and stage the Sandbox OCI launcher across sudo.

Co-authored-by: Cursor <[email protected]>
Keep only the matched-cred harness + launcher staging change for the
Native live-session Sandbox gate.

Co-authored-by: Cursor <[email protected]>
Those entries belonged to uncommitted WIP that briefly landed in the CI fix
commit; the Native matched-cred harness change does not pin OCI or claim KVM.

Co-authored-by: Cursor <[email protected]>
check-oci-pins failed closed with CI=f532e2d vs release/SDK=7001ce5 from
leftover KVM WIP in the live-session harness commit.

Co-authored-by: Cursor <[email protected]>
Matched-cred harness got past Broken pipe; create then failed because the
staged a3s-box-shim keeps DT_RUNPATH $ORIGIN/lib for libkrun and the gate
copied only the binary. Mirror the no-KVM package layout in staging/home.

Co-authored-by: Cursor <[email protected]>
PR Format merges main; the new KVM live-session example failed cargo fmt --check.

Co-authored-by: Cursor <[email protected]>
x86_64 Sandbox proved retained-stream v3 (report SHA 6d1cde0e…) but leftover
live-session OCI owners failed Verify cleanup. aarch64 hit retryable OCI
Unavailable on short printf after reopen — retry that path instead of sleeping.

Co-authored-by: Cursor <[email protected]>
Owner-record SIGTERM left elevate/sudo argv matching the live-session home.
Reap those by path before leftover pgrep. Keyed-exec retries use distinct
request ids so a partial first attempt cannot collide.

Co-authored-by: Cursor <[email protected]>
Accidental schema/doc/import scaffolding claimed transfer_file continuity
without implementing it, failing Clippy -D warnings. Keep honest v3.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin

Copy link
Copy Markdown
Author

Superseded for main by #300 after #299 landed Native Live filesystem v4.

@ZhiXiao-Lin

Copy link
Copy Markdown
Author

Closing in favor of #300.

Tip e932d290 CI fully green (run 34494782899): both arches live-session v3 + Verify cleanup passed.

Verified reports:

  • linux-x86_64 SHA-256 14bee5e571fcfdacf46ce3f070cd95f02f41a929c925195ab41acc0abd48f739
  • linux-arm64 SHA-256 7a7583d4b880647b3cf3fe063bcaf80ac52a08603957d8f7c11ff6d29929a3c7
    Both: retained_stream true; B2/fixture/KVM/utility false.

#299 already landed v4 filesystem on main; #300 ports this PR's cleanup + keyed-exec retries onto that tree.

ZhiXiao-Lin added a commit that referenced this pull request Sep 10, 2026
Port the post-#297 honesty fixes onto main after Native Live filesystem v4:
tear down live-session host owners and elevate leftovers in Verify cleanup,
and retry keyed captured exec Unavailable with distinct request ids.

Co-authored-by: Cursor <[email protected]>
ZhiXiao-Lin added a commit that referenced this pull request Sep 10, 2026
Port the post-#297 honesty fixes onto main after Native Live filesystem v4:
tear down live-session host owners and elevate leftovers in Verify cleanup,
and retry keyed captured exec Unavailable with distinct request ids.

Co-authored-by: Cursor <[email protected]>
ZhiXiao-Lin added a commit that referenced this pull request Sep 10, 2026
Port the post-#297 honesty fixes onto main after Native Live filesystem v4:
tear down live-session host owners and elevate leftovers in Verify cleanup,
and retry keyed captured exec Unavailable with distinct request ids.

Co-authored-by: Cursor <[email protected]>
ZhiXiao-Lin added a commit that referenced this pull request Sep 10, 2026
Filesystem merge elevated the whole example and dropped probe-cgroup migrate,
staged launcher, and $ORIGIN/lib. That fails closed on cgroup v2 delegation.
Restore the greened #297 harness path while keeping the v4 filesystem gate.

Co-authored-by: Cursor <[email protected]>
ZhiXiao-Lin added a commit that referenced this pull request Sep 11, 2026
* fix(ci): live-session cleanup + keyed-exec retries on v4

Port the post-#297 honesty fixes onto main after Native Live filesystem v4:
tear down live-session host owners and elevate leftovers in Verify cleanup,
and retry keyed captured exec Unavailable with distinct request ids.

Co-authored-by: Cursor <[email protected]>

* docs(changelog): note live-session cleanup and keyed-exec retries

Co-authored-by: Cursor <[email protected]>

* style: rustfmt live-session qualification examples

Unblock Format on the cleanup/retry PR; includes main's KVM example
rustfmt debt that cargo fmt --check already fails on.

Co-authored-by: Cursor <[email protected]>

* style: rustfmt KVM live-session after #301 filesystem path

Co-authored-by: Cursor <[email protected]>

* fix(ci): restore +x on live-session qualification scripts

Main lost 100755 after filesystem merges; Sandbox failed closed with
missing executable elevate-linux-sandbox-owner.sh before the v4 gate ran.

Co-authored-by: Cursor <[email protected]>

* docs(changelog): note restored live-session script +x

Co-authored-by: Cursor <[email protected]>

* fix(ci): restore matched-cred live-session harness for v4

Filesystem merge elevated the whole example and dropped probe-cgroup migrate,
staged launcher, and $ORIGIN/lib. That fails closed on cgroup v2 delegation.
Restore the greened #297 harness path while keeping the v4 filesystem gate.

Co-authored-by: Cursor <[email protected]>

* fix(live-session): retry keyed exec with same request_id

Orphan {id}.retry-N process journals left active_operation claims that
blocked generation delete after Live reopen. Same-key retries reconcile
the partial prepare-exec journal instead. Also disarm the exec timeout
watchdog when Exit is observed.

Co-authored-by: Cursor <[email protected]>

* style: rustfmt oci_session watchdog disarm on Exit

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant