Skip to content

Commit

Permalink
Edit nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
zaelgohary committed Aug 7, 2024
1 parent 1a62f0e commit b3e72f7
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions .github/workflows/grid_client_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ permissions:
contents: read
issues: write


jobs:
deployment-scripts:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -45,7 +44,7 @@ jobs:
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install -y git libtool tmux redis net-tools
sudo apt-get install -y git libtool tmux redis net-tools jq gh
- name: Install
run: |
Expand Down Expand Up @@ -136,20 +135,37 @@ jobs:
- name: Checkout repository again
uses: actions/checkout@v3

- name: Create GitHub Issue on Failure
uses: JasonEtco/create-an-issue@v2
- name: Search for Existing Issues
id: search_issues
run: |
ISSUE_TITLE="Grid Nightly failed during schedule on ${{ env.NETWORK }}"
REPO="${{ github.repository }}"
SEARCH_RESULT=$(gh issue list --repo "$REPO" --search "$ISSUE_TITLE" --json title --jq '.[] | select(.title == "'$ISSUE_TITLE'") | .title')
if [ -n "$SEARCH_RESULT" ]; then
echo "issue_exists=true" >> $GITHUB_ENV
else
echo "issue_exists=false" >> $GITHUB_ENV
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUN_ID: ${{ github.run_id }}
SINGLE_VM: ${{ steps.single_vm.outcome }}
MULTIPLE_VM: ${{ steps.multiple_vm.outcome }}
K8S: ${{ steps.k8s.outcome }}
VM_QSFS: ${{ steps.vmqsfs.outcome }}
K8S_QSFS: ${{ steps.k8sqsfs.outcome }}
KV_STORE: ${{ steps.kvstore.outcome }}
ZDB: ${{ steps.zdb.outcome }}
DELETE_ALL: ${{ steps.delete_all.outcome }}

- name: Create GitHub Issue on Failure
if: failure() && ${{ env.issue_exists == 'false' }}
uses: dacbd/create-issue-action@main
with:
update_existing: false
search_existing: open
filename: .github/issue_template.md
token: ${{ secrets.GITHUB_TOKEN }}
title: Grid Nightly failed during schedule on ${{ env.NETWORK }}
body: |
## Failure Report
**Details on failed run**: [View Run Details](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
- **Dynamic Single Vm**: ${{ steps.single_vm.outcome }}
- **Multiple Vm**: ${{ steps.multiple_vm.outcome }}
- **Kubernetes**: ${{ steps.k8s.outcome }}
- **Vmq QSFS**: ${{ steps.vmqsfs.outcome }}
- **Kubernetes QSFS**: ${{ steps.k8sqsfs.outcome }}
- **Kvstore**: ${{ steps.kvstore.outcome }}
- **Zdb**: ${{ steps.zdb.outcome }}
- **Delete all contracts**: ${{ steps.delete_all.outcome }}
labels: type_bug, grid_client

0 comments on commit b3e72f7

Please sign in to comment.