Skip to content

Commit

Permalink
fixup! ci(github): DEBUG Disk space usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rpatterson committed Feb 22, 2024
1 parent 7095bd3 commit c45bd43
Showing 1 changed file with 6 additions and 127 deletions.
133 changes: 6 additions & 127 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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/*

0 comments on commit c45bd43

Please sign in to comment.