dgtlmoon / dgtlmoon/changedetection.io

[feature] Clean/remove /tmp/playwright-artifacts-* after executing browsersteps or chrome playwright page fetching

Open
#2,923 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
34.3k
Forks
2.1k
Avg merge
22h 52m
Merged PRs (30d)
70

Description

This turns out to be a lot of files eventually

Maybe playwright will tell us what the random ID was, OR we can remove those who are more than an hour old?

```
/28d86b6b6d1ca7d7c3cdeaa0b9985bc3e876953e29ef681cba1de033e14ab4c7/diff/tmp/playwright-artifacts-XXXXXX9ATK8t
./28d86b6b6d1ca7d7c3cdeaa0b9985bc3e876953e29ef681cba1de033e14ab4c7/diff/tmp/playwright-artifacts-XXXXXXcwhLWN
./28d86b6b6d1ca7d7c3cdeaa0b9985bc3e876953e29ef681cba1de033e14ab4c7/diff/tmp/playwright-artifacts-XXXXXXoz0aR6
./28d86b6b6d1ca7d7c3cdeaa0b9985bc3e876953e29ef681cba1de033e14ab4c7/diff/tmp/playwright-artifacts-XXXXXXtnBrAC
./28d86b6b6d1ca7d7c3cdeaa0b9985bc3e876953e29ef681cba1de033e14ab4c7/diff/tmp/playwright-artifacts-XXXXXXtidcWn
./b680e1bfd8064908b6d42adc14324539ea8bddf396ed34df17872cb988d1e3e9/diff/tmp/playwright-artifacts-XXXXXXFyQVf2
./b680e1bfd8064908b6d42adc14324539ea8bddf396ed34df17872cb988d1e3e9/diff/tmp/playwright-artifacts-XXXXXX8RRdxa
./b680e1bfd8064908b6d42adc14324539ea8bddf396ed34df17872cb988d1e3e9/diff/tmp/playwright-artifacts-XXXXXX83dt3V
./b680e1bfd8064908b6d42adc14324539ea8bddf396ed34df17872cb988d1e3e9/diff/tmp/playwright-artifacts-XXXXXXJgRKBR
./b680e1bfd8064908b6d42adc14324539ea8bddf396ed34df17872cb988d1e3e9/diff/tmp/playwright-artifacts-XXXXXXzjnOvH
./b680e1bfd8064908b6d42adc14324539ea8bddf396ed34df17872cb988d1e3e9/diff/tmp/playwright-artifacts-XXXXXXJv1f3H
./b680e1bfd8064908b6d42adc14324539ea8bddf396ed34df17872cb988d1e3e9/diff/tmp/playwright-artifacts-XXXXXXOyKOpZ
./b680e1bfd8064908b6d42adc14324539ea8bddf396ed34df17872cb988d1e3e9/diff/tmp/playwright-artifacts-XXXXXX3mbBHx
```

Contributor guide

Open the contributing guide

Research direction

Locate the code that executes browsersteps or fetches pages through Chrome Playwright, then trace where /tmp/playwright-artifacts-* directories are created. Determine whether the cleanup should happen after execution or remove directories older than an hour; done means temporary artifact directories no longer accumulate while needed artifacts remain available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.