Fix CI: Add DNS dependencies for performance test jobs

- Add dnspython and py3dns to performance test jobs
- Fixes ModuleNotFoundError: No module named 'DNS' in pyLibravatar
- Required for libravatar URL resolution in performance tests
This commit is contained in:
Oliver Falk
2025-10-24 10:15:54 +02:00
parent 5556f7bd9a
commit 13f580023b

View File

@@ -163,7 +163,7 @@ performance_tests_dev:
DEV_URL: "https://dev.libravatar.org" DEV_URL: "https://dev.libravatar.org"
before_script: before_script:
- apk add --no-cache curl - apk add --no-cache curl
- pip install requests Pillow prettytable pyLibravatar - pip install requests Pillow prettytable pyLibravatar dnspython py3dns
script: script:
- echo "Running performance tests against dev.libravatar.org..." - echo "Running performance tests against dev.libravatar.org..."
- python3 scripts/performance_tests.py --base-url $DEV_URL --concurrent-users 5 --output performance_dev.json - python3 scripts/performance_tests.py --base-url $DEV_URL --concurrent-users 5 --output performance_dev.json
@@ -187,7 +187,7 @@ performance_tests_prod:
PROD_URL: "https://libravatar.org" PROD_URL: "https://libravatar.org"
before_script: before_script:
- apk add --no-cache curl - apk add --no-cache curl
- pip install requests Pillow prettytable pyLibravatar - pip install requests Pillow prettytable pyLibravatar dnspython py3dns
script: script:
- echo "Running performance tests against libravatar.org..." - echo "Running performance tests against libravatar.org..."
- python3 scripts/performance_tests.py --base-url $PROD_URL --concurrent-users 3 --output performance_prod.json - python3 scripts/performance_tests.py --base-url $PROD_URL --concurrent-users 3 --output performance_prod.json
@@ -211,7 +211,7 @@ performance_tests_prod_manual:
PROD_URL: "https://libravatar.org" PROD_URL: "https://libravatar.org"
before_script: before_script:
- apk add --no-cache curl - apk add --no-cache curl
- pip install requests - pip install requests Pillow prettytable pyLibravatar dnspython py3dns
script: script:
- echo "Running manual performance tests against libravatar.org..." - echo "Running manual performance tests against libravatar.org..."
- python3 scripts/performance_tests.py --base-url $PROD_URL --concurrent-users 5 --output performance_prod_manual.json - python3 scripts/performance_tests.py --base-url $PROD_URL --concurrent-users 5 --output performance_prod_manual.json