Skip to content

LCORE-1966: Removed lxml#1699

Merged
tisnik merged 1 commit intolightspeed-core:mainfrom
tisnik:lcore-1966-removed-lxml
May 7, 2026
Merged

LCORE-1966: Removed lxml#1699
tisnik merged 1 commit intolightspeed-core:mainfrom
tisnik:lcore-1966-removed-lxml

Conversation

@tisnik
Copy link
Copy Markdown
Contributor

@tisnik tisnik commented May 6, 2026

Description

LCORE-1966: Removed lxml

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-1966

Summary by CodeRabbit

  • Chores
    • Updated project dependencies to include new packages for enhanced functionality and removed unnecessary ones.
    • Adjusted build configuration to ensure proper dependency management across build environments.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 6, 2026

Warning

Rate limit exceeded

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

To continue reviewing without waiting, purchase usage credits 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: 2ee038e3-da58-4681-aea9-97cd0a8d3af9

📥 Commits

Reviewing files that changed from the base of the PR and between 7a8a0d0 and 541965f.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (5)
  • .tekton/lightspeed-stack-pull-request.yaml
  • .tekton/lightspeed-stack-push.yaml
  • pyproject.toml
  • requirements.hashes.source.txt
  • requirements.hashes.wheel.txt

Walkthrough

Dependencies are reorganized across the project: lxml is removed from pyproject.toml and Tekton build configs, while maturin, pydantic, protobuf, and filelock are added to development and build specifications. Hash verification file is updated accordingly.

Changes

Dependency Updates

Layer / File(s) Summary
Dependency Declaration
pyproject.toml
Three new dependencies added to llslibdev group (pydantic>=2.10.6, protobuf>=6.33.5, filelock>=3.20.3); lxml>=6.1.0 removed.
Build Pipeline Configuration
.tekton/lightspeed-stack-pull-request.yaml, .tekton/lightspeed-stack-push.yaml
maturin added to pull-request prefetch packages; lxml removed from push prefetch packages.
Hash Verification
requirements.hashes.wheel.txt
lxml==6.0.2 hash block removed; new hash added for zipp==3.23.0.

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 title directly summarizes the main change: removing the lxml dependency, which is consistently reflected across all modified files (pyproject.toml, .tekton/lightspeed-stack-push.yaml, and requirements.hashes.wheel.txt).
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 `@requirements.hashes.wheel.txt`:
- Around line 259-260: The zipp wheel entry has an incorrect SHA256 hash (the
line containing "zipp==3.23.0" with the hash sha256:2f6742e0...) — regenerate
the hashes file and replace this entry with the correct hash by running the
hash-generation step again; run the universal hash generator (uv) with
--generate-hashes --universal to recreate requirements.hashes.wheel.txt so the
"zipp==3.23.0" entry matches the PyPI-published sha256 (and update any other
mismatched entries produced by the run).
🪄 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: e81a91b0-a96b-47c6-a29c-993b68cabf58

📥 Commits

Reviewing files that changed from the base of the PR and between fd56d65 and 7a8a0d0.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (4)
  • .tekton/lightspeed-stack-pull-request.yaml
  • .tekton/lightspeed-stack-push.yaml
  • pyproject.toml
  • requirements.hashes.wheel.txt
💤 Files with no reviewable changes (1)
  • pyproject.toml
📜 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). (12)
  • GitHub Check: unit_tests (3.13)
  • GitHub Check: unit_tests (3.12)
  • GitHub Check: build-pr
  • 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 1
  • GitHub Check: E2E: server mode / ci / group 2
  • GitHub Check: E2E: library mode / ci / group 2
  • GitHub Check: E2E: library mode / ci / group 3
  • GitHub Check: E2E: server mode / ci / group 3
  • GitHub Check: E2E Tests for Lightspeed Evaluation job
🔇 Additional comments (2)
.tekton/lightspeed-stack-pull-request.yaml (1)

61-61: LGTM — lxml removed and maturin added consistently with lightspeed-stack-push.yaml.

.tekton/lightspeed-stack-push.yaml (1)

53-53: ⚡ Quick win

No action needed — protobuf and filelock are covered by hermetic prefetch via requirements.hashes.source.txt (lines 410 and 790 respectively), not through the binary wheels path. The hermetic build system supports both source and binary distributions; these packages are correctly handled as source distributions and will not cause prefetch failures.

Comment on lines 259 to +260
zipp==3.23.0 \
--hash=sha256:2f6742e089020240e014478d428fd79059270c56a2f7947d37c6f1d2ae639174 No newline at end of file
--hash=sha256:2f6742e089020240e014478d428fd79059270c56a2f7947d37c6f1d2ae639174
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 | 🔴 Critical | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Fetch the zipp 3.23.0 wheel hash from PyPI JSON API and compare
curl -s "https://pypi.org/pypi/zipp/3.23.0/json" \
  | python -c "
import json, sys
data = json.load(sys.stdin)
for f in data['urls']:
    if f['filename'].endswith('.whl'):
        print(f['filename'], '->', f['digests']['sha256'])
"

Repository: lightspeed-core/lightspeed-stack

Length of output: 173


The zipp==3.23.0 wheel hash is incorrect and does not match the PyPI-published artifact.

The hash in the file (sha256:2f6742e089020240e014478d428fd79059270c56a2f7947d37c6f1d2ae639174) does not match the official hash on PyPI (sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e).

Regenerate requirements.hashes.wheel.txt using uv with the --generate-hashes --universal flags to ensure all hashes are correct and match the published artifacts.

🤖 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 `@requirements.hashes.wheel.txt` around lines 259 - 260, The zipp wheel entry
has an incorrect SHA256 hash (the line containing "zipp==3.23.0" with the hash
sha256:2f6742e0...) — regenerate the hashes file and replace this entry with the
correct hash by running the hash-generation step again; run the universal hash
generator (uv) with --generate-hashes --universal to recreate
requirements.hashes.wheel.txt so the "zipp==3.23.0" entry matches the
PyPI-published sha256 (and update any other mismatched entries produced by the
run).

@tisnik tisnik force-pushed the lcore-1966-removed-lxml branch from 7a8a0d0 to 712422b Compare May 6, 2026 20:22
@tisnik tisnik force-pushed the lcore-1966-removed-lxml branch from 712422b to 541965f Compare May 6, 2026 20:26
@tisnik tisnik merged commit d0b65f5 into lightspeed-core:main May 7, 2026
30 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