shipit-engine 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +45 -0
  3. data/app/jobs/shipit/deferred_touch_job.rb +9 -0
  4. data/app/jobs/shipit/perform_task_job.rb +1 -1
  5. data/app/jobs/shipit/{update_estimated_deploy_duration.rb → update_estimated_deploy_duration_job.rb} +0 -0
  6. data/app/models/concerns/shipit/deferred_touch.rb +92 -0
  7. data/app/models/shipit/commit.rb +7 -9
  8. data/app/models/shipit/delivery.rb +2 -0
  9. data/app/models/shipit/deploy_spec.rb +8 -0
  10. data/app/models/shipit/deploy_spec/file_system.rb +3 -1
  11. data/app/models/shipit/deploy_spec/kubernetes_discovery.rb +37 -0
  12. data/app/models/shipit/deploy_spec/npm_discovery.rb +81 -0
  13. data/app/models/shipit/stack.rb +1 -2
  14. data/app/models/shipit/status.rb +8 -9
  15. data/app/models/shipit/task.rb +5 -1
  16. data/config/secrets.development.example.yml +4 -0
  17. data/config/secrets.development.shopify.yml +4 -0
  18. data/config/secrets.development.yml +1 -1
  19. data/db/migrate/20161205144522_add_indexes_on_deliveries.rb +17 -0
  20. data/db/migrate/20161206104100_delete_orphan_statuses.rb +10 -0
  21. data/db/migrate/20161206104224_denormalize_stack_id_on_statuses.rb +5 -0
  22. data/db/migrate/20161206104817_backfill_stack_id_on_statuses.rb +13 -0
  23. data/db/migrate/20161206105318_makes_stack_id_not_null_on_statuses.rb +5 -0
  24. data/lib/shipit.rb +3 -0
  25. data/lib/shipit/strip_cache_control.rb +40 -0
  26. data/lib/shipit/version.rb +1 -1
  27. data/lib/snippets/assert-npm-version-tag +22 -0
  28. data/lib/snippets/deploy-to-gke +3 -4
  29. data/lib/tasks/cron.rake +7 -0
  30. data/test/dummy/config/environments/development.rb +6 -2
  31. data/test/dummy/config/environments/test.rb +4 -0
  32. data/test/dummy/db/development.sqlite3 +0 -0
  33. data/test/dummy/db/schema.rb +32 -42
  34. data/test/dummy/db/seeds.rb +2 -0
  35. data/test/dummy/db/test.sqlite3 +0 -0
  36. data/test/fixtures/shipit/statuses.yml +10 -0
  37. data/test/models/commits_test.rb +26 -20
  38. data/test/models/deploys_test.rb +2 -2
  39. data/test/models/stacks_test.rb +9 -12
  40. data/test/models/status_test.rb +4 -4
  41. data/test/unit/deploy_spec_test.rb +146 -1
  42. metadata +14 -3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipit-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-30 00:00:00.000000000 Z
11
+ date: 2017-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -597,6 +597,7 @@ files:
597
597
  - app/jobs/shipit/clear_git_cache_job.rb
598
598
  - app/jobs/shipit/continuous_delivery_job.rb
599
599
  - app/jobs/shipit/create_on_github_job.rb
600
+ - app/jobs/shipit/deferred_touch_job.rb
600
601
  - app/jobs/shipit/deliver_hook_job.rb
601
602
  - app/jobs/shipit/destroy_stack_job.rb
602
603
  - app/jobs/shipit/emit_event_job.rb
@@ -608,7 +609,8 @@ files:
608
609
  - app/jobs/shipit/refresh_github_user_job.rb
609
610
  - app/jobs/shipit/refresh_statuses_job.rb
610
611
  - app/jobs/shipit/setup_github_hook_job.rb
611
- - app/jobs/shipit/update_estimated_deploy_duration.rb
612
+ - app/jobs/shipit/update_estimated_deploy_duration_job.rb
613
+ - app/models/concerns/shipit/deferred_touch.rb
612
614
  - app/models/shipit/anonymous_user.rb
613
615
  - app/models/shipit/api_client.rb
614
616
  - app/models/shipit/commit.rb
@@ -621,6 +623,8 @@ files:
621
623
  - app/models/shipit/deploy_spec/bundler_discovery.rb
622
624
  - app/models/shipit/deploy_spec/capistrano_discovery.rb
623
625
  - app/models/shipit/deploy_spec/file_system.rb
626
+ - app/models/shipit/deploy_spec/kubernetes_discovery.rb
627
+ - app/models/shipit/deploy_spec/npm_discovery.rb
624
628
  - app/models/shipit/deploy_spec/pypi_discovery.rb
625
629
  - app/models/shipit/deploy_spec/rubygems_discovery.rb
626
630
  - app/models/shipit/duration.rb
@@ -716,6 +720,11 @@ files:
716
720
  - db/migrate/20160526192650_reorder_active_tasks_index.rb
717
721
  - db/migrate/20160802092812_add_continuous_delivery_delayed_since_to_stacks.rb
718
722
  - db/migrate/20160822131405_add_locked_since_to_stacks.rb
723
+ - db/migrate/20161205144522_add_indexes_on_deliveries.rb
724
+ - db/migrate/20161206104100_delete_orphan_statuses.rb
725
+ - db/migrate/20161206104224_denormalize_stack_id_on_statuses.rb
726
+ - db/migrate/20161206104817_backfill_stack_id_on_statuses.rb
727
+ - db/migrate/20161206105318_makes_stack_id_not_null_on_statuses.rb
719
728
  - lib/shipit-engine.rb
720
729
  - lib/shipit.rb
721
730
  - lib/shipit/command.rb
@@ -732,11 +741,13 @@ files:
732
741
  - lib/shipit/simple_message_verifier.rb
733
742
  - lib/shipit/stack_commands.rb
734
743
  - lib/shipit/stat.rb
744
+ - lib/shipit/strip_cache_control.rb
735
745
  - lib/shipit/task_commands.rb
736
746
  - lib/shipit/template_renderer_extension.rb
737
747
  - lib/shipit/version.rb
738
748
  - lib/snippets/assert-egg-version-tag
739
749
  - lib/snippets/assert-gem-version-tag
750
+ - lib/snippets/assert-npm-version-tag
740
751
  - lib/snippets/deploy-to-gke
741
752
  - lib/snippets/extract-egg-version
742
753
  - lib/snippets/extract-gem-version