Skip to content

LCORE-1964: Work files used by Konflux infrastructure pollute the top level in LCORE repositories#1727

Merged
tisnik merged 1 commit into
lightspeed-core:mainfrom
syedriko:syedriko-lcore-1964
May 12, 2026
Merged

LCORE-1964: Work files used by Konflux infrastructure pollute the top level in LCORE repositories#1727
tisnik merged 1 commit into
lightspeed-core:mainfrom
syedriko:syedriko-lcore-1964

Conversation

@syedriko
Copy link
Copy Markdown
Contributor

@syedriko syedriko commented May 12, 2026

Description

Work files used by Konflux infrastructure pollute the top level in LCORE repositories. It confuses developers.
Moved Konflux-related files into the .konflux directory.

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

Identify any AI code assistants used in this PR (for transparency and review context)

  • Assisted-by: (e.g., Claude, CodeRabbit, Ollama, etc., N/A if not used)
  • Generated by: (e.g., tool name and version; N/A if not used)

Related Tickets & Documents

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

Summary by CodeRabbit

  • Chores
    • Reorganized build system configuration files, dependency prefetch information, and generated artifacts into a centralized directory structure for improved project organization.
    • Updated build pipeline definitions to correctly reference the new centralized locations of all build configuration and artifact files.
    • Streamlined build system management through better file organization and directory structure consolidation.

Review Change Stack

@tisnik
Copy link
Copy Markdown
Contributor

tisnik commented May 12, 2026

/ok-to-test

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 12, 2026

Warning

Rate limit exceeded

@syedriko has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 30 minutes and 52 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3c4efb98-a5a7-4cfb-b9c6-2a282ca92ae1

📥 Commits

Reviewing files that changed from the base of the PR and between bb7a9b1 and 98a3594.

📒 Files selected for processing (14)
  • .konflux/artifacts.lock.yaml
  • .konflux/build-args-konflux.conf
  • .konflux/redhat.repo
  • .konflux/requirements-build.txt
  • .konflux/requirements.hashes.source.txt
  • .konflux/requirements.hashes.wheel.txt
  • .konflux/requirements.hermetic.txt
  • .konflux/requirements.overrides.txt
  • .konflux/rpms.in.yaml
  • .konflux/rpms.lock.yaml
  • .tekton/lightspeed-stack-pull-request.yaml
  • .tekton/lightspeed-stack-push.yaml
  • Containerfile
  • scripts/konflux_requirements.sh

Walkthrough

This PR consolidates build artifacts into a .konflux directory. The requirements script is updated to generate files under .konflux/, and both Tekton pipeline configurations are updated to expect prefetch inputs and build configuration from that new subdirectory instead of the repository root.

Changes

Konflux directory consolidation

Layer / File(s) Summary
Script output directory refactoring
scripts/konflux_requirements.sh
Introduces KONFLUX_DIR=".konflux" and updates SOURCE_FILE, WHEEL_FILE, SOURCE_HASH_FILE, WHEEL_HASH_FILE, and BUILD_FILE to use .konflux/ paths.
Pull request pipeline prefetch paths
.tekton/lightspeed-stack-pull-request.yaml
Updates prefetch-input entries for rpm and pip to reference .konflux directory instead of root.
Push pipeline prefetch and build configuration
.tekton/lightspeed-stack-push.yaml
Updates prefetch-input entries for rpm, generic, and pip to .konflux, and changes build-args-file to .konflux/build-args-konflux.conf.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title clearly describes the main change: moving Konflux infrastructure work files from the repository root into a .konflux directory to address the pollution of the top level.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
✨ Simplify code
  • Create PR with simplified code

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@syedriko syedriko force-pushed the syedriko-lcore-1964 branch from bb7a9b1 to 610452c Compare May 12, 2026 15:13
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.tekton/lightspeed-stack-pull-request.yaml:
- Line 53: The PR pipeline config was updated to move dependency inputs under
".konflux" but the build-args-file reference still points to the repo root file;
update the build-args-file entry in .tekton/lightspeed-stack-pull-request.yaml
to reference the relocated file under ".konflux" (e.g., change the value of
build-args-file to ".konflux/build-args-konflux.conf") so the pipeline matches
the new .konflux layout.

In `@scripts/konflux_requirements.sh`:
- Around line 9-15: The script sets KONFLUX_DIR and several target files
(RAW_REQ_FILE, SOURCE_FILE, WHEEL_FILE, SOURCE_HASH_FILE, WHEEL_HASH_FILE,
BUILD_FILE) but never creates the .konflux directory; add a step immediately
after KONFLUX_DIR is defined to create the directory (e.g., run mkdir -p
"${KONFLUX_DIR}") and fail early on error so subsequent redirects to
"${KONFLUX_DIR}/..." succeed; ensure this creation happens before any writes to
SOURCE_FILE, WHEEL_FILE, etc., and consider using a conditional check or set -e
to surface failures.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: bcccaf8f-ab3b-414b-b07d-e474d12f2640

📥 Commits

Reviewing files that changed from the base of the PR and between 055fa4f and bb7a9b1.

📒 Files selected for processing (13)
  • .konflux/artifacts.lock.yaml
  • .konflux/build-args-konflux.conf
  • .konflux/redhat.repo
  • .konflux/requirements-build.txt
  • .konflux/requirements.hashes.source.txt
  • .konflux/requirements.hashes.wheel.txt
  • .konflux/requirements.hermetic.txt
  • .konflux/requirements.overrides.txt
  • .konflux/rpms.in.yaml
  • .konflux/rpms.lock.yaml
  • .tekton/lightspeed-stack-pull-request.yaml
  • .tekton/lightspeed-stack-push.yaml
  • scripts/konflux_requirements.sh
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: E2E: server mode / ci / group 1
  • GitHub Check: E2E: library mode / ci / group 2
  • GitHub Check: E2E: library mode / ci / group 1
  • GitHub Check: E2E: server mode / ci / group 2
  • GitHub Check: build-pr
  • GitHub Check: E2E: server mode / ci / group 3
  • GitHub Check: E2E: library mode / ci / group 3
🔇 Additional comments (1)
.tekton/lightspeed-stack-push.yaml (1)

37-37: LGTM!

Also applies to: 41-41, 45-45, 65-65

Comment thread .tekton/lightspeed-stack-pull-request.yaml
Comment thread scripts/konflux_requirements.sh
@syedriko syedriko force-pushed the syedriko-lcore-1964 branch from 610452c to fe9c403 Compare May 12, 2026 15:17
@tisnik
Copy link
Copy Markdown
Contributor

tisnik commented May 12, 2026

/ok-to-test

@syedriko syedriko force-pushed the syedriko-lcore-1964 branch from fe9c403 to 98a3594 Compare May 12, 2026 15:36
Copy link
Copy Markdown
Contributor

@tisnik tisnik left a comment

Choose a reason for hiding this comment

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

LGTM, but let's wait for CI to finish

@tisnik tisnik merged commit 22c9f02 into lightspeed-core:main May 12, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants