Skip to content

Commit 115e294

Browse files
committed
always upload
1 parent ae93bbb commit 115e294

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/test_times.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
python ${{ github.workspace }}/ssc/test/compare_elapsed_time.py compare ${{ github.workspace }}/gtest_elapsed_times.csv ${{ github.ref_name }}
109109
110110
- name: Upload Artifacts
111+
if: always()
111112
uses: actions/upload-artifact@v4
112113
with:
113114
name: Test Time Elapsed ${{ matrix.os }}

test/compare_elapsed_time.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def compare_time_elapsed(new_test_df, base_test_df, default_branch):
127127
diff_rel = float(os.getenv("DIFF_THRESHOLD_REL"))
128128
diff_threshold = float(os.getenv("DIFF_THRESHOLD_MS"))
129129
feature_branch = get_feature_branch()
130+
if feature_branch == default_branch:
131+
return True
132+
130133
compare_df = new_test_df.merge(base_test_df, how='outer', suffixes=[f" {feature_branch}", f" {default_branch}"], on=['Test Group', 'Test Name'])
131134

132135
feat_col = f"Test Times [ms] {feature_branch}"

0 commit comments

Comments
 (0)