Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/designThe design spec, its tokens and their buildsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem Description
The review of #4811 (issue #4738, merged) found two problems in the design token checks:
- The CI step "Run the Design Tests" of the job
design-tokenshas a limit of 2 minutes, but the bound of one test is 600 s (timeout = 600inpyproject.toml). This breaks the rule "Nested Time Limits" of ARCHITECTURE.md: "Set the bound of one test shorter than its step." When a design test hangs, the runner stops the step at 120 s, and pytest-timeout gives no diagnostic. The contract test of the job checks step < job, but not test < step. - Each color in
design/tokens/*.tokens.jsonholds its value two times:componentsandhex. Style Dictionary reads onlycomponents, and no check compares the two. When a person edits onlyhex, the outputs do not change, the CI diff step passes, and the source shows a color that no output has.
Reproduction Steps
grep -n -A3 "Run the Design Tests" .github/workflows/ci.ymlshowstimeout-minutes: 2anduv run pytest tests/design -n 0with no--timeout.- In a checkout of
main, change"hex": "#ffffff"ofcolor.bgindesign/tokens/light.tokens.jsonto#fffffe, and runmake design-tokenswith the locked Style Dictionary. git diff --statshows only the source file.uv run pytest tests/designpasses.
Expected vs Actual Behavior
Expected: the bound of one design test is shorter than its step, and a check fails when the hex of a source color is not the color of its components.
Actual: the test bound (600 s) is longer than the step (120 s), and a hex that differs from components passes every check.
Environment Diagnostics
main at the merge of #4811; Style Dictionary 5.8.0 from src/devops_cli/tools_lock/style-dictionary/.
Logs, Traces, or Terminal Output
After step 2: git diff --stat gives design/tokens/light.tokens.json | 2 +- and no output file. The design tests take 10.7 s in total, and 0.8 s at most for one test.
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.
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/designThe design spec, its tokens and their buildsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 12, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(design)scope of the title gives the scope.Two real defects exist: lost diagnostics on hang and silent token corruption, but no user-facing outage.Prevents silent design-token data corruption and restores diagnostic output on test hangs.Requires adjusting one timeout value and adding a hex-to-components comparison check.Both address CI timeout misalignment, but #4683 targets devops ci rows while the candidate targets the design-tokens job step.devops-cli-service commentedon Nov 12, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
(design)scope of the title gives the scope.It repairs a CI guard and a silent source check, but no user-facing failure occurs.It stops silent color drift and gives a diagnostic when a design test hangs.It changes one timeout bound and adds one small token check.Both touch the design token files and their checks. 4786 holds label colors to token values, while the candidate checks hex against components and the test bound.devops-cli-service commentedon Nov 12, 2026
Released in v0.116.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.116.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 05:27 UTC