Conversation
📝 WalkthroughWalkthroughThese changes extend PyInstaller packaging configuration, add a dependency constraint, and configure pytest to exclude specific directories. The fosslight_binary hook is extended to include resources from the binaryornot package, chardet is added to requirements with version bounds, and test discovery is refined. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
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 `@tox.ini`:
- Around line 23-25: The tox "release" environment currently only installs from
requirements-dev.txt so the new chardet entry in requirements.txt is not picked
up; update requirements-dev.txt to either include "-r requirements.txt" or add
"chardet" explicitly so the tox "release" env (invoked by the GitHub Actions
workflow using tox -e release) installs the missing dependency; modify the
requirements-dev.txt file accordingly to ensure chardet is available during the
release tox run.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 9c6ae798-0fd5-4441-ae33-42f1da03dabd
📒 Files selected for processing (3)
hooks/hook-fosslight_binary.pyrequirements.txttox.ini
| [pytest] | ||
| filterwarnings = ignore::DeprecationWarning | ||
| norecursedirs = third_party build dist .tox .git __pycache__ |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== tox.ini =="
sed -n '1,120p' tox.ini
echo
echo "== requirements-dev wiring =="
fd '^requirements-dev\.txt$' -x sh -c 'echo "--- $1"; sed -n "1,160p" "$1"' sh {}
echo
echo "== GitHub Actions tox invocations =="
if [ -d .github/workflows ]; then
fd -e yml -e yaml . .github/workflows -x sh -c '
echo "--- $1"
rg -n -C2 "\btox\b|test_run|release|requirements-dev|pip install" "$1" || true
' sh {}
else
echo "No .github/workflows directory found"
fiRepository: fosslight/fosslight_binary_scanner
Length of output: 3810
The default tox environment won't install chardet from the new requirements.txt entry.
The GitHub Actions workflow runs tox -e release (not test_run), and the release environment depends only on -r{toxinidir}/requirements-dev.txt (lines 42–46). Since requirements-dev.txt does not include -r requirements.txt or list chardet explicitly, the new chardet entry in requirements.txt will not be installed into tox. This change set will not fix the tox job unless requirements-dev.txt is updated to include the missing dependency.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@tox.ini` around lines 23 - 25, The tox "release" environment currently only
installs from requirements-dev.txt so the new chardet entry in requirements.txt
is not picked up; update requirements-dev.txt to either include "-r
requirements.txt" or add "chardet" explicitly so the tox "release" env (invoked
by the GitHub Actions workflow using tox -e release) installs the missing
dependency; modify the requirements-dev.txt file accordingly to ensure chardet
is available during the release tox run.
Description
Fix PyInstaller build failure caused by chardet mypyc
Type of change
Summary by CodeRabbit