Commit 672c91c
committed
š
The previous implementation treated any non-empty value of
`AIIDA_NO_DAEMON_AUTOSTART` as "skip daemon". That made
`AIIDA_NO_DAEMON_AUTOSTART=0` and `=false` silently skip the
daemon, contrary to what those values read as.
The env var is an internal escape hatch for the Docker init
script (and similar CI setups), not a public API surface. Keep
the recognized form narrow: only the literal string `1` skips
the daemon. Any other value (`0`, `true`, `false`, empty, typos)
falls through to "start the daemon", which is the safe default.
Drop the env var from user-facing reference: `--help` and
`command_line.rst` no longer mention it. Documenting it in the
CLI reference would turn an internal hatch into public API and
require a deprecation cycle to remove. The Docker init script
already comments why it sets the var; that's the right place
for consumer-side docs. A short comment near the call site
in `cmd_presto.py` keeps it discoverable for future maintainers
via `grep`.
Tests: parametrize over representative non-`1` values (`0`,
`true`, `false`, empty, `banana`) to lock in that none of them
skip the daemon.verdi presto: only treat AIIDA_NO_DAEMON_AUTOSTART=1 as truthy1 parent a9bc5f5 commit 672c91c
3 files changed
Lines changed: 21 additions & 6 deletions
File tree
- docs/source/reference
- src/aiida/cmdline/commands
- tests/cmdline/commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
323 | | - | |
| 322 | + | |
324 | 323 | | |
325 | 324 | | |
326 | 325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
| 187 | + | |
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
| |||
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
296 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
129 | 144 | | |
130 | 145 | | |
131 | 146 | | |
| |||
0 commit comments