-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: prepare for test matrix #312
Conversation
Warning Rate limit exceeded@vishwa2710 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 18 minutes and 38 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 (1)
WalkthroughThe pull request introduces a new Makefile target Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #312 +/- ##
=======================================
Coverage 82.89% 82.89%
=======================================
Files 102 102
Lines 8031 8031
=======================================
Hits 6657 6657
Misses 1374 1374 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this 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
🧹 Nitpick comments (1)
Makefile (1)
549-558
: Consider adding error handling for missing prerequisites.While the implementation is correct, it might fail silently if the prerequisites are not met. Consider adding checks for:
- The existence of the
packages/python
directory- The presence of wheel files in the directory
docker run \ --rm \ --volume="$(CURDIR):/app:delegated" \ --volume="/app/build" \ --workdir=/app/build \ $(docker_development_image_repository):$(docker_image_version) \ - /bin/bash -c "python${test_python_version} -m pip install --root-user-action=ignore --target=${test_python_directory} --find-links packages/python open_space_toolkit_${project_name} \ + /bin/bash -c "\ + if [ ! -d \"packages/python\" ]; then \ + echo \"Error: packages/python directory not found\"; \ + exit 1; \ + fi; \ + if [ -z \"$(ls -A packages/python/*.whl 2>/dev/null)\" ]; then \ + echo \"Error: No wheel files found in packages/python\"; \ + exit 1; \ + fi; \ + python${test_python_version} -m pip install --root-user-action=ignore --target=${test_python_directory} --find-links packages/python open_space_toolkit_${project_name} \ && python${test_python_version} -m pip install --root-user-action=ignore --target=${test_python_directory} plotly pandas \ && cd ${test_python_directory}/ostk/$(project_name)/ \ && python${test_python_version} -m pytest -sv ."
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
Makefile
(1 hunks)
🔇 Additional comments (2)
Makefile (2)
545-546
: LGTM! Clear documentation of prerequisites.The target documentation clearly states the assumptions about the development image and Python bindings availability, which is crucial for CI environments.
560-561
: LGTM! Properly marked as .PHONY.The target is correctly marked as .PHONY, following Makefile best practices.
da45a41
to
42d6f75
Compare
Adds a new Makefile directive to be used in CI to facilitate unit testing multiple Python versions. This should be merged BEFORE open-space-collective/open-space-toolkit#144, and will only kick in after the latter is merged.
Summary by CodeRabbit