grntest 1.5.0 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 482d04165fd7dc5994528ae65d9c869440e45e6bad2c1851a96288f4a65c08a6
4
- data.tar.gz: 479ba023a7ed7f2ccb9554160a102ed73fe4de173e7b225f63af6f72c9990750
3
+ metadata.gz: 52639924062d309f2bd03605a4eec89ff5f22003ef5a5ed269216b09a6190990
4
+ data.tar.gz: b6573f497448c771222eef70c93315ab2fe3e141b861c19dc52843ee4d2d92ea
5
5
  SHA512:
6
- metadata.gz: 8e4f5687fbf84811d5ca93193407f00041fe5549a685e0181c1cde62564898c168386b94ce9c5882762309f0b6b91d30c18a25e09db3e4bb3fe76aa0d2e651a8
7
- data.tar.gz: 05ccec382c7f186b3dad5fe75a10b50e10b3bf213e8021c4d22d288dcaffd94c7f79f03c625f718f593bcbea8d140937b10c8937de2962b426dfec6d38870682
6
+ metadata.gz: 383b205e13e7a0c5986ce7f42425b0e3959f1e1ab162dd25d30bfcc3ddf5891d3a107c22608786446877f68dc111057e1c8fcc163a6196bb3886950efdc09dff
7
+ data.tar.gz: 38b7f754bd5bf55fee9d8314de711612011cacf89303bff4bbec43e1ea1605f936dcd7433046a418aad89c624488621ee82053397454f684ae41dccf8b14fcab
data/doc/text/news.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # News
2
2
 
3
+ ## 1.5.4: 2022-01-17
4
+
5
+ ### Improvements
6
+
7
+ * `http`: Added support for long query.
8
+
9
+ ## 1.5.3: 2021-08-14
10
+
11
+ ### Improvements
12
+
13
+ * `generate-series`: Added support for multi-byte characters.
14
+
15
+ ## 1.5.2: 2021-08-05
16
+
17
+ ### Improvements
18
+
19
+ * `stdio`: Improved may be slow command processing.
20
+
21
+ * `copy-path`: Handled error.
22
+
23
+ * `generate-series`: Improved multi threading support.
24
+
25
+ ## 1.5.1: 2021-07-16
26
+
27
+ ### Improvements
28
+
29
+ * `http`: Improved response check.
30
+
3
31
  ## 1.5.0: 2021-07-16
4
32
 
5
33
  ### Improvements
@@ -180,7 +180,14 @@ module Grntest
180
180
  end
181
181
  source = resolve_path(Pathname(expand_variables(source)))
182
182
  destination = resolve_path(Pathname(expand_variables(destination)))
183
- FileUtils.cp_r(source.to_s, destination.to_s)
183
+ begin
184
+ FileUtils.cp_r(source.to_s, destination.to_s)
185
+ rescue SystemCallError => error
186
+ log_input(line)
187
+ details = "#{error.class}: #{error.message}"
188
+ log_error("#|e| [copy-path] failed to copy: #{details}")
189
+ @context.error
190
+ end
184
191
  end
185
192
 
186
193
  def timeout_value(key, line, input, default)
@@ -299,7 +306,7 @@ module Grntest
299
306
 
300
307
  def execute_directive_generate_series(parser, line, content, options)
301
308
  start, stop, table, template, = options
302
- evaluator = TemplateEvaluator.new(template)
309
+ evaluator = TemplateEvaluator.new(template.force_encoding("UTF-8"))
303
310
  (Integer(start)..Integer(stop)).each_slice(1000) do |range|
304
311
  parser << "load --table #{table}\n"
305
312
  parser << "["
@@ -313,7 +320,10 @@ module Grntest
313
320
  end
314
321
  record << "\n"
315
322
  record << evaluator.evaluate(i).to_json
323
+ before = Time.now
316
324
  parser << record
325
+ elapsed = Time.now - before
326
+ Thread.pass if elapsed > 1.0
317
327
  end
318
328
  parser << "\n]\n"
319
329
  end
@@ -79,7 +79,15 @@ module Grntest
79
79
  LOAD_DEBUG = (DEBUG or (ENV["GRNTEST_HTTP_LOAD_DEBUG"] == "yes"))
80
80
 
81
81
  def check_response(response)
82
- response.value
82
+ case response
83
+ when Net::HTTPBadRequest,
84
+ Net::HTTPNotFound
85
+ # Groonga returns them for an invalid request.
86
+ when Net::HTTPInternalServerError
87
+ # Groonga returns this for an internal error.
88
+ else
89
+ response.value
90
+ end
83
91
  end
84
92
 
85
93
  MAX_URI_SIZE = 4096
@@ -65,10 +65,12 @@ module Grntest
65
65
 
66
66
  MAY_SLOW_COMMANDS = [
67
67
  "column_create",
68
+ "delete",
68
69
  "load",
69
70
  "logical_table_remove",
70
71
  "plugin_register",
71
72
  "register",
73
+ "wal_recover",
72
74
  ]
73
75
  def may_slow_command?(command)
74
76
  MAY_SLOW_COMMANDS.include?(command.name)
@@ -547,6 +547,8 @@ http {
547
547
  groonga on;
548
548
  client_max_body_size 500m;
549
549
  }
550
+ client_header_buffer_size 64k;
551
+ large_client_header_buffers 4 64k;
550
552
  }
551
553
  }
552
554
  HTTP
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Grntest
17
- VERSION = "1.5.0"
17
+ VERSION = "1.5.4"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grntest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-07-16 00:00:00.000000000 Z
12
+ date: 2022-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: diff-lcs
@@ -270,12 +270,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
272
  requirements: []
273
- rubygems_version: 3.3.0.dev
273
+ rubygems_version: 3.1.2
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: Grntest is a testing framework for Groonga. You can write a test for Groonga
277
277
  by writing Groonga commands and expected result.
278
278
  test_files:
279
- - test/executors/test-base-executor.rb
280
- - test/executors/test-standard-io-executor.rb
281
279
  - test/run-test.rb
280
+ - test/executors/test-standard-io-executor.rb
281
+ - test/executors/test-base-executor.rb