test(runtimes): add validate() branch coverage in runtime extensions#518
Draft
Copilot wants to merge 2 commits into
Draft
test(runtimes): add validate() branch coverage in runtime extensions#518Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/9568a265-a2fd-4403-90d2-456246734c24 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add unit tests for validate() in runtime extensions
test(runtimes): add validate() branch coverage in runtime extensions
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
validate()branch coverage was missing for runtime extensions despite integration coverage being present, leaving user-facing error/warning paths unprotected (especially dotnetglobal.jsonconflict handling).This PR adds focused runtime-local unit tests to close those gaps for Python, Node, Dotnet, and Lean.
Python runtime (
src/runtimes/python/extension.rs)validate()branches:config+feed-urlmutual exclusion errorNode runtime (
src/runtimes/node/extension.rs)validate()structure.Dotnet runtime (
src/runtimes/dotnet/extension.rs)validate()branches, including filesystem-dependent behavior:config+feed-urlmutual exclusion errorGLOBAL_JSON_SENTINELbypass behaviorglobal.jsonconflict error when explicit version is setglobal.jsonexistsLean runtime (
src/runtimes/lean/extension.rs)Test plan
#[cfg(test)].validate()warning/error branches and dotnet’s compile-dirglobal.jsonconflict/sentinel paths.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
spsprodeus21.vssps.visualstudio.com/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-3136f96127ec4700 /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-3136f96127ec4700 /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/mcp_http_tests-a585c248149668b/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/cli_tests-beb8db084d5b4f75.397kr33b076uzi2xz4x5q7l6j.1anmsf2.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/mcp_http_tests-a585c248149668b/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/cli_tests-beb8db084d5b4f75.3g161rdlnjehcpwpw89b0e4hh.1anmsf2.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/mcp_http_tests-a585c248149668b/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/cli_tests-beb8db084d5b4f75.3l7dluq3jl4z2twkxwf9mvx2m.1anmsf2.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/mcp_http_tests-a585c248149668b/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/cli_tests-beb8db084d5b4f75.3lplfaqdlklqw91syat1plde8.1anmsf2.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/mcp_http_tests-a585c248149668b/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/cli_tests-beb8db084d5b4f75.41odaej9mh5sn77m2rjar50im.1anmsf2.rcgu.o b.0r646wzmnsrf1n7bytgpjb88a.1bx9plx.rcgu.o b.16orrtqskzez1g32onkzo83vi.1bx9plx.rcgu.o b.1778bbhi7e5hkxaw5nl1jqruj.1bx9plx.rcgu.o b.1d0ck9rxo25a7fxofg624u1by.1bx9plx.rcgu.o b.1f2g58qoyjih3du0x8xvtchxj.1bx9plx.rcgu.o b.1fqoi34wyqfk8dycd0vt29s1l.1bx9plx.rcgu.o b.1gcl7iytxntv7nljmqu8h11yy.1bx9plx.rcgu.o b.1hvsrjg564se9k6i84zx4n18m.1bx9plx.rcgu.o b.1i2kcjxs7gl6ur6hcoftevybq.1bx9plx.rcgu.o b.1qpf12qtkcfjtw9v1g6hgjcfy.1bx9plx.rcgu.o b.29rij194caixrejrzzqv6vmwq.1bx9plx.rcgu.o b.29uzncd9tg5t8napfpq6fkqbj.1bx9plx.rcgu.o b.2ebd6nvh5wzvfmehs50rq2co0.1bx9plx.rcgu.o b.2elgnmxzag0hdgy2uim9a8e7p.1bx9plx.rcgu.o(dns block)/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-3136f96127ec4700 /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-3136f96127ec4700 --crate-type bin --emit=dep-info,metadata -C embed-bitcode=no r01x2wfhr8u6zfbco5x.1mrnmaw.rcgu.o baolq8s6dtp36pv118k.1mrnmaw.rcgu.o 3xt3oko0307bv66tf7a.1mrnmaw.rcgu.o wapcm2t4on72phdpq7t.1mrnmaw.rcgu.o 6x65nnhs7e3xbeubhid.1mrnmaw.rcgu.o o0qw3tdc692gmd810vl.1mrnmaw.rcgu.o 7ywqx6da6h6q5fcwyko.1mrnmaw.rcgu.o v54s6r7lwu4wtglvnxv.1mrnmaw.rcgu.o 85utdyjlmwoda29gqkl.1mrnmaw.rcgu.o vmp24pk9lw48jwzoyza.1mrnmaw.rcgu.o xh2rndctintoeseurhp.1mrnmaw.rcgu.o vp74eeff6oo6lc8naoc.1mrnmaw.rcgu.o l7sc6ux8ue2xzhg9ofv.1mrnmaw.rcgu.o 5vgauemxcmd2ymzjvfw.1mrnmaw.rcgu.o(dns block)spsprodweu4.vssps.visualstudio.com/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-3136f96127ec4700 /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-3136f96127ec4700 /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/mcp_http_tests-a585c248149668b/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/cli_tests-beb8db084d5b4f75.397kr33b076uzi2xz4x5q7l6j.1anmsf2.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/mcp_http_tests-a585c248149668b/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/cli_tests-beb8db084d5b4f75.3g161rdlnjehcpwpw89b0e4hh.1anmsf2.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/mcp_http_tests-a585c248149668b/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/cli_tests-beb8db084d5b4f75.3l7dluq3jl4z2twkxwf9mvx2m.1anmsf2.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/mcp_http_tests-a585c248149668b/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/cli_tests-beb8db084d5b4f75.3lplfaqdlklqw91syat1plde8.1anmsf2.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/mcp_http_tests-a585c248149668b/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/cli_tests-beb8db084d5b4f75.41odaej9mh5sn77m2rjar50im.1anmsf2.rcgu.o b.0r646wzmnsrf1n7bytgpjb88a.1bx9plx.rcgu.o b.16orrtqskzez1g32onkzo83vi.1bx9plx.rcgu.o b.1778bbhi7e5hkxaw5nl1jqruj.1bx9plx.rcgu.o b.1d0ck9rxo25a7fxofg624u1by.1bx9plx.rcgu.o b.1f2g58qoyjih3du0x8xvtchxj.1bx9plx.rcgu.o b.1fqoi34wyqfk8dycd0vt29s1l.1bx9plx.rcgu.o b.1gcl7iytxntv7nljmqu8h11yy.1bx9plx.rcgu.o b.1hvsrjg564se9k6i84zx4n18m.1bx9plx.rcgu.o b.1i2kcjxs7gl6ur6hcoftevybq.1bx9plx.rcgu.o b.1qpf12qtkcfjtw9v1g6hgjcfy.1bx9plx.rcgu.o b.29rij194caixrejrzzqv6vmwq.1bx9plx.rcgu.o b.29uzncd9tg5t8napfpq6fkqbj.1bx9plx.rcgu.o b.2ebd6nvh5wzvfmehs50rq2co0.1bx9plx.rcgu.o b.2elgnmxzag0hdgy2uim9a8e7p.1bx9plx.rcgu.o(dns block)/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-3136f96127ec4700 /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-3136f96127ec4700 --crate-type bin --emit=dep-info,metadata -C embed-bitcode=no r01x2wfhr8u6zfbco5x.1mrnmaw.rcgu.o baolq8s6dtp36pv118k.1mrnmaw.rcgu.o 3xt3oko0307bv66tf7a.1mrnmaw.rcgu.o wapcm2t4on72phdpq7t.1mrnmaw.rcgu.o 6x65nnhs7e3xbeubhid.1mrnmaw.rcgu.o o0qw3tdc692gmd810vl.1mrnmaw.rcgu.o 7ywqx6da6h6q5fcwyko.1mrnmaw.rcgu.o v54s6r7lwu4wtglvnxv.1mrnmaw.rcgu.o 85utdyjlmwoda29gqkl.1mrnmaw.rcgu.o vmp24pk9lw48jwzoyza.1mrnmaw.rcgu.o xh2rndctintoeseurhp.1mrnmaw.rcgu.o vp74eeff6oo6lc8naoc.1mrnmaw.rcgu.o l7sc6ux8ue2xzhg9ofv.1mrnmaw.rcgu.o 5vgauemxcmd2ymzjvfw.1mrnmaw.rcgu.o(dns block)If you need me to access, download, or install something from one of these locations, you can either: