Skip to content

Commit

Permalink
test code added to analyse the gethostbyname_ex problem under github …
Browse files Browse the repository at this point in the history
…runner
  • Loading branch information
Johannes Otepka committed Oct 27, 2023
1 parent 312ebb6 commit 56ca850
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/test-ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,19 @@ jobs:
hostname
echo "nslookup $env:computername"
nslookup $env:computername
echo "print hosts file:"
type c:\Windows\System32\Drivers\etc\hosts
echo "hostname - python code:"
python -c "import socket;print('hostname:',socket.gethostname());print('gethostbyname_ex:',socket.gethostbyname_ex(socket.gethostname()))"
echo "in docker container: hostname - python code:"
docker run ipyparallel-sshd python -c "import socket;print('hostname:','$env:computername');print('gethostbyname_ex:',socket.gethostbyname_ex('$env:computername'))"
echo "in docker container: print hosts file:"
docker run ipyparallel-sshd cmd.exe /C type c:\Windows\System32\Drivers\etc\hosts
echo "in docker container: nslookup $env:computername"
docker run ipyparallel-sshd nslookup $env:computername
echo "in docker container: ping jo"
docker run ipyparallel-sshd ping jo
#echo "print hosts file:"
#type c:\Windows\System32\Drivers\etc\hosts
#echo "in docker container: print hosts file:"
#docker run ipyparallel-sshd cmd.exe /C type c:\Windows\System32\Drivers\etc\hosts
- name: Set up slurm
if: ${{ matrix.cluster_type == 'slurm' }}
Expand Down
3 changes: 3 additions & 0 deletions ci/ssh/win_docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ services:
dockerfile: ci/ssh/win_Dockerfile
ports:
- "2222:22"
extra_hosts:
#just for testing
jo: 128.131.72.10

0 comments on commit 56ca850

Please sign in to comment.