Test Eclipse Updates Site with External DNS Check #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Eclipse Updates Site with External DNS Check | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 6 * * *" | |
workflow_dispatch: | |
jobs: | |
test-download: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Required Tools | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y curl | |
# this will cause DNS resolution and we want it to be essential part of the test on cold caches | |
- name: Perform HTTP GET Request with Timing | |
run: | | |
echo "####################### Test 1 ##########################" | |
curl -v -o /dev/null -s -w "DNS Lookup: %{time_namelookup}s\nConnect: %{time_connect}s\nStart Transfer: %{time_starttransfer}s\nTotal Time: %{time_total}s\n" https://download.eclipse.org/eclipse/updates/4.35-I-builds | |
echo | |
echo "####################### Test 2 ##########################" | |
curl -v -o /dev/null -s -w "DNS Lookup: %{time_namelookup}s\nConnect: %{time_connect}s\nStart Transfer: %{time_starttransfer}s\nTotal Time: %{time_total}s\n" https://download.eclipse.org/eclipse/updates/4.35-I-builds/ | |
echo | |
echo "####################### Test 3 ##########################" | |
curl -v -o /dev/null -s -w "DNS Lookup: %{time_namelookup}s\nConnect: %{time_connect}s\nStart Transfer: %{time_starttransfer}s\nTotal Time: %{time_total}s\n" https://download.eclipse.org/eclipse/updates/4.35-I-builds/I20250120-1800/plugins/org.eclipse.jface.text_3.27.0.v20250120-1631.jar | |
- name: Check if systemd-resolved is active | |
run: | | |
echo "Checking systemd-resolved status:" | |
systemctl is-active systemd-resolved || echo "systemd-resolved is not active" | |
- name: Display DNS configuration from systemd-resolved | |
if: success() # Only if systemd-resolved is active | |
run: | | |
echo "DNS configuration from systemd-resolved:" | |
resolvectl status || systemd-resolve --status | |
- name: Display fallback resolv.conf | |
run: | | |
echo "Contents of /etc/resolv.conf:" | |
cat /etc/resolv.conf | |
- name: Test DNS resolution | |
run: | | |
echo "Testing DNS resolution for github.com:" | |
nslookup github.com | |
- name: Display network interfaces | |
run: | | |
echo "Displaying network interface configuration:" | |
ip addr show | |
- name: Check DNS Using Google DNS API | |
run: | | |
echo "Checking DNS resolution using Google DNS API..." | |
curl -s "https://dns.google/resolve?name=download.eclipse.org" | jq | |
- name: Check DNS Using Cloudflare DNS API | |
run: | | |
echo "Checking DNS resolution using Cloudflare DNS API..." | |
curl -s "https://cloudflare-dns.com/dns-query?name=download.eclipse.org&type=A" -H "accept: application/dns-json" | jq | |