Skip to content

Rules for account data

  • The Chromium profile is below ${XDG_STATE_HOME:-$HOME/.local/state}/gopher/. It is outside the repository. Thus git clean -xdf, backup programs, and search programs do not touch it.
  • Git ignores .api-dumps/, because those files contain account data. Do not add them to Git, and do not copy data from them into a file that Git contains.
  • Never put data that identifies the account into the repository. This includes IDs, names, e-mail addresses, cookies, and tokens. It applies to source files, documents, commit messages, and logs.
  • Never make a picture of the panel with real data in the cache. The creators that the account pays are account data. Put artificial records into the cache.
  • Write a temporary Playwright script in the top directory of the repository and delete it after the test. tsx cannot find playwright from /tmp. Note that tsx uses the keepNames option of esbuild. That option adds a __name function that page.evaluate cannot send to the page. Put a long function in a .js file and send the text of that file. Note that page.evaluate reads a string as an expression and does not call it. Put ( and )() around the text, or the page makes the function and gives you undefined.