From af8650b95e1598359e87daed3c5ee3c3eae67d6c Mon Sep 17 00:00:00 2001 From: Ivo Anjo Date: Tue, 2 Jul 2024 10:28:17 +0100 Subject: [PATCH] Add another `useradd` workaround to hopefully fix running in GHA --- scenarios/ruby_dir_interruption_patch/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scenarios/ruby_dir_interruption_patch/Dockerfile b/scenarios/ruby_dir_interruption_patch/Dockerfile index bbceae6..aebb77d 100644 --- a/scenarios/ruby_dir_interruption_patch/Dockerfile +++ b/scenarios/ruby_dir_interruption_patch/Dockerfile @@ -19,6 +19,9 @@ RUN mkdir /app/rubyspec_temp RUN chmod 777 /app/rubyspec_temp # Needed by one of the ruby specs (which is testing access to home) +# @ivoanjo: Locally I get uid 1000, and in CI I'm seeing 1001. I am not sure why they differ, or if any other uids +# can show up. But, if we're missing this for an user, it'll cause the tests to fail so we definitely won't miss it. RUN useradd -u 1000 -ms /bin/bash someuser +RUN useradd -u 1001 -ms /bin/bash someuser2 CMD bundle exec ddprofrb exec ruby mspec-master/bin/mspec-run --config mspec_config.rb spec-master/core/dir/