Skip to content

Conversation

@koudis
Copy link
Contributor

@koudis koudis commented Dec 25, 2025

Summary by CodeRabbit

Improvements

  • Package name normalization now accepts alphanumeric characters alongside letters
  • New validation warnings alert when package names contain non-conforming characters
  • Enhanced cache keyword handling for more flexible package identification

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Dec 25, 2025

📝 Walkthrough

Walkthrough

The _BRINGAUTO_PACKAGE function in BA_PACKAGE.cmake is updated to change how package names are normalized. The function now permits alphanumeric characters (A-Z0-9) instead of only letters, maintains multiple normalized forms of the package name, and emits warnings when invalid characters are encountered during normalization.

Changes

Cohort / File(s) Summary
Package Name Normalization Logic
BA_PACKAGE.cmake
Modified package name normalization in _BRINGAUTO_PACKAGE: introduces three normalized forms (original uppercase, A-Z0-9 filtered, and dash-stripped), expands allowed characters from strict A-Z to A-Z0-9, and adds validation warning when differences between normalized forms indicate invalid characters in input.

Estimated Code Review Effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly Related PRs

  • Vars fix! #1: Modifies the same _BRINGAUTO_PACKAGE function with related changes to package identification and normalization logic.

Poem

🐰 Numbers now dance with letters bright,
Our package names shine new light—
With warnings kind when dashes roam,
Normalization's found its home!
A-Z-0-9, what a delight! 🎉

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title mentions 'waring' (typo for 'warning') and 'fatal error pack name validation messages', which aligns with the changes that add validation warnings and modify package name normalization logic in BA_PACKAGE.cmake.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch jan_kubalek/validate_package_name

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.

@koudis koudis requested a review from mikusaq December 25, 2025 15:02
Copy link

@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

📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9c8090d and 02d3c4f.

📒 Files selected for processing (1)
  • BA_PACKAGE.cmake
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: koudis
Repo: bacpack-system/package-tracker PR: 3
File: BA_PACKAGE.cmake:162-162
Timestamp: 2025-08-09T18:51:31.237Z
Learning: In the BA_PACKAGE.cmake file and related package tracking system, `BACPACK` is the correct keyword used for caching - it represents the organization name BACPACK, not a typo of `BAPACK`.
Learnt from: koudis
Repo: bacpack-system/package-tracker PR: 3
File: STORAGE.cmake:31-32
Timestamp: 2025-08-28T20:17:05.659Z
Learning: In STORAGE.cmake, the BA_PACKAGE_VARS_SET calls for REVISION and URI_TEMPLATE should be executed unconditionally, even when BA_PACKAGE_CMCONF_USE is FALSE. These variables do not relate specifically to CMCONF and serve a broader purpose in the package system.
📚 Learning: 2025-08-09T18:51:31.237Z
Learnt from: koudis
Repo: bacpack-system/package-tracker PR: 3
File: BA_PACKAGE.cmake:162-162
Timestamp: 2025-08-09T18:51:31.237Z
Learning: In the BA_PACKAGE.cmake file and related package tracking system, `BACPACK` is the correct keyword used for caching - it represents the organization name BACPACK, not a typo of `BAPACK`.

Applied to files:

  • BA_PACKAGE.cmake
📚 Learning: 2025-08-28T20:17:05.659Z
Learnt from: koudis
Repo: bacpack-system/package-tracker PR: 3
File: STORAGE.cmake:31-32
Timestamp: 2025-08-28T20:17:05.659Z
Learning: In STORAGE.cmake, the BA_PACKAGE_VARS_SET calls for REVISION and URI_TEMPLATE should be executed unconditionally, even when BA_PACKAGE_CMCONF_USE is FALSE. These variables do not relate specifically to CMCONF and serve a broader purpose in the package system.

Applied to files:

  • BA_PACKAGE.cmake
🔇 Additional comments (1)
BA_PACKAGE.cmake (1)

157-159: Good approach to enable granular validation.

The three normalized forms (original uppercased, alphanumeric-only, and dash-removed) allow the code to distinguish between different types of invalid characters. The expansion from A-Z to A-Z0-9 in the final normalized form correctly supports numeric characters in package names.

@koudis koudis merged commit d043d63 into master Jan 9, 2026
1 check 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.

3 participants