DOMjudge / domjudge-packaging

DOMjudge packaging for (Linux) distributions and live image
31 stars 37 forks source link

Switch from CI_PRE_CLONE_SCRIPT to FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR #148

Closed tom93 closed 1 year ago

tom93 commented 1 year ago

From the commit message:

CI_PRE_CLONE_SCRIPT is deprecated and will be removed in GitLab 16.0 (see [1]).

We use it to disable "umask 0000", which can also be done using FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR (see [2]), so switch to that.

Also add a regression test.

(When I was implementing the original fix using CI_PRE_CLONE_SCRIPT in #137, I did also try FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR, but it didn't seem to work. It works fine now; I think the issue at the time was due to caching, see [3].)

[1]: https://docs.gitlab.com/ee/update/deprecations?removal_milestone=16.0&breaking_only=true#deprecation-and-planned-removal-for-ci_pre_clone_script-variable-on-gitlab-saas [2]: https://www.gitlab.com/gitlab-org/gitlab-runner/-/issues/1736#note_1370906098 [3]: https://www.gitlab.com/gitlab-org/gitlab/-/issues/300715

tom93 commented 1 year ago

(I'm not sure the test I added is in the best place...)

nickygerritsen commented 1 year ago

I'm fine with the place of the check. Thanks once again!

tom93 commented 1 year ago

Hi @nickygerritsen, thanks for merging!

I'm working on a bunch of additional small fixes, what's the preferred way for submitting them? (Lots of small PRs? One big PR?)

nickygerritsen commented 1 year ago

Hi @nickygerritsen, thanks for merging!

I'm working on a bunch of additional small fixes, what's the preferred way for submitting them? (Lots of small PRs? One big PR?)

If you can, do one big one with separate commits? Then, assuming the majority is 'just fine', we can merge more quick.