Tag Go test files in scan facts - #5
Merged
rdzehtsiar merged 2 commits intoJun 10, 2026
Merged
Conversation
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Qodana for RustIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
rdzehtsiar
marked this pull request as ready for review
June 10, 2026 16:05
rdzehtsiar
deleted the
codex/linear-mention-rdg-36-implement-processing-of-test-files
branch
June 10, 2026 16:40
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.
Motivation
*_test.go) as a distinct class of files because their churn, size, and branching often carry different risk semantics than production code.Description
_test.gofilenames with a newis_test_pathhelper and add anis_testboolean toFileAnalysisResultproduced byFileAnalyzerand the file-analysis options signature (file-local-v4-test-files).is_testflag through the storage pipeline by addingis_testcolumns to the database schema and runtimeALTER TABLEadditions forfile_analysis,file_facts, andfile_risk_scores, and by writing/readingis_testin theflush_batch,materialize_file_facts, andmaterialize_file_risk_scoresSQL paths.is_testvalue and store it onfile_risk_scoresrows to allow downstream consumers to interpret test files separately.README.mddescribing that_test.gofiles are tagged in the local index and add tests: a unit testanalyzer_tags_go_test_filesand an integration CLI testscan_tags_go_test_files_in_index_facts_and_risk_rowsto verify the flag is stored in the SQLite index.Testing
cargo test, which completed successfully: all tests passed (96unit tests and8CLI tests reported in the run).cargo fmt --checkandcargo clippy --all-targets --all-features -- -D warnings, both completed without failures.Codex Task