Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seqera cli files sometimes fail to load #2285

Closed
4 tasks done
ahvigil opened this issue Jan 30, 2024 · 0 comments · Fixed by #2286
Closed
4 tasks done

seqera cli files sometimes fail to load #2285

ahvigil opened this issue Jan 30, 2024 · 0 comments · Fixed by #2286

Comments

@ahvigil
Copy link
Contributor

ahvigil commented Jan 30, 2024

Description of bug

Playing around with the nf-aggregate pipeline in our Seqera platform environment. I ran into the following issue where multiqc fails to load certain dumps from tw dump for failed workflows due to a null completion time.

I think this is because the block to convert "start" and "stop" into timestamps checks for entries in the dict, but a few lines above the dict comprehension d = {k: d.get(k) for k in keys} adds a null value if "complete" is missing.

File that triggers the error

No response

MultiQC Error log

╭────────────────────────────────────────── Oops! The 'seqera_cli' MultiQC module broke... ───────────────────────────────────────────╮
│ Please copy this log and report it at https://github.com/MultiQC/MultiQC/issues                                                     │
│ Please attach a file that triggers the error. The last file found was: 414/2JhpLeEnmCevOV/workflow.json                             │
│                                                                                                                                     │
│ Traceback (most recent call last):                                                                                                  │
│   File "/locus/home/avigil/venvs/39/lib/python3.9/site-packages/multiqc/multiqc.py", line 728, in run                               │
│     output = mod()                                                                                                                  │
│   File "/locus/home/avigil/venvs/39/lib/python3.9/site-packages/multiqc/modules/seqera_cli/seqera_cli.py", line 102, in __init__    │
│     d = self._parse_data(d)                                                                                                         │
│   File "/locus/home/avigil/venvs/39/lib/python3.9/site-packages/multiqc/modules/seqera_cli/seqera_cli.py", line 176, in _parse_data │
│     complete = dt.datetime.strptime(d["complete"], "%Y-%m-%dT%H:%M:%SZ")                                                            │
│ TypeError: strptime() argument 1 must be str, not None                                                                              │
│                                                                                                                                     │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Before submitting

  • I have read the troubleshooting documentation.
  • I am using the latest release of MultiQC.
  • I have included a full MultiQC log, not truncated.
  • I have attached an input file (.zip if necessary) that triggers the error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant