Difference between revisions of "Documentation/Nightly/Developers/Build system/SlicerBot/SVN2GitHub"
From Slicer Wiki
(Created page with 'This page describes how the [https://github.com/Slicer/Slicer Slicer GitHub] repository is maintained in sync with the official [http://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk…') |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This page describes how the [https://github.com/Slicer/Slicer Slicer GitHub] repository is maintained in sync with the official [http://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk/ Slicer SVN] repository. | This page describes how the [https://github.com/Slicer/Slicer Slicer GitHub] repository is maintained in sync with the official [http://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk/ Slicer SVN] repository. | ||
+ | |||
+ | Note that the [https://github.com/SlicerRt/SlicerRT SlicerRT GitHub] repository is maintaining in sync using a similar process. | ||
= Overview = | = Overview = | ||
A cron job running every minutes on <code>[[Documentation/{{documentation/version}}/Developers/Factory#factory-south.kitware|factory-south]]</code> is doing <code>git svn rebase</code> and then force pushing change onto the Slicer github repository. | A cron job running every minutes on <code>[[Documentation/{{documentation/version}}/Developers/Factory#factory-south.kitware|factory-south]]</code> is doing <code>git svn rebase</code> and then force pushing change onto the Slicer github repository. | ||
+ | |||
+ | = Reporting issues = | ||
+ | |||
+ | If you observe that the bot is not working as expected, the persons to contact are: <email>jchris.fillionr@kitware.com</email>, <email>alexis.girault@kitware.com</email> and <email>johan.andruejol@kitware.com</email> | ||
= Details = | = Details = | ||
− | * As detailed [Documentation/Nightly/Developers/Build_system/SlicerBot#Git here], the <code>slicerbot</code> user is pushing changes. | + | * As detailed [[Documentation/Nightly/Developers/Build_system/SlicerBot#Git|here]], the <code>slicerbot</code> user is pushing changes. |
+ | |||
* The <code>slicerbot</code> user SSH key is associated with <code>github-slicerbot</code> hostname adding the following entry into <code>/Users/kitware/.ssh/config</code>: | * The <code>slicerbot</code> user SSH key is associated with <code>github-slicerbot</code> hostname adding the following entry into <code>/Users/kitware/.ssh/config</code>: | ||
<pre> | <pre> | ||
+ | $ cat /Users/kitware/.ssh/config | ||
Host github-slicerbot | Host github-slicerbot | ||
HostName github.com | HostName github.com | ||
Line 18: | Line 26: | ||
IdentityFile ~/.ssh/slicerbot-factory-south | IdentityFile ~/.ssh/slicerbot-factory-south | ||
</pre> | </pre> | ||
+ | |||
* The associated cronjob entry is reported below: | * The associated cronjob entry is reported below: | ||
Line 25: | Line 34: | ||
*/1 * * * * /Volumes/Dashboards/SVN2Github/lockrun --quiet --lockfile=/Volumes/Dashboards/SVN2Github/Slicer-SVN2GitHub.lockrun -- /bin/sh /Volumes/Dashboards/SVN2Github/Slicer-SVN2GitHub.sh | */1 * * * * /Volumes/Dashboards/SVN2Github/lockrun --quiet --lockfile=/Volumes/Dashboards/SVN2Github/Slicer-SVN2GitHub.lockrun -- /bin/sh /Volumes/Dashboards/SVN2Github/Slicer-SVN2GitHub.sh | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | * [https://github.com/hilbix/lockrun Lockrun] tool is used to ensure no concurrent rebase&push are occurring. | ||
+ | |||
+ | |||
+ | * <code>Slicer-SVN2GitHub.sh</code> and <code>Slicer-SVN2GitHub-slicerbot.sh</code> scripts are available on https://gist.github.com/jcfr/da442a017484b7691018 | ||
+ | |||
+ | = ChangeLogs = | ||
+ | |||
+ | * 2017/03/09: Added contact information | ||
+ | * 2015/10/19: Updated script adding --force option to address issue reported on [https://github.com/Slicer/Slicer/pull/375#issuecomment-148759758 Slicer/Slicer/pull/375#issuecomment-148759758] | ||
+ | * 2015/10/19: Created this page and added scripts on https://gist.github.com/jcfr/da442a017484b7691018 |
Latest revision as of 23:16, 9 March 2017
Home < Documentation < Nightly < Developers < Build system < SlicerBot < SVN2GitHubThis page describes how the Slicer GitHub repository is maintained in sync with the official Slicer SVN repository.
Note that the SlicerRT GitHub repository is maintaining in sync using a similar process.
Overview
A cron job running every minutes on factory-south
is doing git svn rebase
and then force pushing change onto the Slicer github repository.
Reporting issues
If you observe that the bot is not working as expected, the persons to contact are: <email>jchris.fillionr@kitware.com</email>, <email>alexis.girault@kitware.com</email> and <email>johan.andruejol@kitware.com</email>
Details
- As detailed here, the
slicerbot
user is pushing changes.
- The
slicerbot
user SSH key is associated withgithub-slicerbot
hostname adding the following entry into/Users/kitware/.ssh/config
:
$ cat /Users/kitware/.ssh/config Host github-slicerbot HostName github.com User git IdentityFile ~/.ssh/slicerbot-factory-south
- The associated cronjob entry is reported below:
$ crontab -l */1 * * * * /Volumes/Dashboards/SVN2Github/lockrun --quiet --lockfile=/Volumes/Dashboards/SVN2Github/Slicer-SVN2GitHub.lockrun -- /bin/sh /Volumes/Dashboards/SVN2Github/Slicer-SVN2GitHub.sh
- Lockrun tool is used to ensure no concurrent rebase&push are occurring.
Slicer-SVN2GitHub.sh
andSlicer-SVN2GitHub-slicerbot.sh
scripts are available on https://gist.github.com/jcfr/da442a017484b7691018
ChangeLogs
- 2017/03/09: Added contact information
- 2015/10/19: Updated script adding --force option to address issue reported on Slicer/Slicer/pull/375#issuecomment-148759758
- 2015/10/19: Created this page and added scripts on https://gist.github.com/jcfr/da442a017484b7691018