Slide 1

Slide 1 text

Alexander Reelsen @spinscale [email protected] Inside the Elastic Stack Testing & releasing a well known Open Source stack

Slide 2

Slide 2 text

Alexander Reelsen @spinscale [email protected] Inside the Elastic Stack Testing & releasing a well known Open Source stack

Slide 3

Slide 3 text

Alexander Reelsen @spinscale [email protected] Inside the Elastic Stack Testing & releasing a well known Open Source stack

Slide 4

Slide 4 text

!4 Agenda One slide every 30 seconds is ok, right? Introduction 1 CI 3 Preparing & testing a release 4 Release 5 Elasticsearch testing 2 2 3 4 5

Slide 5

Slide 5 text

!5 Agenda One slide every 30 seconds is ok, right? Introduction 1 CI 3 Preparing & testing a release 4 Release 5 Elasticsearch testing 2

Slide 6

Slide 6 text

!6 What is the Elastic Stack?

Slide 7

Slide 7 text

!7 Welcome to the Zoo! • Elasticsearch: Java • Logstash: JRuby + Java • Beats: Go • Kibana: Javascript on node.js • APM: server: go, instrumentation agents: javascript, ruby, go, java, python • Commercial: C++, Scala, Ruby, Go, all of the above • Tooling: Perl, python, node, ruby, gradle, typescript • Clients: Ruby, PHP, Perl, python, .NET, Java, Go • Infra: lambda, k8s, vault, ansible, terraform, docker, jenkins/jjb

Slide 8

Slide 8 text

!8 Jun 9, 2015 1.6 Jul 16, 2015 1.7 Feb 19, 2015 4.0 Jun 10, 2015 4.1 May 14th, 2015 1.5 May 27th, 2015 1.0 Beta 1 July 13th, 2015 1.0 Beta 2 Sept 4 th, 2015 1.0 Beta 3 May 23, 2015 1.5 Nov 5, 2014 1.4 It’s complicated es kibana ls beats

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

!10 Agenda One slide every 30 seconds is ok, right? Introduction 1 CI 3 Preparing & testing a release 4 Release 5 Elasticsearch testing 2 2 1

Slide 11

Slide 11 text

!11 •Unit Tests •REST Tests •Packaging Tests •Documentation Tests •BWC tests •Performance Tests Tests everywhere!

Slide 12

Slide 12 text

!12 Unit Tests

Slide 13

Slide 13 text

!13 Unit Tests

Slide 14

Slide 14 text

!14 Unit Tests

Slide 15

Slide 15 text

!15 Integration Tests

Slide 16

Slide 16 text

!16 REST tests

Slide 17

Slide 17 text

!17 REST tests

Slide 18

Slide 18 text

!18 Packaging Tests

Slide 19

Slide 19 text

!19 Packaging Tests via BATS

Slide 20

Slide 20 text

!20 Documentation tests

Slide 21

Slide 21 text

!21 Documentation tests

Slide 22

Slide 22 text

!22 Smoke tests

Slide 23

Slide 23 text

!23 BWC tests

Slide 24

Slide 24 text

!24 QA tests

Slide 25

Slide 25 text

!25 Agenda One slide every 30 seconds is ok, right? Introduction 1 CI 3 Preparing & testing a release 4 Release 5 Elasticsearch testing 2 1 3

Slide 26

Slide 26 text

!26

Slide 27

Slide 27 text

!27

Slide 28

Slide 28 text

!28

Slide 29

Slide 29 text

!29

Slide 30

Slide 30 text

!30

Slide 31

Slide 31 text

!31

Slide 32

Slide 32 text

!32 Moar testing • 1000+ builds ES per day across all branches • Testing of pull requests • Testing on different operating systems • Testing on different JVMs • Testing with different garbage collectors • Testing of feature branches • Dedicated jenkins cluster for x-pack as well as other tools • Docs CI: Ensure cross reference links work • Test triage, developers take care of build failures

Slide 33

Slide 33 text

!33 Manual Testing • Small team of dedicated testers, working with developers • Exploratory testing • UI testing • Cross product testing • Integration testing with products outside of the stack

Slide 34

Slide 34 text

!34 Agenda One slide every 30 seconds is ok, right? Introduction 1 CI 3 Preparing & testing a release 4 Release 5 Elasticsearch testing 2 4 1

Slide 35

Slide 35 text

!35

Slide 36

Slide 36 text

!36

Slide 37

Slide 37 text

!37 Releasing - One project to build them all! • Idea: Every engineer should be able to build a release candidate • Single repo with Vagrantfile and gradle build • Requirements: Vagrant (+ winrm), VirtualBox, gradle • Vagrant image installs the technology zoo! • Builds projects, creates package repositories (+ signing) and uploads to S3 bucket, uploads to sonatype staging repo • Result: Final immutable artifacts, which are ready to be released

Slide 38

Slide 38 text

!38 Agenda One slide every 30 seconds is ok, right? Introduction 1 CI 3 Preparing & testing a release 4 Release 5 Elasticsearch testing 2 5 1

Slide 39

Slide 39 text

!39 Releasing gradle release

Slide 40

Slide 40 text

!40 Releasing • Uploading/building documentation • Publish blog posts • Update website download links • Forum posts • Post release work (internal version updates in ES)

Slide 41

Slide 41 text

!41

Slide 42

Slide 42 text

!42

Slide 43

Slide 43 text

!43 Summary • Automate your releases with immutable releasable artifacts! • Do it as early as possible! • Ensure everyone can do a release! • Non technical aspects are incredibly harder to automate! • Does this work for you? No idea!

Slide 44

Slide 44 text

Thanks for listening! Questions? @spinscale [email protected]

Slide 45

Slide 45 text

!45 Links • https://benchmarks.elastic.co • https://elasticsearch-ci.elastic.co/ • https://beats-ci.elastic.co/ • https://kibana-ci.elastic.co/ • https://logstash-ci.elastic.co/ • https://github.com/elastic/rally • https://speakerdeck.com/elasticsearch/oscon-scaling-a-distributed- engineering-team-from-50-250

Slide 46

Slide 46 text

Thanks for listening! Questions? @spinscale [email protected]