From 004272f02c412539f9ae469fd11f53d0c4cfc57b Mon Sep 17 00:00:00 2001 From: Your Name <146047128+strtgbb@users.noreply.github.com> Date: Thu, 20 Mar 2025 08:36:03 -0400 Subject: [PATCH 1/3] leak scanning script --- .github/workflows/release_branches.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/release_branches.yml b/.github/workflows/release_branches.yml index e70fd154996a..819f41faa41a 100644 --- a/.github/workflows/release_branches.yml +++ b/.github/workflows/release_branches.yml @@ -648,3 +648,25 @@ jobs: echo "Error: $REPORT_LINK" >> $GITHUB_STEP_SUMMARY exit 1 fi + LeakCheck: + if: ${{ !cancelled() }} + needs: FinishCheck + runs-on: [self-hosted, altinity-on-demand, altinity-style-checker-aarch64] + env: + PREFIX: ${{ github.event.pull_request.number || 0 }}/${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} + steps: + - name: Checkout scripts repo + uses: actions/checkout@v4 + with: + repository: Altinity/actions + ref: 982f9516f7c8c5eb7f18a7f66e0f6098f57635f5 + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install dpkg-dev rpm2cpio cpio + - name: Run leak check 1 + run: | + python3 scripts/scan_s3_artifacts.py altinity-build-artifacts ${{ env.PREFIX }} + - name: Run leak check 2 + run: | + python3 scripts/scan_s3_artifacts.py altinity-build-artifacts PRs/${{ env.PREFIX }} From af49b555e7a79d17c615d126a7e0593da32ae164 Mon Sep 17 00:00:00 2001 From: Your Name <146047128+strtgbb@users.noreply.github.com> Date: Thu, 20 Mar 2025 09:05:44 -0400 Subject: [PATCH 2/3] update leack scanner with environment awareness --- .github/workflows/release_branches.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release_branches.yml b/.github/workflows/release_branches.yml index 819f41faa41a..50c93bb32219 100644 --- a/.github/workflows/release_branches.yml +++ b/.github/workflows/release_branches.yml @@ -659,7 +659,7 @@ jobs: uses: actions/checkout@v4 with: repository: Altinity/actions - ref: 982f9516f7c8c5eb7f18a7f66e0f6098f57635f5 + ref: a617d7c75203e08cfcfff0766b01ace3c58235e5 - name: Install dependencies run: | sudo apt-get update From 8f3d7af1a3a8813891a900e339503b3e46b0718a Mon Sep 17 00:00:00 2001 From: Your Name <146047128+strtgbb@users.noreply.github.com> Date: Thu, 20 Mar 2025 11:41:05 -0400 Subject: [PATCH 3/3] apt -y --- .github/workflows/release_branches.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release_branches.yml b/.github/workflows/release_branches.yml index 50c93bb32219..56b2acd04bc2 100644 --- a/.github/workflows/release_branches.yml +++ b/.github/workflows/release_branches.yml @@ -663,7 +663,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install dpkg-dev rpm2cpio cpio + sudo apt-get install -y dpkg-dev rpm2cpio cpio - name: Run leak check 1 run: | python3 scripts/scan_s3_artifacts.py altinity-build-artifacts ${{ env.PREFIX }}