python tooling for continuous python tooling for
play

Python tooling for continuous Python tooling for continuous - PowerPoint PPT Presentation

Python tooling for continuous Python tooling for continuous deployment deployment PyParis Novembre 2018 PyParis Novembre 2018 Arthur Lutz - Logilab Arthur Lutz - Logilab 1 Introduction /me Introduction /me Arthur Lutz @arthurlutz


  1. Python tooling for continuous Python tooling for continuous deployment deployment PyParis Novembre 2018 PyParis Novembre 2018 Arthur Lutz - Logilab Arthur Lutz - Logilab 1

  2. Introduction /me Introduction /me Arthur Lutz @arthurlutz @arthurlutz@social.logilab.org Logilab Python Nantes / Paris Salt Meetup 2

  3. Introduction Introduction How we benefited from a rich Python ecosystem to move from sprint-based delivery to continuous delivery. 3

  4. Continous delivery Continous delivery Delivery team Version control Build & unit Automated User acceptance Release tests acceptance tests tests Check in Trigger Feedback Check in Trigger Feedback Trigger Feedback Check in Trigger Trigger Feedback Feedback Approval Approval Feedback Source: wikipedia 4

  5. Python Stack Python Stack (ignore the order) View it on StackShare 5

  6. Reproducible environment Reproducible environment docker using volumes for dev parts (equivalent to pip install -e ) docker-compose to set up postgres, redis, celery, etc. using docker- compose.override.yml and then .env same docker images for acceptance testing , pre-production and production with configuration via environment variables 6

  7. Test often, break, test again Test often, break, test again Tools used in dev, CI/test and supervision. tox - reproducible test envs pytest - test runner flake8 / isort pifpaf - functionnal testing (launch daemons in pytest fixtures) 7

  8. Ramping up CI Ramping up CI 1. draft-based 2. parametric (manual) 3. public changeset (hg phases) + user-centric 4. component-centric 5. feature-centric jenkins (not python) with jenkins-job-builder phabricator + jenkins = Differential jenkins job and JenkinsFile 8

  9. Acceptance test often, break, Acceptance test often, break, test again test again BDD with behave / robber selenium python bindings 9

  10. Push, decrease quality, push Push, decrease quality, push again again Continuous Quality Control Jenkins test metrics and coverage SonarQube (not python) with SonarPython Peer review with mercurial + evolve ( amend ) + phabricator mercurial extension ( phabsend ) 10

  11. Ship often, break, ship again Ship often, break, ship again rundeck (not python) & rundeckrun for shared deploy logs generate unique version information tag for validation the shipped Jira tickets sentry & raven-python for continuous collection of errors 11

  12. Ship often, measure, ship again Ship often, measure, ship again collect metrics with carbon and serve with graphite-api collecting custom metrics see cfmgmtcamp: Use Saltstack to deploy a full monitoring and supervision stack 12

  13. Agile infrastructure Agile infrastructure saltstack infrastructure as code, deploy multiple environments salt-cloud portable cloud scaling openstack for in-house cloud hosting awscli used for example to restore production database snapshots in pre-production 13

  14. Agile infrastructure - Agile infrastructure - supervision and metrics supervision and metrics sensu (not python) supervision using sensu- formula , ease of deploy of new checks netdata supervision and metrics with python.d.plugin testinfra to test out complex scenarios testinfra 14

  15. Dashboards everywhere Dashboards everywhere Jira python bindings to extract data from Jira requests to extract data from RunDeck Badges everywhere! https://shields.io (not python) grafana (not python) serving data from graphite 15

  16. Project impacts Project impacts shorter tickets, split them into tiny chunks unstable environments can be OK - work with the users feature flags to encourage early integration of code more peer review, collective appropriation no more semantic versionning 16

  17. Future Future Merge request / feature stack centric generated environments Automation of data migration between environments Use of version control in sentry and regression identification OpenShift / OKD / Kubernetes type continuous deployment Dev environments could be less necessary 17

  18. Logilab is hiring ! Logilab is hiring ! 18

  19. Conclusion / Questions Conclusion / Questions Thanks for your attention Any questions ? Slides (full of links !) : html pdf , 19

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend