You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests: Add portable CLI contracts for the Rust port - #304
Add a Python/pytest suite that checks observable behavior against a real shell executable. The same cases can run against the C# reference and a future Rust build without changing the assertions.
Mirror selected xUnit behavior in portable contracts and link cases to their source tests. Keep the original xUnit assertions for the official OneBranch pipeline, which does not yet run the portable suite.
Cover all built-in commands except jq: 46 have successful invocations, and edit verifies the noninteractive error and absence of file creation. Emulator fixtures seed and verify item mutations independently through the Python Cosmos SDK.
Run offline and emulator profiles in CI. Include coverage from Python-launched C# shell processes; publish combined coverage only when both collectors succeed.
Emulator CI stability
Pin the Linux preview emulator to the exact image digest verified in #305 and block startup package updates that replace modules under running PostgreSQL (Azure/azure-cosmos-db-emulator-docker#390). Keep the .NET tests, both portable emulator profiles, and all assertions enabled.
Introduce a Python runner with strict output comparisons, shared offline and emulator cases, independent fixtures, and migration tracking. Wire CI and document the cross-implementation testing workflow while retaining existing C# coverage.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Exercise filter behavior through the executable so the Rust port can run the same cases. Track removed xUnit methods and validate their replacement case links.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Exercise the seven output-only scenarios through the shell executable. Cover optional property access on scalar input and retain a C# check for ShellJson normalization before rendering.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Exercise redirection, script arguments, help and filter behavior through the executable while retaining internal type and parser checks in xUnit. Collect coverage from the Python-launched shell alongside the solution tests.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add successful invocations where possible and verify that edit refuses noninteractive use without creating files. Tighten structured output assertions and publish combined coverage only when both collectors succeed.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The contract tests do not reliably enforce English application UI culture, and emulator validation accepts hosts unsupported by the reference shell, risking false failures and connection or authentication errors.
Resolve the RID-specific shell assembly through MSBuild, pin application UI language independently of the host, and match the reference emulator host list. Addresses review and CI failures in PR #304.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Startup crashes when English is forced under invariant globalization, and the German integration case fails on clean builds that lack the generated German catalog.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Explicit English UI-language selection crashes startup in the documented invariant-globalization mode, and the official pipeline omits the migrated behavioral checks.
The replacement theory checks only CLR result types; the value assertions now run exclusively in pytest. However, .pipelines/CosmosDB-Shell-Official.yml:170–175 still runs only solution tests, and no step in that pipeline invokes the portable suite. Consequently the official build loses the migrated behavioral checks (including sorting, containment, and path results), even though GitHub Actions runs their replacements. Please add the offline contracts to the official pipeline, or retain the value assertions until that entry point runs the replacements.
Keep the portable contracts alongside the original xUnit assertions until the official OneBranch pipeline runs both suites. Addresses the review overview in PR #304.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human judgment is needed to weigh an unpublished documentation nit that causes the offline CLI examples to require a connection instead of producing the expected JSON.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The contract checks allow malformed error diagnostics and incorrect or additional numeric output to pass, weakening their ability to detect compatibility regressions.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because the JSONL comparator can reject valid records containing legal Unicode line separators, producing serialization-dependent results.
Use the preview image verified by PR #305 and prevent startup package updates from replacing PostgreSQL modules. Keep all test profiles and assertions enabled.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The offline review could not verify restoration of dotnet-coverage 18.12.0 from OneBranch’s exclusive CosmosDB_PublicPackages feed or child-process coverage collection in Windows CI.
Resolve emulator image and contributor documentation conflicts while preserving portable contract jobs and all test expectations.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
CI must verify profiler coverage collection across child processes, merged product hits, and dotnet-coverage 18.12.0 restoration from OneBranch’s restricted feed, none of which could be confirmed in this dependency-free review.
The reason will be displayed to describe this comment to others. Learn more.
🟢 Approval recommended
There are no active review issues blocking the portable CLI contract testing changes.
No open issues 🎉
Review effort: Balanced
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
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
jq: 46 have successful invocations, andeditverifies the noninteractive error and absence of file creation. Emulator fixtures seed and verify item mutations independently through the Python Cosmos SDK.Emulator CI stability
Pin the Linux preview emulator to the exact image digest verified in #305 and block startup package updates that replace modules under running PostgreSQL (Azure/azure-cosmos-db-emulator-docker#390). Keep the .NET tests, both portable emulator profiles, and all assertions enabled.