[Celestica] Leh800bcls: Restart agents per benchmark to prevent cascading test hangs - #1427
Open
gang-tao wants to merge 1 commit into
Open
[Celestica] Leh800bcls: Restart agents per benchmark to prevent cascading test hangs#1427gang-tao wants to merge 1 commit into
gang-tao wants to merge 1 commit into
Conversation
Contributor
|
@AarjunC has imported this pull request. If you are a Meta employee, you can view this in D113927710. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pre-submission checklist
pip install -r requirements-dev.txt && pre-commit installpre-commit runclang-format.........................................(no files to check)Skipped
shellcheck...........................................(no files to check)Skipped
shfmt................................................(no files to check)Skipped
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...........................................(no files to check)Skipped
check json...........................................(no files to check)Skipped
check for merge conflicts................................................Passed
ruff check...............................................................Passed
ruff format..............................................................Passed
Prevent sai_impl in fboss manifest.......................................Passed
Summary
When running multiple hardware benchmarks in a single batch on multi-switch/multi-NPU platforms, an unhandled exception or crash in a single benchmark case leaves the systemd hardware agents (
fboss_hw_agent_oss@0and@1) in a dead state. Because the benchmark framework's setup/teardown is outer-scoped, subsequent benchmark cases in the loop attempt to run without restarting these dead agents, resulting in all subsequent cases timing out after 1200 seconds.Root Cause
benchmark_framework.pyinitialized hardware agents once before the case loop (self.suite.setup) and stopped them after the entire loop (self.suite.teardown). If a scale or config check throws a fatal exception in one case, the hardware agents exit and are never restarted. Subsequent cases attempt to connect to the dead agents, causing serial 1200s timeouts.Solution
Modified
fboss/oss/scripts/run_scripts/fboss_test_runner/frameworks/benchmark_framework.py:self._is_first_run = Truein__init__.runmethod to its unified single try-finally wrapper._run_benchmark_binary.Test Plan
Ran benchmark batch on the dual-NPU Leh800bcls platform:
Even if earlier cases time out or crash, it won't affect the execution of subsequent ones.