[code-reflection] RFR: [hat] Script for remote testing on GPU servers [v4]

Juan Fumero jfumero at openjdk.org
Wed Sep 24 08:46:07 UTC 2025


> This path adds a new script for remote testing. 
> 
> ### How to use it? 
> 
> 1. Generate a config file:
> 
> 
> bash ./scripts/remoteTesting.sh --generate-config-file
> 
> 
> 2. Fill the template 
> 
> Template is located in `<babylon>/hat/remoteTesting.conf`.
> 
> Example:
> 
> 
> # HAT Remote Testing Settings
> SERVERS=server1 server2 server3
> REMOTE_USERS=user1 user2 user3
> FORK=myBAbylonFork
> 
> #List of Backends to test
> BACKENDS=ffi-cuda ffi-opencl
> 
> ## Remote path. It assumes all servers use the same path
> REMOTE_PATH=repos/babylon/hat
> ## Branch to test
> BRANCH=hat/dialect/ops
> 
> 
> 3. [Optional] If needed, build Babylon+ HAT on the remote servers automatically
> 
> 
> bash ./scripts/remoteTesting.sh --build-babylon
> 
> 
> 4. Generate ssh-keys for all servers and run ssh-copy-id 
> 
> 5. Run the script without parameters
> 
> 
> bash ./scripts/remoteTesting.sh 
> 
> 
> #### Print help
> 
> 
> bash scripts/remoteTesting.sh --help
> 
> 
> ## Notes
> 
> - The testing script assumes all servers have installed Babylon + HAT before (so the Babylon JDK has been built)
> - The path to access all servers is the same 
> - The testing script setups the environment using `source setup.sh`

Juan Fumero has updated the pull request incrementally with one additional commit since the last revision:

  [hat] Remote testing improved

-------------

Changes:
  - all: https://git.openjdk.org/babylon/pull/580/files
  - new: https://git.openjdk.org/babylon/pull/580/files/7ad59f7d..e9b3c890

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=580&range=03
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=580&range=02-03

  Stats: 22 lines in 2 files changed: 2 ins; 9 del; 11 mod
  Patch: https://git.openjdk.org/babylon/pull/580.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/580/head:pull/580

PR: https://git.openjdk.org/babylon/pull/580


More information about the babylon-dev mailing list