Skip to content

Mirroring feature triggers builds

The discussion from Slack:

Jeroen Nijhof [11:24] 
Ok still 1000 builds pending...and finally seeing the cause...
some of our folks are using the mirror function which also execute a build run on every sync
so i.e. @jose uses a gitlab-ce mirror which is causing a lot of double build runs
@jose: I have disabled the mirror function on your gitlab-ce fork

Sytse Sijbrandij [11:26] 
wow, we should fix that, mirroring should not trigger a ci build /cc @kamilt

Kamil Trzciński [11:51] 
@sytse: not sure, someone may want to use CI for mirrored project, it appears that it should be configurable in mirroring function

Sytse Sijbrandij [11:52] 
@kamilt: as long as it is off by default I'm OK with it

Thoughts:

  • If someone have the Builds enabled it should trigger builds always
  • Disabling builds just for mirroring doesn't seem right, someone may want to use GitLab CI
  • Adding such option to mirroring seems complicated (cc @DouweM)

Solution:

I would propose to leave it as it is, but add big warning in Mirror controller that mirroring will trigger builds.

/cc @JobV @DouweM @sytses