SShortSingh.
Back to feed

Auto-Generated Env Catalog Keeps 59-Variable Service Config Accurate in CI

0
·1 views

Software engineer Anton has implemented an auto-generated YAML environment variable catalog for a single service that tracks all 59 variables it reads at runtime. The catalog distinguishes between 45 platform-supplied variables and 14 service-defined ones, recording six fields per entry including source, whether the variable is required, and whether it is a secret. Each service-defined variable includes a precise file and line reference, turning configuration archaeology into a single click. The file carries a do-not-edit header and is regenerated by the same tooling in check mode during CI, so any drift between the catalog and the actual codebase fails the build. The generator runs on four triggers: changes to Go source files, the service manifest, the modules file, or the catalog snapshot itself.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Free AI Eval Endpoints Are Probes, Not Production Gates, Developers Warned

Software developers are being cautioned against treating free AI model endpoints as reliable production-readiness checks, as passing evaluations on scratch machines does not guarantee the same results on real deployment environments. The core issue, described as an 'eval-transfer bug,' arises when teams measure agent performance on one machine but draw conclusions applicable to another. Factors such as unpinned model IDs, shared scratch servers with leftover files, and inconsistent tool schema hashes can silently corrupt evaluation results. Experts recommend freezing a precise 'eval identity' — including the model endpoint, server image, worktree path, and tool schema hash — before running any replay. Additionally, free compute time is better spent testing failure cases like timeouts and malformed responses rather than polished demo scenarios.

0
ProgrammingDEV Community ·

Developer Shares Workflow to Prevent Runaway AI Coding Agent Loops

A software developer published a reflective post-mortem after an AI coding agent ran unchecked in a loop for hours on a Friday afternoon, burning through tokens with duplicate tool calls. The core problem was treating free remote compute as unlimited, while the agent lacked a defined stop rule and ran with unclean laptop state including sensitive files like .env. The author proposes a structured workflow requiring a clean git worktree, an isolated remote workspace with only allowlisted files, and strict budget limits on steps and runtime. A session receipt must be opened before the first prompt and closed with a hashed diff once the agent stops, preserving a replayable audit trail. The accompanying Node.js script enforces three control gates — budget, isolation, and receipt — to prevent similar failures.

0
ProgrammingDEV Community ·

BoardEject converts Apple Freeform boards into editable Excalidraw files locally

A developer has built and open-sourced BoardEject, a tool that converts Apple Freeform boards into editable .excalidraw files instead of flat PDFs. The tool preserves key elements such as shapes, text, connectors, groups, drawings, tables, and images where supported. Unsupported structures are flagged explicitly rather than silently ignored, improving conversion transparency. BoardEject runs locally and does not upload any board content to external servers. The developer is actively seeking feedback from heavy Freeform and Excalidraw users as edge case handling is still being refined.

Auto-Generated Env Catalog Keeps 59-Variable Service Config Accurate in CI · ShortSingh