summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Aruga <jaruga@redhat.com>2025-09-05 16:36:15 +0100
committerJun Aruga <junaruga@users.noreply.github.com>2025-09-05 21:08:59 +0100
commitc06e7046a6c5b6fbfb1eb2ad09c2157c88dec170 (patch)
tree8b5af5dc83d347413334e0be15c8c3a382281e13
parent76deabd3dbbb8ddcaf122ac80ee3d4ca2bfee993 (diff)
CI: ubuntu-ibm.yml: Set the runner user's primary group from the "id -g".
Set the runner user's primary group to avoid a mismatch between the group IDs of "id -g" and C function getpwuid(uid_t uid) pw_gid in a test as a better workaround.
-rw-r--r--.github/workflows/ubuntu-ibm.yml13
1 files changed, 5 insertions, 8 deletions
diff --git a/.github/workflows/ubuntu-ibm.yml b/.github/workflows/ubuntu-ibm.yml
index 4f034e2546..566bca8d3b 100644
--- a/.github/workflows/ubuntu-ibm.yml
+++ b/.github/workflows/ubuntu-ibm.yml
@@ -134,15 +134,12 @@ jobs:
continue-on-error: true
timeout-minutes: 3
- # A temporary workaround: Skip user ground id test
- # There is a mismatch between the group IDs of "id -g" and C function
- # getpwuid(uid_t uid) pw_gid.
+ # A temporary workaround: Set the user's primary group to avoid a mismatch
+ # between the group IDs of "id -g" and C function getpwuid(uid_t uid)
+ # pw_gid.
# https://github.com/IBM/actionspz/issues/31
- - name: Skip user group id test
- run: |
- sed -i.orig '/^ it "returns user group id" do/a\ skip' \
- ../src/spec/ruby/library/etc/struct_passwd_spec.rb
- diff -u ../src/spec/ruby/library/etc/struct_passwd_spec.rb{.orig,} || :
+ - name: Set user's group id
+ run: sudo usermod -g "$(id -g)" runner
if: ${{ endsWith(matrix.os, 'ppc64le') || endsWith(matrix.os, 's390x') }}
- name: make ${{ matrix.test_task }}