Skip to content

Commit 463b88f

Browse files
authored
Upload benchmark information to S3 after integration test runs (feast-dev#1878)
* Upload benchmark information to S3 after integration test runs Signed-off-by: Achal Shah <achals@gmail.com> * Fix action Signed-off-by: Achal Shah <achals@gmail.com> * newline Signed-off-by: Achal Shah <achals@gmail.com>
1 parent ecd4a66 commit 463b88f

4 files changed

Lines changed: 11 additions & 14 deletions

File tree

.github/workflows/integration_tests.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ jobs:
6363
fail_ci_if_error: true
6464
verbose: true
6565
- name: Benchmark python
66-
run: FEAST_USAGE=False IS_TEST=True pytest --verbose --color=yes sdk/python/tests --integration --benchmark --benchmark-json=./benchmarks.json
67-
- name: Upload Benchmark Artifact
68-
uses: actions/upload-artifact@v2
69-
with:
70-
name: benchmarks.json
71-
path: benchmarks.json
66+
run: FEAST_USAGE=False IS_TEST=True pytest --verbose --color=yes sdk/python/tests --integration --benchmark --benchmark-autosave --benchmark-save-data
67+
- name: Upload Benchmark Artifact to S3
68+
run: aws s3 cp --recursive .benchmarks s3://feast-ci-pytest-benchmarks

.github/workflows/pr_integration_tests.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ jobs:
7474
fail_ci_if_error: true
7575
verbose: true
7676
- name: Benchmark python
77-
run: FEAST_USAGE=False IS_TEST=True pytest --verbose --color=yes sdk/python/tests --integration --benchmark --benchmark-json=./benchmarks.json
78-
- name: Upload Benchmark Artifact
79-
uses: actions/upload-artifact@v2
80-
with:
81-
name: benchmarks.json
82-
path: benchmarks.json
77+
run: FEAST_USAGE=False IS_TEST=True pytest --verbose --color=yes sdk/python/tests --integration --benchmark --benchmark-autosave --benchmark-save-data
78+
- name: Upload Benchmark Artifact to S3
79+
run: aws s3 cp --recursive .benchmarks s3://feast-ci-pytest-benchmarks

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,7 @@ dmypy.json
187187
# Protos
188188
sdk/python/docs/html
189189
sdk/python/feast/protos/
190-
sdk/go/protos/
190+
sdk/go/protos/
191+
192+
#benchmarks
193+
.benchmarks

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ install-python:
5353
python -m pip install -e sdk/python -U --use-deprecated=legacy-resolver
5454

5555
benchmark-python:
56-
FEAST_USAGE=False IS_TEST=True pytest --integration --benchmark sdk/python/tests
56+
FEAST_USAGE=False IS_TEST=True pytest --integration --benchmark --benchmark-autosave --benchmark-save-data sdk/python/tests
5757

5858
test-python:
5959
FEAST_USAGE=False IS_TEST=True pytest -n 8 sdk/python/tests

0 commit comments

Comments
 (0)