Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

test(testsuite): drop the devolutions-gateway dev-dependency

Abierto
#2,090 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@CBenoit ya está trabajando en esto.

Desde el 16/10/2026.

  • #2101 de @CBenoit — abierto

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

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}; wires SessionManagerTask, recording_message_channel, and jmux::handle by 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.rs already 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 an AgentTunnel config 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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Devolutions/devolutions-gateway

Todos los issues de Devolutions/devolutions-gateway

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.