-
Notifications
You must be signed in to change notification settings - Fork 3
Adding step to upload valgrind report in integration tests #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,4 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: "NanoCert SCEP Integration Tests" | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| workflow_dispatch: {} | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -79,6 +78,14 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||||||||||||
| echo "Coverage Summary:" | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| lcov --list /tmp/scep_total.info | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Upload Valgrind Report Artifact | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| if: always() | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: report_valgrind_client | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| path: report_valgrind_client.zip | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
80
to
+86
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Upload Valgrind Report Artifact | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | |
| with: | |
| name: report_valgrind_client | |
| path: report_valgrind_client.zip | |
| - name: Archive Valgrind Report | |
| if: always() | |
| run: | | |
| if [ -d "report_valgrind_client" ]; then | |
| echo "Zipping Valgrind report directory into report_valgrind_client.zip" | |
| zip -r report_valgrind_client.zip report_valgrind_client | |
| else | |
| echo "No report_valgrind_client directory found; skipping archive creation." | |
| fi | |
| - name: Upload Valgrind Report Artifact | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | |
| with: | |
| name: report_valgrind_client | |
| path: report_valgrind_client.zip | |
| if-no-files-found: warn |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,6 +66,14 @@ jobs: | |
| run: | | ||
| PYTHONUNBUFFERED=1 python3 run.py global_nanossh_cap_no_tap.json | ||
|
|
||
| - name: Upload Valgrind Report Artifact | ||
| if: always() | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | ||
| with: | ||
| name: report_valgrind | ||
| path: report_valgrind.zip | ||
| retention-days: 5 | ||
|
Comment on lines
+69
to
+75
|
||
|
|
||
| - name: Cleanup mocn-qa-m-products | ||
| if: always() | ||
| run: | | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -95,6 +95,14 @@ jobs: | |||||||
| CM_ENV_CODE_COVERAGE: 1 | ||||||||
| run: | | ||||||||
| python3 nanossl_integration_test.py build_server_cap_no_tap.json | ||||||||
|
|
||||||||
| - name: Upload Valgrind Report Artifact | ||||||||
| if: always() | ||||||||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | ||||||||
| with: | ||||||||
| name: report_valgrind | ||||||||
| path: report_valgrind.zip | ||||||||
|
||||||||
| path: report_valgrind.zip | |
| path: report_valgrind/ | |
| if-no-files-found: warn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
report_valgrind_client.zipis uploaded here, but there is no step in this workflow that creates that file. Ifest_sample.pydoesn’t reliably generate it, artifact upload will warn or fail. Consider adding an explicit zip step (or uploading the report directory directly) and/or settingif-no-files-foundexplicitly.