Unit testing AWS Glue jobs presents challenges due to the complexities involved in replicating the Glue environment locally. Fortunately, AWS offers a solution in the form of Glue container images available at Glue container images . These images allow us to perform unit tests effectively, as outlined in detail in the official documentation here . In this blog post, we will delve into the process of running AWS Glue job unit tests within an Azure DevOps pipeline and discuss how to calculate and publish code coverage for these tests. To begin with, the Glue container image operates under a special user named GLUE_USER , which is referenced in the associated dockerfile . USER glue_user Assuming you have developed your Glue job in a Python script named myawesomegluejob.py , which is stored in an Azure DevOps (AzDO) Git repository, creating a pipeline for this purpose might initially seem straightforward. However, executing build steps directly within the Glue container is not feasible
Musings on life and software development