Skip to content

Commit

Permalink
ADLR/megatron-lm!2520 - ci: Fail-fast on unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ko3n1g committed Jan 8, 2025
1 parent 4dc8977 commit 9220838
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_utils/python_scripts/launch_jet_workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ def main(
success = pipeline.get_status() == PipelineStatus.SUCCESS
logger.info("Pipeline terminated with status %s", pipeline.get_status().name)

if test_type == "unit_test":
sys.exit(int(not success)) # invert for exit 0

if test_type != "release":
if success:
sys.exit(int(not success)) # invert for exit 0
Expand Down

0 comments on commit 9220838

Please sign in to comment.