Skip to content

LCORE-2324: Fixed Konflux script#1789

Merged
tisnik merged 1 commit into
lightspeed-core:mainfrom
tisnik:lcore-2324-fixed-konflux-script
May 25, 2026
Merged

LCORE-2324: Fixed Konflux script#1789
tisnik merged 1 commit into
lightspeed-core:mainfrom
tisnik:lcore-2324-fixed-konflux-script

Conversation

@tisnik
Copy link
Copy Markdown
Contributor

@tisnik tisnik commented May 25, 2026

Description

LCORE-2324: Fixed Konflux script

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

  • Assisted-by: N/A
  • Generated by: N/A

Related Tickets & Documents

  • Related Issue #LCORE-2324

Summary by CodeRabbit

  • Chores
    • Modified build dependency configuration in the build script.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 25, 2026

Walkthrough

The Konflux build script no longer enforces a specific pinned version of maturin. A single sed command that replaced maturin version specifications with 1.10.2 in the build dependencies file has been disabled by commenting it out.

Changes

Maturin Version Constraint Removal

Layer / File(s) Summary
Disable maturin version constraint
scripts/konflux_requirements.sh
The sed command that pinned maturin to version 1.10.2 in the build file has been commented out, allowing the build to use the maturin version specified elsewhere.

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'LCORE-2324: Fixed Konflux script' is vague and lacks specific detail about what was fixed in the script. Specify the exact issue that was fixed, such as 'LCORE-2324: Disable maturin version pinning in Konflux requirements script' to provide clarity on the actual change.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
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.

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: 1

🤖 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 `@scripts/konflux_requirements.sh`:
- Around line 82-84: Unclear temporary removal of the maturin pin needs
resolution: either re-enable the sed that pins maturin to 1.10.2 (undo the
commented-out line using the sed operation that updates "$BUILD_FILE") or remove
the “LCORE-2324: commented out (temporarily?)” marker and replace it with a
concise justification explaining why the pin was removed (e.g., maturin 1.10.2
was deprecated/incompatible/unavailable and caused X bug). After changing the
script, run the build-deps generation step (uv run pybuild-deps compile) and
verify the produced requirements-build.txt contains the expected maturin version
(or document that it deliberately does not and why), and update the comment to
reference LCORE-2324 with the exact rationale and test evidence.
🪄 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: 84af9019-37af-40c8-9070-2d39e65908b9

📥 Commits

Reviewing files that changed from the base of the PR and between 98629bd and f6aab4f.

📒 Files selected for processing (1)
  • 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). (13)
  • GitHub Check: unit_tests (3.12)
  • GitHub Check: unit_tests (3.13)
  • GitHub Check: build-pr
  • GitHub Check: spectral
  • GitHub Check: Pylinter
  • GitHub Check: Konflux kflux-prd-rh02 / lightspeed-stack-on-pull-request
  • GitHub Check: E2E: library mode / ci / group 1
  • GitHub Check: E2E: server mode / ci / group 2
  • GitHub Check: E2E: server mode / ci / group 1
  • GitHub Check: E2E: server mode / ci / group 3
  • GitHub Check: E2E: library mode / ci / group 3
  • GitHub Check: E2E: library mode / ci / group 2
  • GitHub Check: E2E Tests for Lightspeed Evaluation job
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2026-05-12T15:14:34.788Z
Learnt from: syedriko
Repo: lightspeed-core/lightspeed-stack PR: 1727
File: scripts/konflux_requirements.sh:9-15
Timestamp: 2026-05-12T15:14:34.788Z
Learning: In this repo, the `.konflux/` directory is committed/tracked and is guaranteed to exist in a fresh clone. Therefore, shell scripts that write output under `.konflux/` (e.g., create files like `.konflux/<...>`) should not waste effort by calling `mkdir -p .konflux` first. Only add directory-creation logic if the script may run in an environment/repo state where `.konflux/` might not be present.

Applied to files:

  • scripts/konflux_requirements.sh

Comment on lines 82 to +84
# pin maturin to the version available in the Red Hat registry
sed -i 's/maturin==[0-9.]*/maturin==1.10.2/' "$BUILD_FILE"
# LCORE-2324: commented out (temporarily?)
# sed -i 's/maturin==[0-9.]*/maturin==1.10.2/' "$BUILD_FILE"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Determine the maturin version that pybuild-deps will resolve

# Temporarily restore the script to generate BUILD_FILE without the pin
cd .konflux
uv run pybuild-deps compile --output-file=/tmp/test-build.txt requirements.source.txt 2>/dev/null || echo "pybuild-deps failed"

# Extract maturin version
echo "Resolved maturin version:"
rg -n 'maturin==' /tmp/test-build.txt || echo "No maturin found in generated file"

# Check if that version is mentioned in current requirements-build.txt
echo -e "\nCurrent pinned version in requirements-build.txt:"
rg -n 'maturin==' .konflux/requirements-build.txt

Repository: lightspeed-core/lightspeed-stack

Length of output: 358


Restore/justify deterministic maturin pin (and clarify intent for LCORE-2324)

  • # LCORE-2324: commented out (temporarily?) leaves unclear whether the maturin==1.10.2 pin was intentionally removed permanently; either re-enable the pin/constraint or remove the uncertainty marker with the rationale.
  • PR calls it a “bug fix” but doesn’t state what bug was fixed by the 1.10.2 pin (deprecated/unavailable/incompatible?); include that explanation.
  • Provide evidence that the build-time dependency generation used by Tekton (i.e., requirements-build.txt produced from uv run pybuild-deps compile) still resolves to the expected maturin version and has been tested without the pin (the suggested check didn’t produce requirements-build.txt in the current environment).
🤖 Prompt for 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.

In `@scripts/konflux_requirements.sh` around lines 82 - 84, Unclear temporary
removal of the maturin pin needs resolution: either re-enable the sed that pins
maturin to 1.10.2 (undo the commented-out line using the sed operation that
updates "$BUILD_FILE") or remove the “LCORE-2324: commented out (temporarily?)”
marker and replace it with a concise justification explaining why the pin was
removed (e.g., maturin 1.10.2 was deprecated/incompatible/unavailable and caused
X bug). After changing the script, run the build-deps generation step (uv run
pybuild-deps compile) and verify the produced requirements-build.txt contains
the expected maturin version (or document that it deliberately does not and
why), and update the comment to reference LCORE-2324 with the exact rationale
and test evidence.

@tisnik tisnik merged commit 847c966 into lightspeed-core:main May 25, 2026
31 checks passed
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.

1 participant