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

Fix partly #225. #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions metrics/report/report_dockerfile/dut-details.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ for (currentdir in resultdirs) {

if ( length(dirstats) == 0 ) {
warning(paste("No valid data found for directory ", currentdir))
break
}

# use plyr rbind.fill so we can combine disparate version info frames
Expand Down
16 changes: 13 additions & 3 deletions metrics/report/report_dockerfile/tidy_scaling.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,19 @@ for (currentdir in resultdirs) {
next
}

# Check if filename follows the hard-coded test name
shortname=substr(ffound, 1, nchar(ffound)-nchar(".json"))
if ( substr(testname, 1, nchar(testname)-nchar(".*")) != shortname) {
warning(paste("Result file name does not match with test name: ", shortname))
break
}

# Derive the name from the test result dirname
datasetname=basename(currentdir)

# Import the data
fdata=fromJSON(fname)
# De-nest the test name specific data
shortname=substr(ffound, 1, nchar(ffound)-nchar(".json"))
fdata=fdata[[shortname]]
testname=datasetname

Expand Down Expand Up @@ -195,8 +201,12 @@ for (currentdir in resultdirs) {
# And collect up our rows into our global table of all results
# These two tables *should* be the source of all the data we need to
# process and plot (apart from the stats....)
bootdata=rbind(bootdata, local_bootdata, make.row.names=FALSE)
nodedata=rbind(nodedata, local_nodedata, make.row.names=FALSE)
if ( exists("local_bootdata") ) {
bootdata=rbind(bootdata, local_bootdata, make.row.names=FALSE)
nodedata=rbind(nodedata, local_nodedata, make.row.names=FALSE)
} else {
warning(paste("Could not able to create report for: ", ffound))
}
}
}

Expand Down