Skip to content

More utilities for cover-float integration into act4#112

Merged
coreyqh merged 5 commits into
coreyqh:mainfrom
fourth-bit:act4integration
May 8, 2026
Merged

More utilities for cover-float integration into act4#112
coreyqh merged 5 commits into
coreyqh:mainfrom
fourth-bit:act4integration

Conversation

@fourth-bit
Copy link
Copy Markdown
Contributor

Lots of useful features here

  • A more intelligent build system that will not rebuild tests in repeated invocations of make all
  • Various levels of quiet flags
  • A mode that doesn't generate covervectors and readable vectors to be less wasteful when we do not need that information

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds utility features to the cover-float test generation workflow to better support integration/build usage (e.g., avoiding redundant regeneration, providing quiet modes, and supporting a processed-vectors-only output mode).

Changes:

  • Add incremental “skip regeneration” behavior for model outputs (and mark partial-output files) in testgen.
  • Add --quiet/-q levels and --only-processed-vectors CLI support, plus Makefile plumbing for these modes.
  • Reduce output generation in “processed-only” mode by suppressing covervector/readable-vector writes.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/cover_float/testgen/model.py Adds partial-output marker, introduces regeneration skipping based on mtimes/headers, and routes covervector output to devnull in RELEASE mode.
src/cover_float/scripts/postprocess.py Skips writing readable vectors in RELEASE mode while still generating processed CSVs.
src/cover_float/reference/impl.py Skips writing cover vectors to the cover output file in RELEASE mode.
src/cover_float/common/log.py Adds support for disabling progress rendering and suppressing progress updates based on logging level; adjusts exception logging call.
src/cover_float/common/constants.py Extends global Config (bool FULL_COVERAGE_TESTGEN, QUIET, RELEASE).
src/cover_float/cli.py Adds --quiet/-q and --only-processed-vectors, adjusts logging config, and tracks/skips model futures when no work is needed.
Makefile Adds PROCESSED_ONLY/SILENT flags, a processed-tests-only target, and expands clean to remove generated vector artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +128 to +132
cv_path = output_dir / "covervectors" / f"{model_name}_cv.txt"
cv_mod_time = cv_path.stat().st_mtime if cv_path.exists() else 0

source_mod_time = source_file.stat().st_mtime

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should be much better now

Comment thread src/cover_float/scripts/postprocess.py
Comment thread src/cover_float/cli.py Outdated
Comment thread src/cover_float/common/log.py Outdated
@coreyqh coreyqh merged commit 97dfc06 into coreyqh:main May 8, 2026
1 check 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