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 437396c commit 2ad82ac
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 32 deletions.
65 changes: 34 additions & 31 deletions .github/workflows/debug-metadata.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,45 @@
# name: Debug Metadata
name: Debug Metadata

# on:
# push:
on:
push:

# concurrency:
# group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
# cancel-in-progress: true
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

# jobs:
# integration-tests:
# name: Run TGI Integration Tests
# runs-on:
# group: gcp-ct5lp-hightpu-8t
jobs:
integration-tests:
name: Run TGI Integration Tests
runs-on:
group: gcp-ct5lp-hightpu-8t

# steps:
# - name: Install DNS utilities
# run: |
# sudo apt-get update -y
# sudo apt-get install -y dnsutils iputils-ping curl
steps:
- name: Install DNS utilities
run: |
sudo apt-get update -y
sudo apt-get install -y dnsutils iputils-ping curl

# - name: Debug metadata
# run: |
# echo "nslookup metadata.google.internal"
# nslookup metadata.google.internal
- name: Debug metadata
run: |
echo "nslookup metadata.google.internal"
nslookup metadata.google.internal
# echo "ping -c 3 metadata.google.internal"
# ping -c 3 metadata.google.internal
echo "ping -c 3 metadata.google.internal"
ping -c 3 metadata.google.internal
# echo "ping -c 3 169.254.169.254"
# ping -c 3 169.254.169.254
echo "ping -c 3 169.254.169.254"
ping -c 3 169.254.169.254
# echo "Get the IP address of metadata.google.internal using getent"
# # Get the IP address of metadata.google.internal using getent
# METADATA_IP=$(getent hosts metadata.google.internal | awk '{ print $1 }')
# echo "Metadata server IP address: ${METADATA_IP}"
echo "Get the IP address of metadata.google.internal using getent"
# Get the IP address of metadata.google.internal using getent
METADATA_IP=$(getent hosts metadata.google.internal | awk '{ print $1 }')
echo "Metadata server IP address: ${METADATA_IP}"
# echo "curl -s http://metadata.google.internal/computeMetadata/v1/instance/image -H Metadata-Flavor: Google"
# # Try to access the metadata server
# curl "http://metadata.google.internal/computeMetadata/v1/instance/image" -H "Metadata-Flavor: Google"
echo "curl -s http://metadata.google.internal/computeMetadata/v1/instance/image -H Metadata-Flavor: Google"
# Try to access the metadata server
curl "http://metadata.google.internal/computeMetadata/v1/instance/image" -H "Metadata-Flavor: Google"
curl "http://metadata.google.internal/computeMetadata/v1/instance/attributes/tpu-env" -H "Metadata-Flavor: Google"
2 changes: 1 addition & 1 deletion .github/workflows/test-pytorch-xla-tpu-tgi-integration.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Optimum TPU / Test TGI on TPU / Integration Tests

on:
push:
# push:
pull_request:
branches: [ main ]
paths:
Expand Down

0 comments on commit 2ad82ac

Please sign in to comment.