Differences between revisions 1 and 17 (spanning 16 versions)
Revision 1 as of 2017-08-19 21:24:47
Size: 2180
Editor: ?LarsKruse
Comment: initial documentation
Revision 17 as of 2017-12-22 12:59:00
Size: 7469
Editor: ?Nodens
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
 * everyone else can register an account with an implicitly added suffix {{{-guest}}}   * Use password recovery on https://salsa.debian.org/users/sign_in to get a password for your account.
Line 20: Line 20:
 * everyone else can register an account with an implicitly added suffix {{{-guest}}}. There is a a self service
   webfrontend for doing so at https://signup.salsa.debian.org/
Line 21: Line 23:
= Namespace concepts (Users, Teams, Packages, ...) =
 * '''TODO'''
= Namespace concepts (Users, Teams) =
Line 24: Line 25:
== Debian Developers ==
Line 25: Line 27:
= Permissions =
'''TODO''':
 * Debian Developers
 * everyone else
 * Group Administrators
Debian Developers get synced every 6 hours from LDAP and retain their Debian login as salsa username.

== External Users ==

To avoid clash with the Debian LDAP Usernames, external users get a prefix of -guest to their username.

== Groups ==

Users and Group share the same namespace, to prevent clashes with usernames we enforce groups to a '-team' suffix

