Commit 8e9ef29
fix(report): dynamic height + force all labels on cost boxplot (#119)
* fix(report): dynamic height + force all labels on cost boxplot
With many processes (44+), the fixed 500px height caused ECharts to
hide Y-axis labels. RSEQC_TIN's $3-9 box appeared to belong to RUSTQC.
- Scale chart height to 25px per process (min 500px)
- Set interval: 0 to force all Y-axis labels visible
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: compute run metrics from tasks when workflowProgress is missing
When runs are imported from Nextflow log tarballs (rather than fetched
from the Platform API), the progress.workflowProgress object is empty.
This caused CPU time, CPU/memory efficiency, and I/O bytes to show as 0
in benchmark charts.
Added _compute_progress_from_tasks() fallback that aggregates metrics
from task-level data:
- cpuTime = sum(cpus * realtime)
- cpuLoad = sum(pcpu/100 * realtime)
- cpuEfficiency = cpuLoad / cpuTime * 100
- memoryEfficiency = peakRss / memoryReq * 100
- readBytes/writeBytes = sum from tasks
Also refactored common accessors into _run_group(), _run_workflow(),
and _task_payload() helpers.
* fix: avoid falsy-zero bug in _compute_progress_from_tasks
The `or` operator treats 0 as falsy, so fields like peakRss=0
would incorrectly fall through to rss. Use explicit None checks
via a _val() helper instead.
* refactor: restore two-query pattern in query_run_costs
Revert from string-concatenation SQL to two explicit queries
(CUR vs no-CUR). Each query is now self-contained and readable
without mental interpolation of fragment variables.
* ci: ignore pre-existing nf-core lint failures in .nf-core.yml
Add ignores for files_unchanged mismatches (CONTRIBUTING.md,
PULL_REQUEST_TEMPLATE.md, linting_comment.yml, .prettierignore),
schema_params (multiqc_title, modules_testdata_base_path,
max_multiqc_email_size), and nextflow_config
(params.max_multiqc_email_size). These are all pre-existing
template drift, not introduced by this PR.
* ci: retrigger pull_request workflows
* 🐛 fix: handle edge cases in _compute_progress_from_tasks and clean up query_run_costs
- Use `run.get("tasks") or []` to handle explicit null tasks from JSON
- Use `is not None` check for peakRss to avoid treating 0 as missing
- Fix pcpu comment to correctly describe aggregate CPU% semantics
- Revert query_run_costs to two separate clean SQL queries matching file convention
- Fix docstring to reference Seqera Platform tw run dumps instead of Nextflow log tarballs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* 🔥 remove(ci): delete .nf-core.yml superseded by dev branch cleanup
nf-core linting workflows were dropped on dev (ca70336), making
this config file obsolete and causing a merge conflict in the PR.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: FloWuenne <flowuenne@gmail.com>1 parent 17b2890 commit 8e9ef29
2 files changed
Lines changed: 94 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
44 | 111 | | |
45 | 112 | | |
46 | 113 | | |
| |||
62 | 129 | | |
63 | 130 | | |
64 | 131 | | |
65 | | - | |
| 132 | + | |
66 | 133 | | |
| 134 | + | |
| 135 | + | |
67 | 136 | | |
68 | 137 | | |
69 | 138 | | |
| |||
74 | 143 | | |
75 | 144 | | |
76 | 145 | | |
77 | | - | |
| 146 | + | |
78 | 147 | | |
79 | 148 | | |
80 | 149 | | |
| |||
120 | 189 | | |
121 | 190 | | |
122 | 191 | | |
123 | | - | |
124 | | - | |
| 192 | + | |
| 193 | + | |
125 | 194 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 195 | + | |
131 | 196 | | |
132 | 197 | | |
133 | 198 | | |
| |||
164 | 229 | | |
165 | 230 | | |
166 | 231 | | |
167 | | - | |
168 | | - | |
| 232 | + | |
| 233 | + | |
169 | 234 | | |
170 | 235 | | |
171 | 236 | | |
| |||
186 | 251 | | |
187 | 252 | | |
188 | 253 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
194 | 262 | | |
195 | 263 | | |
196 | 264 | | |
197 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
198 | 271 | | |
199 | 272 | | |
200 | 273 | | |
| |||
242 | 315 | | |
243 | 316 | | |
244 | 317 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 318 | + | |
251 | 319 | | |
252 | 320 | | |
253 | 321 | | |
| |||
443 | 511 | | |
444 | 512 | | |
445 | 513 | | |
| 514 | + | |
446 | 515 | | |
447 | 516 | | |
448 | 517 | | |
| |||
458 | 527 | | |
459 | 528 | | |
460 | 529 | | |
| 530 | + | |
461 | 531 | | |
462 | 532 | | |
463 | 533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
700 | | - | |
701 | 700 | | |
702 | 701 | | |
703 | 702 | | |
| |||
718 | 717 | | |
719 | 718 | | |
720 | 719 | | |
| 720 | + | |
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
| 726 | + | |
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
| |||
0 commit comments