commit:     6a62e919446816ac2c53da141788780179880dda
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  3 15:31:00 2026 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Jan  3 16:10:50 2026 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=6a62e919

ci: run gentoo-regen in gentoo container image

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 .github/workflows/test.yml | 29 ++++++++++-------------------
 1 file changed, 10 insertions(+), 19 deletions(-)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 3083f049..fd4845af 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -163,8 +163,9 @@ jobs:
         args: "format --check --diff"
 
   gentoo-regen:
+    container:
+      image: docker.io/gentoo/stage3:latest
     runs-on: ubuntu-latest
-    continue-on-error: true # This job currently fails with ubuntu's bash 5.3
     steps:
     - name: Checkout pkgcore
       uses: pkgcore/gh-actions/get-source@main
@@ -172,31 +173,21 @@ jobs:
         artifact-id: ${{ inputs.release-artifact-id }}
         path: pkgcore
 
-    - name: Install bash 5.3
-      uses: pkgcore/gh-actions/bash-5.3@main
-
     - name: Checkout gentoo
       uses: actions/checkout@v4
       with:
         repository: gentoo/gentoo
         path: gentoo
 
-    - name: Collect gentoo sha1
-      run: |
-        rev=$(git --git-dir gentoo/.git/ rev-parse HEAD)
-        echo "sha1 is $rev"
-        echo "GENTOO_SHA1=${rev}" >> "$GITHUB_ENV"
+    - name: Link gentoo repo
+      run: ln -s ${PWD}/gentoo /var/db/repos/gentoo
 
-    - name: Set up Python 3.13
-      uses: actions/setup-python@v5
-      with:
-        python-version: '3.13'
+    - name: Install dev-python/pip
+      run: FEATURES="-pid-sandbox -ipc-sandbox -network-sandbox" emerge -1 
dev-python/pip
 
-    - name: Install pip dependencies
-      run: |
-        python -m pip install --upgrade pip
-        pip install "./pkgcore"
+    - name: Install pkgcore
+      run: pip install --break-system-packages "./pkgcore"
 
-    - name: Run pmaint regen against ${{ env.GENTOO_SHA1 }}
+    - name: Run pmaint regen
       working-directory: ./gentoo
-      run: pmaint regen --use-local-desc --pkg-desc-index --rsync --force .
+      run: pmaint regen --use-local-desc --pkg-desc-index --rsync --force 
gentoo

Reply via email to