dynflow 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 398d1dc51c8a63beda52acc918da0c570ea91ec8c19090fa2cb7ae704cc4b1a2
4
- data.tar.gz: 5f1527042cdb29afb348031ced662fb5ac157c4c00ff14fcac73293cba31026c
3
+ metadata.gz: 570d04996df908b45e9d82a5ed4a634a536cfd27db2949547de33ceca5478277
4
+ data.tar.gz: 169047a160646f11fae66436c79d189fbeda9dfa5d7382a6b75ae14c381d2615
5
5
  SHA512:
6
- metadata.gz: ec917c5c31642bf23ebaf335804e0a151b7ab0a56f8b5d3a5cac23ab63416149844562248bddb93cff293b9d565e02998a958491cdc4f05c94d65859a4d473ef
7
- data.tar.gz: 80202d14de3d386a5b8d1c54a48542135ab511421f71e08ef533c50c43fb28900d3318798668fa34fabdf80feec6cba4b3c11635d6ea2b766308d8bc2fe8a2f4
6
+ metadata.gz: 8d8c8cc61569bb975549e5b94f2c58dba9f65f1d56c8294e83a4f5bc163ada4dcaf19e14035d338683edc9e63750d84e3a67cc288f3dcbf1b9e811fa94e67985
7
+ data.tar.gz: c54964b58bb14dd6c2bd6088190c598d60abfd2fd78cb6d1fd4932b1d819e865e5edc4e44f7dd960a4cc23ce33413c77523abd04d236cefceab7bd3537d17b02
@@ -0,0 +1,20 @@
1
+ name: Release to rubygems
2
+
3
+ on:
4
+ push:
5
+ # Pattern matched against refs/tags
6
+ tags:
7
+ - '**'
8
+
9
+ jobs:
10
+ release:
11
+ name: Release gem
12
+ runs-on: ubuntu-latest
13
+ environment: release
14
+ if: github.repository_owner == 'Dynflow'
15
+
16
+ permissions:
17
+ id-token: write
18
+
19
+ steps:
20
+ - uses: voxpupuli/ruby-release@v0
data/extras/expand/go.mod CHANGED
@@ -1,5 +1,7 @@
1
1
  module github.com/dynflow/dynflow/expand
2
2
 
3
- go 1.15
3
+ go 1.25
4
4
 
5
5
  require github.com/vmihailenco/msgpack/v5 v5.3.5
6
+
7
+ require github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
data/extras/expand/go.sum CHANGED
@@ -1,11 +1,14 @@
1
+ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
1
2
  github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
2
4
  github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
3
5
  github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
6
+ github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
4
7
  github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
5
- github.com/vmihailenco/msgpack v3.3.3+incompatible h1:wapg9xDUZDzGCNFlwc5SqI1rvcciqcxEHac4CYj89xI=
6
8
  github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU=
7
9
  github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
8
10
  github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
9
11
  github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
10
12
  gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
13
+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
11
14
  gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
@@ -124,19 +124,25 @@ module Dynflow
124
124
  warn 'Deprecated: using `increase_db_pool_size` outside of Dynflow code is not needed anymore'
125
125
  return
126
126
  end
127
- if increase_db_pool_size?
128
- db_pool_size = calculate_db_pool_size(world)
129
- ::ActiveRecord::Base.connection_pool.disconnect!
130
-
131
- base_config = ::ActiveRecord::Base.configurations.configs_for(env_name: ::Rails.env)[0]
132
- config = if base_config.respond_to?(:configuration_hash)
133
- ::Dynflow::Utils::IndifferentHash.new(base_config.configuration_hash.dup)
134
- else
135
- base_config.config.dup
136
- end
137
- config['pool'] = db_pool_size if config['pool'].to_i < db_pool_size
138
- ::ActiveRecord::Base.establish_connection(config)
139
- end
127
+
128
+ return unless increase_db_pool_size?
129
+
130
+ db_pool_size = calculate_db_pool_size(world)
131
+
132
+ base_config = ::ActiveRecord::Base.configurations.configs_for(env_name: ::Rails.env)[0]
133
+ config = if base_config.respond_to?(:configuration_hash)
134
+ ::Dynflow::Utils::IndifferentHash.new(base_config.configuration_hash.dup)
135
+ else
136
+ base_config.config.dup
137
+ end
138
+
139
+ return unless config['pool'].to_i < db_pool_size
140
+
141
+ dynflow_logger.info "Increasing database pool connections from #{config['pool']} to #{db_pool_size}"
142
+
143
+ config['pool'] = db_pool_size
144
+ ::ActiveRecord::Base.connection_pool.disconnect!
145
+ ::ActiveRecord::Base.establish_connection(config)
140
146
  end
141
147
 
142
148
  # generates the options hash consumable by the Dynflow's world
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dynflow
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Necas
8
8
  - Petr Chalupa
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 1980-01-01 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: algebrick
@@ -318,6 +318,7 @@ extensions: []
318
318
  extra_rdoc_files: []
319
319
  files:
320
320
  - ".github/workflows/bats.yml"
321
+ - ".github/workflows/release-rubygems.yml"
321
322
  - ".github/workflows/release.yml"
322
323
  - ".github/workflows/ruby.yml"
323
324
  - ".gitignore"
@@ -744,48 +745,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
744
745
  - !ruby/object:Gem::Version
745
746
  version: '0'
746
747
  requirements: []
747
- rubygems_version: 3.6.9
748
+ rubygems_version: 4.0.6
748
749
  specification_version: 4
749
750
  summary: DYNamic workFLOW engine
750
- test_files:
751
- - test/abnormal_states_recovery_test.rb
752
- - test/action_test.rb
753
- - test/activejob_adapter_test.rb
754
- - test/batch_sub_tasks_test.rb
755
- - test/bats/helpers/common.bash
756
- - test/bats/helpers/containers.bash
757
- - test/bats/setup_suite.bash
758
- - test/bats/sidekiq-orchestrator.bats
759
- - test/bats/teardown_suite.bash
760
- - test/clock_test.rb
761
- - test/concurrency_control_test.rb
762
- - test/coordinator_test.rb
763
- - test/daemon_test.rb
764
- - test/dead_letter_silencer_test.rb
765
- - test/dispatcher_test.rb
766
- - test/execution_plan_cleaner_test.rb
767
- - test/execution_plan_hooks_test.rb
768
- - test/execution_plan_test.rb
769
- - test/executor_test.rb
770
- - test/extensions_test.rb
771
- - test/flows_test.rb
772
- - test/future_execution_test.rb
773
- - test/memory_cosumption_watcher_test.rb
774
- - test/middleware_test.rb
775
- - test/persistence_test.rb
776
- - test/redis_locking_test.rb
777
- - test/rescue_test.rb
778
- - test/round_robin_test.rb
779
- - test/semaphores_test.rb
780
- - test/support/code_workflow_example.rb
781
- - test/support/dummy_example.rb
782
- - test/support/middleware_example.rb
783
- - test/support/rails/config/environment.rb
784
- - test/support/rescue_example.rb
785
- - test/support/test_execution_log.rb
786
- - test/test_helper.rb
787
- - test/testing_test.rb
788
- - test/utils_test.rb
789
- - test/v2_sub_plans_test.rb
790
- - test/web_console_test.rb
791
- - test/world_test.rb
751
+ test_files: []