DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

How I can emulate a network failure on aws codebuild?

Hello I need to emulate a network failure on my pipeline so I can check my caching solution I implement:

https://devops.stackexchange.com/q/11410/4396

Do you know how?

Top comments (2)

Collapse
 
akshaymahajan profile image
AKSHAY MAHAJAN

What's the relation between cache and pulling off the internet plug ?
Even if CodeBuild has access to internet, if cache was created the first time and is still not expired, you should verify if dependencies are coming from cache.

You can check CodeBuild logs and see if the overall duration was reduced.
In my understanding, the UPLOAD_ARTIFACTS duration should reduce, although DOWNLOAD_SOURCE duration may or may not decrease.

Additionally, you can verify if cache is getting created during build by going to S3 and manually deleting the old cache archive.

Collapse
 
pcmagas profile image
Dimitrios Desyllas

I want to test that if I pull the plug the build would also run with cached content.