如果 CICD 中的 e2e 测试自动化失败,微服务回滚方法

Microservice rollback approach if e2e test automation fails in CICD

当一个微服务的新特性合并到开发分支时,是否总是部署到 Kubernetes 测试环境。

我找不到一个很好的例子吗?

When a new feature of a microservice is merged into development branch, is it always deployed to Kubernetes test environment.

是的,你是对的

If yes, what happens if e2e tests fail? Is the microservice deployment rolled back?

因为它是一个 开发 理想环境,所以 运行 损坏的版本应该没问题,但更多取决于您计划遵循的要求或架构。

Is automated rollback common in CICD in the industry right now?

是的,这很常见,但是最好将其保留为 手动 操作,您可能会遇到这样一种情况,即您希望在 e2e 失败时部署该版本。

手动操作的好处 根据需要可能会发生变化并且必须部署集成测试失败或其他原因的功能。

Is there any other way to make e2e blackbox tests without deploying to Kubernetes test environment?

您可以在 CI/CD、e2e 中进行子系统或小部分测试,也可以在 CI/CD[=32 中进行自动化=] 端并集成 Kubernetes 服务以供测试 CI 服务器访问。