Skip to content

Commit c06e704

Browse files
committed
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.
1 parent 76deabd commit c06e704

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/ubuntu-ibm.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,12 @@ jobs:
134134
continue-on-error: true
135135
timeout-minutes: 3
136136

137-
# A temporary workaround: Skip user ground id test
138-
# There is a mismatch between the group IDs of "id -g" and C function
139-
# getpwuid(uid_t uid) pw_gid.
137+
# A temporary workaround: Set the user's primary group to avoid a mismatch
138+
# between the group IDs of "id -g" and C function getpwuid(uid_t uid)
139+
# pw_gid.
140140
# https://github.com/IBM/actionspz/issues/31
141-
- name: Skip user group id test
142-
run: |
143-
sed -i.orig '/^ it "returns user group id" do/a\ skip' \
144-
../src/spec/ruby/library/etc/struct_passwd_spec.rb
145-
diff -u ../src/spec/ruby/library/etc/struct_passwd_spec.rb{.orig,} || :
141+
- name: Set user's group id
142+
run: sudo usermod -g "$(id -g)" runner
146143
if: ${{ endsWith(matrix.os, 'ppc64le') || endsWith(matrix.os, 's390x') }}
147144

148145
- name: make ${{ matrix.test_task }}

0 commit comments

Comments
 (0)