Skip to content

[Feature] Add CI for fault tolerance - #1222

Merged
zhuzilin merged 42 commits into
THUDM:mainfrom
yitianlian:ci_fault
Jan 6, 2026
Merged

zhuzilin merged 42 commits into
THUDM:mainfrom
yitianlian:ci_fault

Conversation

@yitianlian

Copy link
Copy Markdown
Collaborator

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +395 to +397
def simulate_crash(self):
logger.warning(f"Simulating crash on engine {self.server_host}:{self.server_port}...")
kill_process_tree(self.process.pid)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Guard simulate_crash when no local process exists

The new simulate_crash unconditionally dereferences self.process.pid, but self.process is only created in _init_normal; in --rollout-external mode (or any path where no local server process is launched), this attribute is never set. If CI enables fault injection in an external-engine setup, the Ray task will raise AttributeError instead of simulating a crash, which defeats the test and can break the rollout manager. Consider checking self.args.rollout_external (or self.process is not None) before calling kill_process_tree.

Useful? React with 👍 / 👎.

Comment thread slime/ray/rollout.py Outdated
self.num_new_engines = 0
self.rollout_id = rollout_id
if self.args.use_fault_tolerance:
self._health_monitor.resume()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

maybe use self.health_monitoring_resume()

@zhuzilin
zhuzilin merged commit f24df55 into THUDM:main Jan 6, 2026
15 checks passed
kafkayu pushed a commit to kafkayu/slime that referenced this pull request Jan 8, 2026
Yangruipis pushed a commit to redai-studio/slime that referenced this pull request Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants