NewsCrawler.org

Five environment gaps a QA engineer hit before writing "cannot reproduce"

「ローカルで再現しません」の前に疑うこと ── QAが実際に踏んだ“環境の差”5選
Five environment gaps a QA engineer hit before writing "cannot reproduce"
Image: zenn.dev

A QA engineer describes five failures that were caused by differences between environments, and argues that "cannot reproduce locally" does not mean there is no problem. In the first case, a message with empty content appeared only in production, because old-format draft data created before the author joined existed only there, and Zod validation stopped execution locally but not in production. In the second, a log was missing in staging because logs take time to become searchable, not because the fix had not been deployed.

In the third case, a git pull on a development server failed with two errors. The local code was a month old, and the second error came from a file that the first, permission-related error had left half-written, so the two errors were connected. In the fourth, all local tests failed at startup while CI passed, because the test container held an older major version of Laravel than the one in the lock file, and CI rebuilds its image each time. In the fifth, an edit screen opened as a registration screen after a file changed while Vite was running, and Vite had dropped that page's route; touching the file restored it.

The author notes that in every case the team assumed the environment being checked matched the one where the problem occurred. The author's checklist before concluding that a bug does not reproduce includes checking for data that exists only in production, waiting for logs, running git fetch, and checking the installed library versions.

Read the original zenn.dev

Sources

  • Zenn JA

    「ローカルで再現しません」の前に疑うこと ── QAが実際に踏んだ“環境の差”5選

    6 likes0 bookmarks0 comments

Terms

  1. Zod — A library for writing rules that check whether data has the expected shape.
  2. lock file — A file that records the exact library versions a project should use.
  3. CI — Automated builds and tests that run on a server each time code changes.
  4. Vite — The development server used in this project, which also collects page routes into a routes table.

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

Open as a page