From 8d67418e2b136677f03183a8cf352179a70f72c0 Mon Sep 17 00:00:00 2001 From: Ross Patterson Date: Fri, 9 Feb 2024 23:24:49 -0800 Subject: [PATCH] fixup! ci(github): DEBUG Disk space usage --- .github/workflows/build-test.yml | 133 ++----------------------------- 1 file changed, 6 insertions(+), 127 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index b85adc95..71efd48d 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -74,12 +74,6 @@ on: jobs: build-test-default: runs-on: "ubuntu-latest" - container: - # TEMPLATE: Only change these if you customize the `./build-host/Dockerfile` image. - # Otherwise use the version of this image from the project template in your CI/CD. - image: "ghcr.io/rpatterson/project-structure:build-host" - env: - CHECKOUT_DIR: "${{ github.workspace }}" permissions: packages: "write" checks: "write" @@ -93,128 +87,13 @@ jobs: DOCKER_OSES: "${{ matrix.DOCKER_OSES }}" DOCKER_LANGUAGES: "${{ matrix.DOCKER_LANGUAGES }}" steps: - # Shared or common set up: - - name: "Checkout source from VCS" - uses: "actions/checkout@master" - # TODO: Debug stale venv issues and restore cache after fixing. - - # Delegate steps agnostic of the CI/CD platform to the `./Makefile`: - - name: "Build image and run tests and checks in a container" + - name: "DEBUG: Disk space usage" run: >- - git config --global --add safe.directory - /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }} - && - init-job.sh entrypoint.sh make -j -O release-all - - # Upload build artifacts: - # https://github.com/actions/upload-artifact#usage - - name: "Upload built packages" + mkdir -pv './var/log/' && + du -xh / | sort -rh | tee './var/log/du-root.log' | head -n 100 + - name: "DEBUG: Upload disk space debugging" uses: "actions/upload-artifact@master" with: - name: "built-pkgs" + name: "debug-disk-space" path: | - ./dist/project?structure-* - - name: "Archive test, coverage, and lint reports" - uses: "actions/upload-artifact@master" - with: - name: "test-coverage-lint-reports" - path: | - ./build/reports/ - - name: "Publish test suite report" - uses: "dorny/test-reporter@main" - # run this step even if preceding step failed - if: >- - (success() || failure()) - && ( - (! github.event.pull_request) - || ! ( - (github.repository_owner == '${PROJECT_NAMESPACE}') - && ( - github.event.pull_request.head.repo.owner.login - != '${PROJECT_NAMESPACE}' - ) - ) - ) - with: - name: >- - Test Suite Reports - (${{ matrix.DOCKER_OSES }}-${{ matrix.DOCKER_LANGUAGES }}) - path: >- - ./build/reports/*/*unit.xml - reporter: "java-junit" - build-test-others: - needs: ["build-test-default"] - runs-on: "ubuntu-latest" - container: - # TEMPLATE: Only change these if you customize the `./build-host/Dockerfile` image. - # Otherwise use the version of this image from the project template in your CI/CD. - image: "ghcr.io/rpatterson/project-structure:build-host" - env: - CHECKOUT_DIR: "${{ github.workspace }}" - permissions: - packages: "write" - checks: "write" - strategy: - matrix: - DOCKER_OSES: - - "debian" - DOCKER_LANGUAGES: - - "py312" - - "py310" - - "py39" - - "py38" - env: - DOCKER_OSES: "${{ matrix.DOCKER_OSES }}" - DOCKER_LANGUAGES: "${{ matrix.DOCKER_LANGUAGES }}" - PYTHON_PKG_EXISTING: "true" - steps: - # Shared or common set up: - - name: "Checkout source from VCS" - uses: "actions/checkout@master" - - name: "Download built packages" - uses: "actions/download-artifact@master" - with: - name: "built-pkgs" - path: | - ./dist/ - # TODO: Debug stale venv issues and restore cache after fixing. - # Delegate steps agnostic of the CI/CD platform to the `./Makefile`: - - name: "Build image and run tests and checks in a container" - run: >- - git config --global --add safe.directory - /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }} - && - init-job.sh entrypoint.sh make -j -O release-all - - # Upload build artifacts: - # https://github.com/actions/upload-artifact#usage - - name: "Archive test, coverage, and lint reports" - uses: "actions/upload-artifact@master" - with: - name: "\ - test-coverage-lint-reports\ - -${{ matrix.DOCKER_OSES }}-${{ matrix.DOCKER_LANGUAGES }}" - path: | - ./build/reports/ - - name: "Publish test suite report" - uses: "dorny/test-reporter@main" - # run this step even if preceding step failed - if: >- - (success() || failure()) - && ( - (! github.event.pull_request) - || ! ( - (github.repository_owner == '${PROJECT_NAMESPACE}') - && ( - github.event.pull_request.head.repo.owner.login - != '${PROJECT_NAMESPACE}' - ) - ) - ) - with: - name: >- - Test Suite Reports - (${{ matrix.DOCKER_OSES }}-${{ matrix.DOCKER_LANGUAGES }}) - path: >- - ./build/reports/*/*unit.xml - reporter: "java-junit" + ./var/log/*