[igt-dev] [PATCH i-g-t] gitlab-ci: Run ninja test as non-root
Arkadiusz Hiler
arkadiusz.hiler at intel.com
Tue Feb 12 17:01:36 UTC 2019
On Tue, Feb 12, 2019 at 06:58:35PM +0200, Arkadiusz Hiler via igt-dev wrote:
> igt_command_line.sh now fails if it is run as root, which breaks 'ninja
> test' in GitLab's CI with our current setup.
>
> There's no convenient means of switching users yet:
> - USER in Dockerfile file won't do it, we would lack permissions for the src
> - each line of script is execute separately, so no `setuid()`
> - no facilities for juggling users in the gitlab-runner itself
>
> So will just `useradd && chmod && su -c "ninja test"` in the testing
> steps. At least for now.
>
> Cc: Daniel Vetter <daniel at ffwll.ch>
> Cc: Petri Latvala <petri.latvala at intel.com>
> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
Tested in my fork:
https://gitlab.freedesktop.org/ivyl/igt/pipelines/18748
I'll cancel i915 CI's run over this, no need to waste machine time.
--
Cheers,
Arek
More information about the igt-dev
mailing list