Improve ee_compat_check task (part 3)
-
Clone EE repo to /builds/gitlab-org/gitlab-ce/ee-compat-check
instead of/builds/gitlab-org/gitlab-ce/lib/tasks/gitlab/ee-compat-check
: can useRails.root
orCI_PROJECT_DIR
(or both to be able to run the task locally) -
Don't run this task for forks (e.g. https://gitlab.com/winniehell/gitlab-ce/builds/5619518): let's use CI_PROJECT_PATH
-
Cache cloned EE repo: https://docs.gitlab.com/ce/ci/yaml/README.html#cache -
Store artifacts ( *.patch
files) for 10 days: includeCI_BUILD_REF
in the patch name so that subsequent patches are stored even for the same branch, and we don't have to recreate a patch if it already exists! -
Ensure that the patch approach is actually valid: applying a CE patch to EE seem to fail if lines don't match (even if merge would succeed...): I think it's ok but will need to check... New line in the CHANGELOG seems to almost always never apply cleanly since EE CHANGELOG is always behind...