Skip to content

fix: add Windows build tags for proxy package#2030

Merged
schnie merged 1 commit intomainfrom
stub-portless-windows
Mar 5, 2026
Merged

fix: add Windows build tags for proxy package#2030
schnie merged 1 commit intomainfrom
stub-portless-windows

Conversation

@schnie
Copy link
Member

@schnie schnie commented Mar 5, 2026

Summary

  • The reverse proxy feature (feat: built-in reverse proxy for multi-instance local development #2026) introduced Unix-only syscalls (Setpgid, Kill, Flock) in airflow/proxy that break the Windows build targets in goreleaser.
  • Adds //go:build !windows tag to daemon.go and extracts platform-specific functions (acquireLock, releaseLock, isPIDAlive) from routes.go into routes_unix.go.
  • Creates Windows stubs (daemon_windows.go, routes_windows.go) that make the proxy daemon unavailable on Windows while keeping the rest of the package functional.

Test plan

  • go build ./... passes on darwin/linux/windows
  • go test ./airflow/proxy/ passes
  • goreleaser cross-compilation succeeds for all targets (linux, darwin, windows × amd64, arm64, 386)

🤖 Generated with Claude Code

@schnie schnie requested a review from a team as a code owner March 5, 2026 21:24
@schnie schnie marked this pull request as draft March 5, 2026 21:27
@coveralls-official
Copy link

Pull Request Test Coverage Report for Build 883f4a05-7236-4131-81af-0333902b61c2

Details

  • 19 of 34 (55.88%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.01%) to 35.942%

Changes Missing Coverage Covered Lines Changed/Added Lines %
airflow/proxy/routes_unix.go 19 34 55.88%
Files with Coverage Reduction New Missed Lines %
docker/docker.go 2 42.31%
Totals Coverage Status
Change from base Build 43ace504-b43a-49ad-957b-a1dbb32daad3: 0.01%
Covered Lines: 24314
Relevant Lines: 67648

💛 - Coveralls

@schnie schnie marked this pull request as ready for review March 5, 2026 21:36
@schnie schnie merged commit 2c2394b into main Mar 5, 2026
6 of 7 checks passed
@schnie schnie deleted the stub-portless-windows branch March 5, 2026 22:26
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