You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/packages/development/managing.md
+33-4Lines changed: 33 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -31,17 +31,45 @@ You will then be greeted with a welcome message and some information about short
31
31
32
32
### Repositories
33
33
34
-
TODO
34
+
Local copies of the [github repositories][pylhc_github] are kept in `/afs/cern.ch/eng/sl/lintrack/omc_repos/`.
35
+
There is a shortcut available on the `lintrack` welcome screen to update all repositories.
36
+
37
+
These repositories are used in the `python_edge` environment and might be modified online to test new features
38
+
or fix issues.
39
+
40
+
!!! warning "Keeping them clean"
41
+
Changes to the repositories should be short lived and patched into the packages properly within a day or two and the repository reset to its original state.
42
+
In the past, changes made during shifts were often forgotten and after a while no one knew why the changes were made which version was the correct one to use.
35
43
36
44
### Python Installations
37
45
38
-
TODO
46
+
The python installations are located in `/afs/cern.ch/eng/sl/lintrack/omc_acc_py/`.
47
+
In this folder you can also find the `acc-py` installers as well as the `omc_requirements_*.txt` files to easily setup new environments.
48
+
49
+
-`/afs/cern.ch/eng/sl/lintrack/omc_acc_py/base/` contains the base `acc-py` installations from which the environments are derived.
50
+
- In `/afs/cern.ch/eng/sl/lintrack/omc_acc_py/venv/` contains the environments. These are automatically picked up by the [BetaBeat GUI](/guis/betabeat/gui.html).
51
+
52
+
The main environments are:
53
+
54
+
-`omc_py3xx_releases`: The main production environment which is used for the CCC. All packages are installed via their official `pypi` release.
55
+
-`omc_py3xx_repos`: The development environment which is used for the testing of new packages. All packages are installed from the local `git` repositories.
56
+
57
+
These two environments are also symlinked to `/afs/cern.ch/eng/sl/lintrack/omc_python3` and `/afs/cern.ch/eng/sl/lintrack/omc_python_edge` respectively.
58
+
59
+
!!! info "TODO"
60
+
- If you want the newest version of a repository to be used in `python_edge` you need to pull the changes into the local repository manually (see also the `lintrack` welcome screen).
61
+
- Whenever there is a new release for one of the packages, it needs to be manually installed into the `omc_py3xx_releases` environment.
62
+
Shortcuts are available (see the `lintrack` welcome screen), but for single updates one can use `python -m pip install -U <package>`.
63
+
- On new `acc-py` releases, a new base environment needs to be created and the `omc_py3xx_releases` and `omc_py3xx_repos` environments derived.
64
+
You can use the `omc_requirements_*.txt` files for this process.
65
+
To avoid issues, the former and new bases/environments can be kept in parallel for a while.
66
+
Don't forget to also update the symlinks.
39
67
40
68
## Github
41
69
42
70
The settings for the organization `pylhc` should be automatically available to you, if you have been given the right permissions (either `admin` or `code owner`).
43
71
44
-
Our repositories use the [`.github`][pylhc_github] configuration repository to manage
72
+
Our repositories use the [`.github`][pylhc_github_github] configuration repository to manage
45
73
46
74
- Issue Templates
47
75
- Workflows
@@ -115,7 +143,8 @@ To add a new repository to Zenodo, you need to make sure that the `.zenodo.json`
0 commit comments