ÎncepețiÎncepe gratuit

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?

Acest exercițiu face parte din cursul

Automating Deployments on AWS

Vezi cursul

Exercițiu interactiv practic

Transformă teoria în practică cu unul dintre exercițiile noastre interactive

Începe exercițiul