Skip to content

Commit e4c956d

Browse files
authored
fix the ci build failures and add back the perf test on binary (#238)
1 parent 670afc5 commit e4c956d

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ workflows:
160160
only:
161161
- develop
162162
- master
163+
163164
# - execute_perf_tests:
164165
# requires:
165166
# - build

testing/integration/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ def test_env(request):
9090

9191
if os.path.exists(join(config_folder, 'local.ini')):
9292
parser.read(join(config_folder, 'local.ini'))
93-
94-
conf.update(parser.items('LOCAL'))
93+
conf.update(parser.items('LOCAL'))
9594

9695
return conf

testing/integration/lib/update_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def get_default_env():
3131
if os.path.exists(join(config_folder, 'env.json')):
3232
with open(join(config_folder, 'env.json')) as json_file:
3333
local_env = json.load(json_file)
34+
default_dict.update(local_env)
3435

35-
default_dict.update(local_env)
3636
return default_dict
3737

3838

testing/integration/testcases/test_nozzle_performance.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@ def teardown_method(self):
1616
@classmethod
1717
def teardown_class(cls):
1818
delete_pcf_org()
19-
#
20-
# @pytest.mark.Perf_Binary
21-
# @pytest.mark.parametrize("config_input", [
22-
# {'HEC_WORKERS': 1, 'HEC_BATCH_SIZE': 100, 'EXTRA_FIELDS': 'test_tag:01worker100batch'},
23-
# {'HEC_WORKERS': 2, 'HEC_BATCH_SIZE': 100, 'EXTRA_FIELDS': 'test_tag:02worker100batch'},
24-
# {'HEC_WORKERS': 4, 'HEC_BATCH_SIZE': 100, 'EXTRA_FIELDS': 'test_tag:04worker100batch'},
25-
# {'HEC_WORKERS': 8, 'HEC_BATCH_SIZE': 100, 'EXTRA_FIELDS': 'test_tag:08worker100batch'},
26-
# {'HEC_WORKERS': 16, 'HEC_BATCH_SIZE': 100, 'EXTRA_FIELDS': 'test_tag:16worker100batch'},
27-
# {'HEC_WORKERS': 1, 'HEC_BATCH_SIZE': 1000, 'EXTRA_FIELDS': 'test_tag:01worker1000batch'},
28-
# {'HEC_WORKERS': 2, 'HEC_BATCH_SIZE': 1000, 'EXTRA_FIELDS': 'test_tag:02worker1000batch'},
29-
# {'HEC_WORKERS': 4, 'HEC_BATCH_SIZE': 1000, 'EXTRA_FIELDS': 'test_tag:04worker1000batch'},
30-
# {'HEC_WORKERS': 8, 'HEC_BATCH_SIZE': 1000, 'EXTRA_FIELDS': 'test_tag:08worker1000batch'},
31-
# {'HEC_WORKERS': 16, 'HEC_BATCH_SIZE': 1000, 'EXTRA_FIELDS': 'test_tag:16worker1000batch'},
32-
# ])
33-
# def test_nozzle_performance_with_local_binary(self, config_input, test_env):
34-
# self.data_gen_name = config_input['EXTRA_FIELDS'].split(':')[1]
35-
# update_data_gen_manifest(input_dict={'name': self.data_gen_name,
36-
# 'env': {'GOPACKAGENAME': 'main', 'EPS': 500, 'TOTAL_EVENTS': 0}})
37-
# deploy_date_gen_to_pcf()
38-
# update_environment_variables(input_dict=config_input)
39-
# start_local_nozzle_binary(time_interval=1200)
19+
20+
@pytest.mark.Perf_Binary
21+
@pytest.mark.parametrize("config_input", [
22+
{'HEC_WORKERS': 1, 'HEC_BATCH_SIZE': 100, 'EXTRA_FIELDS': 'test_tag:01worker100batch'},
23+
{'HEC_WORKERS': 2, 'HEC_BATCH_SIZE': 100, 'EXTRA_FIELDS': 'test_tag:02worker100batch'},
24+
{'HEC_WORKERS': 4, 'HEC_BATCH_SIZE': 100, 'EXTRA_FIELDS': 'test_tag:04worker100batch'},
25+
{'HEC_WORKERS': 8, 'HEC_BATCH_SIZE': 100, 'EXTRA_FIELDS': 'test_tag:08worker100batch'},
26+
{'HEC_WORKERS': 16, 'HEC_BATCH_SIZE': 100, 'EXTRA_FIELDS': 'test_tag:16worker100batch'},
27+
{'HEC_WORKERS': 1, 'HEC_BATCH_SIZE': 1000, 'EXTRA_FIELDS': 'test_tag:01worker1000batch'},
28+
{'HEC_WORKERS': 2, 'HEC_BATCH_SIZE': 1000, 'EXTRA_FIELDS': 'test_tag:02worker1000batch'},
29+
{'HEC_WORKERS': 4, 'HEC_BATCH_SIZE': 1000, 'EXTRA_FIELDS': 'test_tag:04worker1000batch'},
30+
{'HEC_WORKERS': 8, 'HEC_BATCH_SIZE': 1000, 'EXTRA_FIELDS': 'test_tag:08worker1000batch'},
31+
{'HEC_WORKERS': 16, 'HEC_BATCH_SIZE': 1000, 'EXTRA_FIELDS': 'test_tag:16worker1000batch'},
32+
])
33+
def test_nozzle_performance_with_local_binary(self, config_input, test_env):
34+
self.data_gen_name = config_input['EXTRA_FIELDS'].split(':')[1]
35+
update_data_gen_manifest(input_dict={'name': self.data_gen_name,
36+
'env': {'GOPACKAGENAME': 'main', 'EPS': 500, 'TOTAL_EVENTS': 0}})
37+
deploy_date_gen_to_pcf()
38+
update_environment_variables(input_dict=config_input)
39+
start_local_nozzle_binary(time_interval=1200)
4040

4141
@pytest.mark.Perf_Romote
4242
@pytest.mark.parametrize("config_input", [

0 commit comments

Comments
 (0)