-
Notifications
You must be signed in to change notification settings - Fork 41
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
makereport.sh fails when having more than one result file within subdirectory #225
Comments
Debugging the code the error occurs in
when calling
From the print log,
|
Generate a final report for k8s-scaling.json result in diferent subdirectories which follows the current hard-coded test name k8s-scaling. Signed-off-by: Morales Quispe, Marcela <marcela.morales.quispe@intel.com>
Generate a final report for k8s-scaling.json result in diferent subdirectories which follows the current hard-coded test name k8s-scaling. Signed-off-by: Morales Quispe, Marcela <marcela.morales.quispe@intel.com>
Hi @marcemq . First, thanks for reporting the pdf generation failure :-)
Looking at the testnames=c(
"k8s-scaling.*"
) and then further down the file regexp matching code of: matchfile=paste(testname, '\\.json', sep="")
files=list.files(matchdir, pattern=matchfile) That produces the Sooo, I think the simple fix is to: diff --git a/metrics/report/report_dockerfile/tidy_scaling.R b/metrics/report/report_dockerfile/tidy_scaling.R
index 3e56d99..27842a9 100755
--- a/metrics/report/report_dockerfile/tidy_scaling.R
+++ b/metrics/report/report_dockerfile/tidy_scaling.R
@@ -14,7 +14,7 @@ suppressMessages(library(scales)) # For de-science notation of axis
library(tibble) # tibbles for tidy data
testnames=c(
- "k8s-scaling.*"
+ "k8s-scaling"
) which results in a matchfile pattern of Let me know what you think - I think the above fix is correct, but bolstering the robustness of the code is never a bad thing, so please assess if we still want to add your other patches. Feel free to add the above to your commits - and again, thanks for spotting this - there was a real bug there ;-) |
What
makereport.sh
fails when having more than one result file within subdirectory, the system details table gets generated and only the final PDF report which reports some errors, see the generated attached (metrics_report.pdf)Steps to reproduce
The text was updated successfully, but these errors were encountered: