Skip to content

fix: add code coverage support and fix static site api proxy behavior#55

Merged
ncipollina merged 2 commits intomainfrom
fix/code-coverage-and-api-behavior
Feb 18, 2026
Merged

fix: add code coverage support and fix static site api proxy behavior#55
ncipollina merged 2 commits intomainfrom
fix/code-coverage-and-api-behavior

Conversation

@ncipollina
Copy link
Contributor

🚀 Pull Request

📋 Summary

This PR adds two key improvements:

  1. StaticSiteConstruct fix: The CloudFront API proxy was only adding a behavior for /api/* but not /api itself, which meant requests to the bare /api path were not being proxied to the backend. Both /api and /api/* behaviors now share the same origin and options.

  2. Code coverage support: Integrates Microsoft.Testing.Extensions.CodeCoverage into the test project and configures the CI pipeline to enforce an 80% coverage threshold. Adds global.json to configure the Microsoft.Testing.Platform runner.


✅ Checklist

  • My changes build cleanly
  • I've added/updated relevant tests
  • I've added/updated documentation or README
  • I've followed the coding style for this project
  • I've tested the changes locally (if applicable)

🧪 Related Issues or PRs

Closes #...


💬 Notes for Reviewers

  • The CI workflow temporarily references refactor/simplify-mtp-test-coverage on the devops-templates repo — this should be updated to a stable tag once that branch is merged.
  • The global.json only contains test runner config (not a SDK version pin), so it shouldn't affect build behavior.
  • AwesomeAssertions bumped to 9.4.0 as a minor update alongside the other dependency changes.

- Add /api CloudFront behavior alongside /api/* for proper API proxying
- Add Microsoft.Testing.Extensions.CodeCoverage package for test coverage
- Add global.json to configure Microsoft.Testing.Platform runner
- Enable code coverage in CI with 80% threshold
- Update AwesomeAssertions to 9.4.0
- Bump version to 2.1.5

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e88a363a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pin reusable workflow to immutable ref

Referencing the reusable workflow by branch name makes CI behavior non-deterministic, because any new commit (or branch deletion/force-push) on refactor/simplify-mtp-test-coverage will change or break this repo’s PR pipeline without any change here. Pinning to a tag or commit SHA avoids unexpected build regressions and keeps historical runs reproducible.

Useful? React with 👍 / 👎.

- Pin both build and pr-build workflows to devops-templates@v7.0
- Enable code coverage with 80% threshold in build.yaml
- Remove testDirectory param (no longer needed in v7.0)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ncipollina ncipollina merged commit 283e097 into main Feb 18, 2026
1 check passed
@ncipollina ncipollina deleted the fix/code-coverage-and-api-behavior branch February 18, 2026 20:41
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.

1 participant

Comments