grntest 1.5.1 → 1.5.5

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: f74f96285e7ff0f9537ae2165f7fba29a9fb705a686e98f1281f7203b46521c5
4
- data.tar.gz: 89d86885e7b67cb0f98312856be0ed6cbb2f0264a4ba281fe8ca542f06e39dad
3
+ metadata.gz: e8a09deb6171d6819a7874a580276f5b972859e5d57e5d746759bfbeb54b501b
4
+ data.tar.gz: 60da288a453817a64a157f3ed82d84745dae567e5a3cea418d2a6d46d930313a
5
5
  SHA512:
6
- metadata.gz: a6964575dd5fd1e3ec6160416795e10f6ac720f7bedee4413167196b055278f0196dac8dc017f620843c485cb4277ee20dbebddc0ab5ce3a242577d0008214f3
7
- data.tar.gz: 4ab4f3f9925b14ef915eb781e0a02e53d1039549b035b830f51a0016f421fb31372631d8398824bb41563bc50b966eca7ad67916e2ef660123e0672235de9080
6
+ metadata.gz: 748cca0d65ac9073708bd5d9c483f8d14e0f592f9ce3e6ef82874af58597e3703e7ee3b328caf2824eea916151cf8b09785a1583d6203ff3bf5f99f7b915dcd5
7
+ data.tar.gz: debc154f725645857bf626b5b4fb088e8483171473ba0a921bbd3eb458a21fa38a778613c7ca89d5b4634d353329a76893a2cd394ac99b55bbaa0f97575e4efb
data/doc/text/news.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # News
2
2
 
3
+ ## 1.5.5: 2022-01-18
4
+
5
+ ### Improvements
6
+
7
+ * Added support for normalizing function name.
8
+
9
+ ## 1.5.4: 2022-01-17
10
+
11
+ ### Improvements
12
+
13
+ * `http`: Added support for long query.
14
+
15
+ ## 1.5.3: 2021-08-14
16
+
17
+ ### Improvements
18
+
19
+ * `generate-series`: Added support for multi-byte characters.
20
+
21
+ ## 1.5.2: 2021-08-05
22
+
23
+ ### Improvements
24
+
25
+ * `stdio`: Improved may be slow command processing.
26
+
27
+ * `copy-path`: Handled error.
28
+
29
+ * `generate-series`: Improved multi threading support.
30
+
3
31
  ## 1.5.1: 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
@@ -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
@@ -733,6 +735,10 @@ http {
733
735
  normalized_values = {}
734
736
  message = error["message"]
735
737
  normalized_values["message"] = normalize_error_message(message)
738
+ function = error["function"]
739
+ if function
740
+ normalized_values["function"] = normalize_error_function(function)
741
+ end
736
742
  file = error["file"]
737
743
  if file
738
744
  normalized_values["file"] = normalize_error_file_path(file)
@@ -821,6 +827,10 @@ http {
821
827
  end
822
828
  end
823
829
 
830
+ def normalize_error_function(function)
831
+ function.split("::").last
832
+ end
833
+
824
834
  def normalize_error_file_path(path)
825
835
  File.basename(path)
826
836
  end
@@ -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.1"
17
+ VERSION = "1.5.5"
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.1
4
+ version: 1.5.5
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-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: diff-lcs
@@ -270,7 +270,7 @@ 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.4.0.dev
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