Skip to content

Commit

Permalink
Fix early exiting when building multiple wheels
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 700711389
  • Loading branch information
nitins17 authored and Google-ML-Automation committed Nov 27, 2024
1 parent 8477580 commit d449f12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,12 @@ async def main():
wheel_build_command.append(f"--jaxlib_git_hash={git_hash}")

result = await executor.run(wheel_build_command.get_command_as_string(), args.dry_run)
# Exit with error if any wheel build fails.
if result.return_code != 0:
raise RuntimeError(f"Command failed with return code {result.return_code}")
else:
sys.exit(0)

# Exit with success if all wheels in the list were built successfully.
sys.exit(0)


if __name__ == "__main__":
Expand Down

0 comments on commit d449f12

Please sign in to comment.