File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 2020
2121 steps :
2222 - name : Download artifacts from triggering run
23+ id : dl
2324 uses : actions/download-artifact@v4
2425 with :
2526 # Production에서 업로드한 아티팩트 이름 (고정 이름이라면 그대로 사용)
@@ -31,11 +32,11 @@ jobs:
3132
3233 - name : Show downloaded files
3334 run : |
34- echo "Downloaded into ./artifacts "
35- ls -la ./artifacts || true
35+ echo "Downloaded into ${{ steps.dl.outputs.download-path }} "
36+ ls -la ${{ steps.dl.outputs.download-path }} || true
3637 echo
3738 echo "Tree:"
38- (command -v tree >/dev/null && tree -a ./artifacts ) || true
39+ (command -v tree >/dev/null && tree -a ${{ steps.dl.outputs.download-path }} ) || true
3940
4041 - name : Checkout base repo (default branch)
4142 uses : actions/checkout@v4
6970 NO_CHANGE_PATIENCE : " 100"
7071 RUNTIME_REGRESSION_TOLERANCE_PCT : " 10"
7172 COMPILE_REGRESSION_TOLERANCE_PCT : " 10"
73+
74+ ARTIFACTS_DIR : ${{ steps.dl.outputs.download-path }}
7275 run : |
7376 python test_wandb.py
Original file line number Diff line number Diff line change @@ -93,15 +93,19 @@ def parse_speed_txt_lines(lines):
9393
9494# ---------- Benchmark results of the current PR ----------
9595# Find a file that starts with "speed_test"
96- artifacts_path = " ./artifacts"
97- current_txt_path = None
96+ artifacts_path = os . path . abspath ( os . environ . get ( "ARTIFACTS_DIR" , " ./artifacts"))
97+ print ( "Artifacts path: " , artifacts_path )
9898if not os .path .exists (artifacts_path ):
9999 print ("Could not find artifacts directory; skip." )
100100 sys .exit (0 )
101101
102- for file in os .listdir (artifacts_path ):
103- if file .startswith ("speed_test" ) and file .endswith (".txt" ):
104- current_txt_path = file
102+ current_txt_path = None
103+ for root , _ , files in os .walk (artifacts_path ):
104+ for fname in files :
105+ if fname .startswith ("speed_test" ) and fname .endswith (".txt" ):
106+ current_txt_path = os .path .join (root , fname )
107+ break
108+ if current_txt_path :
105109 break
106110
107111if current_txt_path is None :
You can’t perform that action at this time.
0 commit comments