Skip to content

Allow fab scripts to only do checkout or skip checkout #594

Description

@hiker

This is a requirement for systems where a compute node (used for compilation) does not have internet access. They run a build in two steps:

  1. A checkout step on a node with internet access
  2. A build script (after the checkout script).

While this could be easily done, there is a lot of convenience if they are supported in the same script (i.e. just one script to maintain), and for sites that don't need to split these two steps, the build can still be done with a single fab call.

Suggested approach would be to the following options to fab_base:

  1. Add a command-line option --checkout-only, which will just abort after the grab_files step.
  2. Add a command-line option --skip-checkout, which will allow applications to skip svn/git checkouts. They still might want to copy local files (i.e. while developing, you would want to update files from the application, just leaving the dependent repos unchanged). This will require changes to the applications scripts, since only they would know what is external and what isn't (I don't think we should make this part of the git/svn function to distinguish local/remote access, it would lead potentially to unexpected behaviour for users; while an app developer would actually know exactly which parts can/should be executed and which shouldn't).

This will be informed by implementing this in lfric.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions