Skip to content

feat: bring Konflux fork changes onto current main- #9274 - #5

Merged
kpiwko merged 19 commits into
mainfrom
konflux-onto-latest
Nov 4, 2026
Merged

kpiwko merged 19 commits into
mainfrom
konflux-onto-latest

Conversation

@mfrancisc

Copy link
Copy Markdown
Collaborator
  • Brings the Konflux fork’s owned plugins (aireview, codecov, testregistry, agentready, jira_snowflake, aisdlc) and their config-ui, Grafana, and Tekton pieces onto current DevLake main.

  • Keeps the newer upstream fixes (OIDC allowlists, Jira OAuth, git shallow-clone deepen, public /proceed-db-migration) and re-applies the Konflux behavior those fixes do not cover: default-on auth, bot detection, full git clone, parent-issue and stale-board cleanup, CORS, and the local sync/MySQL/Grafana defaults.

  • Records the remaining fork deltas in docs/upstream-diff

Co-Authored-By: Cursor cursoragent@cursor.com

dependabot Bot added 2 commits October 29, 2026 14:21
…th 4 updates (apache#9255)

Bumps the actions-minor-patch group with 4 updates in the / directory: [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action), [docker/build-push-action](https://github.com/docker/build-push-action) and [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action).


Updates `docker/setup-buildx-action` from 4.3.0 to 4.4.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](docker/setup-buildx-action@37fe631...f87e599)

Updates `docker/login-action` from 4.6.0 to 4.7.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@dbcb813...81c6f93)

Updates `docker/build-push-action` from 7.3.0 to 7.4.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@53b7df9...c3c9e26)

Updates `docker/setup-qemu-action` from 4.2.0 to 4.4.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](docker/setup-qemu-action@96fe6ef...9901266)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
- dependency-name: docker/login-action
  dependency-version: 4.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
