From 584455185426cd0401a5d5137f9f99d1a108494b Mon Sep 17 00:00:00 2001 From: illuminatus Date: Sat, 2 Sep 2023 16:19:32 -0700 Subject: [PATCH] Remove individual premerge tests --- .github/workflows/premerge_debian.yml | 74 ----------------------- .github/workflows/premerge_rockylinux.yml | 74 ----------------------- .github/workflows/premerge_ubuntu.yml | 67 -------------------- 3 files changed, 215 deletions(-) delete mode 100644 .github/workflows/premerge_debian.yml delete mode 100644 .github/workflows/premerge_rockylinux.yml delete mode 100644 .github/workflows/premerge_ubuntu.yml diff --git a/.github/workflows/premerge_debian.yml b/.github/workflows/premerge_debian.yml deleted file mode 100644 index 5230f54bb..000000000 --- a/.github/workflows/premerge_debian.yml +++ /dev/null @@ -1,74 +0,0 @@ -name: Pre-merge Debian - -on: - workflow_dispatch: - pull_request: - paths: - - scripts/cnode-helper-scripts/guild-deploy.sh - - scripts/cnode-helper-scripts/cabal-build-all.sh - - files/tests/pre-merge/debian-guild-deploy.sh-l.containerfile - -jobs: - guild-deploy-and-build-debian: - env: - REGISTRY: ghcr.io - runs-on: ubuntu-latest - if: github.event.pull_request.draft == false - steps: - - name: Provide additional free space - run: | - # Workaround to provide additional free space for builds. - # https://github.com/actions/virtual-environments/issues/2840 - sudo apt-get update -y - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get remove -y azure-cli google-cloud-sdk google-chrome-stable firefox powershell mono-devel - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/share/dotnet" - sudo rm -rf "/usr/local/lib/android" - sudo rm -rf "/opt/ghc" - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/checkout@v3 - - name: Define BRANCH, COMMIT and G_ACCOUNT in environment - run: | - echo "BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_ENV - echo "G_ACCOUNT=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV - echo "COMMIT=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV - - name: Testing guild-deploy.sh (IO fork of libsodium) - run: | - docker build . \ - --file files/tests/pre-merge/debian-guild-deploy.sh-l.containerfile \ - --compress \ - --build-arg BRANCH=${{ env.BRANCH }} \ - --build-arg COMMIT=${{ env.COMMIT }} \ - --build-arg G_ACCOUNT=${{ env.G_ACCOUNT }} \ - --tag ${{ env.REGISTRY }}/${{ env.G_ACCOUNT }}/pre-merge-debian:guild-deploy-l_${{ env.COMMIT }} - - name: Push pre-merge-debian:guild-deploy-l_${{ env.COMMIT }} - run: | - docker push ${{ env.REGISTRY }}/${{ env.G_ACCOUNT }}/pre-merge-debian:guild-deploy-l_${{ env.COMMIT }} - - name: Testing cabal-build-all.sh (IO fork of libsodium) - run: | - echo "Working from PR Branch ${{ env.G_ACCOUNT }}/guild-operators/${{ env.BRANCH }} on Commit ${{ env.COMMIT }}" - docker build . \ - --file files/tests/pre-merge/debian-cabal-l.containerfile \ - --compress \ - --build-arg BRANCH=${{ env.BRANCH }} \ - --build-arg COMMIT=${{ env.COMMIT }} \ - --build-arg G_ACCOUNT=${{ env.G_ACCOUNT }} \ - --tag ${{ env.REGISTRY }}/${{ env.G_ACCOUNT }}/pre-merge-debian:cabal-l_${{ env.COMMIT }} - - name: Add summary details - if: always() - run: | - echo "## Summary Details" >> $GITHUB_STEP_SUMMARY - echo "* Docker Image: ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/cardano-node:$${{ env.COMMIT }}" >> $GITHUB_STEP_SUMMARY - echo "* BRANCH: ${{ env.BRANCH }}" >> $GITHUB_STEP_SUMMARY - echo "* G_ACCOUNT: ${GITHUB_REPOSITORY_OWNER}" >> $GITHUB_STEP_SUMMARY - echo "* COMMIT: ${{ env.COMMIT }}" >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/premerge_rockylinux.yml b/.github/workflows/premerge_rockylinux.yml deleted file mode 100644 index a528f772a..000000000 --- a/.github/workflows/premerge_rockylinux.yml +++ /dev/null @@ -1,74 +0,0 @@ -name: Pre-merge RockyLinux - -on: - workflow_dispatch: - pull_request: - paths: - - scripts/cnode-helper-scripts/guild-deploy.sh - - scripts/cnode-helper-scripts/cabal-build-all.sh - - files/tests/pre-merge/rockylinux-guild-deploy.sh-l.containerfile - -jobs: - guild-deploy-and-build-rockylinux: - env: - REGISTRY: ghcr.io - runs-on: ubuntu-latest - if: github.event.pull_request.draft == false - steps: - - name: Provide additional free space - run: | - # Workaround to provide additional free space for builds. - # https://github.com/actions/virtual-environments/issues/2840 - sudo apt-get update -y - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get remove -y azure-cli google-cloud-sdk google-chrome-stable firefox powershell mono-devel - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/share/dotnet" - sudo rm -rf "/usr/local/lib/android" - sudo rm -rf "/opt/ghc" - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/checkout@v3 - - name: Define BRANCH, COMMIT and G_ACCOUNT in environment - run: | - echo "BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_ENV - echo "G_ACCOUNT=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV - echo "COMMIT=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV - - name: Testing guild-deploy.sh (IO fork of libsodium) - run: | - docker build . \ - --file files/tests/pre-merge/rockylinux-guild-deploy.sh-l.containerfile \ - --compress \ - --build-arg BRANCH=${{ env.BRANCH }} \ - --build-arg COMMIT=${{ env.COMMIT }} \ - --build-arg G_ACCOUNT=${{ env.G_ACCOUNT }} \ - --tag ${{ env.REGISTRY }}/${{ env.G_ACCOUNT }}/pre-merge-rockylinux:guild-deploy-l_${{ env.COMMIT }} - - name: Push pre-merge-rockylinux:guild-deploy-l_${{ env.COMMIT }} - run: | - docker push ${{ env.REGISTRY }}/${{ env.G_ACCOUNT }}/pre-merge-rockylinux:guild-deploy-l_${{ env.COMMIT }} - - name: Testing cabal-build-all.sh (IO fork of libsodium) - run: | - echo "Working from PR Branch ${{ env.G_ACCOUNT }}/guild-operators/${{ env.BRANCH }} on Commit ${{ env.COMMIT }}" - docker build . \ - --file files/tests/pre-merge/rockylinux-cabal-l.containerfile \ - --compress \ - --build-arg BRANCH=${{ env.BRANCH }} \ - --build-arg COMMIT=${{ env.COMMIT }} \ - --build-arg G_ACCOUNT=${{ env.G_ACCOUNT }} \ - --tag ${{ env.REGISTRY }}/${{ env.G_ACCOUNT }}/pre-merge-rockylinux:cabal-l_${{ env.COMMIT }} - - name: Add summary details - if: always() - run: | - echo "## Summary Details" >> $GITHUB_STEP_SUMMARY - echo "* Docker Image: ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/cardano-node:$CNVERSION" >> $GITHUB_STEP_SUMMARY - echo "* BRANCH: ${{ env.BRANCH }}" >> $GITHUB_STEP_SUMMARY - echo "* G_ACCOUNT: ${GITHUB_REPOSITORY_OWNER}" >> $GITHUB_STEP_SUMMARY - echo "* COMMIT: ${{ env.COMMIT }}" >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/premerge_ubuntu.yml b/.github/workflows/premerge_ubuntu.yml deleted file mode 100644 index e48a762ad..000000000 --- a/.github/workflows/premerge_ubuntu.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Pre-merge Ubuntu - -on: - workflow_dispatch: - pull_request: - paths: - - scripts/cnode-helper-scripts/guild-deploy.sh - - scripts/cnode-helper-scripts/cabal-build-all.sh - - files/tests/pre-merge/ubuntu-guild-deploy.sh-l.containerfile - -jobs: - guild-deploy-and-build-ubuntu: - env: - REGISTRY: ghcr.io - runs-on: ubuntu-latest - if: github.event.pull_request.draft == false - steps: - - name: Provide additional free space - run: | - # Workaround to provide additional free space for builds. - # https://github.com/actions/virtual-environments/issues/2840 - sudo apt-get update -y - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get remove -y azure-cli google-cloud-sdk google-chrome-stable firefox powershell mono-devel - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/share/dotnet" - sudo rm -rf "/usr/local/lib/android" - sudo rm -rf "/opt/ghc" - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/checkout@v3 - - name: Define BRANCH, COMMIT and G_ACCOUNT in environment - run: | - echo "BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_ENV - echo "G_ACCOUNT=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV - echo "COMMIT=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV - - name: Testing guild-deploy.sh (IO fork of libsodium) - run: | - docker build . \ - --file files/tests/pre-merge/ubuntu-guild-deploy.sh-l.containerfile \ - --compress \ - --build-arg BRANCH=${{ env.BRANCH }} \ - --build-arg COMMIT=${{ env.COMMIT }} \ - --build-arg G_ACCOUNT=${{ env.G_ACCOUNT }} \ - --tag ${{ env.REGISTRY }}/${{ env.G_ACCOUNT }}/pre-merge-ubuntu:guild-deploy-l_${{ env.COMMIT }} - - name: Push pre-merge-ubuntu:guild-deploy-l_${{ env.COMMIT }} - run: | - export COMMIT=$(git rev-parse --short "$GITHUB_SHA") - docker push ${{ env.REGISTRY }}/${{ env.G_ACCOUNT }}/pre-merge-ubuntu:guild-deploy-l_${{ env.COMMIT }} - - name: Testing cabal-build-all.sh (IO fork of libsodium) - run: | - echo "Working from PR Branch ${{ env.G_ACCOUNT }}/guild-operators/${{ env.BRANCH }} on Commit ${{ env.COMMIT }}" - docker build . \ - --file files/tests/pre-merge/ubuntu-cabal-l.containerfile \ - --compress \ - --build-arg BRANCH=${{ env.BRANCH }} \ - --build-arg COMMIT=${{ env.COMMIT }} \ - --build-arg G_ACCOUNT=${{ env.G_ACCOUNT }} \ - --tag ${{ env.REGISTRY }}/${{ env.G_ACCOUNT }}/pre-merge-ubuntu:cabal-l_${{ env.COMMIT }}