[bug] Local unit tests fail: missing `/etc/hosts` configuration on Linux machines
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- docker, nginx, python
- Ambito
- devops, networking, testing
Direzione di ricerca
Inizia con il target make runtests e confronta la sua configurazione con la pipeline CI, soprattutto nei punti in cui vengono aggiunte voci a /etc/hosts. Riproduci localmente i malfunzionamenti DNS, quindi verifica che il workflow di test locale esegua la configurazione degli hostname necessaria oppure la spieghi chiaramente, e riesegui gli unit test per confermare che abbiano esito positivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
Unit tests fail with DNS resolution errors when run locally with make runtests. The test suite attempts to connect to dashboard.openwisp.org and api.openwisp.org, but these hostnames are not resolvable on the developer's machine, causing Selenium WebDriver and HTTP requests to fail with net::ERR_NAME_NOT_RESOLVED and [Errno -2] Name or service not known errors.
The services are actually running and accessible (nginx is listening on 127.0.0.1:443), but the hostname resolution is missing from the local /etc/hosts file. The CI pipeline works because it explicitly adds these entries during test setup, but the local make runtests workflow does not.
Steps To Reproduce
Steps to reproduce the behavior:
- Clone the repository and set up the local environment
- Run the tests:
make runtests - Observe 10 out of 12 tests failing with DNS resolution errors
Expected behavior
All unit tests should pass, or at minimum provide clear guidance on required setup steps (like adding /etc/hosts entries).
Screenshots
N/A
System Information:
- OS: Fedora 42
- Docker version: 29.4.0
- Lingua principale
- Python
- Stelle
- 208
- Fork
- 126
- Merge medio
- 23h 58m
- PR unite (30g)
- 16
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openwisp/docker-openwisp
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
openwisp/docker-openwisp#683 ·
I maintainer di solito rispondono entro 1 giorno
-
[chores:gsoc26] Wire openwisp-firmware-upgrader's check_pending_upgrades into the docker-openwisp Beat scheduleForse di nuovo libera @Eeshu-Yadav l’ha presa 136 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement gsoc-idea
openwisp/docker-openwisp#623 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[feature:gsoc26] Add Docker support for InfluxDB 2.0 and Elasticsearch backendsForse già presa @pushpitkamboj l’ha presa 142 giorni fa. Apertadocker enhancement
openwisp/docker-openwisp#612 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
openwisp/docker-openwisp#569 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
openwisp/docker-openwisp#552 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di openwisp/docker-openwisp
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PolicyEngine/policyengine-us#10262 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
kellyjonbrazil/jc#788 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
`/search.json` ignores the documented `editions.sort` parameterForse già presa @PranavD2905 l’ha presa oggi. ApertaAffects: Server Good First Issue Module: Solr Needs: Triage Theme: Public APIs Theme: Search
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
internetarchive/openlibrary#13989 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug P2: misleading query
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
jeffknupp/association#478 ·