Repository navigation
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1573 +/- ##
==========================================
- Coverage 96.49% 96.48% -0.01%
==========================================
Files 569 569
Lines 75249 75252 +3
Branches 12980 12980
==========================================
- Hits 72611 72608 -3
- Misses 1615 1616 +1
- Partials 1023 1028 +5
🚀 New features to boost your workflow:
|
Mutation of changed linesAt 2c54952: 31 caught · 6 missed Each row is a small deliberate break (a mutant) of a line this PR changes that every test reaching that line still passes. Add a test that fails on it or, if it cannot change behaviour, put
Not checked:
Warning only: a missed break does not fail the job. Updated on every push; the full report is in the ci run summary. |
A question text, question ID or topic label with a raw `|` added columns to its Markdown row, and a line break ended the row early. Add fmt.cell and apply it to every data cell of the ReportGenerator tables. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
…them Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
…bles A pipe in an arm, harness, run, model, product or task name adds columns to its row in arms, plugin-delta, task-runs, subject, model-compare, single-condition and delivery tables. The cases fail before the fix. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Arm, harness, run, model, product, task and condition names went into table cells raw, so a pipe added columns to the row. They now go through fmt.cell, as the question and topic cells already do. delivery.cell keeps its HTML escape and delegates the pipe and line-break step to fmt.cell. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
The arm cell went through the delivery cell helper, which HTML-escapes, so a name with & < > changed. It now goes through fmt.cell, which escapes only the pipe and line breaks, as before this change apart from the pipe. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Two arms_report tables still put the arm name in a code span unescaped, so a pipe in the name split their rows. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues require changes.
No open issues 🎉
What changed in this PR
0 new findings; nothing to fix.
Extends #1558’s Markdown table escaping to identifier cells across seven report modules, preserving existing formatting for other characters.
Changes:
- Applies
fmt.cellto names and identifiers containing pipes or line breaks. - Adds regression tests for table integrity and unchanged delivery formatting.
- Documents both escaping fixes in changelog fragments.
| File | Description |
|---|---|
dokimi/tests/test_report_table_cells.py |
Tests generator table escaping. |
dokimi/tests/test_report_identifier_cells.py |
Tests identifier escaping across report modules. |
dokimi/dokimi/report/task_runs_report.py |
Escapes harness and task names. |
dokimi/dokimi/report/subject_report.py |
Escapes scorecard identifiers and artifact references. |
dokimi/dokimi/report/single_condition_report.py |
Escapes conditions, question IDs, and model metadata. |
dokimi/dokimi/report/plugin_delta_report.py |
Escapes arm names. |
dokimi/dokimi/report/model_compare.py |
Escapes run, model, provider, and arm identifiers. |
dokimi/dokimi/report/generator.py |
Escapes question, grouping, and failure cells. |
dokimi/dokimi/report/fmt.py |
Adds shared table-cell escaping. |
dokimi/dokimi/report/delivery.py |
Reuses shared escaping and escapes arm cells. |
dokimi/dokimi/report/arms_report.py |
Escapes arm names in rows and headers. |
dokimi/changelog.d/20261202_130000_napetrov_report-identifier-cells.md |
Documents identifier escaping. |
dokimi/changelog.d/20261202_120000_napetrov_report-table-cell-escape.md |
Documents generator table escaping. |
Review effort: Balanced
Stacked on #1558 (fork branch
arch/r11-3at 37611cd, the rebased #1558 head). This PR's review commits are the ones after 37611cd.Summary
Follow-up to #1558. Name cells in the seven report modules that still went into Markdown tables unescaped now go through
fmt.cell: arm, harness, run, model, product, task and condition names, inarms_report,plugin_delta_report,subject_report,task_runs_report,model_compare,single_condition_reportanddelivery.Behaviour change
Only names that contain
|or a line break change. A name with|gets\|; line breaks become spaces. Other characters render as before (the delivery arm cell is still raw, as on base).Evidence
tests/test_report_identifier_cells.py(9 cases) fails on the pre-fix tree and passes after.tests/test_report_identifier_cells.pyandtests/test_import_architecture.py: 63 passed; ruff clean.Fixedfragment underchangelog.d/.Local CI
make ci-local --jobs static,typecheckfails only atschema_compat vs the PR base. Against intel/main it reports the schema files this stack does not have yet. Against the stack base 3c7af9c it exits 0. #1558's static job is green. The push used--no-verifyfor this reason.Not in this PR (follow-ups)
eval_report(single_condition_reportnow escapes them too).\rhandling in free-text helpers.fmt.cellescapes neither).model_comparedrops difficulties outside its six labels.🤖 Generated with Claude Code