Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

4 Introduction • Myself • Based in Munich, joined Elastic in early 2013 • Developer, Elasticsearch & X-Pack Alerting • Organizes Search Meetup Munich • Elastic • distributed, more than 550 employees across more than 30 countries • few offices & home office • Offering support subscriptions, training, consulting, EaaS & on premise

Slide 5

Slide 5 text

5 What is the Elastic Stack?

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 • Commercial: C++, Scala, all of the above • Tooling: Perl, python, node • Clients: Ruby, PHP, Perl, python, groovy

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 & X-Pack integration 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 X-Pack

Slide 26

Slide 26 text

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

Slide 27

Slide 27 text

27

Slide 28

Slide 28 text

29

Slide 29

Slide 29 text

30

Slide 30

Slide 30 text

31

Slide 31

Slide 31 text

32

Slide 32

Slide 32 text

33 Moar testing • 750+ builds ES + x-pack 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

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

Slide 34

Slide 34 text

35

Slide 35

Slide 35 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 36

Slide 36 text

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

Slide 37

Slide 37 text

39 Releasing gradle release

Slide 38

Slide 38 text

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

Slide 39

Slide 39 text

41

Slide 40

Slide 40 text

43 Summary • Automate your releases! • 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 41

Slide 41 text

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

Slide 42

Slide 42 text

One more thing...

Slide 43

Slide 43 text

Elastic{ON} 2018 The Official Elasticsearch User Conference February 26 - March 1, San Francisco Call for Presentations Open through October 31 Cause Awards Applications Open through December 15

Slide 44

Slide 44 text

47 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 45

Slide 45 text

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