File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,8 @@ class DataManager {
219
219
update . buildOutputId = buildOutputId ;
220
220
update . hasChildren = false ;
221
221
}
222
- const result = await testResults . update ( criteria , { $set : update } ) ;
222
+ await testResults . update ( criteria , { $set : update } ) ;
223
+ logger . verbose ( 'updateBuildWithOutput done' ) ;
223
224
}
224
225
225
226
// create build only if the build does not exist in database
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class JenkinsInfo {
69
69
} ) ;
70
70
const size = await logStream . getSize ( ) ;
71
71
logger . debug (
72
- 'JenkinsInfo: getBuildOutput() is waiting for 5 secs after getSize()'
72
+ 'JenkinsInfo: getBuildOutput() is waiting for 1 secs after getSize()'
73
73
) ;
74
74
await Promise . delay ( 1 * 1000 ) ;
75
75
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Parser {
14
14
/ = J A V A V E R S I O N O U T P U T B E G I N = [ \r \n ] + ( [ \s \S ] * ?) [ \r \n ] + .* = J A V A V E R S I O N O U T P U T E N D = / ;
15
15
const javaBuildDateRegex =
16
16
/ \s ( [ 0 - 9 ] { 4 } ) - ? ( 0 [ 1 - 9 ] | 1 [ 0 1 2 ] ) - ? ( 0 [ 1 - 9 ] | [ 1 2 ] [ 0 - 9 ] | 3 [ 0 1 ] ) / ;
17
- const sdkResourceRegex = / . * ? S D K _ R E S O U R C E \= ( .* ) [ \r \n ] + / ;
17
+ const sdkResourceRegex = / S D K _ R E S O U R C E \= ( .* ) [ \r \n ] + / ;
18
18
let curRegexResult = null ;
19
19
let javaVersion , jdkDate , sdkResource ;
20
20
if ( ( curRegexResult = javaVersionRegex . exec ( output ) ) !== null ) {
@@ -142,7 +142,7 @@ class Parser {
142
142
let disabled = 0 ;
143
143
// An example of test result summary: "TOTAL: 69 EXECUTED: 64 PASSED: 64 FAILED: 0 DISABLED: 0 SKIPPED: 5\n"
144
144
const summaryRegex =
145
- / \S * \s * ? T O T A L : \s * ( [ 0 - 9 ] * ) \s * E X E C U T E D : \s * ( [ 0 - 9 ] * ) \s * P A S S E D : \s * ( [ 0 - 9 ] * ) \s * F A I L E D : \s * ( [ 0 - 9 ] * ) \s * D I S A B L E D : \s * ( [ 0 - 9 ] * ) \s * S K I P P E D : \s * ( [ 0 - 9 ] * ) \s * ( \r \n | \r | \n ) / ;
145
+ / T O T A L : \s * ( [ 0 - 9 ] * ) \s * E X E C U T E D : \s * ( [ 0 - 9 ] * ) \s * P A S S E D : \s * ( [ 0 - 9 ] * ) \s * F A I L E D : \s * ( [ 0 - 9 ] * ) \s * D I S A B L E D : \s * ( [ 0 - 9 ] * ) \s * S K I P P E D : \s * ( [ 0 - 9 ] * ) \s * ( \r \n | \r | \n ) / ;
146
146
if ( ( m = summaryRegex . exec ( output ) ) !== null ) {
147
147
total = parseInt ( m [ 1 ] , 10 ) ;
148
148
executed = parseInt ( m [ 2 ] , 10 ) ;
Original file line number Diff line number Diff line change 1
1
const Parser = require ( './Parser' ) ;
2
- const regexRunningTest = / . * ? R u n n i n g t e s t ( .* ?) \. \. \. \r ? / ;
3
- const testSeparator = / . * ? = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \r ? / ;
4
- const regexFinishTime = / ( .* ?) F i n i s h T i m e \: .* E p o c h T i m e \( m s \) \: ( \d + ) .* / ;
5
- const regexStartTime = / ( .* ?) S t a r t T i m e \: .* E p o c h T i m e \( m s \) \: ( \d + ) .* / ;
2
+ const regexRunningTest = / R u n n i n g t e s t ( .* ?) \. \. \. \r ? / ;
3
+ const testSeparator = / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \r ? / ;
4
+ const regexFinishTime = / ^ ( .* ?) F i n i s h T i m e \: .* E p o c h T i m e \( m s \) \: ( \d + ) .* / ;
5
+ const regexStartTime = / ^ ( .* ?) S t a r t T i m e \: .* E p o c h T i m e \( m s \) \: ( \d + ) .* / ;
6
6
const TestBenchmarkParser = require ( `./TestBenchmarkParser` ) ;
7
7
const ExternalTestParser = require ( `./ExternalTestParser` ) ;
8
8
You can’t perform that action at this time.
0 commit comments