Skip to content

Add suppress_code_coverage flag for builds#3285

Merged
brentleyjones merged 4 commits intoMobileNativeFoundation:mainfrom
sebastianv1:sebastianv1/suppress-coverage-flag
Mar 6, 2026
Merged

Add suppress_code_coverage flag for builds#3285
brentleyjones merged 4 commits intoMobileNativeFoundation:mainfrom
sebastianv1:sebastianv1/suppress-coverage-flag

Conversation

@sebastianv1
Copy link
Contributor

This adds a build flag options to bypass the supported Xcode coverage builds with rules_xcodeproj. We would find this flag useful for 2 reasons:

  1. We have our own partially non-hermetic way to support coverage in Xcode as well and would like to opt-out of this flag.
  2. For some projects where we don't really need/want to support coverage, sometimes developers happen to flip this flag anyways and end up with suboptimal build times.

This just adds an opt-out flag in addition to the configured build setting so that we can choose whether or not the project should use the built-in coverage solution.

This can be enabled by adding --@rules_xcodeproj//xcodeproj:suppress_coverage_build to your builds.

@sebastianv1 sebastianv1 force-pushed the sebastianv1/suppress-coverage-flag branch 3 times, most recently from 423b01e to fbd55e5 Compare March 3, 2026 20:02
@sebastianv1 sebastianv1 marked this pull request as ready for review March 3, 2026 20:23
@sebastianv1 sebastianv1 requested a review from a team as a code owner March 3, 2026 20:23
Signed-off-by: sebastian.shanus <sebastian.shanus@robinhood.com>
@sebastianv1 sebastianv1 force-pushed the sebastianv1/suppress-coverage-flag branch from fbd55e5 to 3cc18d7 Compare March 6, 2026 17:24
Signed-off-by: sebastian.shanus <sebastian.shanus@robinhood.com>
@sebastianv1 sebastianv1 force-pushed the sebastianv1/suppress-coverage-flag branch 2 times, most recently from 85a5e27 to 2fa4d51 Compare March 6, 2026 17:31
Signed-off-by: sebastian.shanus <sebastian.shanus@robinhood.com>
@sebastianv1 sebastianv1 force-pushed the sebastianv1/suppress-coverage-flag branch from 2fa4d51 to d45ccac Compare March 6, 2026 17:44
@brentleyjones
Copy link
Contributor

Please also add a CHANGELOG.md entry.

Signed-off-by: sebastian.shanus <sebastian.shanus@robinhood.com>
@brentleyjones brentleyjones merged commit 49d8311 into MobileNativeFoundation:main Mar 6, 2026
7 of 11 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.

3 participants