mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-23 09:26:32 +01:00
style: prettier format oom-prevention SKILL.md
This commit is contained in:
parent
30abcd5864
commit
2efb81a497
3
.github/skills/oom-prevention/SKILL.md
vendored
3
.github/skills/oom-prevention/SKILL.md
vendored
@ -101,7 +101,7 @@ isolated DB, never seeing the prior run's file.
|
|||||||
## Quick Reference
|
## Quick Reference
|
||||||
|
|
||||||
| Problem | Root Cause | Fix |
|
| Problem | Root Cause | Fix |
|
||||||
|---|---|---|
|
| ---------------------------------------- | ------------------------------------------ | ------------------------------------------- |
|
||||||
| Machine freezes during `git push` | zram swap absorbs cgroup-limited process | `MemorySwapMax=0` in all cgroup scopes |
|
| Machine freezes during `git push` | zram swap absorbs cgroup-limited process | `MemorySwapMax=0` in all cgroup scopes |
|
||||||
| Machine freezes during `git commit` | Same as above | `run_capped()` in `.git/hooks/pre-commit` |
|
| Machine freezes during `git commit` | Same as above | `run_capped()` in `.git/hooks/pre-commit` |
|
||||||
| pytest INTERNALERROR on coverage combine | Stale `.coverage` SQLite DB from prior run | `COVERAGE_FILE=<unique-tmp>` per subprocess |
|
| pytest INTERNALERROR on coverage combine | Stale `.coverage` SQLite DB from prior run | `COVERAGE_FILE=<unique-tmp>` per subprocess |
|
||||||
@ -110,6 +110,7 @@ isolated DB, never seeing the prior run's file.
|
|||||||
## Adding New Hooks
|
## Adding New Hooks
|
||||||
|
|
||||||
If you add a new pre-commit or pre-push hook that runs:
|
If you add a new pre-commit or pre-push hook that runs:
|
||||||
|
|
||||||
- `pytest` with coverage
|
- `pytest` with coverage
|
||||||
- `mypy` or `pylint`
|
- `mypy` or `pylint`
|
||||||
- `node` / `eslint` / TypeScript compilation
|
- `node` / `eslint` / TypeScript compilation
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user