test(testsuite): drop the devolutions-gateway dev-dependency
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 18/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- build-system, testing
Línea de trabajo
Start with testsuite/Cargo.toml and the three devolutions_gateway imports in testsuite/tests/cli/agent/tunnel.rs, testsuite/tests/agent_tunnel/kdc.rs and testsuite/tests/agent_tunnel/integration.rs, then check cli/dgw/kdc_proxy.rs for overlap with the KDC test. Done means no test file imports devolutions_gateway and the dev-dependency is removed while the suite still passes. Open PR #2101 already targets this issue, so coordinate with it before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The testsuite links the devolutions-gateway library target as a dev-dependency, which pulls axum, hyper, rustls, and the rest of the Gateway into the single test binary's build and link. That is the largest avoidable compile cost in the suite, and it also lets tests reconstruct Gateway internals in-process instead of driving the binary.
Current usages at origin/master:
testsuite/tests/agent_tunnel/integration.rs:devolutions_gateway::{recording, session, subscriber, target_addr, token, traffic_audit, upstream, jmux}; wiresSessionManagerTask,recording_message_channel, andjmux::handleby hand.testsuite/tests/agent_tunnel/kdc.rs:devolutions_gateway::{kdc_connector::KdcConnector, target_addr::TargetAddr}.testsuite/tests/cli/agent/tunnel.rs:devolutions_gateway::{target_addr::TargetAddr, token::...}for building token claims.
Proposed direction:
cli/agent/tunnel.rs: build claims as plain JSON; token validation is disabled in tests, so the Gateway types are not needed.agent_tunnel/kdc.rs:cli/dgw/kdc_proxy.rsalready covers the explicit-agent KDC path through the CLI (see #2068); check what remains unique here and move or drop it.agent_tunnel/integration.rs: identify which behaviours are reachable by starting the Gateway binary with anAgentTunnelconfig and a real or fake agent, and which need a__debug__knob; the remainder is unit-test material for#[cfg(test)]modules in the Gateway crate.
Once the usages are gone, remove devolutions-gateway from testsuite/Cargo.toml [dev-dependencies]. Policy context: testsuite/AGENTS.md (#2089).
[!NOTE]
Human-tuned, LLM-assisted content.
- Lenguaje dominante
- Rust
- Estrellas
- 162
- Forks
- 30
- Merge medio
- 1 d 1 h
- PR fusionados (30 d)
- 53
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Devolutions/devolutions-gateway
-
DVC: negotiation replies with the server's default capset instead of the downgraded onePosiblemente ocupada @thenextman la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
Devolutions/devolutions-gateway#2095 ·
Los mantenedores suelen responder en 1 día
-
DVC: heartbeat is an inactivity timer, not a periodic one; zero interval mishandledPosiblemente ocupada @thenextman la tomó hace 1 día. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
Devolutions/devolutions-gateway#2094 ·
Los mantenedores suelen responder en 1 día
-
DVC: `NOW_RDM_CAPABILITIES` error path sends no responsePosiblemente ocupada @thenextman la tomó hace 1 día. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 20/100
Devolutions/devolutions-gateway#2093 ·
Los mantenedores suelen responder en 1 día
-
DVC: incoming NOW messages are silently dropped when the input queue is fullPosiblemente ocupada @thenextman la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Devolutions/devolutions-gateway#2092 ·
Los mantenedores suelen responder en 1 día
-
allow us to disable tls 1.1, 1.2Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Devolutions/devolutions-gateway#2047 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Devolutions/devolutions-gateway
Issues similares
-
priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
storytold/photocraft#6759 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
area:logging documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
hugowis/open-fpv-sim#48 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
IngvarConsulting/unica#1537 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100