test(testsuite): drop the devolutions-gateway dev-dependency
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- build-system, testing
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 162
- Fork
- 30
- Merge medio
- 1g 9h
- PR unite (30g)
- 60
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 Devolutions/devolutions-gateway
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Devolutions/devolutions-gateway#2047 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Devolutions/devolutions-gateway#1973 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Devolutions/devolutions-gateway#1930 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
Devolutions/devolutions-gateway#1788 ·
I maintainer di solito rispondono entro 1 giorno
-
Domain Account login issueAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
Devolutions/devolutions-gateway#1328 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Devolutions/devolutions-gateway
Issue simili
-
The book has a Nix install section that chelis.ch lacks, and it names two of the three systemsApertaarea:ecosystem documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Chelis-Lang/chelis#3866 ·
I maintainer di solito rispondono entro 1 giorno
-
bug documentation sev-0
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
dekobon/big-code-analysis#1620 ·
I maintainer di solito rispondono entro 3 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100