From ebababa5e1496a86a007ee1879cf21ea3b0a3a24 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Tue, 3 Feb 2026 20:56:51 -0500 Subject: [PATCH] revamp workflows to be more tolerant --- .github/workflows/pentoo-binpkgs.yaml | 28 ++++++++++++++++++++++++ .github/workflows/pentoo-visibility.yaml | 2 +- scripts/qa/Dockerfile.binpkg | 22 +++++++++++++++++++ scripts/qa/Dockerfile.visibility | 2 +- 4 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pentoo-binpkgs.yaml create mode 100644 scripts/qa/Dockerfile.binpkg diff --git a/.github/workflows/pentoo-binpkgs.yaml b/.github/workflows/pentoo-binpkgs.yaml new file mode 100644 index 000000000..ae2536d14 --- /dev/null +++ b/.github/workflows/pentoo-binpkgs.yaml @@ -0,0 +1,28 @@ +name: Pentoo Binpkg Check + +on: + schedule: + - cron: "6 * * * *" + pull_request: + branches: + - master + +jobs: + pentoo-visibility-check: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v5 + with: + fetch-depth: 0 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: List added files + run: git diff-tree --no-commit-id --name-only -r ${{ github.sha }} + - + name: Binpkg Check + run: | + sudo docker build --progress=plain . -f scripts/qa/Dockerfile.binpkg diff --git a/.github/workflows/pentoo-visibility.yaml b/.github/workflows/pentoo-visibility.yaml index 4cfc10e28..fc79d0c50 100644 --- a/.github/workflows/pentoo-visibility.yaml +++ b/.github/workflows/pentoo-visibility.yaml @@ -2,7 +2,7 @@ name: Pentoo Visibility Check on: schedule: - - cron: "3 * * * *" + - cron: "6 * * * *" pull_request: branches: - master diff --git a/scripts/qa/Dockerfile.binpkg b/scripts/qa/Dockerfile.binpkg new file mode 100644 index 000000000..6ee4614e6 --- /dev/null +++ b/scripts/qa/Dockerfile.binpkg @@ -0,0 +1,22 @@ +FROM pentoolinux/pentoo-core + +# Setup repos +WORKDIR /var/db/repos/ +# setup gentoo repo +RUN git clone https://github.com/gentoo/gentoo.git --depth 1 +# setup pentoo repo +#RUN git clone https://github.com/pentoo/pentoo-overlay.git pentoo --depth 1 +# Use the github checkout for pentoo, that's what we are testing +COPY . pentoo + +#Regen doubles the time it takes for the action to run +#Revisit if this is worth running when we have >2 emerge calls +#RUN time FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --regen --jobs=$(nproc) --quiet + +WORKDIR /home + +# disable minimal (pentoo-core is default minimal) +RUN sed -i 's# pentoo-minimal##' /etc/portage/make.conf + +#test install pentoo/pentoo +RUN time FEATURES="getbinpkg -ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs=$(nproc) --load-average=$(nproc) --deep --update --newuse pentoo/pentoo --verbose --pretend diff --git a/scripts/qa/Dockerfile.visibility b/scripts/qa/Dockerfile.visibility index 03b069093..7833c4443 100644 --- a/scripts/qa/Dockerfile.visibility +++ b/scripts/qa/Dockerfile.visibility @@ -19,4 +19,4 @@ WORKDIR /home RUN sed -i 's# pentoo-minimal##' /etc/portage/make.conf #test install pentoo/pentoo -RUN time FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs=$(nproc) --load-average=$(nproc) --deep --update --newuse pentoo/pentoo --verbose --pretend +RUN time FEATURES="-getbinpkg -ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs=$(nproc) --load-average=$(nproc) --deep --update --newuse pentoo/pentoo --verbose --pretend