Skip to content

fix: gate Azure Monitor profiler on supported platforms - #1265

Merged
BenjaminMichaelis merged 2 commits into
mainfrom
benjaminmichaelis/fix-mac-startup
Aug 7, 2026
Merged

fix: gate Azure Monitor profiler on supported platforms#1265
BenjaminMichaelis merged 2 commits into
mainfrom
benjaminmichaelis/fix-mac-startup

Conversation

@BenjaminMichaelis

Copy link
Copy Markdown
Member

macOS startup currently fails because the Azure Monitor profiler is registered unconditionally even though that component only supports Windows and Linux. This change keeps Azure Monitor export enabled cross-platform while avoiding profiler registration on unsupported platforms.

It also adds a small macOS GitHub Actions smoke workflow so restore, build, and test run on macos-latest for pull requests and merge groups. That gives us lightweight platform coverage for this class of regression without changing the existing Ubuntu-focused CI path.

What changed

  • gate AddAzureMonitorProfiler() behind a Windows/Linux platform check
  • keep the existing Azure Monitor and OTLP branching behavior intact
  • add a dedicated macOS workflow that runs restore, frontend dependency install, build, and test

Notes

  • the new workflow uses /p:AccessToNugetFeed=false to match the repo's public CI behavior
  • this is intentionally a smoke path, not a full duplicate of the main PR workflow

Add a platform check before registering the Azure Monitor profiler so the app can start on macOS. Also add a lightweight macOS GitHub Actions workflow that restores, builds, and tests the solution to catch future platform regressions.
@BenjaminMichaelis

Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

…-mac-startup

# Conflicts:
#	EssentialCSharp.Web/Program.cs

Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Merge conflicts resolved in commit 8a10285. The conflict in Program.cs was keeping the profilerSkippedUnsupportedPlatform tracking variable that origin/main introduced (used later to log a warning when the profiler is skipped on unsupported platforms).

@BenjaminMichaelis
BenjaminMichaelis merged commit 5140573 into main Aug 7, 2026
8 checks passed
@BenjaminMichaelis
BenjaminMichaelis deleted the benjaminmichaelis/fix-mac-startup branch August 7, 2026 09:05
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