@@ -125,11 +125,13 @@ test-air-integration:
125125# -p 1: Run test packages sequentially to prevent rate limit issues
126126test-integration :
127127 @go clean -testcache
128- NYLAS_DISABLE_KEYRING=true \
129- NYLAS_TEST_RATE_LIMIT_RPS=$(NYLAS_TEST_RATE_LIMIT_RPS ) \
130- NYLAS_TEST_RATE_LIMIT_BURST=$(NYLAS_TEST_RATE_LIMIT_BURST ) \
131- NYLAS_TEST_BINARY=$(CURDIR ) /bin/nylas \
132- go test ./... -tags=integration -v -timeout 10m -p 1 2>&1 | tee test-integration.txt
128+ @bash -o pipefail -c ' \
129+ NYLAS_DISABLE_KEYRING=true \
130+ NYLAS_TEST_RATE_LIMIT_RPS=$(NYLAS_TEST_RATE_LIMIT_RPS ) \
131+ NYLAS_TEST_RATE_LIMIT_BURST=$(NYLAS_TEST_RATE_LIMIT_BURST ) \
132+ NYLAS_TEST_BINARY=$(CURDIR ) /bin/nylas \
133+ go test ./... -tags=integration -v -timeout 10m -p 1 2>&1 | tee test-integration.txt \
134+ '
133135
134136# Integration tests excluding slow LLM-dependent tests (for when Ollama is slow/unavailable)
135137# Runs: Admin, Timezone, AIConfig, CalendarAI (Basic, Adapt, Analyze working hours)
@@ -302,25 +304,30 @@ ci-full:
302304 @echo " ================================="
303305 @echo " Running Full CI Pipeline..."
304306 @echo " ================================="
305- @$(MAKE ) --no-print-directory ci 2>&1 | tee ci-full.txt
306- @echo " " | tee ci-full.txt
307- @echo " =================================" | tee ci-full.txt
308- @echo " Running Integration Tests..." | tee ci-full.txt
309- @echo " =================================" | tee ci-full.txt
310- @$(MAKE ) --no-print-directory test-integration 2>&1 | tee ci-full.txt
311- @$(MAKE ) --no-print-directory test-air-integration 2>&1 | tee ci-full.txt
312- @echo " " | tee ci-full.txt
313- @echo " =================================" | tee ci-full.txt
314- @echo " Cleaning up test resources..." | tee ci-full.txt
315- @echo " =================================" | tee ci-full.txt
316- @$(MAKE ) --no-print-directory test-cleanup 2>&1 | tee ci-full.txt
317- @echo " " | tee ci-full.txt
318- @echo " =================================" | tee ci-full.txt
319- @echo " ✓ Full CI pipeline completed!" | tee ci-full.txt
320- @echo " - All quality checks passed" | tee ci-full.txt
321- @echo " - All tests passed" | tee ci-full.txt
322- @echo " - Test resources cleaned up" | tee ci-full.txt
323- @echo " =================================" | tee ci-full.txt
307+ @: > ci-full.txt
308+ @bash -o pipefail -c ' \
309+ set -eu; \
310+ exec > >( tee -a ci-full.txt) 2>&1 ; \
311+ $(MAKE ) --no-print-directory ci; \
312+ echo " " ; \
313+ echo " =================================" ; \
314+ echo " Running Integration Tests..." ; \
315+ echo " =================================" ; \
316+ $(MAKE ) --no-print-directory test-integration; \
317+ $(MAKE ) --no-print-directory test-air-integration; \
318+ echo " " ; \
319+ echo " =================================" ; \
320+ echo " Cleaning up test resources..." ; \
321+ echo " =================================" ; \
322+ $(MAKE ) --no-print-directory test-cleanup; \
323+ echo " " ; \
324+ echo " =================================" ; \
325+ echo " ✓ Full CI pipeline completed!" ; \
326+ echo " - All quality checks passed" ; \
327+ echo " - All tests passed" ; \
328+ echo " - Test resources cleaned up" ; \
329+ echo " =================================" ; \
330+ '
324331 @echo " "
325332 @echo " Results saved to ci-full.txt"
326333
0 commit comments