percy / cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
https://docs.percy.io/docs/cli-overview
70 stars 41 forks source link

Filter secrets from stderr and redact them + Add log message for log collection #1563

Closed chinmay-browserstack closed 3 months ago

chinmay-browserstack commented 3 months ago

This PR adds the support of sending build logs to API and include following changes.

  1. Adding the warning that we are collecting logs and someone can opt using PERCY_CLIENT_ERROR_LOGS env variable.
  2. Sending build logs to API in case of success as well as failure.
  3. Separating out CI logs and CLI logs, CLI Logs will be collected everytime but CI logs will be collected based on PERCY_CLIENT_ERROR_LOGS.
  4. Measuring asset-discovery time per snapshot.
  5. Redaction of secrets from logs.