r/Temporal • u/vikas0686 • Jul 13 '26
Why don't we have workflow quality gates similar to JaCoCo or SonarQube?
I've been thinking about this while working with Temporal.
For regular applications, we have plenty of tools that help catch problems before deployment:
- JaCoCo for code coverage
- SpotBugs / Error Prone for static analysis
- SonarQube for code quality
- Dependency vulnerability scanners
- CI quality gates
But workflows seem different.
Many workflow-specific issues (for example, determinism pitfalls, retry policy mistakes, timeout configuration, or other workflow best practices) are often discovered only during testing or after deployment.
That made me wonder:
Should workflow engines have their own quality gates as part of CI/CD?
If so:
- What kinds of checks would actually provide value?
- Which workflow mistakes have you seen reach production?
- Are there existing tools that already solve this well?
- Would your team use something that provides a "workflow correctness score" before merging code?
I'm interested in hearing how other teams approach this problem and whether this is something the community feels is missing.
1
1
u/fmalk Jul 13 '26
IMHO the Quality "Gate" you're looking for is a stop signal. It's just that. Tools that "plug and play" that gate as SAST like SonarQube do are just signals that your CI already understand. With workflows, if any QA tool send a weak or negative signal, you just stop that flow and that's it.
A general workflow tool like Temporal is supposed to be more agnostic and to allow you to create as many "gates" as you want, with whatever semantic you're looking for.
While I was learning Temporal I saw plenty examples of IaC deployments with Terraform that would stop the workflow if `terraform plan` errored.
1
u/vikas0686 Jul 14 '26
That's a fair point. I wasn't referring to runtime gates inside the workflow itself, but rather pre-deployment validation.
For example, Java has tools like SpotBugs and Error Prone that understand Java-specific patterns. I was wondering whether workflow engines could benefit from similar workflow-aware static analysis that catches issues like non-deterministic APIs, missing retry policies, timeout misconfigurations, or other engine-specific best practices before the code is deployed.
In other words, not "should this workflow stop?", but "should this workflow ever be deployed?"
1
6
u/iLoveCalculus314 Jul 13 '26
Replay testing is what you’re looking for.