Repository navigation
Description
Problem Description
Each row line of the devops ci gate has the form {badge} [{name}] {title} ({duration}) (_execute_check_async, src/devops_cli/commands/ci.py). print_muted reads the text as Rich markup, so Rich takes [{name}] as a style tag and removes it. No row line shows the name of its row. The names are what --only and --skip take, so a person who reads a failed line must find the name from the title.
Reproduction Steps
uv run python -I -c "from devops_cli.output import print_muted; print_muted(' X [lint] ruff check (1s)')"uv run devops ci --check --only format
Expected vs Actual Behavior
Expected: ✓ pass [format] ruff format (3.85s).
Actual: ✓ pass ruff format (3.85s). Step 1 prints X ruff check (1s).
Environment Diagnostics
devcontainer, origin/main 87ae9ee, Python 3.14.
Logs, Traces, or Terminal Output
✓ pass python version check (3.14+) (10µs)
✗ fail startup imports (modules that each command imports at start) (stopped after 9.27s)
Pre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate.
Source: #5031
Alternatives check of 2026-11-15: in-use.
The repository already uses this tool.
Tool: Textualize/rich (https://github.com/Textualize/rich), MIT, last activity 2026-11-13, maintained.
Proposed design
Problem statement
The devops ci gate prints one row line for each check. The line has the form {badge} [{name}] {title} ({duration}). print_muted parses the line as Rich markup. Rich removes [{name}] as a style tag. No row line shows its row name. A person who reads a failed line cannot find the name that --only and --skip take.
Acceptance criteria
Requirement: Gate row line shows the row name
The devops ci gate SHALL print each row line with the literal row name inside square brackets.
Scenario: A completed row line shows its name
- WHEN a gate row completes and
_execute_check_asyncprints its result line - THEN the line contains the row name in square brackets, and Rich does not consume the name as markup.
Requirement: Skipped and error row lines show the row name
The devops ci gate SHALL print the literal row name in every skipped, timed-out or cancelled row line.
Scenario: A skipped row line shows its name
- WHEN a gate row is skipped, times out or is cancelled and
_execute_check_asyncprints its line - THEN the line contains the row name in square brackets, and Rich does not consume the name as markup.
Requirement: Printed row name matches the selection name
The printed row name SHALL be the same string that --only and --skip accept.
Scenario: The printed name selects the same row
- WHEN a row line prints a name and a user passes that name to
--only - THEN the gate runs the same row and prints the same name again.
Existing Tool Considered
Textualize/rich (https://github.com/Textualize/rich) is already in use. It provides rich.markup.escape and markup=False. It lacks the change to the row-line formatting in src/devops_cli/commands/ci.py. The project must escape the row name or disable markup for that line.
Key questions
- Which row lines must show the row name?: Every row line printed by
_execute_check_async, including the normal, timeout, cancelled and skipped lines. [sources: src/devops_cli/commands/ci.py:564, src/devops_cli/commands/ci.py] - Does
print_mutedparse Rich markup?: Yes.print_mutedwraps a Rich console, so it parses the text as markup. [sources: src/devops_cli/output/console.py:470] - How should the row name survive Rich markup parsing?: Escape only the row name with
rich.markup.escapebefore it goes into the row line. The badge keeps its Rich style markup. (best practice) [sources: src/devops_cli/commands/ci.py:564, src/devops_cli/output/console.py:470]- Chosen: Escape the row name with
rich.markup.escape. It keeps the intentional badge markup and makes the literal name survive. - Rejected: Disable markup for the whole row line with
markup=False. It also disables the badge colors, which the gate uses to show pass and fail. - Rejected: Build a
rich.text.Textobject with separate styled spans. It works but is more code than escaping the one literal segment.
- Chosen: Escape the row name with
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 12, 2026
Both involve Rich markup consuming visible text, but #955 targets docker and sandbox output while this targets CI gate row names in ci.py.devops-cli-service commentedon Nov 15, 2026
Alternatives check: in-use
Reason: The searches found no separate library for the CI gate row lines: the defect is that
print_mutedparses its argument as Rich markup, and Rich — the console library the project already prints through — already provides the markup escaping (and amarkup=False/ plain-text mode) that makes a literal[name]survive. Rich therefore covers the escaping half of the need, while the row-line change inci.py/output.pystays with the project.The repository already uses this tool.
Tool: Textualize/rich (https://github.com/Textualize/rich)
Covers:
rich.markup.escape) so a literal[name]renders instead of being consumed as a style tagmarkup=False/ plain Text), which is the other way to keep[name]visibleprint_mutedinsrc/devops_cli/output.pyis already a wrapper over a Rich console, so no new dependency is neededLacks:
_execute_check_async; escaping or disabling markup inprint_mutedand passing the row name must be done insrc/devops_cli/commands/ci.pyandsrc/devops_cli/output.pyTools considered:
Searches run:
Sources:
Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 16, 2026
Status set to Ready at 9cc974b (see proposed design in issue body).
devops-cli-service commentedon Nov 17, 2026
Released in v0.173.3: https://github.com/dan-petty/devops-cli/releases/tag/v0.173.3
devops-cli-service commentedon Nov 17, 2026
Live since 2026-11-17 19:36 UTC