开始使用免费开始使用

Fix a failing build

At NovaTech, a CodeBuild project for your Python Lambda app is failing. Use the build debugger to read the build logs, identify the root cause, and understand the fix.

The debugger shows the build log with phase-by-phase output. The build fails during one of the phases with a clear error message. You can switch between three different failure scenarios to practice diagnosing common build problems:

  • Missing dependency
  • Failed unit test
  • Python syntax error

For each scenario, find the error line in the log and identify what needs to change to make the build pass.

Question: The build log shows: INSTALL phase succeeded, PREBUILD phase succeeded, BUILD phase failed with "FAILED tests/testhandler.py::testprocessorder - AssertionError: assert 500 == 200". Which phase and fix would resolve this?

本练习是课程的一部分

Automating Deployments on AWS

查看课程

动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习