Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,14 @@ jobs:

- name: Cargo test -p dcap-artifact-retrieval Azure tests (non-blocking)
run: |
if ! curl -fsS -o /dev/null --connect-timeout 10 --max-time 20 https://global.acccache.azure.net/; then
echo "::warning title=Azure PCS unavailable::It looks like the Azure PCS is unavailable, skipping tests."
# Any HTTP answer (even 404 on the root) means the service is reachable.
# 000 = no connection/timeout, 5xx = service-side problem.
status=$(curl -sS -o /dev/null -w '%{http_code}' --connect-timeout 10 --max-time 20 \
https://global.acccache.azure.net/ || true)
if [ "$status" = "000" ] || [ "$status" -ge 500 ]; then
echo "::warning title=Azure PCS unavailable::Azure PCS unreachable (HTTP $status), skipping tests."
else
if ! cargo test --verbose --locked -p dcap-artifact-retrieval --features rustls-tls \
provisioning_client::azure::tests:: -- --ignored; then
echo "::warning title=Azure DCAP tests failed::Azure PCS tests failed (probably a service timeout). Not blocking CI; see the step log."
fi
cargo test --verbose --locked -p dcap-artifact-retrieval --features rustls-tls provisioning_client::azure::tests:: -- --ignored
fi

- name: Cargo test -p dcap-ql --features link
Expand Down
Loading