3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-14 07:59:31 +01:00
ergo/DEVELOPING.md

1.7 KiB
Raw Blame History

Developing Oragono

Most development happens on the develop branch, which is occasionally rebased + merged into master when its not incredibly broken. When this happens, the develop branch is usually pruned until I feel like making unsafe changes again.

I may also name the branch develop+feature if Im developing multiple, or particularly unstable, features.

The intent is to keep master relatively stable.

Updating vendor/

The vendor/ directory holds our dependencies. When we import new repos, we need to update this folder to contain these new deps. This is something that Ill mostly be handling.

To update this folder:

  1. Install https://github.com/golang/dep
  2. cd to Oragono folder
  3. dep ensure -update
  4. cd vendor
  5. Commit the changes with the message "Updated packages"
  6. cd ..
  7. Commit the result with the message "vendor: Updated submodules"

This will make sure things stay nice and up-to-date for users.

Fuzzing and Testing

Fuzzing can be useful. We dont have testing done inside the IRCd itself, but this fuzzer Ive written works alright and has helped shake out various bugs: irc_fuzz.py.

In addition, Ive got the beginnings of a stress-tester here which is useful: https://github.com/DanielOaks/irc-stress-test

As well, theres a decent set of tests here, which I like to run Oragono through now and then: https://github.com/DanielOaks/irctest

Debugging Hangs

To debug a hang, the best thing to do is to get a stack trace. Gos nice, and you can do so by running this:

$ kill -ABRT <procid>

This will kill Oragono and print out a stack trace for you to take a look at.