Project

General

Profile

Task #15770

Update the post-receive hook script used by LArSoft related repositories to use the trigger script provided by the current version of generic_ci

Added by Vito Di Benedetto over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
03/08/2017
Due date:
% Done:

100%

Estimated time:
Spent time:
Duration:

Description

This task is to update the post-receive hook script used by LArSoft related repositories.

The updated hook needs to setup lar_ci, the generic_ci should be setup as dependency, then run the trigger script provided by generic_ci.

This update is needed by the following repositories:

argoneutcode
dunetpc
duneutil
larana
larcore
lardata
lareventdisplay
larevt
larexamples
lariatsoft
larpandora
larreco
larsim
larsoft
ubutil

that are using the old trigger script located at /fnal/ups/db/lar_ci/current/bin/trigger

The following LArSoft repositories are not yet using the trigger script in the post-receive hook, but a commit in them needs to trigger a CI build for LArSoft:
larcoreobj
lardataobj
larpandoracontent
larsoftobj
uboonecode

For these repositories the post-receive hook script should run the generic_ci trigger script.
Furthermore, to have the proxy setup for the CI build it is needed to add the following users to the "lar_ci" group:
p-larcoreobj
p-lardataobj
p-larpandoracontent
p-larsoftobj

p-uboonecode is already in the lar_ci group.

History

#1 Updated by Vito Di Benedetto over 3 years ago

  • Target version set to v1_1_0

#2 Updated by Marc Mengel over 3 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Did them in batches:

l1=" 
argoneutcode
dunetpc
duneutil
larana
larcore
lardata
lareventdisplay
larevt
larexamples
lariatsoft
larpandora
larreco
larsim
larsoft
ubutil" 

for repo in $l1 ; do ls -l $repo/hooks/post-receive; done
for repo in $l1 ; do rm -f $repo/hooks/post-receive ; ln -s /fnal/ups/db/lar_ci/current/bin/trigger-post-receive $repo/hooks/post-receive ; done

for repo in $l1 ; do ls -l $repo/hooks/post-receive; done

l2="larcoreobj
lardataobj
larpandoracontent
larsoftobj" 
for repo in $l2 ; do ls -l $repo/hooks/post-receive; done
for repo in $l2 ; do rm -f $repo/hooks/post-receive ; ln -s /fnal/ups/db/lar_ci/current/bin/trigger-post-receive $repo/hooks/post-receive ; done

for repo in $l2 ; do ls -l $repo/hooks/post-receive; done

Edited uboonecode's hook by hand, as it has a script that also pushes to github.

So now:

[root@ccdcvsvm projects]# for repo in $l1 $l2 ; do ls -l $repo/hooks/post-receive; done
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 argoneutcode/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 dunetpc/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 duneutil/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 larana/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 larcore/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 lardata/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 lareventdisplay/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 larevt/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 larexamples/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 lariatsoft/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 larpandora/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 larreco/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 larsim/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 larsoft/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:24 ubutil/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:30 larcoreobj/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:30 lardataobj/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:30 larpandoracontent/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive
lrwxrwxrwx. 1 root redmine 52 Mar  8 10:30 larsoftobj/hooks/post-receive -> /fnal/ups/db/lar_ci/current/bin/trigger-post-receive

Edited group file by hand:

[root@ccdcvsvm projects]# grep lar_ci /etc/group
lar_ci:x:46684:mengel,p-larana,p-larcore,p-lardata,p-lareventdisplay,p-larevt,p-larexamples,p-larpandora,p-larreco,p-larsim,p-larsoft,p-ubutil,p-uboonecode,p-lbnecode,p-dunetpc,p-duneutil,p-lardbt,p-argoneutcode,p-lariatsoft,p-larcoreobj,p-lardataobj,p-larpandoracontent,p-larsoftobj

#3 Updated by Vito Di Benedetto over 3 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF