File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed 
.github/actions/run-and-record-tests Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,14 @@ runs:
8282          echo "No recording changes" 
8383        fi 
8484
85- name : Write inference  logs to file 
85+ name : Write docker  logs to file 
8686      if : ${{ always() }} 
8787      shell : bash 
8888      run : | 
8989        sudo docker logs ollama > ollama-${{ inputs.inference-mode }}.log || true  
90+         distro_name=$(echo "${{ inputs.stack-config }}" | sed 's/^docker://') 
91+         stack_container_name="llama-stack-test-$distro_name" 
92+         sudo docker logs $stack_container_name > docker-${distro_name}-${{ inputs.inference-mode }}.log || true  
9093
9194name : Upload logs 
9295      if : ${{ always() }} 
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ start_container() {
236236    echo  " === Starting Docker Container ===" 
237237
238238    #  Get the repo root for volume mount
239-     SCRIPT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " &&  pwd) 
239+     SCRIPT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]:- $0 } " ) " &&  pwd) 
240240    REPO_ROOT=$( cd " $SCRIPT_DIR /.." &&  pwd) 
241241
242242    #  Determine the actual image name (may have localhost/ prefix)
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments