You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adds an additional check to the comparison command of the DynamoPerformanceTest CLI -
Compare command will now also return a Pass/Fail state
This state is logged to the console as part of the comparison results
this state is determined by a function - the default function just checks the increase in mean time is not > 10% - the ability to pass different functions for different tests in the future is possible.
I have temporarily removed all but one performance graph just to speed up my tests while developing this and related CI changes.
If any test is marked as FAIL - then the CLI will exit with a non zero error code and log a message to the console.
TODO:
verify that non zero exit code will mark the jenkins build a failure
fix log file - result is not serialized there for some reason even though it shows in console log. rather it is just on the wrong line.
Comparison of Model tests:
12:10:31
12:10:31 | Method | Graph | Version | Mean | Error | StdDev | Result |
12:10:31 |--------|---------|---------|-------------|----------|----------|--------|
12:10:31 | Open | Aniform | Base | 126.83 ms | 2.07 ms | 0.54 ms |
12:10:31 | | | New | 134.50 ms | 2.59 ms | 0.67 ms |
12:10:31 | | | | +6.05% | 25.28% | 25.28% |PASS
12:10:31 | Run | Aniform | Base | 3,779.43 ms | 82.77 ms | 49.26 ms |
12:10:31 | | | New | 3,678.10 ms | 66.58 ms | 39.62 ms |
12:10:31 | | | | -2.68% | -19.56% | -19.56% |PASS
12:10:31
12:10:31 Comparison of View tests:
12:10:31
12:10:31 exception while comparing results System.IO.FileNotFoundException: Could not find file 'C:\Jenkins\workspace\Dynamo\DynamoPerformance-CI\dyn1884\baselines\DynamoPerformanceTests.DynamoViewPerformanceTestBase-report.csv'.
12:10:31 at Microsoft.VisualBasic.FileIO.TextFieldParser.ValidatePath(String path)
12:10:31 at Microsoft.VisualBasic.FileIO.TextFieldParser.InitializeFromPath(String path, Encoding defaultEncoding, Boolean detectEncoding)
12:10:31 at DynamoPerformanceTests.ResultsComparer.ImportResultsCSV(String csvPath) in c:\DynamoPerformance-CI\Dynamo\tools\Performance\DynamoPerformanceTests\ResultsComparer.cs:line 329
12:10:31 at DynamoPerformanceTests.ResultsComparer.CreateComparisons(String basePath, String newPath) in c:\DynamoPerformance-CI\Dynamo\tools\Performance\DynamoPerformanceTests\ResultsComparer.cs:line 270
12:10:31 at DynamoPerformanceTests.Program.Compare(String baseResultsPath, String newResultsPath, String savePath) in c:\DynamoPerformance-CI\Dynamo\tools\Performance\DynamoPerformanceTests\PerformanceTestConsoleApp.cs:line 143
12:10:31 Could not find file 'C:\Jenkins\workspace\Dynamo\DynamoPerformance-CI\dyn1884\baselines\DynamoPerformanceTests.DynamoViewPerformanceTestBase-report.csv'.
12:10:31
@QilongTang addressed your comments, I'm having trouble getting to build so that I can check the failure - I'm going to close the PR and reopen after I am done testing. - whoops, need to close PR on the CI side - sorry.
20:24:03 |--------|---------|---------|-------------|-----------|----------|--------|
20:24:03 | Open | Aniform | Base | 126.83 ms | 2.07 ms | 0.54 ms |
20:24:03 | | | New | 123.60 ms | 1.09 ms | 0.39 ms |
20:24:03 | | | | -2.55% | -47.3% | -27.63% |PASS
20:24:03 | Run | Aniform | Base | 779.43 ms | 82.77 ms | 49.26 ms |
20:24:03 | | | New | 3,797.70 ms | 152.90 ms | 90.99 ms |
20:24:03 | | | | +387.24% | 84.73% | 84.73% |FAIL
20:24:03
20:24:03 Comparison of View tests:
20:24:03
20:24:03 exception while comparing results System.IO.FileNotFoundException: Could not find file 'C:\Jenkins\workspace\Dynamo\DynamoPerformance-CI\dyn1884\baselines\DynamoPerformanceTests.DynamoViewPerformanceTestBase-report.csv'.
snip
Comparison failed, some model performance benchmarks failed. Please see log above for details.
20:24:03 localBuildContainer
20:24:03 failed during test stage
20:24:03 + throw "failed during test stage"
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.
Purpose
still a work in progress
Adds an additional check to the comparison command of the DynamoPerformanceTest CLI -
Compare
command will now also return aPass/Fail
stateTODO:
result is not serialized there for some reason even though it shows in console log.rather it is just on the wrong line.see related changes:
https://git.autodesk.com/Dynamo/DynamoPerformance-CI/pull/8
Declarations
Check these if you believe they are true
*.resx
filesReviewers
@QilongTang
@reddyashish