test(testsuite): drop the devolutions-gateway dev-dependency
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 18/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- build-system, testing
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 162
- Fork
- 30
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 60
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Devolutions/devolutions-gateway
-
allow us to disable tls 1.1, 1.2Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Devolutions/devolutions-gateway#2047 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Devolutions/devolutions-gateway#1973 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Devolutions/devolutions-gateway#1930 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Devolutions/devolutions-gateway#1788 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Domain Account login issueĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
Devolutions/devolutions-gateway#1328 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Devolutions/devolutions-gateway
Issue tương tự
-
Stack overflow in `check bans` with `include-dependencies = true` and a dev-dependency cycleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
EmbarkStudios/cargo-deny#910 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tursodatabase/turso#10054 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
build: Update rust versionCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởdependencies
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
ibm-granite-community/granite-cli#229 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 2 ngày
-
setTargetAtTime booked ahead of time starts its curve early (values blow up before start_time)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
orottier/web-audio-api-rs#658 ·