Skip to content

Conversation

@bcumming
Copy link
Member

Refactor uenv docs.

  • update for v8.1 of uenv
  • add deployment guide
  • add information about configuration (new in v8)

@bcumming bcumming requested review from RMeli and msimberg as code owners May 30, 2025 15:25
@bcumming bcumming marked this pull request as draft May 30, 2025 15:25
@github-actions
Copy link

preview available: https://docs.tds.cscs.ch/125

@bcumming bcumming marked this pull request as ready for review June 2, 2025 16:31
@github-actions
Copy link

github-actions bot commented Jun 2, 2025

preview available: https://docs.tds.cscs.ch/125

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

preview available: https://docs.tds.cscs.ch/125

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

preview available: https://docs.tds.cscs.ch/125

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

preview available: https://docs.tds.cscs.ch/125

@bcumming bcumming merged commit a76644e into eth-cscs:main Jun 3, 2025
1 check passed
Copy link
Collaborator

@msimberg msimberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was too slow. I'll open a PR with the small suggestions.

uenv build $SCRATCH/recipes/myapp myapp/v3@daint%gh200
```

The output of the above command will print a url that links to a status page, for you to follow the progress of the build.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The output of the above command will print a url that links to a status page, for you to follow the progress of the build.
The output of the above command will print a URL that links to a status page where you can follow the progress of the build.

?

```

The output of the above command will print a url that links to a status page, for you to follow the progress of the build.
After a successful build, the uenv can be pulled using an address from the status page:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
After a successful build, the uenv can be pulled using an address from the status page:
After a successful build, the uenv can be pulled using a name from the status page:

?

| key | description | default | values |
| --- | ----------- | -------- | ------ |
| [`color`][ref-uenv-configure-options-color] | Use color output | automatically chosen according to environment | `true`, `false` |
| [`repo`][ref-uenv-configure-options-repo] | The default repo location for downloaded uenv images | `$SCRATCH/.uenv-images` | An absolute path |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth mentioning here that $SCRATCH/.uenv-images is exempt from the cleanup policy? Putting it in another directory in scratch may lead to surprising issues with the uenv database if images are deleted, no?

The repo is selected according to the following process:

* if the `--repo` CLI arguement overrides
* else if `color` is set in the config file, use that setting
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* else if `color` is set in the config file, use that setting
* else if `repo` is set in the config file, use that setting

# Deploying uenv

[](){#ref-uenv-deploy-versions}
## Versioning and Labeling
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Versioning and Labeling
## Versioning and labeling


# this can be used to search for all uenv on daint:
uenv image find @daint
The new [`eigen.alps.cscs.ch`][ref-cluster-eiger] deployment has version 8.1.0 of uenv installed.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The new [`eigen.alps.cscs.ch`][ref-cluster-eiger] deployment has version 8.1.0 of uenv installed.
The new [`eiger.alps.cscs.ch`][ref-cluster-eiger] deployment has version 8.1.0 of uenv installed.

The output above lists all of the uenv that are available on the current system ([Eiger][ref-cluster-eiger] in this case).
The search can be refined by providing a [label][ref-uenv-labels].

??? example "using labels to refine search"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
??? example "using labels to refine search"
??? example "Using labels to refine search"

```

!!! info
All uenv commands that take a [label][ref-uenv-labels] as an arguement use the same flexible syntax [label descriptions][ref-uenv-labels-examples].
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
All uenv commands that take a [label][ref-uenv-labels] as an arguement use the same flexible syntax [label descriptions][ref-uenv-labels-examples].
All uenv commands that take a [label][ref-uenv-labels] as an argument use the same flexible syntax [label descriptions][ref-uenv-labels-examples].

Before uenv can be used, you need to log out then back in again and type `which uenv` to verify that uenv has been installed in your `$HOME` path.

[](){#ref-uenv-labels}
## uenv Labels
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## uenv Labels
## uenv labels

Comment on lines +529 to +530
[](){#ref-uenv-labels}
## uenv Labels
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some overlap between this description of labels and the one in deploy.md. Can deploy.md link to here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants