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

[Bug]: traceability chunk fails when nrows < 1 #74

Closed
3 tasks done
cicdguy opened this issue May 30, 2024 · 0 comments · Fixed by #75
Closed
3 tasks done

[Bug]: traceability chunk fails when nrows < 1 #74

cicdguy opened this issue May 30, 2024 · 0 comments · Fixed by #75
Assignees
Labels
bug Something isn't working

Comments

@cicdguy
Copy link
Contributor

cicdguy commented May 30, 2024

What happened?

See https://github.com/insightsengineering/goshawk/actions/runs/9290347520/job/25585057202 for example. The table creation fails as there are no rows available for the traceability matrix.

In such a case, instead of attempting to create a table, there should be a message that says "No test suites" or something similar.

Relevant log output

16/21 [traceability]   
Error:
! Number of rows in `x` must be at least `1`
Backtrace:
 1. tinytable::tt(...)
 2. tinytable:::assert_data_frame(x, min_rows = 1, min_cols = 1)



Quitting from lines 180-216 [traceability] (template.qmd)
Execution halted
Error in `quarto_render()`:Error running quarto cli.
Caused by error:
! System command 'quarto' failed
Backtrace:1. └─quarto::quarto_render(template_path, output_file = "validation_report.pdf")
 2.   └─quarto:::quarto_run(args, echo = TRUE, quarto_bin = quarto_bin)
 3.     └─base::tryCatch(...)
 4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 5.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 6.           └─value[[3L]](cond)
 7.             └─cli::cli_abort(msg, call = .call, parent = e)
 8.               └─rlang::abort(...)
Execution halted

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.
@cicdguy cicdguy added the bug Something isn't working label May 30, 2024
@cicdguy cicdguy self-assigned this May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant