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
Bench(refactor[lgtm]): Move the otel scripts into the stack they belong to
`scripts/lgtm/` holds the observability stack -- its compose files, dashboard
generator, telemetry wiring, and load driver. The smoke run and the acceptance
check sat outside it under an `otel_` prefix, though they are the two entry
points that stack exists to serve: `acceptance.py` already documented itself in
terms of `scripts.lgtm.generate_dashboards`, and `generate_dashboards` returns
the reference.
scripts/otel_smoke.py -> scripts/lgtm/smoke.py
scripts/otel_acceptance.py -> scripts/lgtm/acceptance.py
Inside the directory the prefix was saying what the directory already says, so
it goes, matching `identity.py`, `telemetry.py`, and `load_tmux.py` beside
them.
Moving one level deeper broke two paths that had been counting directories,
both silently:
- `acceptance.py` derived the repository root with `parent.parent`, which now
lands on `scripts/`, pointing every dashboard and helper lookup one level
wrong.
- `smoke.py` put `__file__.parent / "lgtm"` on `sys.path` to import
`telemetry`; from inside `lgtm/` that names a directory that does not exist.
It now adds its own directory, the idiom `load_tmux.py` already uses.
`--help` used to say `otel_smoke.py`, which told a reader where to look. Bare
`smoke.py` does not, so both parsers name their path, as the orchestration
scripts do.
Verified: both run under the invocation their `just` recipes use, every
derived path resolves, and the lgtm tests pass.
0 commit comments