aws-amplify / aws-amplify/amplify-hosting

Build artifacts for failed builds

Open
#3,949 12 comments 5 reactions 0 assignees View on GitHub
feature-request
Dominant language
Dockerfile
Stars
481
Forks
123
PR merge metrics
No merged PRs in 30d

Description

### Before opening, please confirm:

- [X] I have checked to see if my question is addressed in the [FAQ](https://github.com/aws-amplify/amplify-hosting/blob/master/FAQ.md).
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-hosting/issues?q=is%3Aissue+).
- [X] I have removed any sensitive information from my code snippets and submission.

### Amplify Hosting feature

E2E Cypress tests

### Is your feature request related to a problem? Please describe:

It looks like with Amplify 2, build artifacts can only be downloaded for successful builds, not failing builds. However, they are the most useful to us to troubleshoot things when our E2E tests are failing before deploying, therefore we need to be able to access them for failed builds too.

### Describe how you'd like this feature to work

Same as for successful builds but for failed builds too.

![image](https://github.com/user-attachments/assets/4449d5ed-236c-4fe4-9d05-ec833637582c)
![image](https://github.com/user-attachments/assets/c17e63ee-6f6e-49b2-844f-c8b7603c6e45)

We can even see in the logs for failed builds that the artifacts are indeed uploaded to your S3 bucket `https://aws-amplify-prod-[region]-artifacts.s3.[region].amazonaws.com/[app_id]/[branch]/000000[build_number]/BUILD/artifacts.zip`, so it's not like they were not existing at all.

![image](https://github.com/user-attachments/assets/f947053f-c664-49f4-b6e7-6ea7c098b6cb)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the linked FAQ.md and the failed-build logs for the E2E Cypress flow, focusing on the S3 artifact path shown in the issue. Confirm how successful-build artifacts are exposed and define done as making the same artifacts downloadable after a failed build.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, cypress
Domain
ci-cd, cloud, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.