- dependency-name: docker/setup-qemu-action
  dependency-version: 4.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ith 4 updates (apache#9269)

Bumps the python-minor-patch group with 3 updates in the /backend/python/pydevlake directory: [pydevd-pycharm](https://github.com/JetBrains/intellij-community), [jsonpointer](https://github.com/stefankoegl/python-json-pointer) and [certifi](https://github.com/certifi/python-certifi).
Bumps the python-minor-patch group with 1 update in the /grafana/scripts directory: [sqlglot](https://github.com/tobymao/sqlglot).


Updates `pydevd-pycharm` from 263.7031.30 to 263.7307.50
- [Release notes](https://github.com/JetBrains/intellij-community/releases)
- [Commits](JetBrains/intellij-community@pycharm/263.7031.30...pycharm/263.7307.50)

Updates `jsonpointer` from 3.4 to 3.5
- [Release notes](https://github.com/stefankoegl/python-json-pointer/releases)
- [Commits](stefankoegl/python-json-pointer@v3.4...v3.5)

Updates `certifi` from 2026.10.19 to 2026.10.23
- [Commits](certifi/python-certifi@2026.10.19...2026.10.23)

Updates `sqlglot` from 30.18.0 to 30.24.0
- [Commits](tobymao/sqlglot@v30.18.0...v30.24.0)

---
updated-dependencies:
- dependency-name: certifi
  dependency-version: 2026.10.23
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor-patch
- dependency-name: jsonpointer
  dependency-version: '3.5'
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor-patch
- dependency-name: pydevd-pycharm
  dependency-version: 263.7307.50
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor-patch
- dependency-name: sqlglot
  dependency-version: 30.24.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Bring Konflux plugins and deployment integrations onto current DevLake

✨ Enhancement 🐞 Bug fix 🧪 Tests 📝 Documentation ⚙️ Configuration changes 🕐 40+ Minutes

Grey Divider

AI Description

• Bring six Konflux-owned plugins and their configuration UI, dashboards, and build pipelines onto
 current main.
• Restore fork-specific ingestion, authentication, CORS, and local-development behavior without
 replacing newer upstream fixes.
• Add migrations, tests, operational tooling, and an inventory of remaining upstream differences.
Diagram

graph TD
  UI["Configuration UI"] --> API["Plugin APIs"] --> TASKS["Collection tasks"] --> DB[("DevLake tables")]
  SOURCES["External sources"] --> TASKS
  DB --> DASH["Grafana dashboards"]
  BUILD["CI and Tekton"] --> API
  BUILD --> UI
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Land plugins in independently reviewable PRs
  • ➕ Isolates schema and integration risk
  • ➕ Makes plugin-specific failures easier to identify
  • ➖ Requires temporary compatibility work across shared APIs, builds, and dashboards
  • ➖ Delays a complete move off the fork
2. Run Konflux plugins against upstream as separately deployed services
  • ➕ Reduces changes to upstream-owned backend and UI files
  • ➖ Duplicates DevLake plugin lifecycle and migration infrastructure
  • ➖ Complicates blueprint integration and cross-plugin domain metrics

Recommendation: Keeping owned plugins within DevLake's existing plugin and migration framework is the better architectural fit. Given the exceptional size of this migration, review and validate it in plugin, shared-behavior, and deployment slices; independently verify migration order and the security implications of default-on auth, credentialed CORS, and anonymous Grafana Admin access.

Files changed (455) +61463 / -298

Enhancement (265) +36481 / -4
ai_commit.goModel AI-attributed commits +42/-0

Model AI-attributed commits

• Adds a domain entity representing commits identified as AI-generated.

backend/core/models/domainlayer/code/ai_commit.go

ai_failure_prediction.goModel AI failure predictions +57/-0

Model AI failure predictions

• Adds a domain representation of predicted CI failures associated with AI review findings.

backend/core/models/domainlayer/code/ai_failure_prediction.go

ai_prediction_metrics.goModel AI prediction metrics +65/-0

Model AI prediction metrics

• Adds domain metrics for evaluating AI review predictions against outcomes.

backend/core/models/domainlayer/code/ai_prediction_metrics.go

ai_review.goModel AI reviews +58/-0

Model AI reviews

• Adds the shared domain representation for extracted AI code reviews.

backend/core/models/domainlayer/code/ai_review.go

domaininfo.goRegister AI review domain entities +4/-0

Register AI review domain entities

• Makes the new AI review and prediction entities available to domain metadata.

backend/core/models/domainlayer/domaininfo/domaininfo.go

20260422000001_add_ai_review_domain_tables.goCreate AI review domain tables +150/-0

Create AI review domain tables

• Adds the initial domain schema for AI reviews and predictions.

backend/core/models/migrationscripts/20260422000001_add_ai_review_domain_tables.go

20260826_add_ai_commits_domain.goCreate AI commits domain table +79/-0

Create AI commits domain table

• Adds persistence for AI-attributed commits in the shared domain layer.

backend/core/models/migrationscripts/20260826_add_ai_commits_domain.go

register.goRegister new domain migrations +3/-0

Register new domain migrations

• Includes AI review and commit schema changes in core migrations.

backend/core/models/migrationscripts/register.go

client.goAdd shared GCS client +151/-0

Add shared GCS client

• Introduces Google Cloud Storage access helpers for CI artifacts.

backend/pkg/gcshelper/client.go

prow.goResolve Prow artifacts in GCS +114/-0

Resolve Prow artifacts in GCS

• Adds shared helpers for locating Prow job artifacts.

backend/pkg/gcshelper/prow.go

agentready.goRegister AgentReady plugin +39/-0

Register AgentReady plugin

• Adds the plugin entry point to DevLake registration.

backend/plugins/agentready/agentready.go

assessments.goExpose assessment API +191/-0

Expose assessment API

• Provides endpoints for browsing imported readiness assessments.

backend/plugins/agentready/api/assessments.go

blueprint_v200.goSupport AgentReady blueprints +96/-0

Support AgentReady blueprints

• Creates pipeline plans from configured AgentReady scopes.

backend/plugins/agentready/api/blueprint_v200.go

connection.goManage AgentReady connections +179/-0

Manage AgentReady connections

• Adds connection CRUD and validation endpoints.

backend/plugins/agentready/api/connection.go

init.goInitialize AgentReady API +44/-0

Initialize AgentReady API

• Wires API resources and plugin helpers.

backend/plugins/agentready/api/init.go

remote_api.goAccess AgentReady source +101/-0

Access AgentReady source

• Implements remote-source access for configured submissions.

backend/plugins/agentready/api/remote_api.go

scope.goManage AgentReady scopes +56/-0

Manage AgentReady scopes

• Adds scoped submission repository configuration endpoints.

backend/plugins/agentready/api/scope.go

scope_config.goManage assessment scope settings +46/-0

Manage assessment scope settings

• Exposes AgentReady scope-configuration operations.

backend/plugins/agentready/api/scope_config.go

scope_state_api.goExpose AgentReady scope state +29/-0

Expose AgentReady scope state

• Registers scope-state API support.

backend/plugins/agentready/api/scope_state_api.go

stats.goExpose readiness statistics +99/-0

Expose readiness statistics

• Provides aggregated assessment and finding statistics.

backend/plugins/agentready/api/stats.go

findings-analysis.jsonVisualize readiness findings +139/-0

Visualize readiness findings

• Adds a Grafana dashboard analyzing AgentReady findings.

backend/plugins/agentready/grafana/findings-analysis.json

fleet-overview.jsonVisualize fleet readiness +222/-0

Visualize fleet readiness

• Adds an aggregate AgentReady dashboard.

backend/plugins/agentready/grafana/fleet-overview.json

repo-detail.jsonVisualize repository readiness +233/-0

Visualize repository readiness

• Adds repository-level assessment panels.

backend/plugins/agentready/grafana/repo-detail.json

impl.goImplement AgentReady lifecycle +163/-0

Implement AgentReady lifecycle

• Registers models, migrations, APIs, blueprints, and collection and calculation tasks.

backend/plugins/agentready/impl/impl.go

assessment.goModel readiness assessments +59/-0

Model readiness assessments

• Defines persisted assessment records.

backend/plugins/agentready/models/assessment.go

connection.goModel AgentReady connections +37/-0

Model AgentReady connections

• Defines source connection settings.

backend/plugins/agentready/models/connection.go

finding.goModel readiness findings +59/-0

Model readiness findings

• Stores findings extracted from assessments.

backend/plugins/agentready/models/finding.go

metric.goModel readiness metrics +44/-0

Model readiness metrics

• Stores calculated assessment metrics.

backend/plugins/agentready/models/metric.go

20260609_add_composite_primary_keys.goMigrate assessment keys +71/-0

Migrate assessment keys

• Introduces composite primary keys for AgentReady records.

backend/plugins/agentready/models/migrationscripts/20260609_add_composite_primary_keys.go

20260624_drop_project_from_connections.goDecouple connections from projects +40/-0

Decouple connections from projects

• Removes project ownership from AgentReady connections.

backend/plugins/agentready/models/migrationscripts/20260624_drop_project_from_connections.go

init_schema.goInitialize AgentReady schema +187/-0

Initialize AgentReady schema

• Creates connection, scope, assessment, finding, and metric tables.

backend/plugins/agentready/models/migrationscripts/init_schema.go

register.goRegister AgentReady migrations +30/-0

Register AgentReady migrations

• Orders plugin schema migrations.

backend/plugins/agentready/models/migrationscripts/register.go

scope.goModel AgentReady scopes +68/-0

Model AgentReady scopes

• Defines the submissions repositories selected for ingestion.

backend/plugins/agentready/models/scope.go

scope_config.goModel assessment scope settings +29/-0

Model assessment scope settings

• Persists per-scope processing options.

backend/plugins/agentready/models/scope_config.go

assessment_extractor.goExtract readiness assessments +206/-0

Extract readiness assessments

• Parses collected submissions into assessments and findings.

backend/plugins/agentready/tasks/assessment_extractor.go

metrics_calculator.goCalculate readiness metrics +154/-0

Calculate readiness metrics

• Aggregates assessment findings into metrics.

backend/plugins/agentready/tasks/metrics_calculator.go

submissions_collector.goCollect assessment submissions +394/-0

Collect assessment submissions

• Retrieves submissions from configured repositories.

backend/plugins/agentready/tasks/submissions_collector.go

task_data.goDefine AgentReady task options +32/-0

Define AgentReady task options

• Carries connection and scope settings through plugin tasks.

backend/plugins/agentready/tasks/task_data.go

aireview.goRegister AI Review plugin +49/-0

Register AI Review plugin

• Adds the AI Review metric plugin entry point.

backend/plugins/aireview/aireview.go

analyze.goExpose AI review analysis +111/-0

Expose AI review analysis

• Adds an API for requesting review analysis.

backend/plugins/aireview/api/analyze.go

init.goInitialize AI Review API +33/-0

Initialize AI Review API

• Wires plugin API dependencies.

backend/plugins/aireview/api/init.go

reviews.goExpose extracted AI reviews +282/-0

Expose extracted AI reviews

• Adds endpoints for querying AI review data.

backend/plugins/aireview/api/reviews.go

scope_config.goManage AI review settings +250/-0

Manage AI review settings

• Adds API operations for review detection and prediction scope settings.

backend/plugins/aireview/api/scope_config.go

impl.goImplement AI Review metric plugin +271/-0

Implement AI Review metric plugin

• Registers APIs, migrations, domain tables, and review, reaction, CI prediction, and conversion tasks.

backend/plugins/aireview/impl/impl.go

ai_commit.goModel detected AI commits +41/-0

Model detected AI commits

• Stores plugin-layer commit attributions.

backend/plugins/aireview/models/ai_commit.go

ai_failure_prediction.goModel predicted failures +172/-0

Model predicted failures

• Stores review predictions and associated CI evidence.

backend/plugins/aireview/models/ai_failure_prediction.go

ai_review.goModel extracted AI reviews +121/-0

Model extracted AI reviews

• Defines persisted review records and metadata.

backend/plugins/aireview/models/ai_review.go

ai_review_finding.goModel review findings +122/-0

Model review findings

• Stores individual findings extracted from AI reviews.

backend/plugins/aireview/models/ai_review_finding.go

20260130_add_effort_and_checks.goAdd effort and check columns +60/-0

Add effort and check columns

• Extends AI review persistence with effort and check fields.

backend/plugins/aireview/models/migrationscripts/20260130_add_effort_and_checks.go

20260219_add_gemini_config.goAdd Gemini settings +59/-0

Add Gemini settings

• Persists Gemini-specific review configuration.

backend/plugins/aireview/models/migrationscripts/20260219_add_gemini_config.go

20260219_add_reactions.goAdd review reactions +57/-0

Add review reactions

• Extends review records for Git-host reactions.

backend/plugins/aireview/models/migrationscripts/20260219_add_reactions.go

20260402_add_ci_prediction_support.goAdd prediction schema +127/-0

Add prediction schema

• Creates storage needed to match findings with CI failures.

backend/plugins/aireview/models/migrationscripts/20260402_add_ci_prediction_support.go

20260413_add_suggestions_accepted.goTrack accepted suggestions +53/-0

Track accepted suggestions

• Adds persistence for suggestion acceptance.

backend/plugins/aireview/models/migrationscripts/20260413_add_suggestions_accepted.go

20260414_add_diff_matching.goTrack suggestion diff matches +70/-0

Track suggestion diff matches

• Adds columns for matching suggested changes to PR diffs.

backend/plugins/aireview/models/migrationscripts/20260414_add_diff_matching.go

20260415_add_flaky_infra_filters.goAdd prediction exclusion settings +57/-0

Add prediction exclusion settings

• Persists filters for flaky and infrastructure-related failures.

backend/plugins/aireview/models/migrationscripts/20260415_add_flaky_infra_filters.go

20260826_add_ai_commits.goCreate plugin AI commits table +65/-0

Create plugin AI commits table

• Adds storage for detected AI commits.

backend/plugins/aireview/models/migrationscripts/20260826_add_ai_commits.go

init_schema.goInitialize AI Review schema +223/-0

Initialize AI Review schema

• Creates the plugin's initial review and configuration tables.

backend/plugins/aireview/models/migrationscripts/init_schema.go

register.goRegister AI Review migrations +37/-0

Register AI Review migrations

• Orders the plugin's schema evolution.

backend/plugins/aireview/models/migrationscripts/register.go

scope_config.goModel AI review configuration +132/-0

Model AI review configuration

• Defines detection, CI prediction, and filtering options.

backend/plugins/aireview/models/scope_config.go

calculate_failure_predictions.goCalculate AI failure predictions +599/-0

Calculate AI failure predictions

• Matches review findings with CI outcomes to evaluate predicted failures.

backend/plugins/aireview/tasks/calculate_failure_predictions.go

calculate_prediction_metrics.goAggregate prediction metrics +338/-0

Aggregate prediction metrics

• Computes summary performance metrics from predictions.

backend/plugins/aireview/tasks/calculate_prediction_metrics.go

convert_ai_commits.goConvert AI commits to domain data +109/-0

Convert AI commits to domain data

• Publishes attributed commits to shared domain tables.

backend/plugins/aireview/tasks/convert_ai_commits.go

convert_ai_reviews.goConvert AI reviews to domain data +131/-0

Convert AI reviews to domain data

• Publishes extracted reviews into shared domain tables.

backend/plugins/aireview/tasks/convert_ai_reviews.go

convert_failure_predictions.goConvert predictions to domain data +122/-0

Convert predictions to domain data

• Publishes calculated failure predictions into the domain layer.

backend/plugins/aireview/tasks/convert_failure_predictions.go

convert_prediction_metrics.goConvert prediction metrics +129/-0

Convert prediction metrics

• Publishes aggregated metrics to domain tables.

backend/plugins/aireview/tasks/convert_prediction_metrics.go

detect_ai_commit.goDetect AI-attributed commits +74/-0

Detect AI-attributed commits

• Identifies commits attributed to AI tooling.

backend/plugins/aireview/tasks/detect_ai_commit.go

enrich_github_review_reactions.goEnrich GitHub review reactions +189/-0

Enrich GitHub review reactions

• Associates GitHub comment reactions with extracted reviews.

backend/plugins/aireview/tasks/enrich_github_review_reactions.go

enrich_gitlab_review_reactions.goEnrich GitLab review reactions +280/-0

Enrich GitLab review reactions

• Associates GitLab award emojis with extracted reviews.

backend/plugins/aireview/tasks/enrich_gitlab_review_reactions.go

extract_ai_commits.goExtract AI commit records +239/-0

Extract AI commit records

• Scans source commits for AI attribution and stores plugin records.

backend/plugins/aireview/tasks/extract_ai_commits.go

extract_ai_review_findings.goExtract individual review findings +349/-0

Extract individual review findings

• Parses actionable findings from AI review content.

backend/plugins/aireview/tasks/extract_ai_review_findings.go

extract_ai_reviews.goExtract AI reviews from PR comments +800/-0

Extract AI reviews from PR comments

• Detects and stores AI-generated GitHub and GitLab review comments.

backend/plugins/aireview/tasks/extract_ai_reviews.go

fetch_missing_ci_jobs.goRetrieve missing CI jobs +318/-0

Retrieve missing CI jobs

• Fetches CI evidence absent from normal ingestion before evaluating predictions.

backend/plugins/aireview/tasks/fetch_missing_ci_jobs.go

match_suggestion_diffs.goMatch suggestions to PR changes +757/-0

Match suggestions to PR changes

• Compares AI-suggested edits with diffs to determine acceptance.

backend/plugins/aireview/tasks/match_suggestion_diffs.go

task_data.goDefine AI Review task configuration +204/-0

Define AI Review task configuration

• Decodes options and prepares provider patterns and scope settings.

backend/plugins/aireview/tasks/task_data.go

aisdlc.goRegister AISDLC plugin +40/-0

Register AISDLC plugin

• Adds the GitLab artifact plugin entry point.

backend/plugins/aisdlc/aisdlc.go

blueprint_v200.goSupport AISDLC blueprints +94/-0

Support AISDLC blueprints

• Builds pipeline plans for configured GitLab scopes.

backend/plugins/aisdlc/api/blueprint_v200.go

connection.goManage AISDLC connections +86/-0

Manage AISDLC connections

• Exposes connection configuration operations.

backend/plugins/aisdlc/api/connection.go

init.goInitialize AISDLC API +45/-0

Initialize AISDLC API

• Registers plugin API helpers and resources.

backend/plugins/aisdlc/api/init.go

remote_api.goAccess AISDLC GitLab source +75/-0

Access AISDLC GitLab source

• Adds remote connection support.

backend/plugins/aisdlc/api/remote_api.go

scope.goManage AISDLC scopes +57/-0

Manage AISDLC scopes

• Exposes GitLab repository scope operations.

backend/plugins/aisdlc/api/scope.go

scope_config.goManage AISDLC scope settings +47/-0

Manage AISDLC scope settings

• Exposes per-scope transformation settings.

backend/plugins/aisdlc/api/scope_config.go

scope_state_api.goExpose AISDLC scope state +30/-0

Expose AISDLC scope state

• Registers scope-state API support.

backend/plugins/aisdlc/api/scope_state_api.go

impl.goImplement AISDLC lifecycle +199/-0

Implement AISDLC lifecycle

• Registers GitLab collection, artifact parsing, linking, models, and migrations.

backend/plugins/aisdlc/impl/impl.go

connection.goModel AISDLC connections +36/-0

Model AISDLC connections

• Persists GitLab source settings.

backend/plugins/aisdlc/models/connection.go

20261026_add_nopk_columns.goExtend AISDLC record schema +95/-0

Extend AISDLC record schema

• Adds columns required by records without natural primary keys.

backend/plugins/aisdlc/models/migrationscripts/20261026_add_nopk_columns.go

init_schema.goInitialize AISDLC schema +273/-0

Initialize AISDLC schema

• Creates raw-file, checkpoint, execution, work-item, observation, and evidence tables.

backend/plugins/aisdlc/models/migrationscripts/init_schema.go

register.goRegister AISDLC migrations +29/-0

Register AISDLC migrations

• Orders AISDLC schema changes.

backend/plugins/aisdlc/models/migrationscripts/register.go

records.goModel AISDLC artifact records +176/-0

Model AISDLC artifact records

• Defines executions, work items, observations, evidence, and links.

backend/plugins/aisdlc/models/records.go

scope.goModel AISDLC scopes +74/-0

Model AISDLC scopes

• Defines GitLab repositories selected for collection.

backend/plugins/aisdlc/models/scope.go

scope_config.goModel AISDLC transformation options +39/-0

Model AISDLC transformation options

• Persists parsing and scope settings.

backend/plugins/aisdlc/models/scope_config.go

collect.goCollect station artifacts +175/-0

Collect station artifacts

• Retrieves AISDLC artifact files from GitLab.

backend/plugins/aisdlc/tasks/collect.go

extract.goExtract AISDLC observations +269/-0

Extract AISDLC observations

• Parses collected artifacts into structured records.

backend/plugins/aisdlc/tasks/extract.go

gitlab_client.goRead artifacts from GitLab +313/-0

Read artifacts from GitLab

• Implements GitLab file retrieval for AISDLC collection.

backend/plugins/aisdlc/tasks/gitlab_client.go

link.goLink AISDLC work items +73/-0

Link AISDLC work items

• Associates parsed observations with work items.

backend/plugins/aisdlc/tasks/link.go

id.goParse artifact identifiers +57/-0

Parse artifact identifiers

• Normalizes IDs used in AISDLC records.

backend/plugins/aisdlc/tasks/parse/id.go

parse.goParse AISDLC artifacts +481/-0

Parse AISDLC artifacts

• Transforms station content into structured observations and evidence.

backend/plugins/aisdlc/tasks/parse/parse.go

select.goSelect relevant artifacts +118/-0

Select relevant artifacts

• Filters artifact files for processing.

backend/plugins/aisdlc/tasks/parse/select.go

store.goPersist parsed artifacts +68/-0

Persist parsed artifacts

• Stores AISDLC parser output.

backend/plugins/aisdlc/tasks/parse/store.go

time.goNormalize artifact timestamps +69/-0

Normalize artifact timestamps

• Parses time values from station records.

backend/plugins/aisdlc/tasks/parse/time.go

types.goDefine parser record types +127/-0

Define parser record types

• Defines intermediate AISDLC parsing structures.

backend/plugins/aisdlc/tasks/parse/types.go

task_data.goDefine AISDLC task options +59/-0

Define AISDLC task options

• Carries GitLab connection and scope details into tasks.

backend/plugins/aisdlc/tasks/task_data.go

blueprint_v200.goSupport Codecov blueprints +111/-0

Support Codecov blueprints

• Creates scoped Codecov ingestion plans.

backend/plugins/codecov/api/blueprint_v200.go

connection_api.goManage Codecov connections +178/-0

Manage Codecov connections

• Adds connection CRUD and credential testing.

backend/plugins/codecov/api/connection_api.go

init.goInitialize Codecov API +54/-0

Initialize Codecov API

• Wires plugin API routes and helpers.

backend/plugins/codecov/api/init.go

remote_api.goIntegrate Codecov remote API +346/-0

Integrate Codecov remote API

• Provides authenticated access to Codecov resources.

backend/plugins/codecov/api/remote_api.go

scope_api.goManage Codecov repository scopes +156/-0

Manage Codecov repository scopes

• Exposes repository discovery and scope operations.

backend/plugins/codecov/api/scope_api.go

scope_config_api.goManage Codecov scope settings +99/-0

Manage Codecov scope settings

• Exposes per-repository collection settings.

backend/plugins/codecov/api/scope_config_api.go

scope_state_api.goExpose Codecov scope state +47/-0

Expose Codecov scope state

• Registers scope-state API support.

backend/plugins/codecov/api/scope_state_api.go

codecov.goRegister Codecov plugin +26/-0

Register Codecov plugin

• Adds the Codecov data-source entry point.

backend/plugins/codecov/codecov.go

impl.goImplement Codecov lifecycle +270/-0

Implement Codecov lifecycle

• Registers API, models, migrations, blueprints, and coverage collectors and converters.

backend/plugins/codecov/impl/impl.go

commit.goModel Codecov commits +40/-0

Model Codecov commits

• Defines source commit records.

backend/plugins/codecov/models/commit.go

commit_coverage.goModel commit coverage +48/-0

Model commit coverage

• Stores coverage and line totals per commit.

backend/plugins/codecov/models/commit_coverage.go

connection.goModel Codecov connections +171/-0

Model Codecov connections

• Persists service, organization, and credential settings.

backend/plugins/codecov/models/connection.go

coverage.goModel coverage records +48/-0

Model coverage records

• Defines imported coverage measurements.

backend/plugins/codecov/models/coverage.go

coverage_trend.goModel coverage trends +42/-0

Model coverage trends

• Defines historical coverage measurements.

backend/plugins/codecov/models/coverage_trend.go

flag.goModel coverage flags +37/-0

Model coverage flags

• Stores Codecov flag metadata and coverage.

backend/plugins/codecov/models/flag.go

20251111164338_add_init_tables.goInitialize Codecov tables +105/-0

Initialize Codecov tables

• Creates initial connection and scope storage.

backend/plugins/codecov/models/migrationscripts/20251111164338_add_init_tables.go

20251112000000_add_coverage_tables.goCreate coverage tables +198/-0

Create coverage tables

• Adds Codecov commit, coverage, and trend persistence.

backend/plugins/codecov/models/migrationscripts/20251112000000_add_coverage_tables.go

20251114000000_add_raw_data_origin_to_commits.goTrack commit origin +69/-0

Track commit origin

• Adds raw-data provenance to imported commits.

backend/plugins/codecov/models/migrationscripts/20251114000000_add_raw_data_origin_to_commits.go

20251115000000_add_raw_data_origin_to_flags.goTrack flag origin +68/-0

Track flag origin

• Adds raw-data provenance to flags.

backend/plugins/codecov/models/migrationscripts/20251115000000_add_raw_data_origin_to_flags.go

20251116000000_add_comparison_table.goCreate coverage comparisons +74/-0

Create coverage comparisons

• Adds storage for comparisons between revisions.

backend/plugins/codecov/models/migrationscripts/20251116000000_add_comparison_table.go

20251117000000_add_modified_coverage_to_coverages.goTrack modified-line coverage +80/-0

Track modified-line coverage

• Extends coverage records with modified-line data.

backend/plugins/codecov/models/migrationscripts/20251117000000_add_modified_coverage_to_coverages.go

20251118000000_add_raw_data_origin_to_coverage_tables.goTrack coverage provenance +144/-0

Track coverage provenance

• Adds origin fields to coverage tables.

backend/plugins/codecov/models/migrationscripts/20251118000000_add_raw_data_origin_to_coverage_tables.go

20251119000000_add_raw_data_origin_to_comparisons.goTrack comparison provenance +74/-0

Track comparison provenance

• Adds source-origin information to comparisons.

backend/plugins/codecov/models/migrationscripts/20251119000000_add_raw_data_origin_to_comparisons.go

20251120000000_add_modified_lines_to_comparisons.goAdd modified-line comparisons +74/-0

Add modified-line comparisons

• Extends comparison records with changed-line counts.

backend/plugins/codecov/models/migrationscripts/20251120000000_add_modified_lines_to_comparisons.go

20251122000000_add_patch_to_coverages.goAdd patch coverage +79/-0

Add patch coverage

• Extends coverage records with patch measurements.

backend/plugins/codecov/models/migrationscripts/20251122000000_add_patch_to_coverages.go

20251123000000_add_patch_to_comparisons.goAdd patch comparisons +74/-0

Add patch comparisons

• Extends comparisons with patch coverage.

backend/plugins/codecov/models/migrationscripts/20251123000000_add_patch_to_comparisons.go

20251206100000_add_coverage_to_flags.goAdd flag coverage +49/-0

Add flag coverage

• Extends flags with coverage values.

backend/plugins/codecov/models/migrationscripts/20251206100000_add_coverage_to_flags.go

20260316000000_add_line_counts_to_commit_coverages.goAdd commit line counts +54/-0

Add commit line counts

• Stores covered and total lines alongside commit coverage.

backend/plugins/codecov/models/migrationscripts/20260316000000_add_line_counts_to_commit_coverages.go

20260616000000_add_repo_config_table.goCreate repository settings table +70/-0

Create repository settings table

• Persists Codecov repository configuration.

backend/plugins/codecov/models/migrationscripts/20260616000000_add_repo_config_table.go

20260804000000_add_service_to_connections.goDistinguish Codecov services +46/-0

Distinguish Codecov services

• Adds service selection to connection records.

backend/plugins/codecov/models/migrationscripts/20260804000000_add_service_to_connections.go

register.goRegister Codecov migrations +46/-0

Register Codecov migrations

• Orders Codecov schema changes.

backend/plugins/codecov/models/migrationscripts/register.go

repo.goModel Codecov repositories +82/-0

Model Codecov repositories

• Defines the repository scope model.

backend/plugins/codecov/models/repo.go

repo_config.goModel repository configuration +42/-0

Model repository configuration

• Persists per-repository Codecov options.

backend/plugins/codecov/models/repo_config.go

scope_config.goModel Codecov scope settings +39/-0

Model Codecov scope settings

• Defines scoped collection configuration.

backend/plugins/codecov/models/scope_config.go

commit_coverage_collector.goCollect commit coverage +194/-0

Collect commit coverage

• Fetches per-commit coverage from Codecov.

backend/plugins/codecov/tasks/commit_coverage_collector.go

commit_coverage_converter.goConvert commit coverage +160/-0

Convert commit coverage

• Transforms collected coverage into persistent records.

backend/plugins/codecov/tasks/commit_coverage_converter.go

commit_totals_collector.goCollect commit line totals +160/-0

Collect commit line totals

• Fetches aggregate covered and total lines.

backend/plugins/codecov/tasks/commit_totals_collector.go

commits_collector.goCollect Codecov commits +168/-0

Collect Codecov commits

• Fetches source commit metadata.

backend/plugins/codecov/tasks/commits_collector.go

commits_extractor.goExtract Codecov commits +99/-0

Extract Codecov commits

• Normalizes collected commit payloads.

backend/plugins/codecov/tasks/commits_extractor.go

comparison_collector.goCollect coverage comparisons +212/-0

Collect coverage comparisons

• Fetches comparisons across revisions.

backend/plugins/codecov/tasks/comparison_collector.go

comparison_converter.goConvert coverage comparisons +161/-0

Convert coverage comparisons

• Persists normalized comparison measurements.

backend/plugins/codecov/tasks/comparison_converter.go

constants.goDefine Codecov task constants +27/-0

Define Codecov task constants

• Centralizes collection defaults and identifiers.

backend/plugins/codecov/tasks/constants.go

coverage_converter.goConvert coverage records +206/-0

Convert coverage records

• Normalizes raw coverage into plugin tables.

backend/plugins/codecov/tasks/coverage_converter.go

coverage_trend_converter.goConvert coverage trends +113/-0

Convert coverage trends

• Persists historical coverage measurements.

backend/plugins/codecov/tasks/coverage_trend_converter.go

flag_coverage_trend_collector.goCollect flag coverage trends +166/-0

Collect flag coverage trends

• Fetches historical measurements per coverage flag.

backend/plugins/codecov/tasks/flag_coverage_trend_collector.go

flags_collector.goCollect coverage flags +77/-0

Collect coverage flags

• Retrieves configured Codecov flags.

backend/plugins/codecov/tasks/flags_collector.go

flags_converter.goConvert coverage flags +89/-0

Convert coverage flags

• Persists normalized flag data.

backend/plugins/codecov/tasks/flags_converter.go

helpers.goShare Codecov task helpers

[Comment truncated to fit github's 65,536-char limit.]

@qodo-code-review

qodo-code-review Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

Grey Divider


Action required

1. Any Basic auth header gets past the login gate 🐞 Bug ⛨ Security
Description
LoadConfig now turns auth on when AUTH_ENABLED is unset, but OAuth2ProxyAuthentication still
computes trustBasicAuth := !(cfg.IsSet("AUTH_ENABLED") && cfg.GetBool("AUTH_ENABLED")), so it
keeps trusting unverified Basic headers in exactly that case. On any deployment that leaves
AUTH_ENABLED unset (the new default), a request with Authorization: Basic <any user>:<any pass>
sets common.USER, satisfies RequireAuth, and skips CSRF because it is not cookie-based, which
exposes every API to unauthenticated callers.
Code

backend/helpers/oidchelper/config.go[R100-103]

Evidence
After this PR, auth is on by default (authEnabled := true unless the variable is set).
middlewares.go:103 was written for the old opt-in default and only stops trusting Basic auth when
AUTH_ENABLED is explicitly true. getBasicAuthUserInfo never checks the password (see the comment
at lines 97-102). RequireAuth (auth/middleware.go:101-118) only checks that some user is set, so
the forged Basic identity passes. env.example sets AUTH_ENABLED=true, but deployments without that
variable, such as the default docker-compose and Helm setups, are exposed.

backend/server/api/middlewares.go[94-123]
backend/server/api/auth/middleware.go[99-119]
backend/helpers/oidchelper/config.go[95-106]
backend/server/api/api.go[120-130]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Auth now defaults to on when AUTH_ENABLED is unset, but `OAuth2ProxyAuthentication` still trusts unverified Basic auth headers unless AUTH_ENABLED is explicitly true. Any Basic header can therefore get past RequireAuth.

## Fix Focus Areas
- backend/server/api/middlewares.go[94-123]
- backend/helpers/oidchelper/config.go[95-106]

## Recommended Fix
Work out `trustBasicAuth` with the same default as `oidchelper.LoadConfig`: trust Basic only when AUTH_ENABLED is explicitly set to false (`cfg.IsSet("AUTH_ENABLED") && !cfg.GetBool("AUTH_ENABLED")`). A better option is a shared helper that returns the effective auth-enabled flag, used by both places. Add a test where AUTH_ENABLED is unset and a Basic header gets a 401.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


2. Core migrations fail on PostgreSQL 🐞 Bug ☼ Reliability
Description
The new core migration fixAiReviewDomainColumns.Up runs MySQL-only DDL: backtick-quoted
identifiers plus bigint unsigned and longtext types. It also skips the HasColumn guard, and
20260826_add_ai_commits_domain.go repeats the same SQL. On PostgreSQL, the first ALTER TABLE
raises a syntax error, the core migration chain stops, and DevLake cannot start until migrations
finish; on MySQL, a partial run cannot be retried because of duplicate columns.
Code

backend/core/models/migrationscripts/20260422000002_fix_ai_review_domain_columns.go[R134-137]

Evidence
These core migrations are registered for every deployment. PostgreSQL is still a supported backend
(this PR also edits docker-compose-dev-postgresql.yml). Backticks, bigint unsigned and longtext
are not valid PostgreSQL. The 20260826 migration uses the same raw statements.

backend/core/models/migrationscripts/20260422000002_fix_ai_review_domain_columns.go[127-143]
backend/core/models/migrationscripts/20260826_add_ai_commits_domain.go[50-70]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The core AI domain migrations run MySQL-specific ALTER TABLE statements (backticks, bigint unsigned, longtext). This breaks migrations on PostgreSQL, and 20260422000002 also cannot be re-run after a partial failure.

## Fix Focus Areas
- backend/core/models/migrationscripts/20260422000002_fix_ai_review_domain_columns.go[127-143]
- backend/core/models/migrationscripts/20260826_add_ai_commits_domain.go[55-70]

## Recommended Fix
Guard each column with `db.HasColumn`, and add it with `db.AddColumn(table, column, dal.Varchar/dal.BigInt/dal.Text)` or gorm `Migrator().AddColumn`, not raw backtick SQL. Better still, include the `_raw_data_*` fields with explicit `gorm:"column:..."` tags in the archived structs so AutoMigrate creates them for every dialect.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


3. Credentialed browser requests fail by default 🐞 Bug ≡ Correctness
Description
CreateApiServer combines the new wildcard CORS default with AllowCredentials: true. With no
CORS_ALLOW_ORIGIN override, browsers reject cross-origin responses to requests carrying
credentials.
Code

backend/server/api/api.go[110]

Evidence
The default origin is *, and the newly installed CORS middleware simultaneously enables
credentials.

backend/core/config/config_viper.go[108-108]
backend/server/api/api.go[103-112]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Wildcard origins cannot be used for credentialed browser CORS requests.
## Fix Focus Areas
- backend/server/api/api.go[103-112]
- backend/core/config/config_viper.go[108-108]
## Recommended Fix
Use explicit allowed origins when enabling credentials, or disable credentialed CORS for the wildcard default; test both default and configured-origin requests.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


View high (6)
4. Project-wide analyses omit AI findings 🐞 Bug ≡ Correctness
Description
ExtractAiReviewFindings always filters reviews by data.Options.RepoId, even when analysis was
requested with a project name instead of a repository ID. In that project mode, review extraction
finds the project's reviews but the subsequent findings task queries with an empty repository ID.
Code

backend/plugins/aireview/tasks/extract_ai_review_findings.go[R51-54]

Evidence
The analysis API accepts a project without a repository ID, and review extraction supports that
mode; the findings query does not.

backend/plugins/aireview/api/analyze.go[57-88]
backend/plugins/aireview/tasks/extract_ai_reviews.go[50-73]
backend/plugins/aireview/tasks/extract_ai_review_findings.go[48-54]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Project-mode AI review analysis extracts reviews but filters their findings by an empty repository ID.
## Fix Focus Areas
- backend/plugins/aireview/tasks/extract_ai_review_findings.go[43-54]
- backend/plugins/aireview/tasks/extract_ai_reviews.go[50-73]
## Recommended Fix
Apply the same project-to-repository selection used by review extraction when no repository ID is supplied.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


5. The end-to-end job probes the wrong port 🐞 Bug ≡ Correctness
Description
The coverage workflow waits for Config-UI at localhost:4000, while the MySQL development Compose
stack publishes container port 4000 on host port 4001. After the Compose filename is corrected, the
readiness check still fails before the tests run.
Code

.github/workflows/test-e2e-coverage.yml[91]

Evidence
The workflow probes host port 4000, whereas the development service maps host port 4001 to container
port 4000.

.github/workflows/test-e2e-coverage.yml[81-91]
docker-compose-dev-mysql.yml[89-99]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The workflow checks a port that its development Compose stack does not publish for Config-UI.
## Fix Focus Areas
- .github/workflows/test-e2e-coverage.yml[81-91]
- docker-compose-dev-mysql.yml[89-99]
## Recommended Fix
Point the readiness check at the selected Compose stack's published host port, and keep the test base URL consistent.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


6. Snowflake private keys are returned by the API 🐞 Bug ⛨ Security
Description
The jira_snowflake connection handlers (PostConnections, GetConnections, GetConnection,
PatchConnection) return the raw SnowflakeJiraConnection. Its PrivateKey field is tagged
json:"privateKey" and there is no Sanitize step. Any user who can call these endpoints, or
anyone who sees the responses in the config-ui or a proxy log, gets the full RSA key PEM for the
Snowflake service user.
Code

backend/plugins/jira_snowflake/api/connection_api.go[R46-50]

Evidence
encrypt:"yes" only covers storage encryption; the helper decrypts on read. The other connection
plugins in the repo, including the new codecov/testregistry/agentready ones, mask secrets with
Sanitize() before returning them. jira_snowflake has no Sanitize method and returns the model as-is.

backend/plugins/jira_snowflake/models/connection.go[36-38]
backend/plugins/jira_snowflake/api/connection_api.go[35-69]
backend/plugins/testregistry/models/connection.go[52-70]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The jira_snowflake connection API returns the decrypted Snowflake RSA private key in every response.

## Fix Focus Areas
- backend/plugins/jira_snowflake/models/connection.go[24-51]
- backend/plugins/jira_snowflake/api/connection_api.go[35-69]

## Recommended Fix
Add `func (c SnowflakeJiraConnection) Sanitize() SnowflakeJiraConnection` that masks PrivateKey (for example `utils.SanitizeString`, or blank it). Return it from all handlers, sanitizing each list element. Add a MergeFromRequest that keeps the stored key when a PATCH sends back the masked value, following the other plugins.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


7. Network visitors can administer Grafana 🐞 Bug ⛨ Security
Description
The development Compose configurations assign anonymous Grafana visitors the Admin role and
disable the login form. Their Grafana ports are published without a loopback-only binding, so anyone
who can reach a development host's published port can administer its Grafana organization without
signing in.
Code

docker-compose-dev-mysql.yml[R49-51]

Evidence
All three development setups enable anonymous Admin while publishing Grafana directly on a host port
rather than requiring access through the separately defined proxy.

docker-compose-dev-mysql.yml[40-51]
docker-compose-dev-postgresql.yml[37-46]
.devcontainer/docker-compose.yml[49-54]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Development Compose publishes Grafana with anonymous administrator privileges.
## Fix Focus Areas
- docker-compose-dev-mysql.yml[40-51]
- docker-compose-dev-postgresql.yml[37-46]
- .devcontainer/docker-compose.yml[49-54]
## Recommended Fix
Do not grant anonymous Admin access; if anonymous development access remains necessary, bind the port to loopback and grant only the minimum role needed.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


8. The new end-to-end job cannot start ✓ Resolved

Resolving commit: bbea4a6

Resolution reason
Updated the workflow to use docker-compose-dev-mysql.yml consistently when starting services,
collecting logs, and stopping services.
Description
The coverage workflow invokes docker compose with docker-compose-dev.yml, which does not exist
in the repository. Every run fails at its service-start step before reaching the tests.

9. The Config-UI container build fails ✓ Resolved

Resolving commit: bbea4a6

Resolution reason
Updated the Containerfile to invoke the committed Yarn 4.17.0 binary for both dependency
installation and the frontend build.
Description
The new Containerfile invokes .yarn/releases/yarn-3.4.1.cjs, but the committed Yarn release and
project configuration use version 4.17.0. Its install command fails before the frontend build
begins.


Remediation recommended

10. Codecov flags beyond the first page are dropped 🐞 Bug ≡ Correctness
Description
CollectFlags creates an ApiCollector without pagination settings or a next-page callback and
parses only the response's results, so it makes one request and ignores next and total_pages.
When a repository's flags span multiple Codecov API pages, later flags are never converted and their
flag-specific coverage, trend, and comparison collection never runs.
Code

backend/plugins/codecov/tasks/flags_collector.go[R56-58]

Evidence
ApiCollector makes a single fetchAsync call when PageSize <= 0; CollectFlags supplies no
PageSize, pagination query, or callback. Its response parser retains only results, so pagination
metadata cannot trigger requests for later pages.

backend/plugins/codecov/tasks/flags_collector.go[38-69]
backend/helpers/pluginhelper/api/api_collector.go[245-258]
backend/plugins/codecov/tasks/flags_collector.go[47-75]
backend/helpers/pluginhelper/api/api_collector.go[60-79]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The Codecov flags collector fetches only the first page of `/flags`, leaving flags on subsequent pages uncollected.

## Fix Focus Areas
- backend/plugins/codecov/tasks/flags_collector.go[38-75]

## Recommended Fix
Configure the generic collector with `PageSize` and a `Query` that supplies `page` and `page_size`. Parse the API's pagination metadata and provide either `GetTotalPages` using `total_pages` or `GetNextPageCustomData` following `next`, as the other Codecov collectors do, so requests continue until all pages are collected.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


11. Fetched parent issues never reach the domain layer 🐞 Bug ≡ Correctness
Description
collectAndExtractSingleIssue saves the fetched parent only to _tool_jira_issues and never
creates a JiraBoardIssue row for the current board. ConvertIssues and the next iteration's
epic-key query both join on _tool_jira_board_issues, so parents are never converted into
issues/board_issues, and grandparents are never found. Parents that already exist under another
board are also skipped by the connection-wide existence check, so they are never linked to this
board either.
Code

backend/plugins/jira/tasks/parent_issue_collector.go[R225-229]

Evidence
Source issues are filtered by board membership (lines 66-70), but the existence filter is scoped
only by connection (lines 90-93). The save path writes only jiraIssue. The regular extractor
creates the board association explicitly, and the issue converter selects only board-associated
issues.

backend/plugins/jira/tasks/parent_issue_collector.go[62-114]
backend/plugins/jira/tasks/parent_issue_collector.go[220-229]
backend/plugins/jira/tasks/issue_convertor.go[46-64]
backend/plugins/jira/tasks/issue_extractor.go[211-218]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Parent issues fetched by CollectParentIssues are saved without a `_tool_jira_board_issues` row. The converter and later iterations never see them, and parents that already exist under other boards are never linked to this board.

## Fix Focus Areas
- backend/plugins/jira/tasks/parent_issue_collector.go[86-114]
- backend/plugins/jira/tasks/parent_issue_collector.go[220-229]

## Recommended Fix
After saving `jiraIssue`, also `CreateOrUpdate(&models.JiraBoardIssue{ConnectionId, BoardId, IssueId})`, matching issue_extractor. Change the 'already collected' filter to check board membership (join `_tool_jira_board_issues` for this board), and add the board association for parents that exist but are not linked.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


12. Snowflake full sync can delete regular Jira data 🐞 Bug ≡ Correctness
Description
jira_snowflake writes into the regular Jira plugin's tables (_tool_jira_*, raw table
jira_api_issues with JiraApiParams{ConnectionId, BoardId}) and builds domain IDs with the Jira
id generator, using its own connection ID. On a full sync, ConvertIssues deletes
issues/issue_assignees by _raw_data_params and board_issues by board ID. A Snowflake
connection or board whose IDs match a regular Jira connection or board (both start at 1) therefore
overwrites and deletes the other plugin's data.
Code

backend/plugins/jira_snowflake/tasks/convert_issues.go[R171-182]

Evidence
The delete clauses have nothing that identifies the source plugin, and the IDs come from the same
Jira models with (connectionId, issueId). The two plugins have separate connection tables, so
their connection IDs overlap.

backend/plugins/jira_snowflake/tasks/convert_issues.go[165-186]
backend/plugins/jira_snowflake/tasks/sync_issues.go[160-175]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
jira_snowflake shares Jira's tool tables, raw params and domain ID generator, keyed by its own connection IDs, and full-sync deletes rows by those shared keys. Both plugins number connections from 1, so their data collides.

## Fix Focus Areas
- backend/plugins/jira_snowflake/tasks/convert_issues.go[165-186]
- backend/plugins/jira_snowflake/tasks/sync_issues.go[160-175]

## Recommended Fix
Use a distinct raw table name or params type and a plugin-specific domain ID prefix for jira_snowflake. Otherwise, document and enforce (for example, refuse at task start) that a Jira connection with the same ID must not exist.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


View medium (12)
13. Prow collection reports success when saves fail 🐞 Bug ☼ Reliability
Description
processJobs returns nothing; it logs and continues past failures from saveRawJobData,
convertProwJobToCIJob and db.CreateOrUpdate(ciJob). CollectProwJobs then always returns nil.
During a database outage or persistent write error, the task is marked successful with no data
saved, so the pipeline neither fails nor retries.
Code

backend/plugins/testregistry/tasks/prow_collector.go[R108-111]

Evidence
Database errors are only passed to logger.Warn, and the subtask's return value never reflects them.

backend/plugins/testregistry/tasks/prow_collector.go[100-132]
backend/plugins/testregistry/tasks/prow_collector.go[180-200]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Database write failures in Prow collection are only logged, and the subtask always succeeds.

## Fix Focus Areas
- backend/plugins/testregistry/tasks/prow_collector.go[100-210]

## Recommended Fix
Have processJobs return errors.Error. Return immediately when a DAL write fails (raw save or CreateOrUpdate), keep only per-job conversion errors as warnings, and propagate the error from CollectProwJobs.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


14. CodeRabbit findings are counted twice 🐞 Bug ≡ Correctness
Description
parseFindings runs both the CodeRabbit file-block parser and the generic bullet parser over the
same review body. A sufficiently long bullet inside a CodeRabbit file block produces two records
with different generated IDs, inflating finding counts.
Code

backend/plugins/aireview/tasks/extract_ai_review_findings.go[R101-110]

Evidence
Both parsers match bullets in CodeRabbit file blocks; each generates an ID using a different
context.

backend/plugins/aireview/tasks/extract_ai_review_findings.go[96-110]
backend/plugins/aireview/tasks/extract_ai_review_findings.go[119-155]
backend/plugins/aireview/tasks/extract_ai_review_findings.go[197-237]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
CodeRabbit file-block bullets are parsed again as generic bullets with different IDs.
## Fix Focus Areas
- backend/plugins/aireview/tasks/extract_ai_review_findings.go[96-112]
- backend/plugins/aireview/tasks/extract_ai_review_findings.go[115-155]
- backend/plugins/aireview/tasks/extract_ai_review_findings.go[197-237]
## Recommended Fix
Exclude bullets already consumed by the CodeRabbit parser from generic parsing, or deduplicate the combined findings by their source location and content.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


15. Imported issue links have wrong directions 🐞 Bug ≡ Correctness
Description
SyncIssueLinks assigns every Snowflake destination to InwardIssueId, regardless of the source
issue's link direction. The converter consequently always chooses the inward relationship label for
those rows and never reaches its outward branch.
Code

backend/plugins/jira_snowflake/tasks/sync_issue_links.go[R49-50]

Evidence
The query and model construction populate only the inward endpoint, which is the converter's
unconditional first branch for these rows.

backend/plugins/jira_snowflake/tasks/sync_issue_links.go[41-50]
backend/plugins/jira_snowflake/tasks/sync_issue_links.go[78-94]
backend/plugins/jira_snowflake/tasks/convert_issue_links.go[70-79]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Snowflake issue links always populate the inward endpoint, causing the converter to select the inward label.
## Fix Focus Areas
- backend/plugins/jira_snowflake/tasks/sync_issue_links.go[41-94]
- backend/plugins/jira_snowflake/tasks/convert_issue_links.go[70-79]
## Recommended Fix
Map source and destination consistently to the Jira relationship model and select the label appropriate to that orientation; cover both directions in tests.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


16. Invalid settings make AI reviews disappear 🐞 Bug ≡ Correctness
Description
PrepareTaskData ignores a missing scope-configuration record but still assigns its zero-value
struct to op.ScopeConfig. An analysis submitted with a nonexistent scopeConfigId therefore
bypasses the defaults and runs without detection patterns, returning no detected AI reviews instead
of rejecting the ID.
Code

backend/plugins/aireview/impl/impl.go[R151-155]

Evidence
The missing record is assigned despite the not-found result, while defaults apply only to nil
configurations and pattern compilation depends on populated settings.

backend/plugins/aireview/impl/impl.go[147-169]
backend/plugins/aireview/tasks/task_data.go[93-155]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
A missing AI-review scope configuration becomes an empty, apparently valid configuration.
## Fix Focus Areas
- backend/plugins/aireview/impl/impl.go[147-161]
## Recommended Fix
Return a bad-input error when the requested ID is absent; retain defaults only when no ID or configuration was supplied.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


17. Removed Jira labels remain in reports 🐞 Bug ≡ Correctness
Description
SyncLabels upserts labels returned by Snowflake but never removes labels absent from a later full
sync. The converter still reads those old tool-table rows, so a label removed upstream continues to
appear in converted issue data.
Code

backend/plugins/jira_snowflake/tasks/sync_labels.go[R75-80]

Evidence
The sync performs only upserts, and conversion reads persisted tool labels without a current-source
filter; the existing Jira extractor explicitly removes old labels before refresh.

backend/plugins/jira_snowflake/tasks/sync_labels.go[52-80]
backend/plugins/jira_snowflake/tasks/convert_issue_labels.go[41-82]
backend/plugins/jira/tasks/issue_extractor.go[72-93]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Full Snowflake syncs never delete Jira issue labels that disappeared upstream.
## Fix Focus Areas
- backend/plugins/jira_snowflake/tasks/sync_labels.go[52-80]
- backend/plugins/jira_snowflake/tasks/convert_issue_labels.go[41-82]
## Recommended Fix
Within the synchronized scope, replace or reconcile tool labels against the current Snowflake result, and ensure removed labels are also removed from converted data.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


18. Large artifacts are saved incomplete 🐞 Bug ≡ Correctness
Description
GetRaw caps GitLab artifact reads at 8 MiB but returns the capped content as a successful complete
response. If an artifact exceeds that limit, collection stores a truncated raw file and extraction
attempts to parse it without knowing bytes were omitted.
Code

backend/plugins/aisdlc/tasks/gitlab_client.go[R297-305]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The GitLab client silently treats a capped artifact response as complete.
## Fix Focus Areas
- backend/plugins/aisdlc/tasks/gitlab_client.go[297-305]
- backend/plugins/aisdlc/tasks/collect.go[94-110]
## Recommended Fix
Read one byte beyond the size limit and return an explicit oversized-artifact error if it is present; never persist truncated content as a successful collection.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


19. A short timestamp crashes coverage-trend conversion 🐞 Bug ☼ Reliability
Description
When time.Parse(time.RFC3339, point.Timestamp) fails, the coverage-trend converter slices
point.Timestamp[:10] without checking its length. A raw record with a missing or
shorter-than-ten-character timestamp therefore panics and aborts the converter before the
invalid-date skip branch can run.
Code

backend/plugins/codecov/tasks/coverage_trend_converter.go[84]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The fallback date parse slices short timestamps without checking their length, causing the converter to panic instead of skipping invalid records.

## Fix Focus Areas
- backend/plugins/codecov/tasks/coverage_trend_converter.go[80-88]

## Recommended Fix
Check `len(point.Timestamp) >= 10` before slicing for the fallback parse. If it is shorter, return `nil, nil` to skip the malformed record without panicking.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


20. Codecov plugin migrations fail on PostgreSQL 🐞 Bug ☼ Reliability
Description
The Codecov migrations use MySQL-only SQL for deduplication, table copying, renaming and primary-key
changes, while the trend collector uses MySQL’s NOT REGEXP operator. On PostgreSQL, the
unconditionally registered migrations fail and block startup, and flag-trend collection fails when
its query runs.
Code

backend/plugins/codecov/models/migrationscripts/20261007000000_fix_commits_primary_key.go[R47-50]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The Codecov migrations and trend collector use MySQL-only SQL that breaks PostgreSQL deployments.

## Fix Focus Areas
- backend/plugins/codecov/models/migrationscripts/20260615000000_fix_commits_dedup_and_drop_id.go[66-90]
- backend/plugins/codecov/models/migrationscripts/20260622000000_dedup_raw_tables.go[40-78]
- backend/plugins/codecov/models/migrationscripts/20261007000000_fix_commits_primary_key.go[38-119]
- backend/plugins/codecov/tasks/flag_coverage_trend_collector.go[59-64]

## Recommended Fix
Branch on `db.Dialect()` and provide PostgreSQL-compatible migration SQL, including deduplication and primary-key creation, or use DAL helpers such as `db.HasTable`, `db.RenameTable`, `migrationhelper.TransformTable` and gorm Migrator primary-key operations. Replace `NOT REGEXP` with a portable filter performed in Go, and verify migrations from a clean state on both dialects.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


21. aisdlc schema repair fails on PostgreSQL 🐞 Bug ☼ Reliability
Description
20261026_add_nopk_columns.go selects column types by dialect but builds its ALTER TABLE and
CREATE INDEX statements with MySQL backticks. When a PostgreSQL database needs the repair, the
first missing-column ALTER TABLE fails and blocks the registered plugin migration; index creation
errors are also ignored, so an index can silently go missing.
Code

backend/plugins/aisdlc/models/migrationscripts/20261026_add_nopk_columns.go[R73-76]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The AI-SDLC repair migration emits MySQL-backtick-quoted identifiers on PostgreSQL, blocking missing-column repairs; it also discards index creation errors.

## Fix Focus Areas
- backend/plugins/aisdlc/models/migrationscripts/20261026_add_nopk_columns.go[45-90]

## Recommended Fix
Use `db.AddColumn` or Gorm Migrator `AddColumn`/`CreateIndex`, or generate identifiers using the active dialect, including double quotes for PostgreSQL in both statements. Return or log index creation errors instead of discarding them, and test the migration on PostgreSQL and MySQL.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


22. Documented assessments are never collected 🐞 Bug ≡ Correctness
Description
ParseSubmissionEntries accepts only files named assessment-latest.json, although the plugin's
documented submissions layout contains timestamped assessment files. A repository following that
layout yields no collected assessments or remotely discoverable scopes.
Code

backend/plugins/agentready/tasks/submissions_collector.go[R201-203]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The collector rejects every assessment filename in the documented submissions layout.
## Fix Focus Areas
- backend/plugins/agentready/tasks/submissions_collector.go[180-213]
- backend/plugins/agentready/README.md[9-24]
## Recommended Fix
Support the documented timestamped submissions, selecting the intended latest assessment per repository, or make generation of the required latest-file alias an explicit, working prerequisite.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


23. Updated Tekton jobs are never refreshed 🐞 Bug ≡ Correctness
Description
The Tekton collector skips an artifact or PipelineRun whenever its job ID already exists, before
reading the latest result or JUnit files. A previously collected pending job therefore stays pending
after completion, and later-added test results are not ingested.
Code

backend/plugins/testregistry/tasks/tekton_collector.go[R235-239]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Existing Tekton job IDs are skipped even when their status or test artifact has changed.
## Fix Focus Areas
- backend/plugins/testregistry/tasks/tekton_collector.go[233-239]
- backend/plugins/testregistry/tasks/tekton_collector.go[279-328]
## Recommended Fix
Revisit unfinished jobs and changed artifacts, updating job status and associated task/JUnit data idempotently rather than skipping solely by job ID.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


24. Fork changes lack code owners 🔗 Cross-repo conflict ≡ Correctness
Description
CODEOWNERS assigns every path to @konflux-ci/konflux-devprod-team, which cannot serve as a team
owner for the fullsend-ai/devlake repository governed by fullsend-ai/org. This affects all new
ownership rules, while the org’s DevLake ruleset is disabled and its policy check verifies only that
the CODEOWNERS file exists.
Code

CODEOWNERS[5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
CODEOWNERS names a team from another organization, so its ownership rules cannot assign reviewers in fullsend-ai/devlake.
## Fix Focus Areas
- CODEOWNERS[4-11]
- /cross_repos/org/peribolos.yaml[156-170]
- /cross_repos/org/repos/devlake.yml[1-30]
## Recommended Fix
Replace the Konflux team with a fullsend-ai team that has DevLake access, or coordinate the intended ownership and review-enforcement changes in fullsend-ai/org.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗



Informational

25. Snowflake changelog items can be skipped forever 🐞 Bug ≡ Correctness
Description
In incremental mode, the Snowflake changelog converter filters on
_tool_jira_issue_changelog_items.created_at >= since. created_at is set when the row is first
inserted and does not change when the row is upserted again. Items inserted before the watermark
whose conversion failed or was cut short are never revisited, whereas the regular Jira converter
filters on updated_at for exactly this reason.
Code

backend/plugins/jira_snowflake/tasks/convert_changelogs.go[105]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The incremental changelog conversion filters on created_at, so rows that are upserted again are never re-converted.

## Fix Focus Areas
- backend/plugins/jira_snowflake/tasks/convert_changelogs.go[102-108]

## Recommended Fix
Change the clause to `_tool_jira_issue_changelog_items.updated_at >= ?`, matching the regular Jira converter.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


26. Quay tag listing keeps every page's connection open 🐞 Bug ➹ Performance
Description
ListTags calls defer resp.Body.Close() inside the for hasMore pagination loop, so no response
body is closed until the function returns. Repositories with many tag pages hold one open connection
and file descriptor per page for the whole listing, which can exhaust them.
Code

backend/plugins/testregistry/tasks/quay_client.go[R116-120]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
A defer inside the pagination loop holds every response body open until ListTags returns.

## Fix Focus Areas
- backend/plugins/testregistry/tasks/quay_client.go[100-130]

## Recommended Fix
Move the per-page request and decode into a helper function that defers Close, or close the body explicitly after decoding and on every error path.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


27. Failed artifact pulls leave temp folders on disk 🐞 Bug ☼ Reliability
Description
PullArtifact creates loggingDir/tmp/<uuid> before running oras pull, and on failure returns
"" without removing the folder. The caller only cleans up when the returned path is non-empty, so
each failed pull leaves its directory and any partial files behind, and disk use grows across runs.
Code

backend/plugins/testregistry/tasks/oras_client.go[R140-143]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The temporary artifact directory leaks when oras pull fails.

## Fix Focus Areas
- backend/plugins/testregistry/tasks/oras_client.go[111-147]

## Recommended Fix
Call `os.RemoveAll(artifactDir)` in the execErr branch before returning.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

⚠️ Warning | Comment size exceeded, inner finding content trimmed View findings
⚠️ Warning | Comment size exceeded, non finding content trimmed Learn more

Grey Divider

Qodo Logo

Comment thread backend/server/api/api.go
AllowMethods: []string{"PUT", "PATCH", "POST", "GET", "OPTIONS", "DELETE"},
AllowHeaders: []string{"Origin", "Content-Type", "Authorization"},
ExposeHeaders: []string{"Content-Length"},
AllowCredentials: true,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Credentialed browser requests fail by default 🐞 Bug ≡ Correctness

CreateApiServer combines the new wildcard CORS default with AllowCredentials: true. With no
CORS_ALLOW_ORIGIN override, browsers reject cross-origin responses to requests carrying
credentials.
Agent Prompt
## Issue description
Wildcard origins cannot be used for credentialed browser CORS requests.
## Fix Focus Areas
- backend/server/api/api.go[103-112]
- backend/core/config/config_viper.go[108-108]
## Recommended Fix
Use explicit allowed origins when enabling credentials, or disable credentialed CORS for the wildcard default; test both default and configured-origin requests.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Comment thread .github/workflows/test-e2e-coverage.yml Resolved
Comment thread .github/workflows/test-e2e-coverage.yml Outdated
fi
sleep 2
done
curl -sf http://localhost:4000 || (echo "Config-UI failed to start"; docker compose -f docker-compose-dev.yml -f docker-compose-e2e-coverage.yml logs config-ui; exit 1)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

3. The end-to-end job probes the wrong port 🐞 Bug ≡ Correctness

The coverage workflow waits for Config-UI at localhost:4000, while the MySQL development Compose
stack publishes container port 4000 on host port 4001. After the Compose filename is corrected, the
readiness check still fails before the tests run.
Agent Prompt
## Issue description
The workflow checks a port that its development Compose stack does not publish for Config-UI.
## Fix Focus Areas
- .github/workflows/test-e2e-coverage.yml[81-91]
- docker-compose-dev-mysql.yml[89-99]
## Recommended Fix
Point the readiness check at the selected Compose stack's published host port, and keep the test base URL consistent.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Comment thread config-ui/Containerfile Resolved
Comment on lines +49 to +51
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
GF_AUTH_DISABLE_LOGIN_FORM: "true"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

5. Network visitors can administer grafana 🐞 Bug ⛨ Security

The development Compose configurations assign anonymous Grafana visitors the Admin role and
disable the login form. Their Grafana ports are published without a loopback-only binding, so anyone
who can reach a development host's published port can administer its Grafana organization without
signing in.
Agent Prompt
## Issue description
Development Compose publishes Grafana with anonymous administrator privileges.
## Fix Focus Areas
- docker-compose-dev-mysql.yml[40-51]
- docker-compose-dev-postgresql.yml[37-46]
- .devcontainer/docker-compose.yml[49-54]
## Recommended Fix
Do not grant anonymous Admin access; if anonymous development access remains necessary, bind the port to loopback and grant only the minimum role needed.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

date, parseErr := time.Parse(time.RFC3339, point.Timestamp)
if parseErr != nil {
// Try alternative format
date, parseErr = time.Parse("2006-01-02", point.Timestamp[:10])

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

22. A short timestamp crashes coverage-trend conversion 🐞 Bug ☼ Reliability

When time.Parse(time.RFC3339, point.Timestamp) fails, the coverage-trend converter slices
point.Timestamp[:10] without checking its length. A raw record with a missing or
shorter-than-ten-character timestamp therefore panics and aborts the converter before the
invalid-date skip branch can run.
Agent Prompt
## Issue description
The fallback date parse slices short timestamps without checking their length, causing the converter to panic instead of skipping invalid records.

## Fix Focus Areas
- backend/plugins/codecov/tasks/coverage_trend_converter.go[80-88]

## Recommended Fix
Check `len(point.Timestamp) >= 10` before slicing for the fallback parse. If it is shorter, return `nil, nil` to skip the malformed record without panicking.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Comment on lines +108 to +111
stats.processJobs(
taskCtx,
db,
allJobs,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

23. Prow collection reports success when saves fail 🐞 Bug ☼ Reliability

processJobs returns nothing; it logs and continues past failures from saveRawJobData,
convertProwJobToCIJob and db.CreateOrUpdate(ciJob). CollectProwJobs then always returns nil.
During a database outage or persistent write error, the task is marked successful with no data
saved, so the pipeline neither fails nor retries.
Agent Prompt
## Issue description
Database write failures in Prow collection are only logged, and the subtask always succeeds.

## Fix Focus Areas
- backend/plugins/testregistry/tasks/prow_collector.go[100-210]

## Recommended Fix
Have processJobs return errors.Error. Return immediately when a DAL write fails (raw save or CreateOrUpdate), keep only per-job conversion errors as warnings, and propagate the error from CollectProwJobs.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Comment on lines +140 to +143
if execErr != nil {
outputStr := string(output)
c.logger.Error(execErr, "failed to pull artifact with ORAS CLI", "artifact", artifactRef, "output", outputStr, "uuid", uuid)
return "", errors.Default.Wrap(execErr, fmt.Sprintf("oras pull failed: %s", outputStr))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Informational

26. Failed artifact pulls leave temp folders on disk 🐞 Bug ☼ Reliability

PullArtifact creates loggingDir/tmp/<uuid> before running oras pull, and on failure returns
"" without removing the folder. The caller only cleans up when the returned path is non-empty, so
each failed pull leaves its directory and any partial files behind, and disk use grows across runs.
Agent Prompt
## Issue description
The temporary artifact directory leaks when oras pull fails.

## Fix Focus Areas
- backend/plugins/testregistry/tasks/oras_client.go[111-147]

## Recommended Fix
Call `os.RemoveAll(artifactDir)` in the execErr branch before returning.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Comment on lines +116 to +120
resp, err := c.httpClient.Do(req)
if err != nil {
return nil, errors.Default.Wrap(err, "failed to fetch tags from Quay.io")
}
defer resp.Body.Close()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Informational

27. Quay tag listing keeps every page's connection open 🐞 Bug ➹ Performance

ListTags calls defer resp.Body.Close() inside the for hasMore pagination loop, so no response
body is closed until the function returns. Repositories with many tag pages hold one open connection
and file descriptor per page for the whole listing, which can exhaust them.
Agent Prompt
## Issue description
A defer inside the pagination loop holds every response body open until ListTags returns.

## Fix Focus Areas
- backend/plugins/testregistry/tasks/quay_client.go[100-130]

## Recommended Fix
Move the per-page request and decode into a helper function that defers Close, or close the body explicitly after decoding and on every error path.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Comment thread CODEOWNERS
# See: https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

# Default — covers everything not matched by a more specific rule below
* @konflux-ci/konflux-devprod-team

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

24. Fork changes lack code owners 🔗 Cross-repo conflict ≡ Correctness

CODEOWNERS assigns every path to @konflux-ci/konflux-devprod-team, which cannot serve as a team
owner for the fullsend-ai/devlake repository governed by fullsend-ai/org. This affects all new
ownership rules, while the org’s DevLake ruleset is disabled and its policy check verifies only that
the CODEOWNERS file exists.
Agent Prompt
## Issue description
CODEOWNERS names a team from another organization, so its ownership rules cannot assign reviewers in fullsend-ai/devlake.
## Fix Focus Areas
- CODEOWNERS[4-11]
- /cross_repos/org/peribolos.yaml[156-170]
- /cross_repos/org/repos/devlake.yml[1-30]
## Recommended Fix
Replace the Konflux team with a fullsend-ai team that has DevLake access, or coordinate the intended ownership and review-enforcement changes in fullsend-ai/org.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

mfrancisc and others added 4 commits October 29, 2026 16:07
Carry the owned plugins and remaining Konflux behavior onto this repo's main so the move off konflux-ci/devlake keeps the newer upstream fixes.

Co-Authored-By: Cursor <cursoragent@cursor.com>

Signed-off-by: fmuntean <fmuntean@redhat.com>
Replace the unmaintained mericodev/lake-builder:latest image (2023, Go
1.20, bullseye) with the builder image now published by
build-builder.yml under the apache namespace.

Closes apache#9209

Signed-off-by: Dirk <DoDiDev@proton.me>
Signed-off-by: Francisc Munteanu <fmuntean@redhat.com>
Coverage still started the removed compose file, plugin SQL used MySQL
quoting, and golangci v2.14 rejected the ported plugins.

Signed-off-by: fmuntean <fmuntean@redhat.com>
Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
@mfrancisc
mfrancisc force-pushed the konflux-onto-latest branch from 97c920a to 5fa0dd3 Compare October 29, 2026 15:16
mfrancisc and others added 13 commits October 30, 2026 13:02
Divider text alignment is titlePlacement in Ant Design 6, Hadolint's published tag is v2.14.0, and MySQL sql-mode has to be a service command. Owned-plugin schemas no longer use MySQL-only column types or DDL that Postgres rejects.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
Hadolint's image has no entrypoint, so its flags were executed as the command. The config-ui build needs Node 24 because Rolldown imports util.styleText. Aireview fixtures from March now stay inside the rolling CI windows, and the reaction and missing-CI queries run on Postgres.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
…mock

Hadolint fails on an unquoted nproc expansion. The prediction fixture expects flaky CI to be excluded, which the scope leaves off by default. The coverage image compiled gitextractor against libgit2 1.3.2, and the missing-PR unit test did not stub Dialect.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
Shared e2e databases already have cicd_pipeline_commits from AutoMigrate, so the rename migration must skip when the target table exists. Codecov comparison migrations used gorm type double, which Postgres rejects during schema_e2e.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
Keep cicd_scope_id as varchar(255) when replaying the 20221207 snapshot on tables AutoMigrate already created, and skip the repo→repo_url rename when repo is gone.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
When the e2e database already has deployment_commit_id, only rename from deployment_id or drop the legacy column instead of failing on Postgres.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
…ated

Plugin e2e AutoMigrate creates _tool_refdiff_finished_commits_diffs before the framework rename script runs on the shared database.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
Plugin e2e AutoMigrate final schema before testregistry replays migrations. Guard all core RenameTable/RenameColumn/DropColumns call sites via shared helpers.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
Aireview e2e AutoMigrate adds _raw_data_* before framework 20260422000002 replays on the shared database.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
Add composite primary keys on ci_test_* when missing and insert suites/cases with Create after delete so ON CONFLICT is not required on repeat POST.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
The coverage overlay inlines devlake environment without loading a populated .env, so the API panicked on startup.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
Playwright 1.64 rejects Node 18 on the install step after ENCRYPTION_SECRET was fixed.

Co-Authored-By: Cursor <cursoragent@cursor.com>
Signed-off-by: fmuntean <fmuntean@redhat.com>
@kpiwko

kpiwko commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Thanks a zillion @mfrancisc !

@kpiwko
kpiwko merged commit ba0670f into main Nov 4, 2026
17 of 18 checks passed
@kpiwko
kpiwko deleted the konflux-onto-latest branch November 4, 2026 16:54
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