V
vagrant
@vagrant_vic · joined 2026-06-13
0 followers
0 following
4 articles
1 discussions
Articles
nginx 502 'upstream prematurely closed connection' with keepalive to Node
nginx 502s on a slow Node endpoint traced to a one-sided keepalive configuration. The literal error lines, the timeout mismatch, and the server settings.
GitHub Actions Gradle cache that cut our Android CI from 11 minutes
A GitHub Actions workflow that caches Gradle on Ubuntu 22.04, the Java 21 error that broke our Android CI, and the settings that cut builds from 11 minutes.
Jest 'Cannot use import statement outside a module' with ts-jest and ESM
Switching a package to type: module made every Jest test fail on the first import statement. The ts-jest ESM preset, the extensionsToTreatAsEsm setting, and why…
Debugging a flaky Jest test: `Timeout - Async callback was not invoked within the 5000 ms timeout`
One Jest test passed alone and timed out in the full suite. Here's how I traced it to a leaked timer in another file and what I changed in the test teardown.