Skip to content

Commit

Permalink
Use new scripts to generate the report (#70)
Browse files Browse the repository at this point in the history
* Use new scripts to generate the report

Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>

* Change step naming

Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>

---------

Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
  • Loading branch information
Crola1702 authored Jul 16, 2024
1 parent 223e415 commit dec7d0c
Showing 1 changed file with 12 additions and 27 deletions.
39 changes: 12 additions & 27 deletions .github/workflows/dailyWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,36 +47,21 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Install dependencies
- name: Generate today's report
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run buildfarm scripts
cd database/scripts
echo "REPORT_NAME=$(./generate_report.rb)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{ env.REPORT_NAME }}
path: database/scripts/${{ env.REPORT_NAME }}
- name: Save report into markdown format
run: |
cd database/scripts
{
echo "BUILD_REGRESSIONS<<EOF"
./sql_run.sh builds_failing_today.sql
echo EOF
} >> $GITHUB_ENV
{
echo "TEST_REGRESSIONS<<EOF"
./check_buildfarm.rb -e "performance connext fastrtps-dynamic"
echo EOF
} >> $GITHUB_ENV
- name: Write buildfarmer log
echo "# $(date '+%b %d')" > formatted_report.md
./format_report.rb ${{ env.REPORT_NAME }} >> formatted_report.md
- name: Upload report to weekly buildfarmer log
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
{
touch comment.txt
echo "## $(date '+%b %d')" >> comment.txt
echo -e "<details>\n<summary>\nBuild regressions\n</summary>\n\n\`\`\`" >> comment.txt
echo "$BUILD_REGRESSIONS" >> comment.txt
echo -e "\`\`\`\n</details>" >> comment.txt
echo -e "<details>\n<summary>\nTest regressions\n</summary>\n\n\`\`\`" >> comment.txt
echo "$TEST_REGRESSIONS" >> comment.txt
echo -e "\`\`\`\n</details>" >> comment.txt
}
gh issue comment -R ${{ github.repository }} $CURRENT_LOG -F comment.txt
gh issue comment -R ${{ github.repository }} $CURRENT_LOG -F database/scripts/formatted_report.md

0 comments on commit dec7d0c

Please sign in to comment.