Skip to content

Fix old project version#98

Merged
tisnik merged 1 commit intolightspeed-core:mainfrom
are-ces:release-0.4.2
Mar 10, 2026
Merged

Fix old project version#98
tisnik merged 1 commit intolightspeed-core:mainfrom
are-ces:release-0.4.2

Conversation

@are-ces
Copy link
Copy Markdown
Contributor

@are-ces are-ces commented Mar 10, 2026

Description

The version in pyproject.toml was pinned to 0.1.0, this should be updated.

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

Tools used to create PR

NA

Related Tickets & Documents

  • Related Issue #
  • Closes #

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

NA

Summary by CodeRabbit

Release Notes

  • Chores
    • Project version updated to 0.4.2

@are-ces are-ces requested a review from tisnik March 10, 2026 09:23
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 10, 2026

Walkthrough

The project version is bumped from 0.1.0 to 0.4.2 in the pyproject.toml configuration file. This is a configuration-only change with no modifications to dependencies, code, or functionality.

Changes

Cohort / File(s) Summary
Version Bump
pyproject.toml
Updated project version from "0.1.0" to "0.4.2" in the [project] section.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~1 minute

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: updating the outdated project version from 0.1.0 to 0.4.2 in pyproject.toml.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

@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 the current code and only fix it if needed.

Inline comments:
In `@pyproject.toml`:
- Line 36: Confirm no incorrect "0.1.0" release exists on PyPI by checking the
package name's release history and delete/retract any mistaken upload or
document remediation if needed; then add automated semantic version management
by wiring the pyproject.toml "version" field to a tool (e.g., commitizen,
bump2version, or poetry-dynamic-versioning) and add a CI job that runs on
release tags to update/validate the version, commit the updated pyproject.toml,
and create the PyPI package—ensure the CI step validates that the version in the
"version" key matches the git tag before publishing.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0ef22ceb-e0a5-4515-9f49-5652d1fb7fda

📥 Commits

Reviewing files that changed from the base of the PR and between a3862ee and 3af3f20.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • pyproject.toml

Comment thread pyproject.toml
[project]
name = "lightspeed-rag-content"
version = "0.1.0"
version = "0.4.2"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify git tags and check for any published packages with incorrect versions

echo "=== Checking git tags for version 0.4.2 and related versions ==="
git tag -l | grep -E 'v?0\.[0-4]\.[0-9]' | sort -V

echo -e "\n=== Checking if v0.4.2 tag exists ==="
if git tag -l | grep -qE '^v?0\.4\.2$'; then
  echo "✓ Tag for 0.4.2 exists"
else
  echo "✗ Tag for 0.4.2 does NOT exist yet (should be created during release)"
fi

echo -e "\n=== Checking for CHANGELOG or release notes ==="
fd -t f -d 2 'CHANGELOG|CHANGES|HISTORY|RELEASES' -i

echo -e "\n=== Checking package name for PyPI lookup ==="
grep -A 1 '^\[project\]' pyproject.toml | grep '^name'

Repository: lightspeed-core/rag-content

Length of output: 372


🏁 Script executed:

#!/bin/bash

echo "=== Listing ALL git tags (to understand tag naming conventions) ==="
git tag -l | head -20

echo -e "\n=== Checking git log for version mentions ==="
git log --oneline -10 | grep -i 'version\|release\|bump'

echo -e "\n=== Checking git log for all commits mentioning version ==="
git log --all --oneline | grep -iE 'version|0\.[0-9]' | head -20

echo -e "\n=== Checking if there's a git describe for current branch ==="
git describe --tags --always 2>/dev/null || echo "No tags found for git describe"

echo -e "\n=== Checking current branch name ==="
git branch --show-current

echo -e "\n=== Checking uv.lock for version info ==="
head -50 uv.lock | grep -i version || echo "No version in first 50 lines"

Repository: lightspeed-core/rag-content

Length of output: 1313


Version update is correct; confirm no prior PyPI releases with incorrect version and implement versioning automation.

The version bump from "0.1.0" to "0.4.2" is justified by the git history showing progression through v0.2.22 → v0.3.x → v0.4.x. The pyproject.toml was stale and this commit correctly aligns it with the actual release history.

However, implement automated version management (e.g., bump2version, commitizen, or CI/CD hooks) to prevent this from recurring, and ensure no prior releases of this package were published to PyPI with the incorrect "0.1.0" version, which would create a downstream conflict.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@pyproject.toml` at line 36, Confirm no incorrect "0.1.0" release exists on
PyPI by checking the package name's release history and delete/retract any
mistaken upload or document remediation if needed; then add automated semantic
version management by wiring the pyproject.toml "version" field to a tool (e.g.,
commitizen, bump2version, or poetry-dynamic-versioning) and add a CI job that
runs on release tags to update/validate the version, commit the updated
pyproject.toml, and create the PyPI package—ensure the CI step validates that
the version in the "version" key matches the git tag before publishing.

Copy link
Copy Markdown
Collaborator

@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

Comment thread uv.lock
{ name = "click" },
{ name = "pillow" },
{ name = "pyobjc-framework-vision" },
{ name = "click", marker = "sys_platform == 'darwin'" },
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

that one is interesting, do we really need/want platform specification (especially if it is not Linux/UBI)

@tisnik tisnik merged commit b1e94fa into lightspeed-core:main Mar 10, 2026
16 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.

2 participants