To create a group, log in and go to [[https://signup.salsa.debian.org/register/team/|the team registration page]]. There is also a link to it from the [[https://signup.salsa.debian.org/|registration page]]: if you're not logged in yet, you will be asked to do so and be redirected afterwards.

= Projects and Repositories =

A project = a repository.

You can create several projects in the same namespace (user ou group).

Debian Developers are able to create projects in the Debian/ Namespace. It's the Salsa equivalent of "collab-maint" on Alioth.
Line 34: Line 50:
Many [[Alioth]] features are (intentionally) not provided by the ''Salsa'' platform. You may want to take a look at the [[Alioth/Sprint/2017/MeetingMinutes|related discussion during a sprint]] for the detailed reasons for this decision. Many [[Alioth]] features are (intentionally) not provided by the ''Salsa'' platform. You may want to take a look at the [[Sprints/2017/Alioth/MeetingMinutes|related discussion during a sprint]] for the detailed reasons for this decision.

{{{#!wiki important
There is significant overlap between this section and the [[Alioth#Deprecation_of_Alioth]] documentation. Those should be merged, somehow. -- TheAnarcat <<DateTime(2017-09-23T18:41:36Z)>>
}}}
Line 42: Line 62:
You may want to take a look at the [[Alioth/Sprint/2017/MeetingMinutes/subversion_cvs_bzr_darcs_mercurial|reasons for not supporting other version control systems]] within ''Salsa''. You may want to take a look at the [[Sprints/2017/Alioth/MeetingMinutes/VCS|reasons for not supporting other version control systems]] within ''Salsa''.
Line 44: Line 64:
== Import Mailinglist ==
''Salsa'' does not offer any mailinglist features.
== Import mailing list ==
''Salsa'' does not offer any mailinglist features on its own (see [[Sprints/2017/Alioth/MeetingMinutes/Mailinglists|discussion]]).
Line 47: Line 67:
You may want to take a look at the [[Alioth/Sprint/2017/MeetingMinutes/Mailinglist|reasons for not providing mailinglists]] within ''Salsa''. Some mailing lists that were formerly hosted on Alioth may be eligible for being hosted on [[https://lists.debian.org|lists.debian.org]]. The lists eligible for migration must follow the requirements outlined on the [[https://www.debian.org/MailingLists/HOWTO_start_list|"How to ask a mailing list" guide]]. The process is also the same as outlined on the guide.

The following kind of lists are probably acceptable for [[https://lists.debian.org|lists.debian.org]]:
 * The list is expected to be useful, to have a purpose and an audience.
 * Public discussion or support lists are probably OK.
 * Commit or bug notifications lists are not OK. You should use the dedicated features of gitlab instead. If you're interested in a package's bug, you're expected to subscribe to it using the [[http://bugs.debian.org/|BTS]] features.

Short version: file a bug on the [[https://bugs.debian.org/lists.debian.org|pseudo-package lists.debian.org]] with the severity 'wishlist', with the following information:
 * List Name
 * Rationale (why do you need this list, stating that you had one on Alioth is not enough!)
 * Short Description (for display in list indices)
 * Long Description (targeted to people that need to decide if they want to join)
 * Category

Lists migrated from Alioth are expected to be open, that is:
 * Open Subscription Policy (no closed lists)
 * Open Post Policy (anybody can post)
 * Open Archive

If you do want the archive and/or the subscribers to be imported into your new mailing list, please:
 * on alioth, using your ssh access, run 'sudo /usr/local/bin/export-list <mailing_list_name>' to get gzipped tar archive (on stdout) containing:
  * mbox file of the archive
  * subscribers list in simple text file
 * import the resulting mbox file in your favorite e-mail reader and clean the spam,
 * attach the compressed archive and/or the list of subscribers to your request.
 
Also, please understand that the requirements and features for lists on lists.debian.org are not the same as for a mailing list on Alioth, and the listmaster might reject your request. Lists.debian.org is not supposed to replace all mailing lists and aliases on Alioth.
Line 52: Line 99:
== Host project web pages ==
Gitlab offer the "Gitlab Pages" feature, and it is enabled on Salsa both as '''`https://pages.debian.net/<namespace>/<project>`''' or '''`http://<namespace>.pages.debian.net/<project>`'''

This feature makes use of Gitlab-CI to generate static pages in a `public` directory, on every push.

See https://docs.gitlab.com/ce/user/project/pages/index.html for a detailed documentation and HOWTOs.

 * '''''Note:''' there is no SSL for <namespace>.pages.debian.net, since Let's Encrypt doesn't provide wildcard certificates yet.''

Should you want to access the pages with your own domain name and your own certificate, it is possible via ''''Settings > Pages > New Domain'''' in your project.

=== Quick start ===

 1. On your project Home, use '''`Set up CI`''' button
 1. Choose a '''`Gitlab CI Yaml template`''' ('''`Pages`''' templates are at the end)
 1. Edit the template to suit your needs and save it
  * '''''Note:''' To limit the load on Runners, we limit the actual runs on projects tagged with "pages". So you need to add it to your .gitlab-ci.yml: '' {{{
  tags:
    - pages
}}}
 1. Push something to the repository. You will see there is a CI Job pending
 1. Wait a few minutes for the job to run. When it's '''`Passed`''' you can see your pages at https://pages.debian.net/<namespace>/project (or http://<namespace>.pages.debian.net/<project>/)

  * '''''Note:''' 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 `HTML` template, and generate the pages locally to push them afterward, in order to save the ressources on the runner. Some templates might require commands not available on the server anyway.''
  * '''''Note 2: We mean that. Really.''' Be nice to the server. At some point in the future we hope to add some dedicated Runners servers - Sponsors welcome! ;).''

Work in Progress

The service described below is not public, yet. Please ignore any related information until it is officially published.

Even the name (Salsa) is not official, yet.

Salsa Documentation

Salsa is a collaborative development platform within Debian.

Users: Login and Registration

  • Debian Developers can login with their Debian email address

    • you need to use your official Debian email address in order to gain specific permissions for Debian Developers
    • Use password recovery on https://salsa.debian.org/users/sign_in to get a password for your account.

  • everyone else can register an account with an implicitly added suffix -guest. There is a a self service

Namespace concepts (Users, Teams)

Debian Developers

Debian Developers get synced every 6 hours from LDAP and retain their Debian login as salsa username.

External Users

To avoid clash with the Debian LDAP Usernames, external users get a prefix of -guest to their username.

Groups

Users and Group share the same namespace, to prevent clashes with usernames we enforce groups to a '-team' suffix

To create a group, log in and go to the team registration page. There is also a link to it from the registration page: if you're not logged in yet, you will be asked to do so and be redirected afterwards.

Projects and Repositories

A project = a repository.

You can create several projects in the same namespace (user ou group).

Debian Developers are able to create projects in the Debian/ Namespace. It's the Salsa equivalent of "collab-maint" on Alioth.

Hints for previous users of Alioth

Salsa provides services which partially replace some features of the former Alioth service. The following hints may help you to move your packaging collaboration effort from Alioth to Salsa.

Many Alioth features are (intentionally) not provided by the Salsa platform. You may want to take a look at the related discussion during a sprint for the detailed reasons for this decision.

There is significant overlap between this section and the Alioth#Deprecation_of_Alioth documentation. Those should be merged, somehow. -- TheAnarcat 2017-09-23 18:41:36

Import git repository

TODO

Import non-git version control repository

Only git repositories are supported by the Salsa platform.

You may want to take a look at the reasons for not supporting other version control systems within Salsa.

Import mailing list

Salsa does not offer any mailinglist features on its own (see discussion).

Some mailing lists that were formerly hosted on Alioth may be eligible for being hosted on lists.debian.org. The lists eligible for migration must follow the requirements outlined on the "How to ask a mailing list" guide. The process is also the same as outlined on the guide.

The following kind of lists are probably acceptable for lists.debian.org:

  • The list is expected to be useful, to have a purpose and an audience.
  • Public discussion or support lists are probably OK.
  • Commit or bug notifications lists are not OK. You should use the dedicated features of gitlab instead. If you're interested in a package's bug, you're expected to subscribe to it using the BTS features.

Short version: file a bug on the pseudo-package lists.debian.org with the severity 'wishlist', with the following information:

  • List Name
  • Rationale (why do you need this list, stating that you had one on Alioth is not enough!)
  • Short Description (for display in list indices)
  • Long Description (targeted to people that need to decide if they want to join)
  • Category

Lists migrated from Alioth are expected to be open, that is:

  • Open Subscription Policy (no closed lists)
  • Open Post Policy (anybody can post)
  • Open Archive

If you do want the archive and/or the subscribers to be imported into your new mailing list, please:

  • on alioth, using your ssh access, run 'sudo /usr/local/bin/export-list <mailing_list_name>' to get gzipped tar archive (on stdout) containing:

    • mbox file of the archive
    • subscribers list in simple text file
  • import the resulting mbox file in your favorite e-mail reader and clean the spam,
  • attach the compressed archive and/or the list of subscribers to your request.

Also, please understand that the requirements and features for lists on lists.debian.org are not the same as for a mailing list on Alioth, and the listmaster might reject your request. Lists.debian.org is not supposed to replace all mailing lists and aliases on Alioth.

Import members of a team

It is not possible to transfer the members of an Alioth team to Salsa. You will need to ask the members of your team to join your team on Salsa individually.

Host project web pages

Gitlab offer the "Gitlab Pages" feature, and it is enabled on Salsa both as https://pages.debian.net/<namespace>/<project> or http://<namespace>.pages.debian.net/<project>

This feature makes use of Gitlab-CI to generate static pages in a public directory, on every push.

See https://docs.gitlab.com/ce/user/project/pages/index.html for a detailed documentation and HOWTOs.

  • Note: there is no SSL for <namespace>.pages.debian.net, since Let's Encrypt doesn't provide wildcard certificates yet.

Should you want to access the pages with your own domain name and your own certificate, it is possible via 'Settings > Pages > New Domain' in your project.

Quick start

  1. On your project Home, use Set up CI button

  2. Choose a Gitlab CI Yaml template (Pages templates are at the end)

  3. Edit the template to suit your needs and save it
    • Note: To limit the load on Runners, we limit the actual runs on projects tagged with "pages". So you need to add it to your .gitlab-ci.yml:

        tags:
          - pages
  4. Push something to the repository. You will see there is a CI Job pending
  5. Wait a few minutes for the job to run. When it's Passed you can see your pages at https://pages.debian.net/<namespace>/project (or http://<namespace>.pages.debian.net/<project>/)

    • Note: 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 HTML template, and generate the pages locally to push them afterward, in order to save the ressources on the runner. Some templates might require commands not available on the server anyway.

    • Note 2: We mean that. Really. Be nice to the server. At some point in the future we hope to add some dedicated Runners servers - Sponsors welcome! ;).

Getting Help

See the Salsa maintenance description.