fix(package): Move archive manager constants to avoid host MariaDB dependency (fixes #1185).#1197
Conversation
|
Warning Rate limit exceeded@haiqi96 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 44 seconds before requesting another review. ⌛ 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. 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
junhaoliao
left a comment
There was a problem hiding this comment.
on my end, i validated by
- Creating a Debian 11 WSL container:
- In WSL Ubuntu 2204:
docker pull debian:bullseye-slim; docker run -it debian:bullseye-slimthendocker psto get the container ID. docker export CONTAINER_ID > debian11.tar- PowerShell:
wsl --import Debian-11 C:\WSL\Debian11 C:\Users\Junhao\Downloads\debian11.tar
- In WSL Ubuntu 2204:
- Enabled Docker Desktop integration for the imported distro.
- Untar the package built from the source branch in this PR.
- Ran
./sbin/start-clp.shthen./sbin/admin-tools/archive-manager.shand observed no dependency error reported:usage: archive_manager.py [-h] [--config CONFIG] [--dataset DATASET] {find,del} ... archive_manager.py: error: the following arguments are required: subcommand
for the PR title, how about:
fix(package): Move archive manager constants to avoid host MariaDB dependency (fixes #1185).
Description
The current non-native archive_manager.py imports constants from native/archive_manager.sh. As a side effect, it also imports dependencies that may not be available on the host machine.
This PR reorders the import such that the constants are defined in non-native script and imported by native script. In this way, the dependency issue can be avoided.
Checklist
breaking change.
Validation performed
Manually run the package on
debian-bullseye-w-dockercontainer and confirmed that archive-manager.sh doesn't error with any dependency issue.Summary by CodeRabbit