aitbc1
cbcaf74ddb
AITBC CLI Level 1 Commands Test / test-cli-level1 (push) Successful in 16s
security-scanning / audit (push) Has been cancelled
fix: add Poetry lock file handling to CLI tests workflow
CLI TESTS FIX: Resolve Poetry lock file out of sync issues
Issues Fixed:
❌ pyproject.toml changed significantly since poetry.lock was last generated
❌ Poetry install failing due to lock file mismatch
❌ No fallback strategies for Poetry lock issues
❌ CLI tests workflow failing on dependency installation
Root Cause:
- Poetry lock file out of sync with pyproject.toml
- Missing Poetry lock regeneration in CI workflow
- No error handling for lock file issues
- CLI tests not robust against dependency changes
Solution Applied:
✅ Added Poetry lock file validation and regeneration
✅ Multiple fallback strategies for Poetry operations
✅ Classifier issue fixes for Python version conflicts
✅ Robust pip fallback for dependency installation
Poetry Lock Handling:
1. Lock File Validation:
- Check if lock file is in sync
- Regenerate lock file when needed
- Handle classifier conflicts with Python versions
- Multiple retry strategies
2. Error Recovery:
- Fix Python version classifier issues
- Remove problematic classifiers if needed
- Install without lock file as last resort
- Graceful fallback to pip installation
3. Robust Installation:
- Multiple Poetry install attempts
- Pip fallback with basic dependencies
- Error suppression for non-critical failures
- Enhanced error reporting
Impact:
- CLI tests now handle Poetry lock issues gracefully
- Robust dependency installation with multiple fallbacks
- Better error handling for Python version conflicts
- Reliable CI/CD execution despite dependency changes
This resolves the Poetry lock file issues that were preventing
CLI tests from installing dependencies successfully.
2026-03-28 07:45:51 +01:00
..
2026-03-15 22:53:48 +00:00
2026-03-28 07:45:51 +01:00