Skip to content

SCOREC/github-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to test globus compute locally

  1. Follow quick start to install globus:

  2. Create an app to use for authentication on:

  3. Generate a secret to use for app created in step 2. I recommend creating a different secret for each endpoint you create.

    • this can not be regenerated so make sure to save it in a secure location and do not share it with anyone else
  4. Create the following env file:

    • replace the app id and secret with the values from step 2 and 3
    • replace the python path with the corresponding path on your account

    module load miniforge3/23.11.0 source activate localpython export GLOBUS_COMPUTE_CLIENT_ID="app id" export GLOBUS_COMPUTE_CLIENT_SECRET="secret" export PYTHONPATH=$PYTHONPATH:/ccs/home/castia5/.local/frontier/miniforge3/23.11.0/lib/python3.10/site-packages

  5. Create an endpoint using $globus-compute-endpoint configure $globus-compute-endpoint start --detach

  6. Run an sbatch script to restart the endpoint periodically for example:

  7. Copy the following files and run test-globus.sh to test the endpoint

How change endpoint used by globus compute

  1. Copy the id and secret used in previous step 4 into the github secrets for the repository in the following format: GLOBUS_CLIENT_ID: app id GLOBUS_CLIENT_SECRET: secret

    • Note: the secret should be different for each repo
  2. Copy the endpoint id into github action used to run the test here:

  3. Update path where github test runs in the following locations

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors