Skip to content

Latest commit

 

History

History
 
 

buildkite

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Using BuildKite

BuildKite simply runs Docker containers. So it is easy to perform the same build locally that BuildKite will do. To handle this, there are two different docker-compose files: one for BuildKite and one for local. The Dockerfile is the same for both.

Testing the build locally

To try out the build locally, start from the root folder of this repo (cadence) and run the following commands.

Build the container for

unit tests:

docker-compose -f docker/buildkite/docker-compose-local.yml build unit-test

integration tests:

docker-compose -f docker/buildkite/docker-compose-local.yml build integration-test-cassandra

cross DC integration tests:

docker-compose -f docker/buildkite/docker-compose-local.yml build integration-test-ndc-cassandra

Run the integration tests:

unit tests:

docker-compose -f docker/buildkite/docker-compose-local.yml run unit-test

integration tests:

docker-compose -f docker/buildkite/docker-compose-local.yml run integration-test-cassandra

cross DC integration tests:

docker-compose -f docker/buildkite/docker-compose-local.yml run integration-test-ndc-cassandra

Note that BuildKite will run basically the same commands.

Testing the build in BuildKite

Creating a PR against the master branch will trigger the BuildKite build. Members of the Cadence team can view the build pipeline here: https://buildkite.com/uberopensource/cadence-server

Eventually this pipeline should be made public. It will need to ignore third party PRs for safety reasons.