NewsCrawler.org

Stop Hardcoding Your Timeouts: Developer Tools and Slow Connections

The author criticizes developer tools that use hardcoded[1] timeouts, meaning fixed time limits built into the code that users cannot change. The npx skills installer from vercel-labs packages fails on the large awesome-copilot collection, which has 30K+ stars, and an issue about this, #278, has had no response since February. Cloning the repository manually works, but the skills-lock.json file then points to a path on the author's machine, so colleagues cannot use it.

Docker Gordon, an AI debugging assistant built into Docker, gives up if a container build does not finish within two minutes, and there is no setting to change this. The author notes that a slow connection or a debugging session on a multi-stage build[2] can easily exceed that limit.

The author argues that timeouts should exist, but should have safe defaults, be documented, and be overridable by a flag, an environment variable or a config file. Writing from Cairo, he says that much of the global developer community works on slower connections. He asks tool authors to add a configuration option before shipping a timeout.

Read the original alfy.blogDiscussion

Discussion

Commenters disagree with parts of the article and its style. Some say that timeouts should be injected rather than hardcoded so they can be tested, and that the two-minute Docker limit may be deliberate to avoid repeated downloads. Others point out that skills are plain markdown files, so a git clone would be enough.

Sources

Terms

  1. multi-stage build — A Docker build made of several stages, where each stage produces its own intermediate image layers.

Published: First seen: Читать по-русски

Open as a page