Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
baptistecolle committed Dec 2, 2024
1 parent 019a7d4 commit fcb2cd6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/debug-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,16 @@ jobs:
RESPONSE=$(curl -s "http://metadata.google.internal/computeMetadata/v1/instance/image" -H "Metadata-Flavor: Google")
echo "Status code: $STATUS_CODE"
echo "Metadata response: $RESPONSE"
if [ "$STATUS_CODE" -ne 200 ]; then
echo "Failed to fetch instance image metadata"
exit 1
fi
STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" "http://metadata.google.internal/computeMetadata/v1/instance/attributes/tpu-env" -H "Metadata-Flavor: Google")
RESPONSE=$(curl -s "http://metadata.google.internal/computeMetadata/v1/instance/attributes/tpu-env" -H "Metadata-Flavor: Google")
echo "Status code: $STATUS_CODE"
echo "Metadata response: $RESPONSE"
if [ "$STATUS_CODE" -ne 200 ]; then
echo "Failed to fetch TPU environment metadata"
exit 1
fi

0 comments on commit fcb2cd6

Please sign in to comment.