Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
Mountain View desk5 min

How to Configure Reg-suit with Google Cloud Storage

A practical setup for publishing Reg-suit visual-regression snapshots and reports to GCS, including plugin configuration, ADC credential choices, and troubleshooting.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To publish Reg-suit visual-regression snapshots and reports to Google Cloud Storage, install the separate reg-publish-gcs-plugin, add its bucket settings to the project’s regconfig.json, make Google Application Default Credentials (ADC) available to the process running Reg-suit, and run reg-suit run. The bucket name is required; the plugin uses ADC to authenticate.

Install and prepare the GCS publisher

  1. From your project directory, install the publisher as a development dependency:
    npm i reg-publish-gcs-plugin -D
  2. Register it with Reg-suit:
    reg-suit prepare -p publish-gcs

The GCS publisher is a separate package from Reg-suit. Its README documents its configuration and ADC requirement. Reg-suit reads project settings from regconfig.json in the project root; its project README describes plugin settings under plugins and environment-variable substitution.

As an Amazon Associate I earn from qualifying purchases.

Configure the bucket in regconfig.json

Set bucketName to the existing target bucket. For example, configure the plugin in the project-root regconfig.json like this:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
{
  "core": {
    "workingDir": ".reg",
    "actualDir": "images",
    "thresholdRate": 0.05
  },
  "plugins": {
    "reg-publish-gcs-plugin": {
      "bucketName": "$REG_SUIT_GCS_BUCKET",
      "pathPrefix": "visual-regression"
    }
  }
}

Set REG_SUIT_GCS_BUCKET in the environment before running Reg-suit. If you prefer a literal value for a bucket that is safe to commit, replace the placeholder with the bucket name. Use the documented package key for the installed plugin version; the general Reg-suit configuration supports plugin settings keyed by package name.

What the plugin settings do

  • bucketName is required and identifies the destination bucket.
  • pathPrefix is optional. It prefixes published object paths, which can help group the visual-regression output. The README’s example URL is illustrative; check the report path produced by your installed plugin version.
  • customUri is optional. Its documented default is https://storage.googleapis.com/${bucketName}. Set it when the report HTML is served through an HTTP proxy or needs a different URI prefix. It does not configure the bucket or provide credentials.

For example, the plugin-specific settings can include both optional values:

{
  "reg-publish-gcs-plugin": {
    "bucketName": "$REG_SUIT_GCS_BUCKET",
    "customUri": "https://storage.googleapis.com/$REG_SUIT_GCS_BUCKET",
    "pathPrefix": "visual-regression"
  }
}

Use the URI pattern expected by your report-serving setup. The plugin documentation describes the default and the purpose of customUri, but does not define a minimum IAM role or bucket policy.

Make Google credentials available to Reg-suit

The plugin authenticates with Google Application Default Credentials. Google’s Cloud Storage authentication guide describes different ways for client libraries to obtain ADC; the right method depends on where the command runs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Where Reg-suit runs Credential approach Practical consideration
Local development Create user ADC with the gcloud CLI. Verify ADC in the same account and environment used for reg-suit run. A gcloud CLI login and ADC are not interchangeable in every situation.
Google Cloud-hosted workload Use the workload’s attached service account. Google identifies the attached service account as the preferred method for workloads running on Google Cloud.
External CI or another workload outside Google Cloud Use workload identity federation where supported and appropriate. Google documents federation as the preferred approach for workloads outside Google Cloud, avoiding the need to distribute long-lived service-account keys.
CI using a service account Provide credentials so ADC can discover them in the CI job environment. The plugin README recommends a service account for CI. Apply your organization’s credential policy and grant only the required access.

The plugin documentation does not specify an exact IAM role, bucket policy, or required object permissions. Confirm the access needed for the plugin’s reads and writes with your cloud administrator rather than assuming a role name. The identity must have access to the target bucket.

Run the visual-regression workflow

  1. Confirm the bucket value and ADC are available to the shell, job, or runner that will execute Reg-suit.
  2. Run the project workflow:
    reg-suit run
  3. Inspect the command result and the configured bucket to confirm that the run published the expected snapshots and report.

Reg-suit’s run workflow performs visual comparison, publishing, and configured notifications. Publisher plugins fetch expected snapshot images and publish current images and reports; this plugin uses GCS as its storage backend.

Troubleshoot common setup failures

  • Reg-suit cannot find or load the publisher: confirm reg-publish-gcs-plugin is installed in the project and rerun reg-suit prepare -p publish-gcs.
  • The plugin reports a missing bucket: check that the plugin settings contain bucketName, and that REG_SUIT_GCS_BUCKET is set in the environment where the command runs. A variable set only in a local shell will not automatically exist in CI.
  • Authentication fails: check ADC from the same user, container, runner, and environment that executes reg-suit run. Do not infer ADC availability merely from a successful gcloud CLI login; Google documents cases where user ADC can fail.
  • Authentication succeeds but publishing is denied: the authenticated identity may lack access to the destination bucket. Ask the bucket administrator to verify its permissions against the operations the plugin needs; the plugin README does not prescribe a minimum role.
  • Published report links do not work behind a proxy: review whether the serving environment requires a different customUri. Changing the URI prefix does not change where the bucket is or how the publishing process authenticates.
  • Output is not under the expected directory-like prefix: check pathPrefix and inspect the actual object and report paths produced by the installed plugin version. Do not assume the README’s illustrative URL is the exact report path.

Version and operational considerations

The npm listing for reg-publish-gcs-plugin reported version 0.14.4 and a last-published age of roughly two years when it was crawled; that relative age is not a current release date or a guarantee that the version remains latest. Check npm and the project repository for current package metadata before pinning a version or relying on version-specific behavior.

Keep bucket selection and credentials environment-specific when local, staging, and production runs should publish separately. Treat the bucket and report access policy as part of the deployment design: the plugin documentation does not establish retention settings, access controls, or a CI-provider-specific setup recipe.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

Reg-suit and its GCS plugin handle visual-regression snapshots and reports; ScreenshotNeo is a separate website screenshot API and MCP server for developers, not a replacement for Reg-suit’s comparison workflow. For a one-off website capture, one GET request returns a PNG, JPEG, WebP, or PDF. See the ScreenshotNeo API documentation.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and responses identify the page verdict and billing status. Its MCP server offers take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.

Frequently Asked Questions

Does customUri replace bucketName or ADC?

No. It changes the report URI prefix; the plugin still needs a configured bucket and ADC credentials.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I use this setup from CI outside Google Cloud?

Yes. Make ADC available to the CI process; Google documents workload identity federation as the preferred approach for external workloads, while the plugin README recommends a service account for CI.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.