File tree 6 files changed +47
-6
lines changed
6 files changed +47
-6
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ scripts
19
19
bin
20
20
build.js
21
21
gest
22
+ print-err-logs.cjs
Original file line number Diff line number Diff line change 19
19
with :
20
20
node-version : 18
21
21
- name : Install dependencies
22
- run : ./.yarn/yarn.cjs install --immutable
22
+ run : ./.yarn/yarn.cjs install --immutable --mode=skip-build
23
23
- name : Building Gest Runner
24
24
run : ./.yarn/yarn.cjs build:gest
25
25
- name : Run tests
29
29
# - ESLint lint
30
30
# - TypeScript type check
31
31
run : ./.yarn/yarn.cjs git-hook-tasks pre-push
32
+ - name : Print Error Logs
33
+ run : " node print-err-logs.cjs"
Original file line number Diff line number Diff line change 1
1
nodeLinker : node-modules
2
2
3
3
yarnPath : .yarn/releases/yarn-3.4.1.cjs
4
+
5
+ enableMessageNames : false
Original file line number Diff line number Diff line change 56
56
},
57
57
"dependencies" : {
58
58
"buffer" : " ^6.0.3" ,
59
- "clify.js" : " ncpa0cpl/clify.js#0.0.1 " ,
59
+ "clify.js" : " ncpa0cpl/clify.js#0.0.2 " ,
60
60
"dilswer" : " 1.5.0" ,
61
61
"esbuild" : " ^0.17.5" ,
62
62
"rimraf" : " ^4.1.2" ,
Original file line number Diff line number Diff line change
1
+ const fs = require ( "fs" ) ;
2
+ const path = require ( "path" ) ;
3
+
4
+ const leftPad = ( str , length , char = " " ) => {
5
+ char = char [ 0 ] ?? " " ;
6
+ const pad = char . repeat ( length ) ;
7
+ const lines = str . split ( "\n" ) ;
8
+ return lines . map ( ( line ) => `${ pad } ${ line } ` ) . join ( "\n" ) ;
9
+ } ;
10
+
11
+ const logDirs = fs
12
+ . readdirSync ( "/tmp" )
13
+ . filter ( ( dirname ) => dirname . startsWith ( "xfs-" ) ) ;
14
+
15
+ let errLogFound = false ;
16
+
17
+ for ( const logDir of logDirs ) {
18
+ const dirPath = path . resolve ( "/tmp" , logDir ) ;
19
+ const logfiles = fs . readdirSync ( dirPath ) ;
20
+ for ( const logfileName of logfiles ) {
21
+ try {
22
+ errLogFound = true ;
23
+ const filepath = path . resolve ( dirPath , logfileName ) ;
24
+ const logfile = fs . readFileSync ( filepath , "utf8" ) ;
25
+ console . log ( "=" . repeat ( 80 ) ) ;
26
+ console . log ( "LOG:" + filepath + ":" ) ;
27
+ console . log ( leftPad ( logfile , 2 ) ) ;
28
+ } catch ( e ) { }
29
+ }
30
+ }
31
+
32
+ if ( ! errLogFound ) {
33
+ console . log ( "No error logs found" ) ;
34
+ } else {
35
+ process . exit ( 1 ) ;
36
+ }
Original file line number Diff line number Diff line change @@ -778,12 +778,12 @@ clify.js@ncpa0cpl/clify.js:
778
778
languageName : node
779
779
linkType : hard
780
780
781
- " clify.js@ncpa0cpl/clify.js#0.0.1 " :
781
+ " clify.js@ncpa0cpl/clify.js#0.0.2 " :
782
782
version : 1.0.3
783
- resolution : " clify.js@https://github.com/ncpa0cpl/clify.js.git#commit=2da0d643c79bf75ae1ba7de4bc469ca2d25f88f0 "
783
+ resolution : " clify.js@https://github.com/ncpa0cpl/clify.js.git#commit=765946e4eda4f1b8dc7e07945890286db6ed226d "
784
784
dependencies :
785
785
chalk : ^4.1.2
786
- checksum : 24439d7328d7782a2dce275efe18edfd7150a233f09ffb9434507f036932c76e284b6e63f822f4c99a9860b4f7f72c5aff0f84c21d457b2900b1f8fe795c7ad4
786
+ checksum : 3ccc6b441b0d1440d6dff4ac68afeb4c02736008e9871ffc3dee796671071b1cd94b861de492425497ccdf9e2a0c574b4c88a5fae233b5af0b4ff541d1ebfe86
787
787
languageName : node
788
788
linkType : hard
789
789
@@ -2538,7 +2538,7 @@ git-hook-tasks@ncpa0cpl/git-hook-tasks:
2538
2538
" @typescript-eslint/eslint-plugin " : latest
2539
2539
" @typescript-eslint/parser " : latest
2540
2540
buffer : ^6.0.3
2541
- clify.js : " ncpa0cpl/clify.js#0.0.1 "
2541
+ clify.js : " ncpa0cpl/clify.js#0.0.2 "
2542
2542
dilswer : 1.5.0
2543
2543
esbuild : ^0.17.5
2544
2544
eslint : latest
You can’t perform that action at this time.
0 commit comments