groonga-query-log 1.6.4 → 1.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +10 -0
- data/lib/groonga-query-log/command/run-regression-test.rb +28 -2
- data/lib/groonga-query-log/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5491daf99859078f656e26f3f1445eadbef319899eda9dadf806415916e25e9d
|
4
|
+
data.tar.gz: '0192e216e446888ed26a5fd6372bdd62a56759eea24eac06bac441d5d133cb79'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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?
|
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
|
+
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-
|
11
|
+
date: 2020-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charty
|