Controlling a strategy at runtime
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- cli, embedded-iot
Research direction
Start at the labgrid-client command-line entry point and review how strategies currently receive configuration and startup commands. Compare the proposed -V variables and the three do-build/do-bootstrap modes, then define how each mode should select console startup, U-Boot writing, and building; done means the requested runtime strategy behavior is controllable from the command line.
Written by the indexing model from the issue text.
Description
I would like to be able to tell the U-Boot strategy what to do at runtime, e.g.:
- just start up the board and connect a console
- write U-Boot to the board, then do 1
- build U-Boot and then do 2
At the moment I have implemented this with a new --variable (-V) argument to labgrid-client, with these variables available for use by strategies.
By far the most common use case I have is to build, write and start U-Boot on a board (case 3). This is:
labgrid-client -c env_rpi_try.cfg -V do-bootstrap 1 -V do-build 1 -p opi_pc -s start console
To just write the already-built U-Boot (case 2):
labgrid-client -c env_rpi_try.cfg -V do-bootstrap 1 -V do-build 0 -p opi_pc -s start console
To just start with whatever the board has (case 1):
labgrid-client -c env_rpi_try.cfg -V do-bootstrap 0 -V do-build 0 -p opi_pc -s start console
Does this seems like a reasonable feature? Is there an existing mechanism to control strategies from the cmdline?
- Dominant language
- Python
- Stars
- 528
- Forks
- 278
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from labgrid-project/labgrid
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
labgrid-project/labgrid#1868 · 3 comments ·
-
upstream
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
labgrid-project/labgrid#1493 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
labgrid-project/labgrid#1953 · 3 comments ·
-
enhancement question
Difficulty 5/5 Over a week Newbie friendliness 35/100
labgrid-project/labgrid#1945 · 5 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
labgrid-project/labgrid#1941 ·
All issues in labgrid-project/labgrid
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100