1
+ /******/ ( ( ) => { // webpackBootstrap
2
+ /******/ var __webpack_modules__ = ( {
3
+
4
+ /***/ 932 :
5
+ /***/ ( ( module , __unused_webpack_exports , __nccwpck_require__ ) => {
6
+
7
+ const fs = __nccwpck_require__ ( 147 ) ;
8
+
9
+ module . exports = async ( { github, context, core} ) => {
10
+ const testPath = process . env . TEST_PATH
11
+ const lastRuns = fs . readFileSync ( `${ testPath } /target/gatling/lastRun.txt` ) . toString ( ) . trim ( ) . split ( '\n' ) ;
12
+
13
+ for ( const run of lastRuns ) {
14
+ const results = JSON . parse ( fs . readFileSync ( `${ testPath } /target/gatling/${ run } /js/stats.json` ) . toString ( ) ) ;
15
+ let tableContent = [
16
+ [
17
+ { data : 'Request' , header : true } ,
18
+ { data : 'Success ✅' , header : true } ,
19
+ { data : 'Errors ❌' , header : true } ,
20
+ { data : 'Min' , header : true } ,
21
+ { data : 'Max' , header : true } ,
22
+ { data : 'Avg.' , header : true } ,
23
+ { data : 'Std. Dev.' , header : true } ,
24
+ { data : 'RPS' , header : true } ,
25
+ ]
26
+ ] ;
27
+
28
+ for ( const result in results . contents ) {
29
+ const requestMetrics = results . contents [ result ] . stats ;
30
+ tableContent . push ( [
31
+ requestMetrics . name ,
32
+ requestMetrics . numberOfRequests . ok . toString ( ) ,
33
+ requestMetrics . numberOfRequests . ko . toString ( ) ,
34
+ requestMetrics . minResponseTime . total . toString ( ) ,
35
+ requestMetrics . maxResponseTime . total . toString ( ) ,
36
+ requestMetrics . meanResponseTime . total . toString ( ) ,
37
+ requestMetrics . standardDeviation . total . toString ( ) ,
38
+ requestMetrics . meanNumberOfRequestsPerSecond . total . toString ( ) ,
39
+ ] ) ;
40
+ }
41
+
42
+ await core . summary
43
+ . addHeading ( `Results for ${ run } ` )
44
+ . addTable ( tableContent )
45
+ . addQuote ( 'All times are in millisecond (ms). RPS means "Requests per Second"' )
46
+ . write ( )
47
+ }
48
+ }
49
+
50
+
51
+ /***/ } ) ,
52
+
53
+ /***/ 147 :
54
+ /***/ ( ( module ) => {
55
+
56
+ "use strict" ;
57
+ module . exports = require ( "fs" ) ;
58
+
59
+ /***/ } )
60
+
61
+ /******/ } ) ;
62
+ /************************************************************************/
63
+ /******/ // The module cache
64
+ /******/ var __webpack_module_cache__ = { } ;
65
+ /******/
66
+ /******/ // The require function
67
+ /******/ function __nccwpck_require__ ( moduleId ) {
68
+ /******/ // Check if module is in cache
69
+ /******/ var cachedModule = __webpack_module_cache__ [ moduleId ] ;
70
+ /******/ if ( cachedModule !== undefined ) {
71
+ /******/ return cachedModule . exports ;
72
+ /******/ }
73
+ /******/ // Create a new module (and put it into the cache)
74
+ /******/ var module = __webpack_module_cache__ [ moduleId ] = {
75
+ /******/ // no module.id needed
76
+ /******/ // no module.loaded needed
77
+ /******/ exports : { }
78
+ /******/ } ;
79
+ /******/
80
+ /******/ // Execute the module function
81
+ /******/ var threw = true ;
82
+ /******/ try {
83
+ /******/ __webpack_modules__ [ moduleId ] ( module , module . exports , __nccwpck_require__ ) ;
84
+ /******/ threw = false ;
85
+ /******/ } finally {
86
+ /******/ if ( threw ) delete __webpack_module_cache__ [ moduleId ] ;
87
+ /******/ }
88
+ /******/
89
+ /******/ // Return the exports of the module
90
+ /******/ return module . exports ;
91
+ /******/ }
92
+ /******/
93
+ /************************************************************************/
94
+ /******/ /* webpack/runtime/compat */
95
+ /******/
96
+ /******/ if ( typeof __nccwpck_require__ !== 'undefined' ) __nccwpck_require__ . ab = __dirname + "/" ;
97
+ /******/
98
+ /************************************************************************/
99
+ /******/
100
+ /******/ // startup
101
+ /******/ // Load entry module and return exports
102
+ /******/ // This entry module is referenced by other modules so it can't be inlined
103
+ /******/ var __webpack_exports__ = __nccwpck_require__ ( 932 ) ;
104
+ /******/ module . exports = __webpack_exports__ ;
105
+ /******/
106
+ /******/ } ) ( )
107
+ ;
0 commit comments