Skip to content

Make release entrypoint activation crash consistent - #623

Closed
GraciousGazelles wants to merge 11 commits into
mainfrom
fix/installer-proxy-link
Closed

GraciousGazelles wants to merge 11 commits into
mainfrom
fix/installer-proxy-link

Conversation

@GraciousGazelles

@GraciousGazelles GraciousGazelles commented Aug 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • publish both packaged executables through stable current/<executable> links on a completed first install
  • serialize install-root publication and activation on Linux and macOS with Python fcntl.flock, including parent-death lock release
  • reject symlinked installer-owned directory components below HOME, release paths/files, and stale/live custody directories
  • byte-revalidate an existing immutable release after taking the lock
  • atomically publish predecessor copies and preflight every stale-recovery destination before moving any custody data
  • keep SIGKILL states non-dangling; discard partial candidates and recover only format-marked complete copies
  • use private random rollback directories and preserve absolute or relative predecessor pointers
  • retain Python 3.9-compatible activation syntax
  • require a GitHub-hosted Intel macOS job for native target selection plus macOS process and lock semantics; verifier calls remain hermetic fixtures

Validation

  • exact candidate 493c1724c9d83585de08a44b3a4f69102a5de193
  • bash -n scripts/install_sedna_release_asset
  • python3 -m py_compile .github/scripts/test_ci_planners.py
  • 13 focused tests passed locally in 49.920s, with the native-macOS-only test correctly skipped on Linux
  • coverage includes visible links, predecessor backup and rollback, relative pointers, catchable and uncatchable interruption, concurrent lock-boundary proof, parent-death cleanup, immutable revalidation, partial-copy recovery, all-destination stale-recovery preflight, unmarked/symlinked custody, unsafe parent-directory rejection, invalid assets, and required-gate wiring
  • .github/scripts/validation-lanes/downstream-docs-check.sh
  • git diff --check
  • Python 3.9 is not installed on the local workstation; compatibility is preserved by avoiding post-3.9 activation syntax

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@GraciousGazelles GraciousGazelles changed the title Link the release proxy on first install Make release entrypoint activation crash consistent Aug 16, 2026
for executable, contents in previous_visible.items():
visible = visible_bin / executable
if failure == "activation_sigterm":
visible.symlink_to(current / executable)
)
if failure == "activation_backups_symlink":
self.assertTrue(backups.is_symlink())
self.assertEqual(list(external_backups.iterdir()), [])
self.assertIn("unsafe stale custody directory", proc.stderr)
self.assertTrue((stale / "saved").is_symlink())
self.assertEqual(
(external_saved / "codex").read_text(encoding="utf-8"),
self.assertIn("unsafe stale custody directory", proc.stderr)
self.assertTrue((stale / "candidate").is_symlink())
self.assertEqual(
(external_candidate / "partial").read_text(encoding="utf-8"),
self.terminate_installer_process_group(second)
self.assertIsNotNone(second)
self.assertEqual(first.returncode, 0, first_stderr)
self.assertEqual(second.returncode, 0, second_stderr)
self.assertEqual(first.returncode, 0, first_stderr)
self.assertEqual(second.returncode, 0, second_stderr)
proc = subprocess.CompletedProcess(
command, second.returncode, second_stdout, second_stderr
(stale / "saved" / "codex").read_text(encoding="utf-8"),
previous_visible["codex"],
)
self.assertTrue(collision.is_dir())
def terminate_installer_process_group(process: subprocess.Popen[str]) -> None:
try:
os.killpg(process.pid, signal.SIGKILL)
except ProcessLookupError:
except subprocess.TimeoutExpired:
try:
os.killpg(process.pid, signal.SIGKILL)
except ProcessLookupError:
@GraciousGazelles

Copy link
Copy Markdown
Collaborator Author

Superseded predecessor notice: this pull request is being closed unmerged because its installer activation and custody work was rebuilt in #642. The successor merged at 2a552f0 and is contained in current main at 76145a1. This is a lifecycle disposition only; it makes no claim of byte-for-byte equivalence. The original branch and exact head 1b0d109 are preserved.

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.

2 participants