* [PATCH] automation: avoid duplicated builds of staging branch @ 2023-07-17 13:09 Marek Marczykowski-Górecki 2023-07-17 13:14 ` Andrew Cooper 0 siblings, 1 reply; 12+ messages in thread From: Marek Marczykowski-Górecki @ 2023-07-17 13:09 UTC (permalink / raw) To: xen-devel Cc: Marek Marczykowski-Górecki, Doug Goldstein, Stefano Stabellini "staging" branch is mirrored (automatically or manually) to several repositories. Avoid building it several times to not waste runner resources. Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c8bd7519d5fb..c3b05e32636b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,12 @@ stages: - build - test +workflow: + rules: + - if: '$CI_COMMIT_REF_NAME == "staging" && $CI_PROJECT_NAMESPACE != "xen-project"' + when: never + - when: always + include: - 'automation/gitlab-ci/build.yaml' - 'automation/gitlab-ci/test.yaml' -- 2.41.0 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] automation: avoid duplicated builds of staging branch 2023-07-17 13:09 [PATCH] automation: avoid duplicated builds of staging branch Marek Marczykowski-Górecki @ 2023-07-17 13:14 ` Andrew Cooper 2023-07-17 14:08 ` Marek Marczykowski-Górecki 0 siblings, 1 reply; 12+ messages in thread From: Andrew Cooper @ 2023-07-17 13:14 UTC (permalink / raw) To: Marek Marczykowski-Górecki, xen-devel Cc: Doug Goldstein, Stefano Stabellini, committers@xenproject.org On 17/07/2023 2:09 pm, Marek Marczykowski-Górecki wrote: > "staging" branch is mirrored (automatically or manually) to several > repositories. Avoid building it several times to not waste runner > resources. > > Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> > --- > .gitlab-ci.yml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml > index c8bd7519d5fb..c3b05e32636b 100644 > --- a/.gitlab-ci.yml > +++ b/.gitlab-ci.yml > @@ -2,6 +2,12 @@ stages: > - build > - test > > +workflow: > + rules: > + - if: '$CI_COMMIT_REF_NAME == "staging" && $CI_PROJECT_NAMESPACE != "xen-project"' > + when: never > + - when: always If we're doing this for staging, we should include staging-* and stable-*. They're all the same from this point of view. However, this does need double checking with the committers who use gitlab regularly (CC'd). This doesn't happen to interfere with my commit workflow (I use a separate branch called for-staging), but I can't talk for others. ~Andrew ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] automation: avoid duplicated builds of staging branch 2023-07-17 13:14 ` Andrew Cooper @ 2023-07-17 14:08 ` Marek Marczykowski-Górecki 2023-07-21 23:42 ` Stefano Stabellini 0 siblings, 1 reply; 12+ messages in thread From: Marek Marczykowski-Górecki @ 2023-07-17 14:08 UTC (permalink / raw) To: Andrew Cooper Cc: xen-devel, Doug Goldstein, Stefano Stabellini, committers@xenproject.org [-- Attachment #1: Type: text/plain, Size: 1649 bytes --] On Mon, Jul 17, 2023 at 02:14:14PM +0100, Andrew Cooper wrote: > On 17/07/2023 2:09 pm, Marek Marczykowski-Górecki wrote: > > "staging" branch is mirrored (automatically or manually) to several > > repositories. Avoid building it several times to not waste runner > > resources. > > > > Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> > > --- > > .gitlab-ci.yml | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml > > index c8bd7519d5fb..c3b05e32636b 100644 > > --- a/.gitlab-ci.yml > > +++ b/.gitlab-ci.yml > > @@ -2,6 +2,12 @@ stages: > > - build > > - test > > > > +workflow: > > + rules: > > + - if: '$CI_COMMIT_REF_NAME == "staging" && $CI_PROJECT_NAMESPACE != "xen-project"' > > + when: never > > + - when: always > > If we're doing this for staging, we should include staging-* and > stable-*. They're all the same from this point of view. > > However, this does need double checking with the committers who use > gitlab regularly (CC'd). This doesn't happen to interfere with my > commit workflow (I use a separate branch called for-staging), but I > can't talk for others. I'd like to avoid broad patterns like staging-* or stable-* here, I'm pretty sure people do use branches like staging-X.Y-something. While it would be possible to exclude them by listing exact names, I'm not sure if it's worth it, given the push frequency to them (few times a month) and those being mirrored to less repositories (only FuSa fork?). -- Best Regards, Marek Marczykowski-Górecki Invisible Things Lab [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] automation: avoid duplicated builds of staging branch 2023-07-17 14:08 ` Marek Marczykowski-Górecki @ 2023-07-21 23:42 ` Stefano Stabellini 2023-07-22 0:07 ` Marek Marczykowski-Górecki 0 siblings, 1 reply; 12+ messages in thread From: Stefano Stabellini @ 2023-07-21 23:42 UTC (permalink / raw) To: Marek Marczykowski-Górecki Cc: Andrew Cooper, xen-devel, Doug Goldstein, Stefano Stabellini, committers@xenproject.org [-- Attachment #1: Type: text/plain, Size: 2387 bytes --] On Mon, 17 Jul 2023, Marek Marczykowski-Górecki wrote: > On Mon, Jul 17, 2023 at 02:14:14PM +0100, Andrew Cooper wrote: > > On 17/07/2023 2:09 pm, Marek Marczykowski-Górecki wrote: > > > "staging" branch is mirrored (automatically or manually) to several > > > repositories. Avoid building it several times to not waste runner > > > resources. Hi Marek, Let me try to understand the use-case a bit better. You would like the following "staging" branch to run a full pipeline: https://gitlab.com/xen-project/xen But if someone under xen-project/people is mirroring https://gitlab.com/xen-project/xen, this patch is attempting to skip the additional pipeline. For instance, if I am mirroring staging in my personal repo: https://gitlab.com/xen-project/people/sstabellini/xen We are skipping the additional pipeline there. Is that correct? If so, it would be easier to ask everyone to make sure they have "Trigger pipelines for mirror updates" unselected: https://docs.gitlab.com/ee/user/project/repository/mirror/pull.html#trigger-pipelines-for-mirror-updates > > > Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> > > > --- > > > .gitlab-ci.yml | 6 ++++++ > > > 1 file changed, 6 insertions(+) > > > > > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml > > > index c8bd7519d5fb..c3b05e32636b 100644 > > > --- a/.gitlab-ci.yml > > > +++ b/.gitlab-ci.yml > > > @@ -2,6 +2,12 @@ stages: > > > - build > > > - test > > > > > > +workflow: > > > + rules: > > > + - if: '$CI_COMMIT_REF_NAME == "staging" && $CI_PROJECT_NAMESPACE != "xen-project"' > > > + when: never > > > + - when: always > > > > If we're doing this for staging, we should include staging-* and > > stable-*. They're all the same from this point of view. > > > > However, this does need double checking with the committers who use > > gitlab regularly (CC'd). This doesn't happen to interfere with my > > commit workflow (I use a separate branch called for-staging), but I > > can't talk for others. > > I'd like to avoid broad patterns like staging-* or stable-* here, I'm > pretty sure people do use branches like staging-X.Y-something. While it > would be possible to exclude them by listing exact names, I'm not sure > if it's worth it, given the push frequency to them (few times a month) > and those being mirrored to less repositories (only FuSa fork?). ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] automation: avoid duplicated builds of staging branch 2023-07-21 23:42 ` Stefano Stabellini @ 2023-07-22 0:07 ` Marek Marczykowski-Górecki 2023-07-22 0:14 ` Stefano Stabellini 0 siblings, 1 reply; 12+ messages in thread From: Marek Marczykowski-Górecki @ 2023-07-22 0:07 UTC (permalink / raw) To: Stefano Stabellini Cc: Andrew Cooper, xen-devel, Doug Goldstein, committers@xenproject.org [-- Attachment #1: Type: text/plain, Size: 2863 bytes --] On Fri, Jul 21, 2023 at 04:42:11PM -0700, Stefano Stabellini wrote: > On Mon, 17 Jul 2023, Marek Marczykowski-Górecki wrote: > > On Mon, Jul 17, 2023 at 02:14:14PM +0100, Andrew Cooper wrote: > > > On 17/07/2023 2:09 pm, Marek Marczykowski-Górecki wrote: > > > > "staging" branch is mirrored (automatically or manually) to several > > > > repositories. Avoid building it several times to not waste runner > > > > resources. > > Hi Marek, > > Let me try to understand the use-case a bit better. You would like the > following "staging" branch to run a full pipeline: > https://gitlab.com/xen-project/xen > > But if someone under xen-project/people is mirroring > https://gitlab.com/xen-project/xen, this patch is attempting to skip the > additional pipeline. For instance, if I am mirroring staging in my > personal repo: > > https://gitlab.com/xen-project/people/sstabellini/xen > > We are skipping the additional pipeline there. Yes. > Is that correct? If so, it would be easier to ask everyone to make sure > they have "Trigger pipelines for mirror updates" unselected: > > https://docs.gitlab.com/ee/user/project/repository/mirror/pull.html#trigger-pipelines-for-mirror-updates If that's set in gitlab as pull mirror (instead of push from somewhere else), then that indeed may be enough. But is it really in all those cases? > > > > Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> > > > > --- > > > > .gitlab-ci.yml | 6 ++++++ > > > > 1 file changed, 6 insertions(+) > > > > > > > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml > > > > index c8bd7519d5fb..c3b05e32636b 100644 > > > > --- a/.gitlab-ci.yml > > > > +++ b/.gitlab-ci.yml > > > > @@ -2,6 +2,12 @@ stages: > > > > - build > > > > - test > > > > > > > > +workflow: > > > > + rules: > > > > + - if: '$CI_COMMIT_REF_NAME == "staging" && $CI_PROJECT_NAMESPACE != "xen-project"' > > > > + when: never > > > > + - when: always > > > > > > If we're doing this for staging, we should include staging-* and > > > stable-*. They're all the same from this point of view. > > > > > > However, this does need double checking with the committers who use > > > gitlab regularly (CC'd). This doesn't happen to interfere with my > > > commit workflow (I use a separate branch called for-staging), but I > > > can't talk for others. > > > > I'd like to avoid broad patterns like staging-* or stable-* here, I'm > > pretty sure people do use branches like staging-X.Y-something. While it > > would be possible to exclude them by listing exact names, I'm not sure > > if it's worth it, given the push frequency to them (few times a month) > > and those being mirrored to less repositories (only FuSa fork?). -- Best Regards, Marek Marczykowski-Górecki Invisible Things Lab [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] automation: avoid duplicated builds of staging branch 2023-07-22 0:07 ` Marek Marczykowski-Górecki @ 2023-07-22 0:14 ` Stefano Stabellini 2023-07-22 0:24 ` Marek Marczykowski-Górecki 0 siblings, 1 reply; 12+ messages in thread From: Stefano Stabellini @ 2023-07-22 0:14 UTC (permalink / raw) To: Marek Marczykowski-Górecki Cc: Stefano Stabellini, Andrew Cooper, xen-devel, Doug Goldstein, committers@xenproject.org [-- Attachment #1: Type: text/plain, Size: 1545 bytes --] On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > On Fri, Jul 21, 2023 at 04:42:11PM -0700, Stefano Stabellini wrote: > > On Mon, 17 Jul 2023, Marek Marczykowski-Górecki wrote: > > > On Mon, Jul 17, 2023 at 02:14:14PM +0100, Andrew Cooper wrote: > > > > On 17/07/2023 2:09 pm, Marek Marczykowski-Górecki wrote: > > > > > "staging" branch is mirrored (automatically or manually) to several > > > > > repositories. Avoid building it several times to not waste runner > > > > > resources. > > > > Hi Marek, > > > > Let me try to understand the use-case a bit better. You would like the > > following "staging" branch to run a full pipeline: > > https://gitlab.com/xen-project/xen > > > > But if someone under xen-project/people is mirroring > > https://gitlab.com/xen-project/xen, this patch is attempting to skip the > > additional pipeline. For instance, if I am mirroring staging in my > > personal repo: > > > > https://gitlab.com/xen-project/people/sstabellini/xen > > > > We are skipping the additional pipeline there. > > Yes. > > > Is that correct? If so, it would be easier to ask everyone to make sure > > they have "Trigger pipelines for mirror updates" unselected: > > > > https://docs.gitlab.com/ee/user/project/repository/mirror/pull.html#trigger-pipelines-for-mirror-updates > > If that's set in gitlab as pull mirror (instead of push from somewhere > else), then that indeed may be enough. But is it really in all those > cases? Yes, it is an option in the pull mirror, by default should be unselected I believe. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] automation: avoid duplicated builds of staging branch 2023-07-22 0:14 ` Stefano Stabellini @ 2023-07-22 0:24 ` Marek Marczykowski-Górecki 2023-07-22 0:49 ` Stefano Stabellini 0 siblings, 1 reply; 12+ messages in thread From: Marek Marczykowski-Górecki @ 2023-07-22 0:24 UTC (permalink / raw) To: Stefano Stabellini Cc: Andrew Cooper, xen-devel, Doug Goldstein, committers@xenproject.org [-- Attachment #1: Type: text/plain, Size: 2076 bytes --] On Fri, Jul 21, 2023 at 05:14:01PM -0700, Stefano Stabellini wrote: > On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > > On Fri, Jul 21, 2023 at 04:42:11PM -0700, Stefano Stabellini wrote: > > > On Mon, 17 Jul 2023, Marek Marczykowski-Górecki wrote: > > > > On Mon, Jul 17, 2023 at 02:14:14PM +0100, Andrew Cooper wrote: > > > > > On 17/07/2023 2:09 pm, Marek Marczykowski-Górecki wrote: > > > > > > "staging" branch is mirrored (automatically or manually) to several > > > > > > repositories. Avoid building it several times to not waste runner > > > > > > resources. > > > > > > Hi Marek, > > > > > > Let me try to understand the use-case a bit better. You would like the > > > following "staging" branch to run a full pipeline: > > > https://gitlab.com/xen-project/xen > > > > > > But if someone under xen-project/people is mirroring > > > https://gitlab.com/xen-project/xen, this patch is attempting to skip the > > > additional pipeline. For instance, if I am mirroring staging in my > > > personal repo: > > > > > > https://gitlab.com/xen-project/people/sstabellini/xen > > > > > > We are skipping the additional pipeline there. > > > > Yes. > > > > > Is that correct? If so, it would be easier to ask everyone to make sure > > > they have "Trigger pipelines for mirror updates" unselected: > > > > > > https://docs.gitlab.com/ee/user/project/repository/mirror/pull.html#trigger-pipelines-for-mirror-updates > > > > If that's set in gitlab as pull mirror (instead of push from somewhere > > else), then that indeed may be enough. But is it really in all those > > cases? > > Yes, it is an option in the pull mirror, by default should be unselected > I believe. Well, if that's the case, either it got manually enabled on those 4 (?) forks, or those are using something else for mirroring the staging branch (in which case, the setting would not help). I can't see this part of the settings in other's repositories, so I don't know. -- Best Regards, Marek Marczykowski-Górecki Invisible Things Lab [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] automation: avoid duplicated builds of staging branch 2023-07-22 0:24 ` Marek Marczykowski-Górecki @ 2023-07-22 0:49 ` Stefano Stabellini 2023-07-22 1:00 ` Marek Marczykowski-Górecki 0 siblings, 1 reply; 12+ messages in thread From: Stefano Stabellini @ 2023-07-22 0:49 UTC (permalink / raw) To: Marek Marczykowski-Górecki Cc: Stefano Stabellini, Andrew Cooper, xen-devel, Doug Goldstein, committers@xenproject.org [-- Attachment #1: Type: text/plain, Size: 2167 bytes --] On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > On Fri, Jul 21, 2023 at 05:14:01PM -0700, Stefano Stabellini wrote: > > On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > > > On Fri, Jul 21, 2023 at 04:42:11PM -0700, Stefano Stabellini wrote: > > > > On Mon, 17 Jul 2023, Marek Marczykowski-Górecki wrote: > > > > > On Mon, Jul 17, 2023 at 02:14:14PM +0100, Andrew Cooper wrote: > > > > > > On 17/07/2023 2:09 pm, Marek Marczykowski-Górecki wrote: > > > > > > > "staging" branch is mirrored (automatically or manually) to several > > > > > > > repositories. Avoid building it several times to not waste runner > > > > > > > resources. > > > > > > > > Hi Marek, > > > > > > > > Let me try to understand the use-case a bit better. You would like the > > > > following "staging" branch to run a full pipeline: > > > > https://gitlab.com/xen-project/xen > > > > > > > > But if someone under xen-project/people is mirroring > > > > https://gitlab.com/xen-project/xen, this patch is attempting to skip the > > > > additional pipeline. For instance, if I am mirroring staging in my > > > > personal repo: > > > > > > > > https://gitlab.com/xen-project/people/sstabellini/xen > > > > > > > > We are skipping the additional pipeline there. > > > > > > Yes. > > > > > > > Is that correct? If so, it would be easier to ask everyone to make sure > > > > they have "Trigger pipelines for mirror updates" unselected: > > > > > > > > https://docs.gitlab.com/ee/user/project/repository/mirror/pull.html#trigger-pipelines-for-mirror-updates > > > > > > If that's set in gitlab as pull mirror (instead of push from somewhere > > > else), then that indeed may be enough. But is it really in all those > > > cases? > > > > Yes, it is an option in the pull mirror, by default should be unselected > > I believe. > > Well, if that's the case, either it got manually enabled on those 4 (?) > forks, or those are using something else for mirroring the staging > branch (in which case, the setting would not help). I can't see this > part of the settings in other's repositories, so I don't know. Do you know the name of those 4 forks? I can help figure it out. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] automation: avoid duplicated builds of staging branch 2023-07-22 0:49 ` Stefano Stabellini @ 2023-07-22 1:00 ` Marek Marczykowski-Górecki 2023-07-22 1:18 ` Stefano Stabellini 0 siblings, 1 reply; 12+ messages in thread From: Marek Marczykowski-Górecki @ 2023-07-22 1:00 UTC (permalink / raw) To: Stefano Stabellini Cc: Andrew Cooper, xen-devel, Doug Goldstein, committers@xenproject.org [-- Attachment #1: Type: text/plain, Size: 2812 bytes --] On Fri, Jul 21, 2023 at 05:49:49PM -0700, Stefano Stabellini wrote: > On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > > On Fri, Jul 21, 2023 at 05:14:01PM -0700, Stefano Stabellini wrote: > > > On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > > > > On Fri, Jul 21, 2023 at 04:42:11PM -0700, Stefano Stabellini wrote: > > > > > On Mon, 17 Jul 2023, Marek Marczykowski-Górecki wrote: > > > > > > On Mon, Jul 17, 2023 at 02:14:14PM +0100, Andrew Cooper wrote: > > > > > > > On 17/07/2023 2:09 pm, Marek Marczykowski-Górecki wrote: > > > > > > > > "staging" branch is mirrored (automatically or manually) to several > > > > > > > > repositories. Avoid building it several times to not waste runner > > > > > > > > resources. > > > > > > > > > > Hi Marek, > > > > > > > > > > Let me try to understand the use-case a bit better. You would like the > > > > > following "staging" branch to run a full pipeline: > > > > > https://gitlab.com/xen-project/xen > > > > > > > > > > But if someone under xen-project/people is mirroring > > > > > https://gitlab.com/xen-project/xen, this patch is attempting to skip the > > > > > additional pipeline. For instance, if I am mirroring staging in my > > > > > personal repo: > > > > > > > > > > https://gitlab.com/xen-project/people/sstabellini/xen > > > > > > > > > > We are skipping the additional pipeline there. > > > > > > > > Yes. > > > > > > > > > Is that correct? If so, it would be easier to ask everyone to make sure > > > > > they have "Trigger pipelines for mirror updates" unselected: > > > > > > > > > > https://docs.gitlab.com/ee/user/project/repository/mirror/pull.html#trigger-pipelines-for-mirror-updates > > > > > > > > If that's set in gitlab as pull mirror (instead of push from somewhere > > > > else), then that indeed may be enough. But is it really in all those > > > > cases? > > > > > > Yes, it is an option in the pull mirror, by default should be unselected > > > I believe. > > > > Well, if that's the case, either it got manually enabled on those 4 (?) > > forks, or those are using something else for mirroring the staging > > branch (in which case, the setting would not help). I can't see this > > part of the settings in other's repositories, so I don't know. > > Do you know the name of those 4 forks? I can help figure it out. Looking at "activity" view on gitlab, I see those: https://gitlab.com/xen-project/fusa/xen-integration https://gitlab.com/xen-project/people/olkur/xen https://gitlab.com/xen-project/people/andyhhp/xen There are few more that have staging branch almost up to date, but seems to be pushed manually (based on it being not fully up to date) and less often. -- Best Regards, Marek Marczykowski-Górecki Invisible Things Lab [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] automation: avoid duplicated builds of staging branch 2023-07-22 1:00 ` Marek Marczykowski-Górecki @ 2023-07-22 1:18 ` Stefano Stabellini 2023-07-24 8:27 ` Oleksii 0 siblings, 1 reply; 12+ messages in thread From: Stefano Stabellini @ 2023-07-22 1:18 UTC (permalink / raw) To: Marek Marczykowski-Górecki, andrew.cooper3, oleksii.kurochko Cc: Stefano Stabellini, Andrew Cooper, xen-devel, Doug Goldstein, committers@xenproject.org [-- Attachment #1: Type: text/plain, Size: 3549 bytes --] Hi Andrew, Oleksii, Please see below. It looks like you have configured your personal repositories to mirror upstream Xen: https://gitlab.com/xen-project/people/olkur/xen https://gitlab.com/xen-project/people/andyhhp/xen Make sure that the option "Trigger pipelines for mirror updates" is unselected. If you setup the mirror a long time ago, you might want to stop the mirror and start it again. I have just done the same for fusa/xen-integration: I had to go to settings->repository, stop the existing mirror, and create a new one making sure "Trigger pipelines for mirror updates" is off. Cheers, Stefano On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > On Fri, Jul 21, 2023 at 05:49:49PM -0700, Stefano Stabellini wrote: > > On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > > > On Fri, Jul 21, 2023 at 05:14:01PM -0700, Stefano Stabellini wrote: > > > > On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > > > > > On Fri, Jul 21, 2023 at 04:42:11PM -0700, Stefano Stabellini wrote: > > > > > > On Mon, 17 Jul 2023, Marek Marczykowski-Górecki wrote: > > > > > > > On Mon, Jul 17, 2023 at 02:14:14PM +0100, Andrew Cooper wrote: > > > > > > > > On 17/07/2023 2:09 pm, Marek Marczykowski-Górecki wrote: > > > > > > > > > "staging" branch is mirrored (automatically or manually) to several > > > > > > > > > repositories. Avoid building it several times to not waste runner > > > > > > > > > resources. > > > > > > > > > > > > Hi Marek, > > > > > > > > > > > > Let me try to understand the use-case a bit better. You would like the > > > > > > following "staging" branch to run a full pipeline: > > > > > > https://gitlab.com/xen-project/xen > > > > > > > > > > > > But if someone under xen-project/people is mirroring > > > > > > https://gitlab.com/xen-project/xen, this patch is attempting to skip the > > > > > > additional pipeline. For instance, if I am mirroring staging in my > > > > > > personal repo: > > > > > > > > > > > > https://gitlab.com/xen-project/people/sstabellini/xen > > > > > > > > > > > > We are skipping the additional pipeline there. > > > > > > > > > > Yes. > > > > > > > > > > > Is that correct? If so, it would be easier to ask everyone to make sure > > > > > > they have "Trigger pipelines for mirror updates" unselected: > > > > > > > > > > > > https://docs.gitlab.com/ee/user/project/repository/mirror/pull.html#trigger-pipelines-for-mirror-updates > > > > > > > > > > If that's set in gitlab as pull mirror (instead of push from somewhere > > > > > else), then that indeed may be enough. But is it really in all those > > > > > cases? > > > > > > > > Yes, it is an option in the pull mirror, by default should be unselected > > > > I believe. > > > > > > Well, if that's the case, either it got manually enabled on those 4 (?) > > > forks, or those are using something else for mirroring the staging > > > branch (in which case, the setting would not help). I can't see this > > > part of the settings in other's repositories, so I don't know. > > > > Do you know the name of those 4 forks? I can help figure it out. > > Looking at "activity" view on gitlab, I see those: > https://gitlab.com/xen-project/fusa/xen-integration > https://gitlab.com/xen-project/people/olkur/xen > https://gitlab.com/xen-project/people/andyhhp/xen > > There are few more that have staging branch almost up to date, but seems > to be pushed manually (based on it being not fully up to date) and less > often. > > -- > Best Regards, > Marek Marczykowski-Górecki > Invisible Things Lab > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] automation: avoid duplicated builds of staging branch 2023-07-22 1:18 ` Stefano Stabellini @ 2023-07-24 8:27 ` Oleksii 2023-07-24 20:58 ` Stefano Stabellini 0 siblings, 1 reply; 12+ messages in thread From: Oleksii @ 2023-07-24 8:27 UTC (permalink / raw) To: Stefano Stabellini, Marek Marczykowski-Górecki, andrew.cooper3 Cc: xen-devel, Doug Goldstein, committers@xenproject.org Hi Stefano, On Fri, 2023-07-21 at 18:18 -0700, Stefano Stabellini wrote: > Hi Andrew, Oleksii, > > Please see below. > > It looks like you have configured your personal repositories to > mirror > upstream Xen: > > https://gitlab.com/xen-project/people/olkur/xen > https://gitlab.com/xen-project/people/andyhhp/xen > > Make sure that the option "Trigger pipelines for mirror updates" is > unselected. > > If you setup the mirror a long time ago, you might want to stop the > mirror and start it again. > > I have just done the same for fusa/xen-integration: I had to go to > settings->repository, stop the existing mirror, and create a new one > making sure "Trigger pipelines for mirror updates" is off. I checked the option is unselected. But I have selected "Mirror all branches" in "Mirror branches". I can use "Mirror specific branches" to avoid 'staging' mirroring. Will it be enough? ~ Oleksii > > > > On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > > On Fri, Jul 21, 2023 at 05:49:49PM -0700, Stefano Stabellini wrote: > > > On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > > > > On Fri, Jul 21, 2023 at 05:14:01PM -0700, Stefano Stabellini > > > > wrote: > > > > > On Sat, 22 Jul 2023, Marek Marczykowski-Górecki wrote: > > > > > > On Fri, Jul 21, 2023 at 04:42:11PM -0700, Stefano > > > > > > Stabellini wrote: > > > > > > > On Mon, 17 Jul 2023, Marek Marczykowski-Górecki wrote: > > > > > > > > On Mon, Jul 17, 2023 at 02:14:14PM +0100, Andrew Cooper > > > > > > > > wrote: > > > > > > > > > On 17/07/2023 2:09 pm, Marek Marczykowski-Górecki > > > > > > > > > wrote: > > > > > > > > > > "staging" branch is mirrored (automatically or > > > > > > > > > > manually) to several > > > > > > > > > > repositories. Avoid building it several times to > > > > > > > > > > not waste runner > > > > > > > > > > resources. > > > > > > > > > > > > > > Hi Marek, > > > > > > > > > > > > > > Let me try to understand the use-case a bit better. You > > > > > > > would like the > > > > > > > following "staging" branch to run a full pipeline: > > > > > > > https://gitlab.com/xen-project/xen > > > > > > > > > > > > > > But if someone under xen-project/people is mirroring > > > > > > > https://gitlab.com/xen-project/xen, this patch is > > > > > > > attempting to skip the > > > > > > > additional pipeline. For instance, if I am mirroring > > > > > > > staging in my > > > > > > > personal repo: > > > > > > > > > > > > > > https://gitlab.com/xen-project/people/sstabellini/xen > > > > > > > > > > > > > > We are skipping the additional pipeline there. > > > > > > > > > > > > Yes. > > > > > > > > > > > > > Is that correct? If so, it would be easier to ask > > > > > > > everyone to make sure > > > > > > > they have "Trigger pipelines for mirror updates" > > > > > > > unselected: > > > > > > > > > > > > > > https://docs.gitlab.com/ee/user/project/repository/mirror/pull.html#trigger-pipelines-for-mirror-updates > > > > > > > > > > > > If that's set in gitlab as pull mirror (instead of push > > > > > > from somewhere > > > > > > else), then that indeed may be enough. But is it really in > > > > > > all those > > > > > > cases? > > > > > > > > > > Yes, it is an option in the pull mirror, by default should be > > > > > unselected > > > > > I believe. > > > > > > > > Well, if that's the case, either it got manually enabled on > > > > those 4 (?) > > > > forks, or those are using something else for mirroring the > > > > staging > > > > branch (in which case, the setting would not help). I can't see > > > > this > > > > part of the settings in other's repositories, so I don't know. > > > > > > Do you know the name of those 4 forks? I can help figure it out. > > > > Looking at "activity" view on gitlab, I see those: > > https://gitlab.com/xen-project/fusa/xen-integration > > https://gitlab.com/xen-project/people/olkur/xen > > https://gitlab.com/xen-project/people/andyhhp/xen > > > > There are few more that have staging branch almost up to date, but > > seems > > to be pushed manually (based on it being not fully up to date) and > > less > > often. > > > > -- > > Best Regards, > > Marek Marczykowski-Górecki > > Invisible Things Lab ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] automation: avoid duplicated builds of staging branch 2023-07-24 8:27 ` Oleksii @ 2023-07-24 20:58 ` Stefano Stabellini 0 siblings, 0 replies; 12+ messages in thread From: Stefano Stabellini @ 2023-07-24 20:58 UTC (permalink / raw) To: Oleksii Cc: Stefano Stabellini, Marek Marczykowski-Górecki, andrew.cooper3, xen-devel, Doug Goldstein, committers@xenproject.org On Mon, 24 Jul 2023, Oleksii wrote: > Hi Stefano, > > On Fri, 2023-07-21 at 18:18 -0700, Stefano Stabellini wrote: > > Hi Andrew, Oleksii, > > > > Please see below. > > > > It looks like you have configured your personal repositories to > > mirror > > upstream Xen: > > > > https://gitlab.com/xen-project/people/olkur/xen > > https://gitlab.com/xen-project/people/andyhhp/xen > > > > Make sure that the option "Trigger pipelines for mirror updates" is > > unselected. > > > > If you setup the mirror a long time ago, you might want to stop the > > mirror and start it again. > > > > I have just done the same for fusa/xen-integration: I had to go to > > settings->repository, stop the existing mirror, and create a new one > > making sure "Trigger pipelines for mirror updates" is off. > I checked the option is unselected. > > But I have selected "Mirror all branches" in "Mirror branches". > I can use "Mirror specific branches" to avoid 'staging' mirroring. > > Will it be enough? My understanding is that if you already have "Trigger pipelines for mirror updates" unselected, then you shouldn't need anything else. ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2023-07-24 20:59 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-07-17 13:09 [PATCH] automation: avoid duplicated builds of staging branch Marek Marczykowski-Górecki 2023-07-17 13:14 ` Andrew Cooper 2023-07-17 14:08 ` Marek Marczykowski-Górecki 2023-07-21 23:42 ` Stefano Stabellini 2023-07-22 0:07 ` Marek Marczykowski-Górecki 2023-07-22 0:14 ` Stefano Stabellini 2023-07-22 0:24 ` Marek Marczykowski-Górecki 2023-07-22 0:49 ` Stefano Stabellini 2023-07-22 1:00 ` Marek Marczykowski-Górecki 2023-07-22 1:18 ` Stefano Stabellini 2023-07-24 8:27 ` Oleksii 2023-07-24 20:58 ` Stefano Stabellini
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.