Skip to content

Fix inigo on windows for sidecar codependency tests#1136

Merged
ameowlia merged 2 commits into
developfrom
sidecar-codependency-bug
May 26, 2026
Merged

Fix inigo on windows for sidecar codependency tests#1136
ameowlia merged 2 commits into
developfrom
sidecar-codependency-bug

Conversation

@geofffranks
Copy link
Copy Markdown
Contributor

Summary

Fixes inigo on windows

Backward Compatibility

Breaking Change? no

Replaces syscall.Kill usage with cross-platform panic approach to
simulate SIGABRT behavior. On Windows, syscall.Kill is not available,
so using panic provides consistent abnormal termination behavior
across platforms.

Changes:
- Remove syscall import and usage from fake apps
- Use panic() for exit code 134 (SIGABRT simulation)
- Update unit tests to expect panic exit code (2) instead of
  platform-specific SIGABRT codes
- Maintains cross-platform compatibility for Windows builds

The panic approach provides equivalent abnormal termination behavior
as SIGABRT while working on all supported platforms.

Made-with: Cursor
Adds cross-platform support to resolve multiple Windows compatibility
issues in the codependency integration tests:

Cross-platform build configuration:
- Detect target platform and build appropriate binaries
- Use .exe suffix on Windows, no suffix on Linux
- Apply static linking flags only for Linux builds
- Build Windows binaries for Windows containers, Linux for Linux containers

Cross-platform shell commands:
- Use cmd.exe /C on Windows instead of sh -c
- Handle different command syntax between platforms
- Support both Windows and Unix shell environments

Cross-platform paths and permissions:
- Use C:\temp on Windows instead of /tmp
- Handle Windows vs Unix path separators correctly
- Skip Unix file permissions (chmod) on Windows
- Cross-platform file path construction

These changes ensure the integration tests work correctly on both
Windows and Linux/macOS development environments while targeting
the appropriate container platform for each OS.

Made-with: Cursor
@geofffranks geofffranks requested a review from a team as a code owner May 26, 2026 15:34
@ameowlia ameowlia merged commit 10e7ca3 into develop May 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants