Skip to content

Conversation

@MasterPtato
Copy link
Contributor

Changes

@MasterPtato MasterPtato requested a review from NathanFlurry June 9, 2025 17:57
This was referenced Jun 9, 2025
Copy link
Contributor Author

MasterPtato commented Jun 9, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@MasterPtato MasterPtato force-pushed the 06-09-fix_pegboard_fix_container_runner_orphaning branch from 683f674 to a25be6b Compare June 9, 2025 18:00
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 9, 2025

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9a559a0
Status: ✅  Deploy successful!
Preview URL: https://a4a1efa3.rivet.pages.dev
Branch Preview URL: https://graphite-base-2532.rivet.pages.dev

View logs

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Implements critical fixes to prevent container orphaning in the Pegboard system by improving container cleanup and adding parent process death handling.

  • Modified container name format in packages/edge/infra/client/manager/src/actor/setup.rs to include generation number ({actor_id}-{generation}) for precise container cleanup
  • Added PDEATHSIG configuration in packages/edge/infra/client/container-runner/src/container.rs to ensure child containers are killed if parent process dies unexpectedly
  • Implemented pre-execution hooks for container processes using nix crate to handle parent death signals properly

2 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

Comment on lines 719 to 723
match Command::new("runc")
.arg("delete")
.arg("--force")
.arg(self.actor_id.to_string())
.arg(format!("{}-{}", self.actor_id, self.generation))
.output()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Ensures correct container instance is deleted when multiple generations exist, preventing orphaned containers

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 9, 2025

Deploying rivet-hub with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9a559a0
Status: ✅  Deploy successful!
Preview URL: https://7eb5cc72.rivet-hub-7jb.pages.dev
Branch Preview URL: https://graphite-base-2532.rivet-hub-7jb.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 9, 2025

Deploying rivet-studio with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9a559a0
Status:🚫  Deploy failed.

View logs

@graphite-app
Copy link
Contributor

graphite-app bot commented Jun 12, 2025

Merge activity

  • Jun 12, 10:30 PM UTC: MasterPtato added this pull request to the Graphite merge queue.
  • Jun 12, 10:31 PM UTC: CI is running for this pull request on a draft pull request (#2588) due to your merge queue CI optimization settings.
  • Jun 12, 10:32 PM UTC: Merged by the Graphite merge queue via draft PR: #2588.

graphite-app bot pushed a commit that referenced this pull request Jun 12, 2025
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
@graphite-app graphite-app bot closed this Jun 12, 2025
@graphite-app graphite-app bot deleted the 06-09-fix_pegboard_fix_container_runner_orphaning branch June 12, 2025 22:32
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