run-fleet.sh logs a different worker name than the container gets when EXTRA_ENV sets ORCH_WORKER_NAME
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Read setup-scripts/debian13-worker/lib.sh around load_env (lines 380-385) and stamp_worker_env (lines 689-693), then inspect the related bats tests and CHANGELOG. Add coverage for EXTRA_ENV containing ORCH_WORKER_NAME and check the existing warning pattern. Done means the warning names the key and effective value without printing other EXTRA_ENV content, while behavior without that setting stays unchanged.
Written by the indexing model from the issue text.
Description
Problem
ORCH_WORKER_NAME can appear twice in a stamped env.N. stamp_worker_env writes it once (setup-scripts/debian13-worker/lib.sh:689). If the operator also puts it in EXTRA_ENV, that block is appended after it (lib.sh:690-693).
podman run --env-file keeps the last occurrence, so the container runs with the EXTRA_ENV name. But run-fleet.sh reads the first one (setup-scripts/debian13-worker/run-fleet.sh:160, sed ... | head -n1), then logs and preserves it. The log says one name and the worker registers under another.
The same happens when an operator appends a second name line to env.N by hand: make up applies it, and the next rerun of run-fleet.sh reverts it.
load_env already warns when the disk gate keys appear in both channels (lib.sh:380-385), but it does not do that for ORCH_WORKER_NAME.
Steps to reproduce
- Set
EXTRA_ENV="ORCH_WORKER_NAME=fromextra"insetup.env. - Run
run-fleet.sh. - The log shows
Worker 1/3 (<prefix>-1), but the container runs asfromextra.
Proposed change
Warn in load_env when EXTRA_ENV contains ORCH_WORKER_NAME, in the same way as for the disk gate keys. The warning names the key and tells the operator which value the container will use. It does not print other EXTRA_ENV content.
Do not switch run-fleet.sh to read the last occurrence. That would rename already enrolled workers on the server at the next rerun.
Acceptance criteria
- With
ORCH_WORKER_NAMEinEXTRA_ENV, the operator gets a warning that names the key and the effective value. - Without it, behavior and output are unchanged. Existing deployments keep working without config changes, and enrolled workers keep their names.
- A bats test with
ORCH_WORKER_NAMEinEXTRA_ENVpins the warning. - CHANGELOG entry under Unreleased.
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 10
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
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 AInvirion/orcaster
-
enhancement P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
enhancement good first issue P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug P2 server
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
bug P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
enhancement P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
All issues in AInvirion/orcaster
Similar issues
-
[Resource]: SpaicelyOpenresource-submission validation-passed
Difficulty 1/5 Under an hour Newbie friendliness 68/100
hesreallyhim/awesome-claude-code#3875 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bvis/aegis-hass#725 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xPossibly taken @NimaVaziri claimed this today. OpenPytorch
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/TensorRT-LLM#23406 ·
Maintainers usually reply within 1 day