From 5d40879a6dc90bcfa2a60384ce7d5e6a601a66e0 Mon Sep 17 00:00:00 2001 From: aboyko Date: Fri, 9 Feb 2024 14:53:36 -0500 Subject: [PATCH] [GHA] Remove current TCP dump files. Upload more data from TCP Dump --- .../gh-hosted-eclipse-distro-build.yml | 18 +++++++------- .github/workflows/remove-tcp-dump.yml | 24 +++++++++++++++++++ 2 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/remove-tcp-dump.yml diff --git a/.github/workflows/gh-hosted-eclipse-distro-build.yml b/.github/workflows/gh-hosted-eclipse-distro-build.yml index 89a43cfbf..d03a0dead 100644 --- a/.github/workflows/gh-hosted-eclipse-distro-build.yml +++ b/.github/workflows/gh-hosted-eclipse-distro-build.yml @@ -86,15 +86,15 @@ jobs: -Dhttpclient.retry-max=60 \ -Dorg.eclipse.ecf.provider.filetransfer.httpclient.retrieve.readTimeout=2400000 -Dorg.eclipse.ecf.provider.filetransfer.httpclient4.retrieve.readTimeout=2400000 -Dorg.eclipse.ecf.provider.filetransfer.retrieve.readTimeout=2400000 \ -Dorg.eclipse.ecf.provider.filetransfer.retrieve.retryAttempts=60 - - name: Stop TCP Dump - if: ${{ inputs.build_type == 'snapshot' }} - run: | - cd eclipse-distribution - ls -la - PID=`sudo pgrep tcpdump` - echo "PID=${PID}" - sudo kill $PID - sudo sleep 10 +# - name: Stop TCP Dump +# if: ${{ inputs.build_type == 'snapshot' }} +# run: | +# cd eclipse-distribution +# ls -la +# PID=`sudo pgrep tcpdump` +# echo "PID=${PID}" +# sudo kill $PID +# sudo sleep 10 - name: Store S3 Paths id: s3-paths run: | diff --git a/.github/workflows/remove-tcp-dump.yml b/.github/workflows/remove-tcp-dump.yml new file mode 100644 index 000000000..6f4ff2865 --- /dev/null +++ b/.github/workflows/remove-tcp-dump.yml @@ -0,0 +1,24 @@ +name: Clear out TCP Dump storage + +on: + workflow_dispatch: + +jobs: + cleanup: + runs-on: ubuntu-latest + steps: + - name: Cloudgate S3 Configuration + uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a + with: + aws-access-key-id: ${{ secrets.TOOLS_CLOUDGATE_ACCESS_KEY }} + aws-secret-access-key: ${{ secrets.TOOLS_CLOUDGATE_SECRET_KEY }} + role-to-assume: arn:aws:iam::${{ secrets.TOOLS_CLOUDGATE_ACCOUNT_ID }}:role/${{ secrets.TOOLS_CLOUDGATE_USER }} + role-session-name: ${{ github.run_id }} + aws-region: us-east-1 + role-duration-seconds: 900 + role-skip-session-tagging: true + - name: Remove TCP Dump Files from S3 + id: cleanup-s3-tcp-dump-storage + run: | + aws s3 rm s3://tools-spring-io/tcpdump --recursive --exclude "*" --include "*.pcap" +