Skip to content

Commit 706f915

Browse files
committed
debug
1 parent 1d89d08 commit 706f915

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

buildspec.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ batch:
164164
buildspec: codebuild/py311/integ_mpl.yml
165165
env:
166166
image: aws/codebuild/standard:7.0
167+
- identifier: py311_performance_tests_mpl
168+
buildspec: codebuild/py311/performance_tests_mpl.yml
169+
env:
170+
image: aws/codebuild/standard:7.0
167171
- identifier: py311_examples
168172
buildspec: codebuild/py311/examples.yml
169173
env:

codebuild/py311/performance_tests_mpl.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ phases:
3434
- export AWS_SESSION_TOKEN=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SessionToken')
3535
- aws sts get-caller-identity
3636
# Run MPL-specific tests with special role
37-
- cd performance_tests/ && tox -e py311-performance_tests-mpl
37+
- cd performance_tests/
38+
- tox -e py311-performance_tests-mpl

codebuild/py312/performance_tests_mpl.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ phases:
3434
- export AWS_SESSION_TOKEN=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SessionToken')
3535
- aws sts get-caller-identity
3636
# Run MPL-specific tests with special role
37-
- cd performance_tests/ && tox -e py312-performance_tests-mpl
37+
- cd performance_tests/
38+
- tox -e py312-performance_tests-mpl

performance_tests/test/keyrings/test_aws_kms_keyring.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def create(
4747
elapsed_time = (time.time() - curr_time) * 1000
4848
time_list.append(elapsed_time)
4949

50+
print('time_list', time_list)
51+
print('output_file', output_file)
5052
PerfTestUtils.write_time_list_to_csv(time_list, output_file)
5153

5254

@@ -175,6 +177,7 @@ def runner():
175177
def test_create(runner):
176178
"""Test the create_keyring function"""
177179
result = runner.invoke(create_kms_keyring.commands['create'], ['--n_iters', 1])
180+
print('time_list', result.output)
178181
assert result.exit_code == 0
179182

180183

performance_tests/tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
envlist =
33
# The performance tests only work for python 3.11 and 3.12
4-
py{311}-performance_tests-mpl
4+
py{311,312}-performance_tests-mpl
55
bandit, readme
66
# TODO: Activate doc8 after finalizing README.rst
77
; bandit, doc8, readme
@@ -31,7 +31,7 @@ envlist =
3131
# release :: Builds dist files and uploads to pypi pypirc profile.
3232

3333
[testenv:base-command]
34-
commands = pytest test/
34+
commands = pytest -s -v test/
3535
deps =
3636
click
3737

0 commit comments

Comments
 (0)