Options of loom entity-export, audit-namespace and mentor print no help text
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Company
ClickHouse
Component
CLI
Describe what's wrong
Three read-only report commands have options that print no description in --help. Each command's other options already have one:
| Command | Options with no help text |
|---|---|
loom entity-export |
--org, --namespace, --format |
loom audit-namespace |
--org, --namespace |
loom mentor |
--org, --namespace, --json |
All of them are defined in server/cli/reports.py.
Does it reproduce on the latest release or main?
Yes
How to reproduce
loom entity-export --help
loom mentor --help
Expected behavior
Every option in the table has a short help= string in the style of the options beside it (--output: "Output file, or '-' for stdout (default)"), naming the default where it matters:
--organd--namespaceon all three: the org and the namespace the report reads.entity-export --format: GraphML (graphml, the default) or JSON-LD (jsonld), as the command's own help describes.mentor --json: print the brief as JSON instead of a table, the same wording asaudit-namespace --json("Dump the output model as JSON");_cmd_mentorin the same file printsmentor.brief's output model.
Only the help strings change, not the options' names, defaults or behaviour.
How to make the change:
- Add the
help=strings inserver/cli/reports.py. - Regenerate the CLI snapshots under Python 3.12, the version CI runs (argparse output differs between versions):
LOOM_UPDATE_CLI_SNAPSHOT=1 python -m pytest tests/unit/test_cli_surface_snapshot.py. This rewritestests/unit/snapshots/cli_tree.jsonandcli_help.json; commit both, and check that every changed line is a help string. - Run
ruff check server/cli/reports.py,ruff format --check server/cli/reports.py,python -m pytest tests/unit/test_cli_surface_snapshot.pyandpython scripts/codegen/docs_reference.py --check. All should pass; lines stay within 100 columns.
Error message and logs
$ loom mentor --help
...
--org ORG
--namespace NAMESPACE
--agent AGENT Agent name (default: every hint for '-')
--window-days WINDOW_DAYS
Ledger window (default 7)
--json
Environment
main at 82dc31216f, Python 3.12
Related issues and pull requests
Related: https://github.com/ClickHouse/loom/issues/1988
How this was found
An AI tool helped find it, and I reproduced it myself
Redaction
- I removed tokens, keys, passwords and personal or customer data from everything above.
- Lenguaje dominante
- Python
- Estrellas
- 263
- Forks
- 47
- Merge medio
- 14 h 21 min
- PR fusionados (30 d)
- 873
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ClickHouse/loom
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
ClickHouse/loom#2014 ·
Los mantenedores suelen responder en 1 día
-
Options of loom period-digest, reextract, reconcile-status and demote-activity-narration print no help textPosiblemente ocupada @VanshajPoonia la tomó hoy. Abiertobug good first issue help wanted up-for-grabs
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ClickHouse/loom#1988 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
A compiler-tier checkout fetch from a shallow mirror never records its headPosiblemente ocupada @KaloyanNaumov la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
ClickHouse/loom#2016 ·
Los mantenedores suelen responder en 1 día
-
Delta workers fetch the compiler-tier checkout under a hard-coded 600 s limitPosiblemente ocupada @KaloyanNaumov la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 35/100
ClickHouse/loom#2012 ·
Los mantenedores suelen responder en 1 día
-
loom participant retire cannot retire an orphaned participant after container replacement or host rebootPosiblemente ocupada @l0K1ngg la tomó hoy. Abiertobug help wanted up-for-grabs
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
ClickHouse/loom#2007 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de ClickHouse/loom
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
TigreGotico/orthography2ipa#2950 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Unstructured-IO/unstructured#4876 ·
Los mantenedores suelen responder en 6 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
openfoodfacts/openfoodfacts-python#579 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
fairagro/m4.2_sql_to_arc#388 ·
Los mantenedores suelen responder en 1 día