@@ -223,11 +223,12 @@ def __init__(self, revision, effective_start_date, target_host, root_dir, config
223
223
224
224
225
225
class ReleaseCommand (BaseCommand ):
226
- def __init__ (self , effective_start_date , target_host , root_dir , distribution_version , configuration_name ):
226
+ def __init__ (self , effective_start_date , target_host , root_dir , distribution_version , configuration_name , tag ):
227
227
super ().__init__ (effective_start_date , target_host , root_dir )
228
228
self .configuration_name = configuration_name
229
229
self .pipeline = "from-distribution"
230
230
self .distribution_version = distribution_version
231
+ self ._tag = tag
231
232
232
233
def runnable (self , track , challenge , car ):
233
234
# cannot run "sorted" challenges - it's a 6.0+ feature
@@ -243,9 +244,8 @@ def command_line(self, track, challenge, car):
243
244
self .target_host , self .configuration_name , self .tag (), RALLY_BINARY )
244
245
return cmd
245
246
246
- @staticmethod
247
- def tag ():
248
- return "env:bare"
247
+ def tag (self ):
248
+ return self ._tag
249
249
250
250
251
251
class DockerCommand (BaseCommand ):
@@ -601,7 +601,7 @@ def report(tracks, default_setup_per_track, reader, reporter):
601
601
reporter .write_meta_report (track , meta_metrics ["source_revision" ])
602
602
603
603
604
- def copy_results_for_release_comparison (effective_start_date , dry_run ):
604
+ def copy_results_for_release_comparison (effective_start_date , dry_run , tag ):
605
605
if not dry_run :
606
606
import client
607
607
import elasticsearch .helpers
@@ -631,7 +631,7 @@ def copy_results_for_release_comparison(effective_start_date, dry_run):
631
631
# pseudo version for stable comparisons
632
632
src ["distribution-version" ] = "master"
633
633
src ["environment" ] = "release"
634
- src ["user-tag" ] = ReleaseCommand . tag ()
634
+ src ["user-tag" ] = tag
635
635
release_results .append (src )
636
636
if release_results :
637
637
logger .info ("Copying %d result documents for [%s] to release environment." % (len (release_results ), ts ))
@@ -724,6 +724,10 @@ def parse_args():
724
724
"--target-host" ,
725
725
help = "The Elasticsearch node that should be targeted" ,
726
726
required = True )
727
+ parser .add_argument (
728
+ "--fixtures" ,
729
+ help = "A comma-separated list of fixtures that have been run" ,
730
+ required = True )
727
731
parser .add_argument (
728
732
"--dry-run" ,
729
733
help = "Does not do anything, just output" ,
@@ -757,6 +761,7 @@ def main():
757
761
nightly_mode = args .mode == "nightly"
758
762
root_dir = config ["root.dir" ] if not args .override_root_dir else args .override_root_dir
759
763
tag = args .tag
764
+ release_tag = "env:ear" if "encryption-at-rest" in args .fixtures else "env:bare"
760
765
761
766
if release_mode :
762
767
# use always the same name for release comparison benchmarks
@@ -765,7 +770,7 @@ def main():
765
770
command = DockerCommand (args .effective_start_date , args .target_host , root_dir , args .release , env_name )
766
771
tag = command .tag ()
767
772
else :
768
- command = ReleaseCommand (args .effective_start_date , args .target_host , root_dir , args .release , env_name )
773
+ command = ReleaseCommand (args .effective_start_date , args .target_host , root_dir , args .release , env_name , release_tag )
769
774
tag = command .tag ()
770
775
elif adhoc_mode :
771
776
# copy data from templates directory to our dedicated output directory
@@ -781,7 +786,7 @@ def main():
781
786
replace_release = args .replace_release if args .replace_release else args .release
782
787
783
788
if nightly_mode :
784
- copy_results_for_release_comparison (args .effective_start_date , args .dry_run )
789
+ copy_results_for_release_comparison (args .effective_start_date , args .dry_run , release_tag )
785
790
# we want to deactivate old release entries, not old nightly entries
786
791
deactivate_outdated_results (args .effective_start_date , "release" , args .release , tag , args .dry_run )
787
792
else :
0 commit comments