groonga-query-log 1.6.4 → 1.6.5

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: d2d80e83a4e97eef62575b74225fb3906bba84cfdfe27d3322f57cc6a2a5ecad
4
- data.tar.gz: a9c6085392cc0be54614d2d6cf465b716718867d54274968afe69ed06c93f2b8
3
+ metadata.gz: 5491daf99859078f656e26f3f1445eadbef319899eda9dadf806415916e25e9d
4
+ data.tar.gz: '0192e216e446888ed26a5fd6372bdd62a56759eea24eac06bac441d5d133cb79'
5
5
  SHA512:
6
- metadata.gz: b861443cf20f694818b4457a3e657a09bc5b3aef46e30e3173445216d945b91ead35e4b03c955110ebad03485c111f47cc9f08b1ad314b57909d982c869e44c2
7
- data.tar.gz: f429713e01e280273e2511f02b121e50d5999ef38b9a5531402690a8bb1bf8f13e57fe499f11c3981eedee12dba29766c2144c4676bd133bc3da4f1f343d2c40
6
+ metadata.gz: 26a03dadf837f274d139c7743dc4682c28a2961348f7dd4d49674591fbfb879dcf928584b0e521800a3f97dc574e717b8ec6b9d2dc3a7fac596f6949ef2779d1
7
+ data.tar.gz: 75f4dfbf7010ed8d4e5db8c832eacc4274b8b62720ccbef4ea37ff0cb4b5ba138533c99328c33684c93adce8c23e459b4a906c95591f51b025d05128fa3890da
data/doc/text/news.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # News
2
2
 
3
+ ## 1.6.5: 2020-05-19
4
+
5
+ ### Improvements
6
+
7
+ * `run-regression-test`: Added options to customize how to warm up:
8
+
9
+ * `--old-groonga-warm-up-command`
10
+
11
+ * `--new-groonga-warm-up-command`
12
+
3
13
  ## 1.6.4: 2020-05-18
4
14
 
5
15
  ### Improvements
@@ -42,11 +42,13 @@ module GroongaQueryLog
42
42
  @old_database = "db.old/db"
43
43
  @old_groonga_options = []
44
44
  @old_groonga_env = {}
45
+ @old_groonga_warm_up_commands = []
45
46
 
46
47
  @new_groonga = "groonga"
47
48
  @new_database = "db.new/db"
48
49
  @new_groonga_options = []
49
50
  @new_groonga_env = {}
51
+ @new_groonga_warm_up_commands = []
50
52
 
51
53
  @recreate_database = false
52
54
  @warm_up = true
@@ -177,6 +179,14 @@ module GroongaQueryLog
177
179
  @old_groonga_env[key] = value
178
180
  end
179
181
 
182
+ parser.on("--old-groonga-warm-up-commands=COMMAND",
183
+ "Run COMMAND before running tests to warm old groonga up",
184
+ "You can specify this option multiple times",
185
+ "to specify multiple warm up commands",
186
+ "(no additional warm up commands)") do |command|
187
+ @old_groonga_warm_up_commands << command
188
+ end
189
+
180
190
  parser.separator("")
181
191
  parser.separator("New Groonga:")
182
192
  parser.on("--new-groonga=GROONGA",
@@ -202,6 +212,14 @@ module GroongaQueryLog
202
212
  @new_groonga_env[key] = value
203
213
  end
204
214
 
215
+ parser.on("--old-groonga-warm-up-commands=COMMAND",
216
+ "Run COMMAND before running tests to warm new groonga up",
217
+ "You can specify this option multiple times",
218
+ "to specify multiple warm up commands",
219
+ "(no additional warm up commands)") do |command|
220
+ @new_groonga_warm_up_commands << command
221
+ end
222
+
205
223
  parser.separator("")
206
224
  parser.separator("Operations:")
207
225
  parser.on("--recreate-database",
@@ -457,19 +475,23 @@ module GroongaQueryLog
457
475
  end
458
476
 
459
477
  def old_groonga_server
478
+ options = server_options
479
+ options[:warm_up_commands] = @old_groonga_warm_up_commands
460
480
  GroongaServer.new(@old_groonga,
461
481
  @old_groonga_options,
462
482
  @old_groonga_env,
463
483
  @old_database,
464
- server_options)
484
+ options)
465
485
  end
466
486
 
467
487
  def new_groonga_server
488
+ options = server_options
489
+ options[:warm_up_commands] = @new_groonga_warm_up_commands
468
490
  GroongaServer.new(@new_groonga,
469
491
  @new_groonga_options,
470
492
  @new_groonga_env,
471
493
  @new_database,
472
- server_options)
494
+ options)
473
495
  end
474
496
 
475
497
  def format_report(success,
@@ -569,6 +591,10 @@ module GroongaQueryLog
569
591
 
570
592
  if @options[:warm_up]
571
593
  send_command("dump?dump_records=no")
594
+ warm_up_commands = @options[:warm_up_commands] || []
595
+ warm_up_commands.each do |command|
596
+ send_command(command)
597
+ end
572
598
  end
573
599
 
574
600
  yield if block_given?
@@ -15,5 +15,5 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  module GroongaQueryLog
18
- VERSION = "1.6.4"
18
+ VERSION = "1.6.5"
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groonga-query-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.4
4
+ version: 1.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-17 00:00:00.000000000 Z
11
+ date: 2020-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charty