Repository navigation
feat: bring Konflux fork changes onto current main- #9274 - #5
Conversation
…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>
PR Summary by QodoBring Konflux plugins and deployment integrations onto current DevLake
AI Description
Diagram
High-Level Assessment
Files changed (455)
|
Code Review by Qodo 1. Any Basic auth header gets past the login gate
|
| AllowMethods: []string{"PUT", "PATCH", "POST", "GET", "OPTIONS", "DELETE"}, | ||
| AllowHeaders: []string{"Origin", "Content-Type", "Authorization"}, | ||
| ExposeHeaders: []string{"Content-Length"}, | ||
| AllowCredentials: true, |
There was a problem hiding this comment.
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
| 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) |
There was a problem hiding this comment.
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
| GF_AUTH_ANONYMOUS_ENABLED: "true" | ||
| GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin" | ||
| GF_AUTH_DISABLE_LOGIN_FORM: "true" |
There was a problem hiding this comment.
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
| date, parseErr := time.Parse(time.RFC3339, point.Timestamp) | ||
| if parseErr != nil { | ||
| // Try alternative format | ||
| date, parseErr = time.Parse("2006-01-02", point.Timestamp[:10]) |
There was a problem hiding this comment.
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
| stats.processJobs( | ||
| taskCtx, | ||
| db, | ||
| allJobs, |
There was a problem hiding this comment.
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
| 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)) |
There was a problem hiding this comment.
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
| 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() |
There was a problem hiding this comment.
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
| # 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 |
There was a problem hiding this comment.
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
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>
97c920a to
5fa0dd3
Compare
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>
|
Thanks a zillion @mfrancisc ! |
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