Skip to content

fix: resolve CI test failures and lint formatting#85

Merged
GeiserX merged 1 commit intomasterfrom
ai/fix-ci-tests
Mar 5, 2026
Merged

fix: resolve CI test failures and lint formatting#85
GeiserX merged 1 commit intomasterfrom
ai/fix-ci-tests

Conversation

@GeiserX
Copy link
Copy Markdown
Owner

@GeiserX GeiserX commented Mar 5, 2026

Summary

  • 17 test failures (test_telegram_import): beautifulsoup4 missing from CI test deps — added to tests.yml install step
  • 1 test failure (TestLogout::test_logout_invalidates_session): After logout, _resolve_session fell back to db.get_session() which returned a MagicMock instead of None, causing TypeError (500). Fixed by adding get_session and delete_session to the mock DB
  • 1 test failure (TestRateLimiting::test_rate_limit_blocks_after_threshold): Test expected rate limit at 5 attempts, but production config was raised to 15 in v6.x. Updated test to match
  • Lint failure: 6 files needed ruff format — applied formatting

Test plan

  • Verify Tests workflow passes (all 19 previously-failing tests)
  • Verify Lint workflow passes (ruff format check)

🤖 Generated with Claude Code

- Add beautifulsoup4 to test CI deps (needed for HTML import tests)
- Add get_session/delete_session mocks to prevent 500 on logout test
- Update rate limit test threshold from 5 to 15 to match production config
- Apply ruff format to 6 files that failed format check

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 5, 2026

🐳 Dev images published!

  • drumsergio/telegram-archive:dev
  • drumsergio/telegram-archive-viewer:dev

The dev/test instance will pick up these changes automatically (Portainer GitOps).

To test locally:

docker pull drumsergio/telegram-archive:dev
docker pull drumsergio/telegram-archive-viewer:dev

@GeiserX GeiserX merged commit 31e4ba8 into master Mar 5, 2026
8 checks passed
PhenixStar pushed a commit to PhenixStar/Telegram-Archive that referenced this pull request Mar 10, 2026
- Add beautifulsoup4 to test CI deps (needed for HTML import tests)
- Add get_session/delete_session mocks to prevent 500 on logout test
- Update rate limit test threshold from 5 to 15 to match production config
- Apply ruff format to 6 files that failed format check
PhenixStar pushed a commit to PhenixStar/Telegram-Archive that referenced this pull request Mar 11, 2026
- Add beautifulsoup4 to test CI deps (needed for HTML import tests)
- Add get_session/delete_session mocks to prevent 500 on logout test
- Update rate limit test threshold from 5 to 15 to match production config
- Apply ruff format to 6 files that failed format check
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.

1 participant