Skip to content

Make coverage dependency optional for tests#185

Closed
samuel-williams-shopify wants to merge 1 commit into
mainfrom
gaia-autopr-optional-coverage-dependency
Closed

Make coverage dependency optional for tests#185
samuel-williams-shopify wants to merge 1 commit into
mainfrom
gaia-autopr-optional-coverage-dependency

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor

TL;DR

Keep coverage tooling out of the default test bundle and install it only for the coverage workflow.

Context

While following CI for another change, the plain Test workflow failed before running io-event tests because it installed covered/ruby-coverage, even though that workflow does not produce coverage artifacts. The failures came from the coverage dependency installation on JRuby/Windows rather than from this project’s test suite.

The Test Coverage workflow is the only workflow that needs covered.

Changes

  • Move covered into an optional coverage Bundler group.
  • Load covered/sus only when COVERAGE is configured.
  • Opt the Test Coverage workflow into the optional coverage group with BUNDLE_WITH=coverage.

Tophatting

  • ruby -c config/sus.rb
  • ruby -c gems.rb
  • git diff --check

The default Test workflow does not produce coverage artifacts, but its bundle still installed covered and ruby-coverage. The latest ruby-coverage currently fails during installation on JRuby and Windows before io-event tests can run.

Move covered into an optional coverage bundle group and only load covered/sus when COVERAGE is configured. The coverage workflow opts into that group with BUNDLE_WITH=coverage, preserving coverage reporting while keeping the plain test matrix focused on io-event.
@samuel-williams-shopify samuel-williams-shopify deleted the gaia-autopr-optional-coverage-dependency branch June 15, 2026 09: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.

1 participant