Virtual accelerator for unit tests #13
Replies: 1 comment 9 replies
-
|
If you like this idea, I think we should discuss how we want the unit tests to run. Should it be done on many machines or just one? And if just one, which one? For me I think it would be good to choose one or perhaps two. It should be small machines so the number of elements are few and tests can run quickly. It should also have elements/functionalities that are representative of the machines in the community. Currently I'm thinking perhaps two:
@marlibgin2 @mikolaj-wrobel-solaris what do you think? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In #3 @JeanLucPons suggested the idea to use the HZB twin as a virtual accelerator for unit tests. This we think is definitely possible.
@Sulimankhail has made instructions for you to start testing it. The test case is for the
dev/feature/arch-proposal-draftbut for this discussion that is just for something to run so you can test how the container works.Currently the container is static with the BESSY II lattice inside but there are other options for running it. It can also be set up in a way where the lattice is external but that requires two containers so we thought this was best to test first.
It's also currently EPICS only but @Sulimankhail has a student working on the TANGO version.
🚀 Installation and Running Instructions for Example
1. Clone the Repository
2. Install Dependencies
3. Install the Package
If you use virtual environments, make and activate one at this point.
Install in developer mode:
python3 -m pip install -e .4. Run the Virtual Accelerator (Test bench)
For this you need Apptainer installed. Installation instructions can be found on their webpage https://apptainer.org/docs/admin/1.4/installation.html#.
The container is deployed in the container registry on codebase (the Helmholtz gitlab instance). It should be possible to pull without having to authenticate.
Open a new terminal and start the virtual accelerator there with:
Keep this terminal running — it simulates a virtual accelerator backend. There is some warning but ignore them.
5. Run the pyAML Client (example)
Go back to your original terminal where you installed the branch.
cd examples/tune python3 tune.pyBeta Was this translation helpful? Give feedback.
All reactions