{
  "id": 14019986,
  "title": "Your Agent Says Tests Pass. On Your Laptop. Not on CI.",
  "url": "https://urgent.news/2026/10/12/your-agent-says-tests-pass-on-your-laptop-not-on-ci",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-12T18:25:53.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/jeff_pdc/your-agent-says-tests-pass-on-your-laptop-not-on-ci-39h6"
  },
  "original_language": "en",
  "account": null,
  "summary": "The article highlights a common issue in agentic coding where an agent's verification loop fails because the tests pass on the agent's laptop but not in the continuous integration (CI) environment. This discrepancy arises because the agent inherits the local machine's environment, including API keys, local databases, and specific package versions, while CI runs in a clean, isolated container. The author emphasizes the importance of running tests in an environment that closely matches the CI setup, rather than relying on the agent's local environment. Recommendations include running the same command CI uses, ensuring a clean working directory, and avoiding changes to the environment that might mask the underlying issue. The goal is to ensure that passing tests on the agent's machine genuinely reflect the results CI will produce.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}