File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed
python/installation_tests Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -264,11 +264,23 @@ jobs:
264
264
echo "ARCTICDB_STORAGE_GCP=${{ env.real_gcp }}" >> $GITHUB_ENV
265
265
echo "ARCTICDB_PERSISTENT_STORAGE_TESTS=1" >> $GITHUB_ENV
266
266
echo "ARCTICDB_WARN_ON_WRITING_EMPTY_DATAFRAME=0" >> $GITHUB_ENV
267
+
268
+ - name : Set environment variables based on arcticdb version for GCP
269
+ if : ${{ env.SKIP_JOB != 'true' }}
270
+ shell : bash -l {0}
271
+ run : |
272
+ version=$(python -c "import arcticdb; print(arcticdb.__version__)")
273
+ echo "Detected arcticdb version: $version"
267
274
268
- - name : Setup tmate session
269
- uses : mxschmitt/action-tmate@v3
270
- if : ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
271
-
275
+ # Compare version using sort -V
276
+ if [ "$(printf '%s\n' "$version" "5.6.0" | sort -V | head -n1)" = "$version" ]; then
277
+ echo "Setting AWS environment variables for arcticdb <= 5.6.0"
278
+ echo "AWS_RESPONSE_CHECKSUM_VALIDATION=when_required" >> $GITHUB_ENV
279
+ echo "AWS_REQUEST_CHECKSUM_CALCULATION=when_required" >> $GITHUB_ENV
280
+ else
281
+ echo "No need to set AWS environment variables"
282
+ fi
283
+
272
284
- name : Set ArcticDB Debug Logging
273
285
if : ${{ env.SKIP_JOB != 'true' && github.event_name == 'workflow_dispatch' && inputs.run_enable_logging }}
274
286
uses : ./.github/actions/enable_logging
@@ -306,6 +318,7 @@ jobs:
306
318
name : logs-${{ matrix.os || inputs.os }}-${{ matrix.python || inputs.python}}
307
319
path : |
308
320
./*test*
321
+ **/*.log
309
322
310
323
311
324
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ def pytest_runtest_makereport(item, call):
94
94
95
95
def pytest_terminal_summary (terminalreporter , exitstatus , config ):
96
96
import pytest_xfail
97
- pytest_xfail .pytest_terminal_summary (terminalreporter , exitstatus , config )
97
+ pytest_xfail .pytest_terminal_summary (terminalreporter , exitstatus )
98
98
99
- #endregion
99
+
100
+ #endregion
You can’t perform that action at this time.
0 commit comments