From a1d5285e796a9a6ec5fd38d0a5cc1852bf78bf55 Mon Sep 17 00:00:00 2001 From: madomado Date: Sat, 7 Oct 2023 17:40:19 +0800 Subject: [PATCH] chore(ci): remove lint and checks from autobuild (#733) Removed linting and dnf install checks since they are usually false positives and are a waste of time. Signed-off-by: madomado --- .github/workflows/autobuild.yml | 60 --------------------------------- 1 file changed, 60 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 8e88713c4f..deda447963 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -94,63 +94,3 @@ jobs: - name: Notify Madoguchi (Failure) if: ( cancelled() || failure() ) && github.event_name == 'push' run: ./.github/workflows/mg.sh false ${{matrix.pkg.pkg}} ${{matrix.version}} ${{matrix.pkg.arch}} ${{github.run_id}} ${{secrets.MADOGUCHI_JWT}} - - - name: Lint RPMs and SRPMs - id: lint - if: success() - run: | - echo 'LINT_ERR=false' >> $GITHUB_ENV - rpmlint anda-build/ > rpmlint.txt || f=1 - if [[ $f -eq 1 ]]; then - EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) - echo "ESC_LINT_OUT<<$EOF" >> $GITHUB_ENV - cat rpmlint.txt | sed 's/`/\\`/g' | sed 's/"/\"/g' >> $GITHUB_ENV - echo $EOF >> $GITHUB_ENV - echo "lint_out<<$EOF" >> $GITHUB_ENV - echo '```' >> $GITHUB_ENV - cat rpmlint.txt >> $GITHUB_ENV - echo '```' >> $GITHUB_ENV - echo $EOF >> $GITHUB_ENV - echo 'LINT_ERR=true' >> $GITHUB_ENV - fi - - - name: Try to install package - id: dnf - if: success() - run: | - echo 'INSTALL_ERR=false' >> $GITHUB_ENV - touch out - for f in anda-build/rpm/rpms/*.rpm; do - dnf in --downloadonly -y $f > $f.dnfout.txt 2>&1 || fail=1 - if [[ $fail -eq 1 ]]; then - echo "### $f" >> out - echo '```' >> out - cat $f.dnfout.txt >> out - echo '```' >> out - echo >> out - echo 'INSTALL_ERR=true' >> $GITHUB_ENV - fi - done - cat out - EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) - echo "ESC_DNF_OUT<<$EOF" >> $GITHUB_ENV - cat out | sed 's/`/\\`/g' | sed 's/"/\"/g' >> $GITHUB_ENV - echo $EOF >> $GITHUB_ENV - echo "dnf_out<<$EOF" >> $GITHUB_ENV - cat out >> $GITHUB_ENV - echo $EOF >> $GITHUB_ENV - - - name: Generate RPMLint/DNF summary - if: success() - run: | - # Remind me to make all of this not weird later ~ lleyton - - if [[ $LINT_ERR == "true" ]]; then - echo -e "## ❌ Lint: [${{matrix.pkg.pkg}} (${{matrix.pkg.arch}})](https://github.com/terrapkg/packages/actions/runs/${{github.run_id}})\n" >> $GITHUB_STEP_SUMMARY - echo -e "```\n${{ env.ESC_LINT_OUT }}\n```\n" >> $GITHUB_STEP_SUMMARY - fi - - if [[ $INSTALL_ERR == "true" ]]; then - echo -e "## ❌ DNF: [${{matrix.pkg.pkg}} (${{matrix.pkg.arch}})](https://github.com/terrapkg/packages/actions/runs/${{github.run_id}})\n" >> $GITHUB_STEP_SUMMARY - echo "${{ env.ESC_DNF_OUT }}" >> $GITHUB_STEP_SUMMARY - fi