Ouroboros Contributions

From Ouroboros
Revision as of 07:24, 7 July 2022 by Dimitri (talk | contribs)
Jump to navigation Jump to search

Ouroboros is far from complete. Plenty of things need to be researched and implemented. We don’t really keep a list, but this | epic board can give you some ideas of what is still on our mind and where you may be able to contribute.

Communication

There are 2 ways that are used to communicate: The mailing list (ouroboros@freelists.org) will be used for almost everything except for day-to-day chat. For that we use a public slack channel slack (invite link) bridged to a matrix space (invite link). Use the tool you prefer and whatever login name you desire.

Introduce yourself, use common sense and be polite!

Contributions

Providing contributions can be done by sending git patches to the mailing list (ouroboros@freelists.org). You will need to use an email address that is registered to the mailing list.

To set this up, open your git config

git config --global --edit

and add your email settings, e.g. for a gmail account (don't forget to edit your email address in this snippet):

[sendemail]
    smtpserver = smtp.googlemail.com
    smtpencryption = tls
    smtpserverport = 587
    smtpuser = youremail@gmail.com
    confirm=auto

For other email providers it is similar.

When this is set up, the last commit on the current branch can be sent as a patch from the command line using

git send-email -1 --to=ouroboros@freelists.org

Coding guidelines can be found in the Source code guide.

Commit messages

A commit message should follow these 10 simple rules, based on [1]

  • Separate subject from body with a blank line
  • Limit the subject line to 50 characters
  • Capitalize the subject line
  • Do not end the subject line with a period
  • Use the imperative mood in the subject line
  • Precede the subject line by indicating the component where changes were made
  • Wrap the body at 72 characters
  • Use the body to explain what and why vs. how
  • If the commit addresses a bug, reference it in the body
  • Sign off your commits using the signoff feature in git

Versioning

Git is used as a version tooling for the code. Releases are identified through a git tag by a number MAJOR.MICRO.PATCHLEVEL.

  • Incrementing MAJOR is done to indicate a big step ahead in terms of features; it is discussed when new features are planned.
  • Incrementing MICRO is done when APIs/ABIs are not necessarily compatible.
  • The PATCHLEVEL is incremented when an urgent bugfix is incorporated.

Version 1.0.0 would be the first minimum viable production version.

Repository structure

The main git repository can be found at: https://ouroboros.rocks/cgit/ouroboros

It contains the following branches:

  • master: Contains the most stable versions of Ouroboros.
  • testing: Contains tested code but may still contain bugs.
  • be: Contains untested but compiling code.

All new contributions are integrated into ‘be’ through patches sent to the mailing list. Once a version of ‘be’ is tested enough, it is merged into ‘testing’. When a ‘testing’ version is considered stable enough, it is merged into ‘master’. Most users should probably use master.

New development is always done against the ‘be’ branch of the main git repository. Contributions are always made using your real name and real e-mail address.


Bugs reports

Bugs are reported through our | Bugzilla issue tracker, or alternatively via | GitHub. Most importantly, check if the bug is still present in the 'be' branch :)

Try to include the following:

  • Provide a description of the bug
  • Provide system logs of the irmd and ipcps
  • Provide a minimal code example to reproduce the bug if possible
  • Sync with the HEAD of the most stable branch where the bug is present
  • Provide a bug fix if you can, send a patch to the mailing list

New features

New features can be always be requested through the mailing list or alternatively | GitHub. They will be taken into account when a next version of the prototype is discussed.