Strip trailing stuff before comparing to MIN_REQUIRED_VERSION#1529
Strip trailing stuff before comparing to MIN_REQUIRED_VERSION#1529frenck merged 3 commits intofrenck:mainfrom
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 29 minutes and 22 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe changes involve modifications to the Changes
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
| # Strip any trailing characters after a dash (e.g., "-b1") | ||
| clean_version = version.split('-')[0] |
There was a problem hiding this comment.
This is not correct. Beta versions are older versions.
There was a problem hiding this comment.
Yes, but:
- The trailing characters break the comparison, not just return the wrong result
- A beta version should see the API for the proposed version, even though it is older than the eventual release
- you are broken "out-of-the-box" with the athom (https://www.athom.tech/blank-1/wled-high-power-led-strip-controller) as shipped
There was a problem hiding this comment.
A beta version should see the API for the proposed version, even though it is older than the eventual release
Unfortunately, that is not the case.
you are broken "out-of-the-box" with the athom (athom.tech/blank-1/wled-high-power-led-strip-controller) as shipped
Honestly, you should contact Athom about that. Shipping beta firmware IMHO as a final product seems wrong. Additionally, 0.14.0 is REALLY OLD...
../Frenck
|
Reopening — the bug is still present. |
Expose the user-defined segment name ("n") from the WLED API.
Co-Authored-By: Kamil Breguła <mik-laj@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pre-release builds of the minimum required version (e.g. 0.14.0-b1) were incorrectly rejected because AwesomeVersion considers them less than the release version. Compare using the base version (major.minor.patch) so pre-release suffixes don't cause false rejections. Fixes frenck#1529 Co-Authored-By: Ken Sedgwick <ksedgwic@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
f289ea8 to
beffe7c
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1529 +/- ##
===========================================
+ Coverage 58.61% 98.07% +39.46%
===========================================
Files 6 8 +2
Lines 662 881 +219
Branches 143 96 -47
===========================================
+ Hits 388 864 +476
+ Misses 270 13 -257
Partials 4 4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Was seeeing:
wled.exceptions.WLEDUnsupportedVersionError: Unsupported firmware version 0.14.0-b1. Minimum required version is 0.14.0. Please update your WLED device.
Proposed Changes
Related Issues
Summary by CodeRabbit
New Features
Bug Fixes