Add cross-platform dev environment for local testing#77
Draft
McNultyyy wants to merge 2 commits into
Draft
Conversation
Introduces a unified scripts/dev-env.ps1 tool that supports all 5 platform + backend testing combinations: - Windows + in-memory - Windows + Windows emulator - Windows + Linux emulator (Docker) - Linux + in-memory (Docker) - Linux + Linux emulator (Docker) The script manages Docker container lifecycle (start/stop/status), provides an exec command for arbitrary Linux commands, and a test command that auto-starts required services before running tests. Also adds docker-compose.dev.yml defining the dev and emulator services, and removes the now-superseded test-linux.ps1. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Use network_mode: service:emulator for shared network namespace (replicates CI behavior where emulator is at localhost:8081) - Add Docker Compose profiles: standalone, with-emulator, emulator-only - Rename Start-Service to Start-DockerService to avoid PowerShell conflict - Fix exit code leak in status command from docker inspect - Mount host NuGet cache as fallback source for corporate proxy environments - Remove ports 10250-10256 (unnecessary with shared network namespace) - Only publish port 8081 for host access in emulator-only scenarios Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Cross-Platform Dev Environment
Adds Docker-based tooling for local cross-platform testing, enabling developers and AI agents to reproduce platform-specific CI failures without pushing to GitHub.
What's included
scripts/dev-env.ps1— Unified CLI with verbs:start,stop,status,exec,testdocker-compose.dev.yml— Docker Compose with profiles for standalone dev, with-emulator, and emulator-only modesCONTRIBUTING.md— Comprehensive cross-platform testing documentationAGENTS.md— AI agent workflow documentationtest-linux.ps1— Superseded by the new toolingThe 5 Scenarios
dev-env.ps1 test -Platform windows -Target inmemorydev-env.ps1 test -Platform windows -Target emulator-windowsdev-env.ps1 test -Platform windows -Target emulator-linuxdev-env.ps1 test -Platform linux -Target inmemorydev-env.ps1 test -Platform linux -Target emulator-linuxTesting performed
All scenarios tested locally:
Key technical decisions
network_mode: "service:emulator") — replicates CI behavior where emulator is accessible at localhost:8081run-tests.ps1— no duplication of test orchestration logic