Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So I discovered a nextflow function called collectFile, which opens up new opportunities for reporting. Essentially if each process creates a file, this function will collect the individual files and merge them into one file. More info here:
https://nextflow-io.github.io/patterns/collect-into-file/
So in pkgtest.nf, I updated runTests process so that it generates a csv file called test_metrics.csv with the following columns:
results - PASSED/FAILED value - A test will receive FAILED result if one of the following is true:
module - The name of the module
tests_passed - The number of "Passed" words found in the results.txt
tests_failed - The number of "Error" words found in the results.txt
log_error_count - The number of "Error" words found in the log.txt
exit_code - The exit code for the test.qsub execution
installer - The username of the installer who installed the module.
category - The module category
install_date - The install date of the module.
workdir - The nextflow working directory that contains the logs for the module test.
In the Workflow function, I included the collectFile function that combines the test_metrics.csv results from each process and generates a csv report in the current directory. The name of the report is the input csv file name with "report_" as a prefix.
In this commit I am including an example output report called report_example.csv for review.