From e6330173fca10a79a6ad9e03928ddba02309e05f Mon Sep 17 00:00:00 2001 From: Vishnu Jayadevan Date: Mon, 12 Jan 2026 16:20:20 +0530 Subject: [PATCH 1/2] feat: update types for previous completed run file_meta --- types/analysis.go | 13 ++++++----- types/atlas_reception.go | 48 +++++++++++++++++++++------------------- 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/types/analysis.go b/types/analysis.go index 6b66b07..b8500bb 100644 --- a/types/analysis.go +++ b/types/analysis.go @@ -78,12 +78,13 @@ type FileMeta struct { } type AnalysisReport struct { - Issues []Issue `json:"issues"` - Metrics []Metric `json:"metrics,omitempty"` - IsPassed bool `json:"is_passed"` - Errors []AnalysisError `json:"errors"` - FileMeta FileMeta `json:"file_meta"` - ExtraData interface{} `json:"extra_data"` + Issues []Issue `json:"issues"` + Metrics []Metric `json:"metrics,omitempty"` + IsPassed bool `json:"is_passed"` + Errors []AnalysisError `json:"errors"` + FileMeta FileMeta `json:"file_meta"` + BranchFileMeta FileMeta `json:"branch_file_meta"` // File meta for the branch against previous completed run commit. + ExtraData interface{} `json:"extra_data"` } type AnalysisResult struct { diff --git a/types/atlas_reception.go b/types/atlas_reception.go index 8d66712..28d43b6 100644 --- a/types/atlas_reception.go +++ b/types/atlas_reception.go @@ -28,14 +28,15 @@ type Artifact struct { // //proteus:generate type AnalysisRunVCSMeta struct { - RemoteURL string `json:"remote_url"` - BaseBranch string `json:"base_branch"` - BaseOID string `json:"base_oid"` - CheckoutOID string `json:"checkout_oid"` - RepositoryName string `json:"repository_name"` - IsForDefaultAnalysisBranch bool `json:"is_for_default_analysis_branch"` - CloneSubmodules bool `json:"clone_submodules"` - SparseCheckoutPath string `json:"sparse_checkout_path"` + RemoteURL string `json:"remote_url"` + BaseBranch string `json:"base_branch"` + BaseOID string `json:"base_oid"` + CheckoutOID string `json:"checkout_oid"` + RepositoryName string `json:"repository_name"` + IsForDefaultAnalysisBranch bool `json:"is_for_default_analysis_branch"` + CloneSubmodules bool `json:"clone_submodules"` + SparseCheckoutPath string `json:"sparse_checkout_path"` + PreviousCompletedRunCommitOID string `json:"previous_completed_run_commit_oid"` // Previous completed run commit OID. } //proteus:generate @@ -77,12 +78,12 @@ type AnalyzerMeta struct { //proteus:generate type Check struct { - CheckSeq string `json:"check_seq"` - Artifacts []Artifact `json:"artifacts"` - AnalyzerMeta AnalyzerMeta `json:"analyzer_meta"` - Processors []string `json:"processors"` - DiffMetaCommits []DiffMetaCommit `json:"diff_meta_commits"` - AIIssuesURL string `json:"ai_issues_url"` // Previous AI issues for deduplication. + CheckSeq string `json:"check_seq"` + Artifacts []Artifact `json:"artifacts"` + AnalyzerMeta AnalyzerMeta `json:"analyzer_meta"` + Processors []string `json:"processors"` + DiffMetaCommits []DiffMetaCommit `json:"diff_meta_commits"` + ExistingAIIssuesURL string `json:"existing_ai_issues_url"` // Previous AI issues for deduplication. } type DiffMetaCommit struct { @@ -92,15 +93,16 @@ type DiffMetaCommit struct { //proteus:generate type AnalysisRun struct { - RunID string `json:"run_id"` - RunSerial string `json:"run_serial"` - Config DSConfig `json:"config"` - DSConfigUpdated bool `json:"ds_config_updated"` - IsFullRun bool `json:"is_full_run"` - VCSMeta AnalysisRunVCSMeta `json:"vcs_meta"` - Keys Keys `json:"keys"` - Checks []Check `json:"checks"` - Meta map[string]string `json:"_meta"` + RunID string `json:"run_id"` + RunSerial string `json:"run_serial"` + Config DSConfig `json:"config"` + DSConfigUpdated bool `json:"ds_config_updated"` + IsFullRun bool `json:"is_full_run"` + VCSMeta AnalysisRunVCSMeta `json:"vcs_meta"` + Keys Keys `json:"keys"` + Checks []Check `json:"checks"` + Meta map[string]string `json:"_meta"` + PreviousCompletedRunCommitOID string `json:"previous_completed_run_commit_oid"` // Previous completed run commit OID for deduplication. } //proteus:generate From 282b66e0db74a7a5fc6b919a05d8e14b1eb2d785 Mon Sep 17 00:00:00 2001 From: Vishnu Jayadevan Date: Mon, 12 Jan 2026 16:28:25 +0530 Subject: [PATCH 2/2] fix: update marvin analysis config --- types/analysis.go | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/types/analysis.go b/types/analysis.go index b8500bb..7080128 100644 --- a/types/analysis.go +++ b/types/analysis.go @@ -116,20 +116,21 @@ type CancelCheckResultCeleryTask struct { //proteus:generate type MarvinAnalysisConfig struct { - RunID string `toml:"runID"` - RunSerial string `toml:"runSerial"` - CheckSeq string `toml:"checkSeq"` - AnalyzerShortcode string `toml:"analyzerShortcode"` - AnalyzerCommand string `toml:"analyzerCommand"` - AnalyzerType string `toml:"analyzerType"` - BaseOID string `toml:"baseOID"` - CheckoutOID string `toml:"checkoutOID"` - Repository string `toml:"repository"` - IsFullRun bool `toml:"is_full_run"` - IsForDefaultAnalysisBranch bool `toml:"isForDefaultAnalysisBranch"` - DSConfigUpdated bool `toml:"dsConfigUpdated"` - Processors []string `toml:"processors"` - DiffMetaCommits []DiffMetaCommit `toml:"diffMetaCommits"` + RunID string `toml:"runID"` + RunSerial string `toml:"runSerial"` + CheckSeq string `toml:"checkSeq"` + AnalyzerShortcode string `toml:"analyzerShortcode"` + AnalyzerCommand string `toml:"analyzerCommand"` + AnalyzerType string `toml:"analyzerType"` + BaseOID string `toml:"baseOID"` + CheckoutOID string `toml:"checkoutOID"` + Repository string `toml:"repository"` + IsFullRun bool `toml:"is_full_run"` + IsForDefaultAnalysisBranch bool `toml:"isForDefaultAnalysisBranch"` + DSConfigUpdated bool `toml:"dsConfigUpdated"` + Processors []string `toml:"processors"` + DiffMetaCommits []DiffMetaCommit `toml:"diffMetaCommits"` + PreviousCompletedRunCommitOID string `toml:"previousCompletedRunCommitOID"` } //proteus:generate