Skip to content

Commit

Permalink
Merge branch 'ko3n1g/ci/fail-fast-unit-tests' into 'main'
Browse files Browse the repository at this point in the history
ci: Fail-fast on unit tests

See merge request ADLR/megatron-lm!2520
  • Loading branch information
ko3n1g committed Jan 8, 2025
2 parents 05780f3 + 9220838 commit 1ce944c
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 1ce944c

Please sign in to comment.