File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,12 @@ function loadTestRecords(id) {
8686srv . get ( '/github/:id' , function ( req , res ) {
8787 console . log ( 'Request for test results for commit ' + req . params . id . substring ( 0 , 6 ) )
8888 const record = loadTestRecords ( req . params . id ) ;
89- res . send ( record [ 'results' ] ) ;
89+ if ( typeof record == 'undefined' ) {
90+ res . statusCode = 404 ;
91+ res . send ( `Record for commit ${ req . params . id } not found` ) ;
92+ } else {
93+ res . send ( record [ 'results' ] ) ;
94+ }
9095} ) ;
9196
9297// Serve the coverage results
@@ -241,7 +246,7 @@ queue.on('finish', job => { // On job end post result to API
241246 accept : "application/vnd.github.machine-man-preview+json" } ,
242247 sha : job . data [ 'sha' ] ,
243248 state : job . data [ 'status' ] ,
244- target_url : `${ process . env . WEBHOOK_PROXY_URL } /events /${ job . data . sha } ` , // FIXME replace url
249+ target_url : `${ process . env . WEBHOOK_PROXY_URL } /github /${ job . data . sha } ` , // FIXME replace url
245250 description : job . data [ 'context' ] ,
246251 context : 'continuous-integration/ZTEST'
247252 } ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function runAllTests(id, repo)
1010 %% Initialize enviroment
1111 dbPath = ' C:\Users\Experiment\db.json' ;
1212 fprintf(' Running tests\n ' )
13- fprintf(' Repo = %s\n ' , repo )
13+ fprintf(' Repo = %s , sha = %s \n' , repo , id )
1414 origDir = pwd ;
1515 cleanup = onCleanup(@() cd(origDir ));
1616 cd(fullfile(fileparts(which(' addRigboxPaths' )),' tests' ))
You can’t perform that action at this time.
0 commit comments