Skip to content

test: tolerate Codex daemon reconciliation race - #917

Merged
defangdevs merged 1 commit into
masterfrom
fix/915-post-merge-ci
Oct 23, 2026
Merged

defangdevs merged 1 commit into
masterfrom
fix/915-post-merge-ci

Conversation

@defangdevs

Copy link
Copy Markdown
Owner

Follow-up to #916 and #915.

Post-merge CI exposed a repeatable race in tests/sessions.nix: direct wrapper tests intentionally stop the same user-wide Codex daemon supervised by the helper pane. The pane can disappear after the test reads its PID but before the deliberate kill-session, causing the test to fail even though the supervisor is reconciling it correctly.

Retry the deliberate kill until reconciliation supplies a live pane. The existing assertion still requires the subsequent pane PID to differ from the original, so the restart behavior remains covered.

Validation:

  • nix build -L --keep-going .#ci-native
  • git diff --check

The sessions VM lane will exercise the reproduced race on GitHub CI.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 97460f94-9456-48e3-857c-58ec0b8fa0b3
📥 Commits

Reviewing files that changed from the base of the PR and between 301092c and ec4edec.

📒 Files selected for processing: 1
  • tests/sessions.nix
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@defangdevs
defangdevs merged commit 62550b8 into master Oct 23, 2026
14 of 16 checks passed
@defangdevs
defangdevs deleted the fix/915-post-merge-ci branch October 23, 2026 01:23
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Agent-Box Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant