Skip to content

Commit

Permalink
Upload daily comparison results as an artifact (#1049)
Browse files Browse the repository at this point in the history
* upload comparison results in daily workflow as an artifact

* typo

---------

Co-authored-by: Edgar <[email protected]>
  • Loading branch information
FrancoGiachetta and edg-l authored Jan 20, 2025
1 parent 965e3f9 commit 0befa7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/ISSUE_TEMPLATE/daily_failure.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ Comparing VM execution against Native produced diffs:

The transaction were not compared in order. You should rerun the whole failing block to find the error root

```
{{ env.OUTPUT }}
```
- State Diffs Comparison: {{ env.COMPARISON_RESULT }}
15 changes: 8 additions & 7 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,19 +191,20 @@ jobs:
run: |
./scripts/cmp_state_dumps.sh | tee output
- name: Upload Compare Results
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: output-result
path: output

- name: Prepare env vars
if: ${{ always() }}
run: |
# Save workflow url
REPO_URL="${{ github.server_url }}/${{ github.repository }}"
echo "WORKFLOW_URL=$REPO_URL/actions/runs/${{ github.run_id }}" | tee -a $GITHUB_ENV
# Save output
{
echo 'OUTPUT<<EOF'
cat output
echo EOF
} >> "$GITHUB_ENV"
echo "COMPARISON_RESULT=$REPO_URL/actions/runs/${{ github.run_id }}/artifacts/${{ steps.upload_compare_results.outputs.artifact-id }}" | tee -a $GITHUB_ENV
- name: Create Issue
if: ${{ failure() }}
Expand Down

0 comments on commit 0befa7c

Please sign in to comment.