Integrate SQL-cov and SARIF reporting into CI#154
Open
cuzzo wants to merge 46 commits into
Open
Conversation
…ineage UI - Add compiler/ to RELATIVE_ROOTS and stack trace normalizer markers so compiler coverage and stack trace paths are correctly resolved. - Implement partial coverage background styling when line annotations contain dark arms. - Fix CSS swap bug where mode-coverage and mode-churn highlights were using each other's CSS variables. - Add cargo unit test verifying coverage_background renders correct colors for partial coverage. Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…ounds in gutter - Update SlopCop rollup and report to preserve and include start/end columns/lines for dark arm findings - Update lineage coverage_background to only paint gutter in partial coverage color and keep source background green - Swap gutter highlights variable mapping in app.css so gutter shows churn under coverage mode and vice-versa - Ingest Ruby spec mutant data for compiler/ruby Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
- Add tools/mutants/go_mutants.rb to scan, mutate, run tests, and generate mutant-facts JSON for Go code - Ingest boobytrap Go mutants into lineage database Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
- Only show partial coverage styles for lines that are actually covered - Add ClearParser to mutant subject matrix and run its specs - Ingest ClearParser mutants (4701 kills) into the database Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
… paths - Update codecov.yml to track compiler/ instead of src/ - Update tools/generate_generalized_gem_sarif.rb to integrate nil-kill aggregation evidence - Update fuzz mutant patch files to target compiler/ruby/ paths instead of src/ Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
- Add tools/lineage_build_db.sh to automate the full test suite run, mutant generation, and database ingestion - Style verified concurrency hazards with a deep green rail in the UI gutter Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…/multi-type coverage Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
… and add post-commit update script Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
… coverage generation Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…ize import discovery Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…on folding, and private function layer controls Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…bar, and conditional percent coloring Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…aders Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…igh Complexity Functions in Lineage UI Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…alier complexity metrics Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…ctor and expand multi-language tests Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…ions in Big-O tests Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…azards are present Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…/CTE recursion, and JOIN ON telemetry - Implement schema-aware nullability for coverage. Refactor nullability logic from hazard.rs into a shared nullability.rs module and pass SchemaCatalog to analyze_sql. - Implement subquery and CTE recursion by recursively traversing AST select/query blocks and generating separate TelemetryDomain objects, while avoiding recursing into subqueries for the parent query's expression collection. - Add correlation checks to filter out correlated subquery predicates from standalone telemetry queries. - Implement JOIN ON telemetry via CROSS JOIN pre-join candidate-pair evaluation. - Clean up unused imports and variables, and update tests. Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…spalier - Add Getting Started, Prerequisites, Installation instructions. - Detail CLI output formats (JSON, LCOV, HTML, SARIF). - Update supported dialects roadmap to show complete coverage for SQLite, Postgres, MySQL. - Define boundaries and CI integration strategies. Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
- Create tools/generate_sql_cov_sarif.rb to run sql-cov hazards on all project queries - Add sql-cov build, scanning, and SARIF upload to .github/workflows/ci.yml - Add detailed CI setup documentation to gems/sql-cov/README.md - Add sql-cov project reference to gems/README.md - Expand tests in uncovered_paths.rs and cli.rs to achieve 85.8% overall code coverage Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## self-host-i #154 +/- ##
==============================================
Coverage ? 76.32%
==============================================
Files ? 361
Lines ? 106867
Branches ? 20669
==============================================
Hits ? 81571
Misses ? 21918
Partials ? 3378
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
| fields.each { |field| nodes << state_node(field, root) } | ||
|
|
||
| nodes_by_id = nodes.to_h { |node| [node["id"], node] } | ||
| method_by_id = methods.to_h { |method| [method["id"], method] } |
| when "O(N)" then 10 | ||
| when "O(log N)" then 5 | ||
| when "O(1)" then 1 | ||
| else 1 |
- Add `--sqlfluff` and `--sqlfluff-sarif` options to `sql-cov hazards` CLI - Parse, merge, and classify SQLFluff findings by tiers (T1, T2, T3) in output SARIF - Update generate_sql_cov_sarif.rb to run sql-cov with SQLFluff integration - Install SQLFluff and configure it in GitHub Actions CI pipeline Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
- Assign stable, unique hexadecimal hashes to each HazardFinding - Add generate-check CLI subcommand to output diagnostic queries for nullable columns - Output alternate DDL statements to alter columns to NOT NULL on Postgres and MySQL - Document the generate-check command and schema hardening notes in README.md - Add unit test coverage for target column extraction logic Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
…ase coverage Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
Co-authored-by: gemini-cli <218195315+gemini-cli@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR integrates SQL-cov hazard and three-valued logic checking into the GitHub Actions CI pipeline, exports findings in SARIF format, and updates SQL-cov test coverage to 85.8%.