Skip to content

feat: Migrate watcher to use watchfiles library #2230

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

Merged
merged 1 commit into from
Aug 7, 2025

Conversation

adamantike
Copy link
Contributor

Description
The watchfiles library supports event batching, which allows us to process multiple filesystem changes in a single run.

This change also avoids database calls in the watcher as much as possible.

Checklist

  • I've tested the changes locally
  • I've updated relevant comments
  • I've assigned reviewers for this PR
  • I've added unit tests that cover the changes

@adamantike adamantike requested review from gantoine and zurdi15 August 7, 2025 16:20
Copy link

trunk-io bot commented Aug 7, 2025

Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information.

@adamantike adamantike force-pushed the feat/watcher-watchfiles branch from ec7d8c7 to ed99161 Compare August 7, 2025 16:22
Copy link

github-actions bot commented Aug 7, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8798 6178 70% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 76db0ab by action🐍

Copy link

github-actions bot commented Aug 7, 2025

Test Results

548 tests   547 ✅  1m 0s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit 76db0ab.

♻️ This comment has been updated with latest results.

The `watchfiles` library supports event batching, which allows us to
process multiple filesystem changes in a single run.

This change also avoids database calls in the watcher as much as
possible.
@adamantike adamantike force-pushed the feat/watcher-watchfiles branch from ed99161 to 76db0ab Compare August 7, 2025 16:28
@adamantike adamantike merged commit 3f98ef6 into master Aug 7, 2025
9 checks passed
@adamantike adamantike deleted the feat/watcher-watchfiles branch August 7, 2025 18:36
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.

2 participants