Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
114 stars 70 forks source link

Frontend: Cypress YML should check azure pipeline #11683

Open framitdavid opened 11 months ago

framitdavid commented 11 months ago

What:

Today we have a "sleep"-task which is 6 minutes. 6 minutes is way too low to be able to release a new version of Studio before the tests start. When this issue was written our build and deploy pipelines used ca. 10 minutes. This means our Cypress tests are starting to test the previous version of Studio and our e2e-tests can fail because new tests are testing on the wrong version of Studio.

Possible solution:

We should use the Azure CLI or create a hook within the Azure Pipelines to inform us when the deployment is finished and then we can trigger the e2e-pipeline within Github. Alternatively, start the migration from Azure Pipelines to Github. ;)

Note:

I think this is why we get 502 Bad Gateway when our Cypress tests are running since we deploy while Cypress has already started.

framitdavid commented 11 months ago

A temporary fix is made by increasing the wait for deployment from 6 to 10 minutes. Ref. PR which is linked to this issue.