Skip to content

v0.2.10

Choose a tag to compare

@natevick natevick released this 08 Oct 02:34
· 41 commits to main since this release
d6a3a14

What's Changed

Full Changelog: v0.2.9...v0.2.10

CHANGELOG

  • Add test maps for test selection. When a suite enables selection, the server asks runners for a content-hash snapshot of the repository (git ls-tree, plus hashes of uncommitted edits to tracked files) with the manifest, and on recording runs each test is traced and a fragment uploaded to /test_maps/fragments after the run closes. Runners advertise test_map=record|select|0.
  • Add the optional selective_tracer native extension: global line/call/block and allocation hooks that record the project files each test executes, on every thread. Without it (no compiler, unsupported Ruby) the runner can still run selected subsets but can't record.
  • Add SELECTIVE_TEST_MAP_RECORD=1 (force this run to record a map) and SELECTIVE_TEST_MAP_DISABLE=1 (take no part in selection), plus SELECTIVE_TEST_MAP_IGNORE (extra comma-separated directories the tracer ignores).
  • Test map fragments are uploaded from a child Ruby process without Bundler's environment, so WebMock, VCR and other HTTP stubs loaded by the suite can't block the upload.
  • Installing the gem now needs make, since it carries a native extension. The tracer is compiled once while configuring, and any failure there (no C compiler, unsupported Ruby, compile error) installs without it rather than failing the install.
  • selective exec no longer requires the CI environment variables: the runner id and logger are resolved when a run starts, not in the constructor.
  • Fix the Gemfile's sibling-repo check to resolve relative to the Gemfile instead of the current directory.

Published to rubygems.org: https://rubygems.org/gems/selective-ruby-core/versions/0.2.10