The Simplest Way to Make Cypress and Opslevel Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You link cypress and opslevel by sending test results from build jobs to your service catalog. This setup lets teams check app quality rules before any new code goes live. Cypress runs browser tests against your web apps during each build. OpsLevel tracks which team owns each service and scores its health. When you join them, test pass rates update your service scorecards right away. Teams can see if an app meets quality standards without checking many tools. How data and permissions flow bet

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You link cypress and opslevel by sending test results from build jobs to your service catalog. This setup lets teams check app quality rules before any new code goes live.

Cypress runs browser tests against your web apps during each build. OpsLevel tracks which team owns each service and scores its health. When you join them, test pass rates update your service scorecards right away. Teams can see if an app meets quality standards without checking many tools.

How data and permissions flow between cypress and opslevel

The link between cypress and opslevel starts inside your build pipeline. First, your pipeline runs the browser test suite against a test app. When the test run finishes, the runner makes a summary report. That report holds pass counts, fail counts, and total run time.

Next, a job step sends that report to the OpsLevel webhook endpoint. The job uses an API token to log in and prove its identity. The catalog reads the payload and matches it to the right service name. Then it runs a custom check on the new test numbers.

If all browser tests pass, the service gets a green check on its scorecard. If critical tests fail, the check turns red and alerts the owning team. Release tools can also read this score before they push code to production. This stops broken code from reaching real users.

Common failure modes and how to scope roles

Many teams make mistakes when they set up tokens for this workflow. A common failure mode is using one personal API key for every build job. When that person leaves the company, the key stops working and all updates fail.

Another risk comes from tokens that have too much power. A broad token lets any build script edit service owners or delete catalog rules. If a bad actor steals that key from build logs, they can change your whole catalog.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged requests also cause pain for platform teams. When twenty pipelines use the same service account, you cannot trace a bad update. A broken script might send the wrong service alias and overwrite good data. Without clear logs, you will spend hours trying to find the broken build job.

You can fix these risks with tight role rules and clean network paths. Create a dedicated bot account just for test reporting in your catalog. Give that role permission to send check payloads, not edit catalog settings. Rotate your keys on a set schedule and store them in a secret store.

You should also protect test data when browser tests hit staging databases. Test runners often query real user tables to check page state. If test logs print raw rows, they might leak emails, phone numbers, or card numbers. Data masking rewrites matched fields in results so test logs stay safe.

Best practices for reliable scorecard checks

Keep your test payloads small and focused on clear outcomes. Do not send every console log line from the browser to your service catalog. Send only the service alias, build number, pass status, and a link to the test run.

Match your service names across your code repos and your catalog from day one. When every repo uses a standard tag, your pipeline scripts need less custom logic. Test your webhook step in a dry run job before you enforce release blocks. This helps teams fix flaky browser tests before strict rules slow down their daily work.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

How does OpsLevel match Cypress test runs to the right service?

Your build script sends a unique service alias inside the webhook payload. The catalog reads this alias and links the test result to that exact service page.

What happens if a flaky Cypress test fails a scorecard check?

The check turns red right away on the service scorecard. When you rerun the build and the test passes, the new payload marks the check green again.

Should every browser test block a production release?

No, you should only block releases on core user paths like sign in or checkout. Keep slower or less critical browser tests in a separate warning tier on your scorecard.

The query runs. The emails stay hidden.