Skip to content

Commit c846983

Browse files
committed
docs: add notest markers to error examples in rust-serialization.md
Skip execution of code examples that demonstrate error conditions: - Size limit exceeded (1B integers = ~8GB allocation) - Unsupported type (undefined CustomClass) - Compression ineffective (undefined png_bytes) These examples were crashing CI runners via OOM (exit 143).
1 parent a0800c3 commit c846983

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/features/rust-serialization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ data = {"metrics": [1, 2, 3], "summary": "data"}
108108
## What Can Go Wrong
109109

110110
### Size Limit Exceeded (Decompression Bomb)
111-
```python
111+
```python notest
112112
# Object too large
113113
huge_list = list(range(1_000_000_000))
114114

@@ -120,7 +120,7 @@ def process(x):
120120
```
121121

122122
### Unsupported Type
123-
```python
123+
```python notest
124124
# Custom class instance
125125
class CustomClass:
126126
def __init__(self, x):
@@ -134,7 +134,7 @@ def process():
134134
```
135135

136136
### Compression Ineffective
137-
```python
137+
```python notest
138138
@cache(ttl=300)
139139
def process():
140140
# Return already-compressed data

0 commit comments

Comments
 (0)