aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
460 stars 116 forks source link

Completed builds are showing an inaccurate status for build steps #1047

Open wufuhimself opened 4 years ago

wufuhimself commented 4 years ago

Issue Description

In the amplify console, if you go to view older builds while another build is in progress, the status/results of those older builds appear to be different than they were at time of completion. For example, if there were tests that passed in an older build, they will show as pending while a build is in progress.

Old build that previously showed passing tests:

Screen Shot 2020-09-15 at 2 05 29 PM

Shows the current build runnning:

Screen Shot 2020-09-15 at 1 48 34 PM

Shows the old build with pending test status:

Screen Shot 2020-09-15 at 1 38 11 PM

Detailed Steps To Reproduce

Trigger a build with tests for a given environment.

While the above build is running, go to an older build that has already completed with passing tests.

Observe that for the previous build, the tests that were marked as passed are marked as Pending even though when you view the log for the Test step, it shows passing tests.

Expected behavior

Builds prior to the current one should always reflect their state when they were finished. It is very confusing to look at older builds while a current build is running and have indicators on the page that do not line up with what actually happened.

Application Details

a. Please share your Amplify Console AppID, found in App settings > General > App ARN (e.g. arn:aws:amplify:us-west-2:XXXXXXXXXXX:apps/APPID)

arn:aws:amplify:us-east-2:396136447318:apps/d2df4ylja65m9v

If the issue is related to a build, please also share:

b. The specific Branch and Build number we should investigate

The issue happens while a build is in progress and does not appear if builds for a given environment are not currently running.

c. Your buildspec (the version at the time the issue occurred), either from the Amplify console or amplify.yml (Be sure to remove any sensitive data)

`version: 0.1

backend: phases: build: commands:

frontend: phases: preBuild: commands:

test: phases: preTest: commands:

Athena96 commented 4 years ago

Thanks for the detailed repro steps, we'll log this as a bug.