zk_recipes 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0d7e707bc2f43f78a94c97736934209f049c19fb
4
+ data.tar.gz: 8b93f73571a1464ee7c231d95e85b5373f0c9312
5
+ SHA512:
6
+ metadata.gz: af9c84ae0d6797865d787353221429ec7031559b1b948133511127fdf54868e0852d087ffcaf7ec1fa8c67354e2c4077ff6468338788822ad38d8a882f6afd5b
7
+ data.tar.gz: 8ffdb1eb278394d79bf93ff84ce0a82e5b5ab270f640aa872c32e1561fd846a1aafe626eacc62bd68ff6ca240a4e5865712296ae3ef19523dc7aedc8515162b6
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /zookeeper
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,4 @@
1
+ --color
2
+ --format documentation
3
+ --order rand
4
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,12 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.4
3
+ DisplayCopNames: true
4
+
5
+ Lint/RescueException:
6
+ Enabled: false
7
+
8
+ Metrics:
9
+ Enabled: false
10
+
11
+ Style:
12
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.14.6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at nerdrew@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in zk_recipes.gemspec
4
+ gemspec
5
+
6
+ gem "bundler", "~> 1.14"
7
+ gem "descriptive_statistics", "~> 2.5"
8
+ gem "pry"
9
+ gem "rake", "~> 10.0"
10
+ gem "rspec", "~> 3.6"
11
+ gem "rubocop", "0.49.1"
12
+ gem "zk-server", "~> 1.1"
13
+
14
+ platform :mri do
15
+ gem "pry-byebug"
16
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Andrew Lazarus
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,84 @@
1
+ # ZkRecipes
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem "zk_recipes"
9
+ ```
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install zk_recipes
18
+
19
+ ## Usage
20
+
21
+ A cache that creates its own ZK client:
22
+
23
+ ```ruby
24
+ logger = Logger.new(STDERR)
25
+ cache = ZkRecipes::Cache.new(host: "my-host:1234", logger: logger, timeout: 10, zk_opts: { timeout: 5 }) do |z|
26
+ z.register("/test/boom", "goat")
27
+ z.register("/test/foo", 1) { |raw_value| raw_value.to_i * 2 }
28
+ end
29
+
30
+ puts cache["/test/boom"]
31
+ cache.close!
32
+ ```
33
+
34
+ A cache that uses an existing ZK client:
35
+
36
+ ```ruby
37
+ logger = Logger.new(STDERR)
38
+ zk = ZK.new("my-host:1234", connect: false, timeout: 5) # ZK timeout = 5s
39
+ cache = ZkRecipes::Cache.new(logger: logger)
40
+ cache.register("/test/boom", "goat")
41
+ cache.register("/test/foo", 1) { |raw_value| raw_value.to_i * 2 }
42
+ cache.setup_callbacks(zk) # no more paths can be registered after this
43
+
44
+ puts cache["/test/boom"] # => "goat"
45
+
46
+ zk.connect
47
+ cache.wait_for_warm_cache(10) # wait 10s for the cache to warm
48
+
49
+ zk.create("/test/boom")
50
+ zk.set("/test/boom", "cat")
51
+
52
+ sleep 1
53
+
54
+ puts cache["/test/boom"] # => "cat"
55
+ cache.close!
56
+ zk.close!
57
+ ```
58
+
59
+ ## Development
60
+
61
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
62
+ `rake spec` to run the tests. You can also run `bin/console` for an interactive
63
+ prompt that will allow you to experiment.
64
+
65
+ To install this gem onto your local machine, run `bundle exec rake install`. To
66
+ release a new version, update the version number in `version.rb`, and then run
67
+ `bundle exec rake release`, which will create a git tag for the version, push
68
+ git commits and tags, and push the `.gem` file to
69
+ [rubygems.org](https://rubygems.org).
70
+
71
+ ## Contributing
72
+
73
+ Bug reports and pull requests are welcome on GitHub at
74
+ https://github.com/nerdrew/ruby-zk_recipes. This project is intended to be a
75
+ safe, welcoming space for collaboration, and contributors are expected to
76
+ adhere to the [Contributor Covenant](http://contributor-covenant.org) code of
77
+ conduct.
78
+
79
+
80
+ ## License
81
+
82
+ The gem is available as open source under the terms of the [MIT
83
+ License](http://opensource.org/licenses/MIT).
84
+
data/Rakefile ADDED
@@ -0,0 +1,9 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ require "rubocop/rake_task"
7
+ RuboCop::RakeTask.new
8
+
9
+ task :default => %i(spec rubocop)
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "zk_recipes"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,209 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ZkRecipes
4
+ class Cache
5
+ class Error < StandardError; end
6
+
7
+ extend Forwardable
8
+
9
+ AS_NOTIFICATION_UPDATE = "zk_recipes.cache.update"
10
+ AS_NOTIFICATION_ERROR = "zk_recipes.cache.error"
11
+
12
+ def initialize(host: nil, logger: nil, timeout: nil, zk_opts: {})
13
+ @cache = Concurrent::Map.new
14
+ @latch = Concurrent::CountDownLatch.new
15
+ @logger = logger
16
+ @pending_updates = Concurrent::Hash.new
17
+ @registerable = true
18
+ @registered_values = Concurrent::Map.new
19
+ @session_id = nil
20
+ @watches = Concurrent::Map.new
21
+ @zk = nil
22
+
23
+ if block_given?
24
+ @owned_zk = true
25
+ yield(self)
26
+
27
+ expiration = Time.now + (timeout || 30)
28
+ connect(host, zk_opts)
29
+
30
+ wait_for_warm_cache(expiration - Time.now)
31
+ elsif host || timeout || !zk_opts.empty?
32
+ raise ArgumentError, "host, zk_opts, and timeout are only allowed with a block"
33
+ else
34
+ @owned_zk = false
35
+ end
36
+ end
37
+
38
+ def register(path, default_value, &block)
39
+ raise Error, "register only allowed before setup_callbacks called" unless @registerable
40
+
41
+ debug("added path=#{path} default_value=#{default_value.inspect}")
42
+ @cache[path] = CachedPath.new(default_value)
43
+ @registered_values[path] = RegisteredPath.new(default_value, block)
44
+ ActiveSupport::Notifications.instrument(AS_NOTIFICATION_UPDATE, path: path, value: default_value)
45
+ end
46
+
47
+ def setup_callbacks(zk)
48
+ @zk = zk
49
+ @registerable = false
50
+
51
+ if @zk.connected? || @zk.connecting?
52
+ raise Error, "the ZK::Client is already connected, the cached values must be set before connecting"
53
+ end
54
+
55
+ @zk.on_connected do |e|
56
+ info("on_connected session_id old=#{@session_id} new=#{@zk.session_id} #{e.event_name} #{e.state_name}")
57
+ if @session_id == @zk.session_id
58
+ process_pending_updates
59
+ next
60
+ end
61
+
62
+ @pending_updates.clear
63
+ @registered_values.each do |path, _value|
64
+ @watches[path] ||= @zk.register(path) do |event|
65
+ if event.node_event?
66
+ debug("node event=#{event.inspect} #{event.event_name} #{event.state_name}")
67
+ unless update_cache(event.path)
68
+ @pending_updates[path] = nil
69
+ @zk.defer { process_pending_updates }
70
+ end
71
+ else
72
+ warn("session event=#{event.inspect}")
73
+ end
74
+ end
75
+ @pending_updates[path] = nil unless update_cache(path)
76
+ end
77
+ @session_id = @zk.session_id
78
+ @latch.count_down
79
+ end
80
+
81
+ @zk.on_expired_session do |e|
82
+ info("on_expired_session #{e.event_name} #{e.state_name}")
83
+ end
84
+
85
+ @zk.on_exception do |e|
86
+ error("on_exception exception=#{e.inspect} backtrace=#{e.backtrace.inspect}")
87
+ ActiveSupport::Notifications.instrument(AS_NOTIFICATION_ERROR, error: e)
88
+ end
89
+ end
90
+
91
+ def wait_for_warm_cache(timeout = 30)
92
+ if @latch.wait(timeout)
93
+ true
94
+ else
95
+ warn("didn't connect before timeout connected=#{@zk.connected?} timeout=#{timeout}")
96
+ false
97
+ end
98
+ end
99
+
100
+ def close!
101
+ @watches.each_value(&:unsubscribe)
102
+ @watches.clear
103
+ @zk.close! if @owned_zk
104
+ end
105
+
106
+ def fetch(path)
107
+ @cache.fetch(path).value
108
+ end
109
+ alias_method :[], :fetch
110
+
111
+ def fetch_existing(path)
112
+ cached = @cache.fetch(path)
113
+ cached.value if cached.stat&.exists?
114
+ end
115
+
116
+ private
117
+
118
+ def connect(host, zk_opts)
119
+ raise Error, "already connected" if @zk
120
+
121
+ debug("connecting host=#{host.inspect}")
122
+ ZK.new(host, **zk_opts) do |zk|
123
+ setup_callbacks(zk)
124
+ end
125
+ end
126
+
127
+ # only called from ZK thread
128
+ def update_cache(path)
129
+ debug("update_cache path=#{path}")
130
+
131
+ stat = @zk.stat(path, watch: true)
132
+
133
+ instrument_name = AS_NOTIFICATION_UPDATE
134
+ instrument_params = { path: path }
135
+
136
+ unless stat.exists?
137
+ value = @registered_values.fetch(path).default_value
138
+ @cache[path] = CachedPath.new(value, stat)
139
+ debug("no node, setting watch path=#{path}")
140
+ instrument_params[:value] = value
141
+ ActiveSupport::Notifications.instrument(instrument_name, instrument_params)
142
+ return true
143
+ end
144
+
145
+ raw_value, stat = @zk.get(path, watch: true)
146
+
147
+ instrument_params.merge!(
148
+ latency_seconds: Time.now - stat.mtime_t,
149
+ version: stat.version,
150
+ data_length: stat.data_length,
151
+ )
152
+
153
+ value = begin
154
+ registered_value = @registered_values.fetch(path)
155
+ instrument_params[:value] = registered_value.deserialize(raw_value)
156
+ rescue => e
157
+ error(
158
+ "deserialization error raw_zookeeper_value=#{raw_value.inspect} zookeeper_stat=#{stat.inspect} "\
159
+ "exception=#{e.inspect} #{e.backtrace.inspect}"
160
+ )
161
+ instrument_name = AS_NOTIFICATION_ERROR
162
+ instrument_params[:error] = e
163
+ instrument_params[:raw_value] = raw_value
164
+ registered_value.default_value
165
+ end
166
+
167
+ @cache[path] = CachedPath.new(value, stat)
168
+
169
+ debug(
170
+ "updated cache path=#{path} raw_value=#{raw_value.inspect} "\
171
+ "value=#{value.inspect} stat=#{stat.inspect}"
172
+ )
173
+ ActiveSupport::Notifications.instrument(instrument_name, instrument_params)
174
+ true
175
+ rescue ::ZK::Exceptions::ZKError => e
176
+ warn("update_cache path=#{path} exception=#{e.inspect}, retrying")
177
+ retry
178
+ rescue ::ZK::Exceptions::KeeperException, ::Zookeeper::Exceptions::ZookeeperException => e
179
+ error("update_cache path=#{path} exception=#{e.inspect}")
180
+ false
181
+ end
182
+
183
+ def process_pending_updates
184
+ info("processing pending updates=#{@pending_updates.size}")
185
+ @pending_updates.reject! do |missed_path, _|
186
+ debug("update_cache with previously missed update path=#{missed_path}")
187
+ update_cache(missed_path)
188
+ end
189
+ info("pending updates not processed=#{@pending_updates.size}")
190
+ end
191
+
192
+ %w(debug info warn error).each do |m|
193
+ module_eval <<~EOM, __FILE__, __LINE__
194
+ def #{m}(msg)
195
+ return unless @logger
196
+ @logger.#{m}("ZkRecipes::Cache") { msg }
197
+ end
198
+ EOM
199
+ end
200
+
201
+ CachedPath = Struct.new(:value, :stat)
202
+
203
+ class RegisteredPath < Struct.new(:default_value, :deserializer)
204
+ def deserialize(raw)
205
+ deserializer ? deserializer.call(raw) : raw
206
+ end
207
+ end
208
+ end
209
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ZkRecipes
4
+ VERSION = "0.1.0"
5
+ end
data/lib/zk_recipes.rb ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/notifications"
4
+ require "concurrent"
5
+ require "forwardable"
6
+ require "zk"
7
+
8
+ require "zk_recipes/version"
9
+ require "zk_recipes/cache"
10
+
11
+ module ZkRecipes
12
+ end
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'zk_recipes/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "zk_recipes"
9
+ spec.version = ZkRecipes::VERSION
10
+ spec.authors = ["Andrew Lazarus"]
11
+ spec.email = ["nerdrew@gmail.com"]
12
+
13
+ spec.summary = %q{Common Recipes for Zookeeper}
14
+ spec.homepage = "https://github.com/nerdrew/ruby-zk_recipes"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_runtime_dependency "activesupport", ">= 4.0"
25
+ spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
26
+ spec.add_runtime_dependency "zk", "~> 1.9"
27
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: zk_recipes
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Andrew Lazarus
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-06-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: concurrent-ruby
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: zk
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.9'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.9'
55
+ description:
56
+ email:
57
+ - nerdrew@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".rubocop.yml"
65
+ - ".travis.yml"
66
+ - CODE_OF_CONDUCT.md
67
+ - Gemfile
68
+ - LICENSE.txt
69
+ - README.md
70
+ - Rakefile
71
+ - bin/console
72
+ - bin/setup
73
+ - lib/zk_recipes.rb
74
+ - lib/zk_recipes/cache.rb
75
+ - lib/zk_recipes/version.rb
76
+ - zk_recipes.gemspec
77
+ homepage: https://github.com/nerdrew/ruby-zk_recipes
78
+ licenses:
79
+ - MIT
80
+ metadata: {}
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubyforge_project:
97
+ rubygems_version: 2.6.11
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: Common Recipes for Zookeeper
101
+ test_files: []