This doc is intended for contributors to temporal server (hopefully that's you!)
Note: All contributors also need to fill out the Temporal Contributor License Agreement before we can merge in any of your changes.
- Go. Install on OS X with
brew install go. - Protobuf compiler. Install on OS X with
brew install protobuf.
Clone the repo into the preffered location:
git clone https://github.com/temporalio/temporal.gitFor the very first time compile temporal server wtih make command:
makeit will install all build dependencies and build the project.
Futher you can build the temporal service and helper tools without running test:
make binsBefore running the unit tests you must have cassandra running locally:
# for OS X
brew install cassandra
# start cassandra
/usr/local/bin/cassandraRun unit tests:
make unit-testTo run integration tests you must have kafka running locally (in addition to cassandra).
o run kafka, follow kafka quickstart guide here.
Run all integration tests:
make integration-testOr run all the tests at once:
make testOr run single test:
go test -v <path> -run <TestSuite> -testify.m <TestSpercificTaskName>for example:
go test -v github.com/temporalio/temporal/common/persistence -run TestCassandraPersistenceSuite -testify.m TestPersistenceStartWorkflowThis project is Open Source Software, and requires a header at the beginning of all source files. To verify that all files contain the header execute:
make copyrightOvercommit adds some requirements to your commit messages. At Temporal, we follow the Chris Beams guide to writing git commit messages. Read it, follow it, learn it, love it.
All commit messages are from the titles of your pull requests. So make sure follow the rules when titling them. Please don't use very generic titles like "bug fixes".
All PR titles should start with Upper case.