Skip to content

Commit

Permalink
Include an artifact which logs the run time for future comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaiaeroastro committed Jun 1, 2024
1 parent 4ae4e2c commit 0c76c20
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on: [push, pull_request]
env:
# Set this to "on" to enable integration tests and "off" to skip integration tests
RUN_INTEGRATION_TESTS: "off"
RUN_INTEGRATION_TESTS: "on"
name: Build
jobs:
build-linux-memtest:
Expand Down Expand Up @@ -623,6 +623,7 @@ jobs:
cd test_suites && /usr/bin/time -v python integration_test.py 2>&1 | tee latest_release_sdk_test.log
- name: Compare results (Checks the total python script execution time)
id: compare_results
run: |
LATEST_COMMIT_TIME=$(grep "Elapsed (wall clock) time" test_suites/latest_commit_sdk_test.log | awk '{print $8}')
LATEST_RELEASE_TIME=$(grep "Elapsed (wall clock) time" test_suites/latest_release_sdk_test.log | awk '{print $8}')
Expand All @@ -635,4 +636,12 @@ jobs:
echo "Latest commit is better"
else
echo "Latest release is better"
fi
fi
echo "${{ github.sha }} ${LATEST_COMMIT_TOTAL_SECONDS}" > results.txt
echo "${{ env.LATEST_RELEASE_NAME }} ${LATEST_RELEASE_TOTAL_SECONDS}" >> results.txt
- name: Upload results artifact
uses: actions/upload-artifact@v2
with:
name: integration-test-results
path: results.txt

0 comments on commit 0c76c20

Please sign in to comment.