CINXE.COM

Salsa/Doc - Debian Wiki

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" href="/htdocs/favicon.ico"> <script type="text/javascript" src="/htdocs/bugstatus.js"></script> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta name="robots" content="index,nofollow"> <title>Salsa/Doc - Debian Wiki</title> <script type="text/javascript" src="/htdocs/common/js/common.js"></script> <script type="text/javascript"> <!-- var search_hint = "Search"; //--> </script> <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/htdocs/debwiki/css/common.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="screen" href="/htdocs/debwiki/css/screen.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="print" href="/htdocs/debwiki/css/print.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="projection" href="/htdocs/debwiki/css/projection.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/htdocs/debian-wiki-1.0.css"> <!-- css only for MS IE6/IE7 browsers --> <!--[if lt IE 8]> <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/htdocs/debwiki/css/msie.css"> <![endif]--> <link rel="alternate" title="Debian Wiki: Salsa/Doc" href="/Salsa/Doc?diffs=1&amp;show_att=1&amp;action=rss_rc&amp;unique=0&amp;page=Salsa%2FDoc&amp;ddiffs=1" type="application/rss+xml"> <link rel="Start" href="/FrontPage"> <link rel="Alternate" title="Wiki Markup" href="/Salsa/Doc?action=raw"> <link rel="Alternate" media="print" title="Print View" href="/Salsa/Doc?action=print"> <link rel="Up" href="/Salsa"> <link rel="Search" href="/FindPage"> <link rel="Index" href="/TitleIndex"> <link rel="Glossary" href="/WordIndex"> <link rel="Help" href="/HelpOnFormatting"> </head> <body lang="en" dir="ltr"> <div id="logo"><a href="https://www.debian.org" title="Debian Homepage"><img src="https://www.debian.org/Pics/openlogo-50.png" alt="Debian" width="50" height="61"></a></div> <div id="header"> <div id="wikisection"> <p class="section"><a href="/FrontPage" title="Debian Wiki Homepage">Wiki</a></p> <div id="username"><a href="/Salsa/Doc?action=login" id="login" rel="nofollow">Login</a></div> </div> <div id="navbar"> <ul id="navibar"> <li class="wikilink"><a href="/FrontPage">FrontPage</a></li><li class="wikilink"><a href="/RecentChanges">RecentChanges</a></li><li class="wikilink"><a href="/FindPage">FindPage</a></li><li class="wikilink"><a href="/HelpContents">HelpContents</a></li><li class="current"><a href="/Salsa/Doc">Salsa/Doc</a></li> </ul> </div> <form id="searchform" method="get" action="/Salsa/Doc"> <div> <input type="hidden" name="action" value="fullsearch"> <input type="hidden" name="context" value="180"> <label for="searchinput">Search:</label> <input id="searchinput" type="text" name="value" value="" size="20" onfocus="searchFocus(this)" onblur="searchBlur(this)" onkeyup="searchChange(this)" onchange="searchChange(this)" alt="Search"> <input id="titlesearch" name="titlesearch" type="submit" value="Titles" alt="Search Titles"> <input id="fullsearch" name="fullsearch" type="submit" value="Text" alt="Search Full Text"> </div> </form> <script type="text/javascript"> <!--// Initialize search form var f = document.getElementById('searchform'); f.getElementsByTagName('label')[0].style.display = 'none'; var e = document.getElementById('searchinput'); searchChange(e); searchBlur(e); //--> </script> <div id="logo"><a href="https://www.debian.org" title="Debian Homepage"><img src="https://www.debian.org/Pics/openlogo-50.png" alt="Debian" width="50" height="61"></a></div> <div id="breadcrumbs"><a href="/FrontPage" title="Debian Wiki Homepage">Wiki</a><span class="sep">/</span> </div> <ul class="editbar"><li><a href="/Salsa/Doc?action=login" id="login-1" rel="nofollow">Login</a></li><li class="toggleCommentsButton" style="display:none;"><a href="#" class="nbcomment" onClick="toggleComments();return false;">Comments</a></li><li><a class="nbinfo" href="/Salsa/Doc?action=info" rel="nofollow">Info</a></li><li><a class="nbattachments" href="/Salsa/Doc?action=AttachFile" rel="nofollow">Attachments</a></li><li> <form class="actionsmenu" method="GET" action="/Salsa/Doc"> <div> <label>More Actions:</label> <select name="action" onchange="if ((this.selectedIndex != 0) && (this.options[this.selectedIndex].disabled == false)) { this.form.submit(); } this.selectedIndex = 0;"> <option value="raw">Raw Text</option> <option value="print">Print View</option> <option value="RenderAsDocbook">Render as Docbook</option> <option value="refresh">Delete Cache</option> <option value="show" disabled class="disabled">------------------------</option> <option value="SpellCheck">Check Spelling</option> <option value="LikePages">Like Pages</option> <option value="LocalSiteMap">Local Site Map</option> <option value="show" disabled class="disabled">------------------------</option> <option value="RenamePage" disabled class="disabled">Rename Page</option> <option value="DeletePage" disabled class="disabled">Delete Page</option> <option value="show" disabled class="disabled">------------------------</option> <option value="show" disabled class="disabled">Subscribe User</option> <option value="show" disabled class="disabled">------------------------</option> <option value="show" disabled class="disabled">Remove Spam</option> <option value="show" disabled class="disabled">Revert to this revision</option> <option value="PackagePages">Package Pages</option> <option value="show" disabled class="disabled">------------------------</option> <option value="Load">Load</option> <option value="Save">Save</option> <option value="SlideShow">SlideShow</option> </select> <input type="submit" value="Do"> </div> <script type="text/javascript"> <!--// Init menu actionsMenuInit('More Actions:'); //--> </script> </form> </li></ul> <h1 id="locationline"> <ul id="pagelocation"> <li><a href="/Salsa">Salsa</a></li><li><a href="/Salsa/Doc">Doc</a></li> </ul> </h1> </div> <div id="page" lang="en" dir="ltr"> <div dir="ltr" id="content" lang="en"><span class="anchor" id="top"></span> <span class="anchor" id="line-1"></span><span class="anchor" id="line-2"></span><span class="anchor" id="line-3"></span><span class="anchor" id="line-4"></span><span class="anchor" id="line-5"></span><p class="line867"><small><a href="/DebianWiki/EditorGuide#translation">Translation(s)</a>: <a href="/Salsa/Doc">English</a> - <a href="/pt_BR/Salsa/Doc">Português (Brasil)</a></small> <span class="anchor" id="line-6"></span><span class="anchor" id="line-7"></span><p class="line867"><hr /><p class="line874"> <span class="anchor" id="line-8"></span><div class="table-of-contents"><p class="table-of-contents-heading">Contents<ol><li> <a href="#Salsa_Documentation">Salsa Documentation</a></li><li> <a href="#Support">Support</a></li><li> <a href="#Users">Users</a><ol><li> <a href="#Unused_accounts_for_DD_before_May_2020">Unused accounts for DD before May 2020</a></li></ol></li><li> <a href="#Groups">Groups</a><ol><li> <a href="#Collaborative_Maintenance:_.22Debian.22_group">Collaborative Maintenance: &quot;Debian&quot; group</a></li><li> <a href="#Canonical_URLs">Canonical URLs</a></li></ol></li><li> <a href="#Projects_and_Repositories">Projects and Repositories</a></li><li> <a href="#Email_notifications">Email notifications</a></li><li> <a href="#Information_on_manipulating_bugs_by_email">Information on manipulating bugs by email</a></li><li> <a href="#IRC_notifications">IRC notifications</a><ol><li> <a href="#Irker">Irker</a></li><li> <a href="#KGB">KGB</a></li></ol></li><li> <a href="#Dealing_with_Debian_BTS_from_commit_messages">Dealing with Debian BTS from commit messages</a></li><li> <a href="#Deployment_keys">Deployment keys</a></li><li> <a href="#Salsa_CI_setup">Salsa CI setup</a></li><li> <a href="#Runners">Runners</a></li><li> <a href="#Web_page_hosting">Web page hosting</a><ol><li> <a href="#Quick_start">Quick start</a></li></ol></li><li> <a href="#Getting_Help">Getting Help</a><ol><li> <a href="#Hints_for_previous_users_of_Alioth">Hints for previous users of Alioth</a></li></ol></li><li> <a href="#API_Usage_Best_practises">API Usage Best practises</a></li><li> <a href="#SSH_Host_Keys">SSH Host Keys</a></li></ol></div> <span class="anchor" id="line-9"></span><span class="anchor" id="line-10"></span><p class="line867"> <h1 id="Salsa_Documentation">Salsa Documentation</h1> <span class="anchor" id="line-11"></span><p class="line867"><a href="/Salsa">Salsa</a> is a collaborative development platform within Debian. <span class="anchor" id="line-12"></span><span class="anchor" id="line-13"></span><p class="line867"> <h1 id="Support">Support</h1> <span class="anchor" id="line-14"></span><p class="line867"><div dir="ltr" id="Salsa.2Fsupport.content" lang="en"><span class="anchor" id="Salsa.2Fsupport.top"></span> <span class="anchor" id="Salsa.2Fsupport.line-1"></span><p class="line862">In case you encounter any problems with <em>Salsa</em>, to get support you may want to join us: <span class="anchor" id="Salsa.2Fsupport.line-2"></span><ul><li><p class="line862">at <a class="ircs" href="ircs://irc.oftc.net/salsa">#salsa on OFTC</a> (<a class="https" href="https://webchat.oftc.net/?channels=salsa">webchat</a>) <span class="anchor" id="Salsa.2Fsupport.line-3"></span></li><li><p class="line862">or create an issue in our <a class="https" href="https://salsa.debian.org/salsa/support">support tracker</a> <span class="anchor" id="Salsa.2Fsupport.line-4"></span></li><li><p class="line862">or send a mail to <a class="mailto" href="mailto:salsa-admin@debian.org">salsa-admin@debian.org</a>. <span class="anchor" id="Salsa.2Fsupport.line-5"></span></li></ul><p class="line874">... they may help you. <span class="anchor" id="Salsa.2Fsupport.line-6"></span><span class="anchor" id="Salsa.2Fsupport.bottom"></span></div> <span class="anchor" id="line-15"></span><span class="anchor" id="line-16"></span><p class="line867"> <h1 id="Users">Users</h1> <span class="anchor" id="line-17"></span><span class="anchor" id="line-18"></span><p class="line862">Register an account at <a class="https" href="https://salsa.debian.org/users/sign_up">https://salsa.debian.org/users/sign_up</a> <span class="anchor" id="line-19"></span><span class="anchor" id="line-20"></span><p class="line874">Your account will be locked until a gitlab administrator enables it. <span class="anchor" id="line-21"></span>As of July 2021 you will now receive an email confirming your account validation, please be patient. (Ping the above <em>Support</em> after 4 days patience) <span class="anchor" id="line-22"></span><span class="anchor" id="line-23"></span><p class="line874">Using your real name when signing up might reduce false positives in the spammer detection heuristics. <span class="anchor" id="line-24"></span><span class="anchor" id="line-25"></span><p class="line867"> <h2 id="Unused_accounts_for_DD_before_May_2020">Unused accounts for DD before May 2020</h2> <span class="anchor" id="line-26"></span><span class="anchor" id="line-27"></span><p class="line874">Before May 2020 all Debian Developers had accounts created for them using their Debian user name. <span class="anchor" id="line-28"></span>Accounts that had never been used and never had a password set are deactivated. <span class="anchor" id="line-29"></span>Those accounts can only be used after being activated properly. <span class="anchor" id="line-30"></span>Please use any of the <a href="/Salsa/Doc#Support">support channels</a>. <span class="anchor" id="line-31"></span>After being reactivated a new password can be set via the <a class="https" href="https://salsa.debian.org/users/password/new">password reset</a>. <span class="anchor" id="line-32"></span><span class="anchor" id="line-33"></span><p class="line867"> <h1 id="Groups">Groups</h1> <span class="anchor" id="line-34"></span><span class="anchor" id="line-35"></span><p class="line874">Users and Group share the same namespace. To prevent clashes with usernames we enforce groups to a '-team' suffix, with the exception being the 'Debian' group, of which all Debian Developers are members. <span class="anchor" id="line-36"></span><span class="anchor" id="line-37"></span><p class="line862">To create a group, log in and go to <a class="https" href="https://signup.salsa.debian.org/register/team/">the team registration page</a>. There is also a link to it from the <a class="https" href="https://signup.salsa.debian.org/">registration page</a>: if you're not logged in yet, you will be asked to do so and be redirected afterwards. <span class="anchor" id="line-38"></span><span class="anchor" id="line-39"></span><p class="line867"> <h2 id="Collaborative_Maintenance:_.22Debian.22_group">Collaborative Maintenance: &quot;Debian&quot; group</h2> <span class="anchor" id="line-40"></span><span class="anchor" id="line-41"></span><p class="line862">The <tt class="backtick">debian</tt> group is for <a href="/CollaborativeMaintenance">CollaborativeMaintenance</a> (the old <tt class="backtick">collab-maint</tt> on <a href="/Alioth">Alioth</a>). <span class="anchor" id="line-42"></span><span class="anchor" id="line-43"></span><p class="line862">The group is accessible to all Debian developers upon linking their <a class="https" href="https://nm.debian.org/signon/login/">SSO Account</a>, and are granted <tt class="backtick">Maintainer</tt> access levels. <span class="anchor" id="line-44"></span>Direct commits to repositories in the Debian group by any Debian developer are implicitly welcome. No pre-commit coordination (e.g. merge-request or mail) is expected. <span class="anchor" id="line-45"></span><span class="anchor" id="line-46"></span><p class="line862">External users (non-Debian Developers) need to request write access to repositories inside <tt class="backtick">debian</tt> group from a Debian developer they know, or their sponsor. Access should be granted to single projects and not the whole Debian group. <span class="anchor" id="line-47"></span><span class="anchor" id="line-48"></span><p class="line862">Projects under <tt class="backtick">debian</tt> group cannot be transferred or deleted by anyone except Salsa administrators. In case you need to delete a project or have it transferred out into other namespaces, please contact Salsa administrators via support channel. See <a href="/Salsa/Doc#Support">#Support</a> section for contact information (tickets are preferred <a class="https" href="https://salsa.debian.org/salsa/support/-/issues/348">example</a>). <span class="anchor" id="line-49"></span><span class="anchor" id="line-50"></span><p class="line867"> <h2 id="Canonical_URLs">Canonical URLs</h2> <span class="anchor" id="line-51"></span><span class="anchor" id="line-52"></span><p class="line862">The canonical URLs for use in <tt class="backtick">debian/control</tt> are: <span class="anchor" id="line-53"></span><span class="anchor" id="line-54"></span><span class="anchor" id="line-55"></span><span class="anchor" id="line-56"></span><pre><span class="anchor" id="line-1"></span>Vcs-Browser: https://salsa.debian.org/&lt;user-or-team&gt;/&lt;package&gt; <span class="anchor" id="line-2"></span>Vcs-Git: https://salsa.debian.org/&lt;user-or-team&gt;/&lt;package&gt;.git</pre><span class="anchor" id="line-57"></span><p class="line862">where <tt class="backtick">&lt;user-or-team&gt;</tt> is <span class="anchor" id="line-58"></span><ul><li><p class="line891"><strong>alice</strong> for a salsa user Alice Developer &lt;<a class="mailto" href="mailto:alice@example.com">alice@example.com</a>&gt; <span class="anchor" id="line-59"></span></li><li><p class="line891"><strong>debian</strong> for the Debian/ namespace (the equivalent to collab-maint on alioth) <span class="anchor" id="line-60"></span></li><li><p class="line891"><strong>foobar-team</strong> for the Foobar Packaging Team <span class="anchor" id="line-61"></span><span class="anchor" id="line-62"></span></li></ul><p class="line874">You can instruct git to rewrite URLs into pushable ssh URLs: <span class="anchor" id="line-63"></span><span class="anchor" id="line-64"></span><span class="anchor" id="line-65"></span><pre><span class="anchor" id="line-1-1"></span>git config --global url.&quot;git@salsa.debian.org:&quot;.pushInsteadOf &quot;https://salsa.debian.org/&quot;</pre><span class="anchor" id="line-66"></span><p class="line862">This will work for all salsa repositories checked out via <a class="https" href="https://">https://</a> URLs in the present, past or future. <span class="anchor" id="line-67"></span><span class="anchor" id="line-68"></span><p class="line874">You can also use a shortcut for all Salsa repositories: <span class="anchor" id="line-69"></span><span class="anchor" id="line-70"></span><p class="line867"><span class="anchor" id="line-71"></span><span class="anchor" id="line-72"></span><pre><span class="anchor" id="line-1-2"></span>git config --global url.&quot;git@salsa.debian.org:&quot;.insteadOf salsa:</pre><span class="anchor" id="line-73"></span><span class="anchor" id="line-74"></span><p class="line874">This way you can use a shorter commandline like this: <span class="anchor" id="line-75"></span><span class="anchor" id="line-76"></span><p class="line867"><span class="anchor" id="line-77"></span><span class="anchor" id="line-78"></span><pre><span class="anchor" id="line-1-3"></span>git clone salsa:debian/htop</pre><span class="anchor" id="line-79"></span><span class="anchor" id="line-80"></span><p class="line867"> <h1 id="Projects_and_Repositories">Projects and Repositories</h1> <span class="anchor" id="line-81"></span><span class="anchor" id="line-82"></span><p class="line862">In <a href="/GitLab">GitLab</a>, a project is one Git repository, and each Git repository needs a project. You can create several projects in the same namespace (user or group). <span class="anchor" id="line-83"></span><span class="anchor" id="line-84"></span><p class="line867"> <h1 id="Email_notifications">Email notifications</h1> <span class="anchor" id="line-85"></span><span class="anchor" id="line-86"></span><p class="line874">Every project owner can enable &quot;email on push&quot;. <span class="anchor" id="line-87"></span>To do so, go the project settings → integrations → project services → emails on push and configure the list of recipients you want to send emails to. <span class="anchor" id="line-88"></span><span class="anchor" id="line-89"></span><p class="line862">In particular, to forward emails to tracker.debian.org, you should add <tt class="backtick">dispatch@tracker.debian.org</tt> to the recipients (or, if for some not good reason the project name is not the name of the source package, <tt class="backtick">dispatch+${package}_vcs@tracker.debian.org</tt> (where <tt class="backtick">${package}</tt> is the source package name)). <span class="anchor" id="line-90"></span><span class="anchor" id="line-91"></span><p class="line862">Take into account that the current implementation sends a single mail per push with all commits lumped together, which makes it rather useless for any post-review workflow. This is tracked upstream at <a class="https" href="https://gitlab.com/gitlab-org/gitlab-ce/issues/19901">https://gitlab.com/gitlab-org/gitlab-ce/issues/19901</a>. <span class="anchor" id="line-92"></span><span class="anchor" id="line-93"></span><p class="line867"> <h1 id="Information_on_manipulating_bugs_by_email">Information on manipulating bugs by email</h1> <span class="anchor" id="line-94"></span><span class="anchor" id="line-95"></span><p class="line867"><a href="/GitLab">GitLab</a> has quite a lot of <a class="https" href="https://docs.gitlab.com/ee/user/project/quick_actions.html">text commands aka &quot;quick actions&quot;</a> which can be used when interacting with <a href="/GitLab">GitLab</a> via email. Most things can be done via email by replying to the <a class="https" href="https://docs.gitlab.com/ee/workflow/notifications.html">email notifications</a>. There are special email addresses for creating new <a class="https" href="https://docs.gitlab.com/ee/user/project/merge_requests/#create-new-merge-requests-by-email">merge requests</a> and <a class="https" href="https://docs.gitlab.com/ee/user/project/issues/create_issues.html#by-sending-an-email">issues</a> via email. <span class="anchor" id="line-96"></span><span class="anchor" id="line-97"></span><p class="line867"> <h1 id="IRC_notifications">IRC notifications</h1> <span class="anchor" id="line-98"></span><p class="line867"> <h2 id="Irker">Irker</h2> <span class="anchor" id="line-99"></span><p class="line874">Alexander Wirt is sponsoring an Irker instance. It can be enabled with the irker integration available under Settings/Integrations/Irker. Please use the following settings: <span class="anchor" id="line-100"></span><span class="anchor" id="line-101"></span><ul><li>Server host: ruprecht.snow-crash.org <span class="anchor" id="line-102"></span></li><li>Server port: 6659 <span class="anchor" id="line-103"></span></li><li><p class="line862">Default IRC URI: <a class="ircs" href="ircs://irc.oftc.net:6697/">ircs://irc.oftc.net:6697/</a> <span class="anchor" id="line-104"></span><span class="anchor" id="line-105"></span></li></ul><p class="line862">Under recipients add a newline separated list of recipients/channels. If your channel is protected by a key, use the syntax <tt class="backtick">channel-name?key=whatever</tt> omitting the leading <tt class="backtick">#</tt> sign (failing to omit the <tt class="backtick">#</tt> sign will result in Irker joining a channel literally named <tt class="backtick">#channel-name?key=whatever</tt> and doing so making your channel key public as it is visible in the bot's <tt class="backtick">/whois</tt>.<br> <span class="anchor" id="line-106"></span>Currently only Push events are supported. <span class="anchor" id="line-107"></span><span class="anchor" id="line-108"></span><p class="line867"> <h2 id="KGB">KGB</h2> <span class="anchor" id="line-109"></span><span class="anchor" id="line-110"></span><p class="line874">KGB supports gitlab webhooks. To use the kgb instances provided by dam, tina, and gregoa from salsa, set a webhook in your project: <span class="anchor" id="line-111"></span><span class="anchor" id="line-112"></span><p class="line867"><tt>http://kgb.debian.net:9418/webhook/?channel=&lt;irc-channel-name-without-#&gt;</tt> <span class="anchor" id="line-113"></span><span class="anchor" id="line-114"></span><p class="line862">For details, additional parameters, and helper scripts see the KGB documentation at <a class="https" href="https://salsa.debian.org/kgb-team/kgb/wikis/usage">https://salsa.debian.org/kgb-team/kgb/wikis/usage</a> <span class="anchor" id="line-115"></span><span class="anchor" id="line-116"></span><p class="line867"> <h1 id="Dealing_with_Debian_BTS_from_commit_messages">Dealing with Debian BTS from commit messages</h1> <span class="anchor" id="line-117"></span><p class="line874">We run a webhook receiver that can modify the Debian BTS based on <span class="anchor" id="line-118"></span>commit messages. If you want to use it, go to your project, &quot;Settings <span class="anchor" id="line-119"></span>→ Webhooks&quot; and add a URL (see below), then click save. No secret <span class="anchor" id="line-120"></span>token is needed, and currently it only deals with push events. <span class="anchor" id="line-121"></span><span class="anchor" id="line-122"></span><p class="line874">Possible URLs: <span class="anchor" id="line-123"></span><span class="anchor" id="line-124"></span><span class="anchor" id="line-125"></span><span class="anchor" id="line-126"></span><pre><span class="anchor" id="line-1-4"></span>https://webhook.salsa.debian.org/close/SOURCENAME <span class="anchor" id="line-2-1"></span>https://webhook.salsa.debian.org/tagpending/SOURCENAME</pre><span class="anchor" id="line-127"></span><span class="anchor" id="line-128"></span><p class="line874">Replace SOURCENAME with the name of your source package and chose <span class="anchor" id="line-129"></span>either close or tag pending, depending on the action you want to get. <span class="anchor" id="line-130"></span><span class="anchor" id="line-131"></span><p class="line874">You can ignore a branch or pattern, say wip/*, by providing the <span class="anchor" id="line-132"></span>ignored-namespaces parameter. See the README in code for more details. <span class="anchor" id="line-133"></span><span class="anchor" id="line-134"></span><p class="line862">Code: <a class="https" href="https://salsa.debian.org/salsa/salsa-webhook">https://salsa.debian.org/salsa/salsa-webhook</a>. <span class="anchor" id="line-135"></span><span class="anchor" id="line-136"></span><p class="line867"> <h1 id="Deployment_keys">Deployment keys</h1> <span class="anchor" id="line-137"></span><span class="anchor" id="line-138"></span><p class="line874">For automating task FIXME <span class="anchor" id="line-139"></span><span class="anchor" id="line-140"></span><p class="line867"> <h1 id="Salsa_CI_setup">Salsa CI setup</h1> <span class="anchor" id="line-141"></span><span class="anchor" id="line-142"></span><p class="line862">Salsa can run a whole suite of tests in the <a href="/GitLab">GitLab</a> CI/CD functionality. To add this to your project, put <tt class="backtick">recipes/debian.yml@salsa-ci-team/pipeline</tt> in <strong>CI/CD configuration file</strong> in <strong>Settings</strong> -&gt; <strong>CI/CD</strong> -&gt; <strong>General pipelines</strong> (e.g. <a class="https" href="https://salsa.debian.org/android-tools-team/zipflinger/-/settings/ci_cd#js-general-pipeline-settings">https://salsa.debian.org/android-tools-team/zipflinger/-/settings/ci_cd#js-general-pipeline-settings</a>). For more info, see <a class="https" href="https://salsa.debian.org/salsa-ci-team/pipeline#basic-use">https://salsa.debian.org/salsa-ci-team/pipeline#basic-use</a> <span class="anchor" id="line-143"></span><span class="anchor" id="line-144"></span><span class="anchor" id="line-145"></span><p class="line867"> <h1 id="Runners">Runners</h1> <span class="anchor" id="line-146"></span><span class="anchor" id="line-147"></span><p class="line862">Salsa provides <a class="https" href="https://docs.gitlab.com/ce/ci/runners/#shared-specific-and-group-runners">shared runners</a> for all projects to use. <span class="anchor" id="line-148"></span>All jobs without more specific tags run within a privileged Docker container on one-time-use VM. <span class="anchor" id="line-149"></span>Outbound connections from the shared runner VMs are limited to http &amp; https. <span class="anchor" id="line-150"></span><span class="anchor" id="line-151"></span><p class="line874">You may also add group runners for your group or specific runners and configure them for your project. <span class="anchor" id="line-152"></span><span class="anchor" id="line-153"></span><p class="line862">Configuration files and tools are maintained by the <a href="/Teams/SalsaCI">SalsaCI team</a> <span class="anchor" id="line-154"></span><span class="anchor" id="line-155"></span><p class="line867"> <h1 id="Web_page_hosting">Web page hosting</h1> <span class="anchor" id="line-156"></span><span class="anchor" id="line-157"></span><p class="line862">Gitlab offer the &quot;Gitlab Pages&quot; feature, and it is enabled on Salsa as <strong><tt class="backtick">https://&lt;namespace&gt;.pages.debian.net/&lt;project&gt;</tt></strong> <span class="anchor" id="line-158"></span><span class="anchor" id="line-159"></span><p class="line862">This feature makes use of Gitlab-CI to generate static pages in a <tt class="backtick">public</tt> directory, on every push. <span class="anchor" id="line-160"></span><span class="anchor" id="line-161"></span><p class="line862">See <a class="https" href="https://docs.gitlab.com/ce/user/project/pages/">the official documentation</a> for details. Note that hosting pages on arbitrary domains — whilst <a class="https" href="https://docs.gitlab.com/ee/user/project/pages/getting_started_part_three.html">supported by upstream</a> — is not supported on Salsa due to lack of bandwidth within <a href="/Teams/DSA">DSA</a> to support that feature (see <a class="https" href="https://rt.debian.org/Ticket/Display.html?id=7045">RT #7045</a>). <span class="anchor" id="line-162"></span><span class="anchor" id="line-163"></span><p class="line867"><a href="/ChrisLamb">ChrisLamb</a> has created a number of <a class="https" href="https://lamby.pages.debian.net/salsa-ribbons/">https://lamby.pages.debian.net/salsa-ribbons/</a> that you can add to your site. <span class="anchor" id="line-164"></span><span class="anchor" id="line-165"></span><p class="line867"><span class="anchor" id="line-166"></span><span class="anchor" id="line-167"></span><div class="note"><span class="anchor" id="line-1-1"></span><p class="line867"><a class="https" href="https://&lt;namespace&gt;.pages.debian.net">https://&lt;namespace&gt;.pages.debian.net</a> should work, thanks to Let's Encrypt new <a class="https" href="https://letsencrypt.org/2017/07/06/wildcard-certificates-coming-jan-2018.html">wildcard certificate support</a>. </div><span class="anchor" id="line-168"></span><span class="anchor" id="line-169"></span><p class="line867"> <h2 id="Quick_start">Quick start</h2> <span class="anchor" id="line-170"></span><span class="anchor" id="line-171"></span><ol type="1"><li><p class="line862">On your project Home, use <strong><tt class="backtick">Set&nbsp;up&nbsp;CI/CD</tt></strong> button. (If your project is empty, select <strong><tt class="backtick">New&nbsp;file</tt></strong> instead.) <span class="anchor" id="line-172"></span></li><li><p class="line862">Choose a <strong><tt class="backtick">Gitlab&nbsp;CI&nbsp;Yaml&nbsp;template</tt></strong> (<strong><tt class="backtick">Pages</tt></strong> templates are at the end) <span class="anchor" id="line-173"></span></li><li>Edit the template to suit your needs and save it <span class="anchor" id="line-174"></span></li><li>Push something to the repository. You will see there is a CI Job pending <span class="anchor" id="line-175"></span></li><li><p class="line862">Wait a few minutes for the job to run. When it's <strong><tt class="backtick">Passed</tt></strong> you can see your pages at <a class="https" href="https://&lt;namespace&gt;.pages.debian.net/&lt;project&gt;/">https://&lt;namespace&gt;.pages.debian.net/&lt;project&gt;/</a>) <span class="anchor" id="line-176"></span><span class="anchor" id="line-177"></span></li></ol><p class="line867"><span class="anchor" id="line-178"></span><span class="anchor" id="line-179"></span><div class="important"><span class="anchor" id="line-1-2"></span><p class="line862">Even though we plan to support simple page generators like Jekyll or Hugo in the future, in most cases, you should content yourself with the <tt class="backtick">HTML</tt> template, and generate the pages locally to push them afterward, in order to save the resources on the runner. Some templates might require commands not available on the server anyway. </div><span class="anchor" id="line-180"></span><span class="anchor" id="line-181"></span><p class="line867"><span class="anchor" id="line-182"></span><span class="anchor" id="line-183"></span><div class="important"><span class="anchor" id="line-1-3"></span><p class="line867"><strong>We mean that. Really.</strong> Be nice to the server. <img alt=";)" height="16" src="/htdocs/debwiki/img/smile4.png" title=";)" width="16" /> </div><span class="anchor" id="line-184"></span><span class="anchor" id="line-185"></span><p class="line867"><a href="/GitLab">GitLab</a> Pages by default publishes content under <tt class="backtick">public/</tt>; if you wish to use another directory, change the <a class="https" href="https://salsa.debian.org/help/ci/yaml/index.md#pagespublish">`pages:publish`</a> value. <span class="anchor" id="line-186"></span><span class="anchor" id="line-187"></span><p class="line867"> <h1 id="Getting_Help">Getting Help</h1> <span class="anchor" id="line-188"></span><p class="line862">See the <a href="/Salsa#Maintenance">Salsa maintenance</a> description. <span class="anchor" id="line-189"></span><span class="anchor" id="line-190"></span><p class="line867"> <h2 id="Hints_for_previous_users_of_Alioth">Hints for previous users of Alioth</h2> <span class="anchor" id="line-191"></span><span class="anchor" id="line-192"></span><p class="line862">See <a href="/Salsa/AliothMigration">Salsa/AliothMigration</a>. <span class="anchor" id="line-193"></span><span class="anchor" id="line-194"></span><p class="line867"> <h1 id="API_Usage_Best_practises">API Usage Best practises</h1> <span class="anchor" id="line-195"></span><span class="anchor" id="line-196"></span><ul><li>if you want to know if a project exists, access the project by name, authenticated, if you get a 404 then it doesn't exists. <span class="anchor" id="line-197"></span></li><li><p class="line862">do not search for getting an id. If you need the id, access the project by name and use path-encoding <a class="https" href="https://docs.gitlab.com/ee/api/#namespaced-path-encoding">https://docs.gitlab.com/ee/api/#namespaced-path-encoding</a> <span class="anchor" id="line-198"></span></li><li><p class="line862">do not request all projects in a group unless you really have. If you really have to get the list, for i.e. looping, use simple=true (<a class="https" href="https://docs.gitlab.com/ee/api/groups.html#list-a-group-s-projects">https://docs.gitlab.com/ee/api/groups.html#list-a-group-s-projects</a>). <span class="anchor" id="line-199"></span></li><li>Implement proper pagination, please do not just requests a few hundreds elements per page <span class="anchor" id="line-200"></span></li><li><p class="line862">set an <tt class="backtick">User-Agent</tt> header with information about the project; don't make requests with generic user agent headers <span class="anchor" id="line-201"></span></li><li>if you use a lib, ensure the lib does implement the api properly <span class="anchor" id="line-202"></span></li><li>do not run extensive jobs too often <span class="anchor" id="line-203"></span></li><li>please consider to use vcswatch or other data gathering projects <span class="anchor" id="line-204"></span></li><li>do not regularly poll things <span class="anchor" id="line-205"></span></li><li>if in doubt, talk to us before you code and talk to us before you put your code into production <span class="anchor" id="line-206"></span><span class="anchor" id="line-207"></span></li></ul><p class="line867"> <h1 id="SSH_Host_Keys">SSH Host Keys</h1> <span class="anchor" id="line-208"></span><span class="anchor" id="line-209"></span><p class="line862">When connecting to Salsa to fetch or push a Git repo for the first time, it is essential to verify host's <tt class="backtick">ssh</tt> keys. The keys for Salsa have been published as SSHFP DNS records as well as in the Debian <a class="https" href="https://db.debian.org/debian_known_hosts">known_hosts</a> file. This is a one time operation. From now on ssh will trust the keys in the local <tt class="backtick">known_hosts</tt> file. <span class="anchor" id="line-210"></span><hr /><p class="line874"> <span class="anchor" id="line-211"></span><a href="/CategoryDeveloper">CategoryDeveloper</a> <span class="anchor" id="line-212"></span><span class="anchor" id="bottom"></span></div><div id="pagebottom"></div> </div> <div id="footer"> <p id="pageinfo" class="info" lang="en" dir="ltr">Salsa/Doc (<a class="nbinfo" href="/Salsa/Doc?action=info" rel="nofollow">last modified 2024-09-04 03:57:56</a>)</p> <ul id="credits"> <li>Debian <a href="https://www.debian.org/legal/privacy">privacy policy</a>, Wiki <a href="/Teams/DebianWiki">team</a>, <a href="https://bugs.debian.org/wiki.debian.org">bugs</a> and <a href="https://salsa.debian.org/debian/wiki.debian.org">config</a>.</li><li>Powered by <a href="https://moinmo.in/" title="This site uses the MoinMoin Wiki software.">MoinMoin</a> and <a href="https://moinmo.in/Python" title="MoinMoin is written in Python.">Python</a>, with hosting provided by <a href="https://www.man-da.de/">Metropolitan Area Network Darmstadt</a>.</li> </ul> </div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10