This repository was archived by the owner on Nov 22, 2025. It is now read-only.
Commit ef0ccde
fix(ci): add explicit filesystem sync to prevent 0-byte file issue in integration-resilient
The integration-resilient workflow was failing with a critical filesystem buffer flush issue:
test files were created successfully but had 0 bytes after machine restart. This occurred
because file data remained in the buffer cache and was never flushed to the persistent volume.
Root Cause Analysis:
- integration.yml (working): 2 explicit sync commands + 15s total wait before restart
- integration-resilient.yml (failing): 0 sync commands + 0s wait before restart
- Result: File metadata (inode, timestamp) persisted but content was lost from buffer cache
Changes:
- Add initial sync after file write + 2s sleep for verification
- Add second sync before restart + 3s sleep with file verification
- Add 10s wait for final buffer flush before machine restart
- Increase post-restart wait from 10s to 45s to match integration.yml
- Add comprehensive file size/content verification between sync operations
This replicates integration.yml's proven sync strategy and should achieve 100% pass rate
by eliminating the race condition between buffer cache writes and machine restarts.
Fixes: Persistent 0-byte file failures in integration-resilient workflow
Tested: Matches working integration.yml sync pattern (lines 281-323)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent daf56ba commit ef0ccde
1 file changed
Lines changed: 37 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
314 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
315 | 330 | | |
316 | 331 | | |
317 | 332 | | |
318 | 333 | | |
319 | 334 | | |
320 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
321 | 353 | | |
322 | 354 | | |
323 | 355 | | |
| |||
329 | 361 | | |
330 | 362 | | |
331 | 363 | | |
332 | | - | |
333 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
334 | 367 | | |
335 | 368 | | |
336 | 369 | | |
| |||
0 commit comments