Get startedGet started for free

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?

This exercise is part of the course

Automating Deployments on AWS

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise