• Pascal Roth's avatar
    Fixes cluster workflow to work with different container profiles (#486) · 6ef5930d
    Pascal Roth authored
    # Description
    
    Cluster workflow did not work with the different profiles and introduced
    names. This PR fixes the workflow and in addition, introduces additional
    checks that the profile can be selected. In detail:
    
    - checks whether a profile can be selected depending on whether a
    `.env.$container_profile` exists
    - allows for `job` to have multiple arguments, also without a profile,
    for all other options, the second argument has to be the profile
    - check if a docker image exists before building the singularity image
    - check if the path for the singularity image exists on the cluster,
    otherwise create it
    - check if the path for orbit exists on the cluster, otherwise create it
    
    
    ## Type of change
    
    - Bug fix (non-breaking change which fixes an issue)
    
    ## Checklist
    
    - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
    `./orbit.sh --format`
    - [x] I have made corresponding changes to the documentation
    - [x] My changes generate no new warnings
    - [ ] I have added tests that prove my fix is effective or that my
    feature works
    - [ ] I have run all the tests with `./orbit.sh --test` and they pass
    - [ ] I have updated the changelog and the corresponding version in the
    extension's `config/extension.toml` file
    - [x] I have added my name to the `CONTRIBUTORS.md` or my name already
    exists there
    
    ---------
    Co-authored-by: 's avatarLeul Tesfaye <lst26@cornell.edu>
    Co-authored-by: 's avatarMayank Mittal <12863862+Mayankm96@users.noreply.github.com>
    6ef5930d
submit_job.sh 662 Bytes