Skip to content

Commit

Permalink
Improve logging to provide accurate summary and artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
islas committed Dec 14, 2024
1 parent 25f4852 commit c22e2a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .ci/hpc-workflows
Submodule hpc-workflows updated 1 files
+10 −2 .ci/reporter.py
15 changes: 10 additions & 5 deletions .github/workflows/test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,20 @@ jobs:
masterlogLoc=main/.ci
fi
./main/${{ inputs.hpc-workflows_path }}/.ci/reporter.py ${{ inputs.archive }}/$LOG_SUFFIX/${{ inputs.id }}/$masterlogLoc/${{ inputs.fileroot }}.log \
-e ./${{ inputs.hpc-workflows_path }}/.ci/runner.py \
-o GITHUB -m # only mark fail steps with gh syntax
-e ./${{ inputs.hpc-workflows_path }}/.ci/runner.py -p ./.ci \
-o GITHUB -m -n # only mark fail steps with gh syntax
echo "Relaying results to summary..."
# report on them
echo "# Summary for ${{ join( fromJson( inputs.tests ), ' ' ) }}" >> $GITHUB_STEP_SUMMARY
echo "# Summary for ${{ inputs.name }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
./main/${{ inputs.hpc-workflows_path }}/.ci/reporter.py ${{ inputs.archive }}/$LOG_SUFFIX/${{ inputs.id }}/$masterlogLoc/${{ inputs.fileroot }}.log \
-e ./${{ inputs.hpc-workflows_path }}/.ci/runner.py \
-s >> $GITHUB_STEP_SUMMARY
-e ./${{ inputs.hpc-workflows_path }}/.ci/runner.py -p ./.ci \
-s -n >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
# We know this is a failure
exit 1
- name: Clean up testing directories
if : ${{ success() }}
Expand All @@ -172,6 +176,7 @@ jobs:
# and expands to nothing
name: ${{ inputs.event_name == 'push' && github.ref_name || inputs.event_number }}-${{ inputs.id }}_logfiles
path: ${{ inputs.archive }}/${{ inputs.event_name == 'push' && github.ref_name || inputs.event_number }}/${{ inputs.id }}/
include-hidden-files: true

- name: Set completed status
if: ${{ always() }}
Expand Down

0 comments on commit c22e2a1

Please sign in to comment.