From 24202d635b2edc17ab8596864c7ea1749b9831f2 Mon Sep 17 00:00:00 2001 From: David Heryanto Date: Mon, 24 Feb 2020 17:26:07 +0800 Subject: [PATCH 1/2] Fix fastavro version used in feast to 0.22.9 --- sdk/python/setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/python/setup.py b/sdk/python/setup.py index d0b37ad9419..3fc77540c02 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -37,7 +37,9 @@ "pandavro==1.5.*", "protobuf>=3.10", "PyYAML==5.1.*", - "fastavro==0.*", + # fastavro 0.22.10 and newer will throw this error for e2e batch test: + # TypeError: Timestamp subtraction must have the same timezones or no timezones + "fastavro==0.22.9", "kafka-python==1.*", "tabulate==0.8.*", "toml==0.10.*", From 4958254ebdfb19298bbfd0e5adc8122b6ea03cfd Mon Sep 17 00:00:00 2001 From: David Heryanto Date: Mon, 24 Feb 2020 17:27:38 +0800 Subject: [PATCH 2/2] Print python packages version used when e2e test fails --- .prow/scripts/test-end-to-end-batch.sh | 3 +++ .prow/scripts/test-end-to-end.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.prow/scripts/test-end-to-end-batch.sh b/.prow/scripts/test-end-to-end-batch.sh index 268bd248c17..47da7219daa 100755 --- a/.prow/scripts/test-end-to-end-batch.sh +++ b/.prow/scripts/test-end-to-end-batch.sh @@ -255,6 +255,9 @@ if [[ ${TEST_EXIT_CODE} != 0 ]]; then echo "[DEBUG] Printing logs" ls -ltrh /var/log/feast* cat /var/log/feast-serving-warehouse.log /var/log/feast-core.log + + echo "[DEBUG] Printing Python packages list" + pip list fi cd ${ORIGINAL_DIR} diff --git a/.prow/scripts/test-end-to-end.sh b/.prow/scripts/test-end-to-end.sh index c436d2f6905..97d5d27b5cd 100755 --- a/.prow/scripts/test-end-to-end.sh +++ b/.prow/scripts/test-end-to-end.sh @@ -229,6 +229,9 @@ if [[ ${TEST_EXIT_CODE} != 0 ]]; then echo "[DEBUG] Printing logs" ls -ltrh /var/log/feast* cat /var/log/feast-serving-online.log /var/log/feast-core.log + + echo "[DEBUG] Printing Python packages list" + pip list fi cd ${ORIGINAL_DIR}