Skip to content

Conversation

@davixcky
Copy link
Contributor

No description provided.

@davixcky davixcky requested a review from foxish January 15, 2025 03:46
@davixcky davixcky changed the title E2E - Fix cypress not running new UI) E2E - Fix cypress not running new UI Jan 15, 2025
@foxish foxish requested a review from daniel-de-vera January 15, 2025 15:52
@foxish
Copy link
Member

foxish commented Jan 15, 2025

@daniel-de-vera - can you verify that this fixes the issue? code LGTM otherwise.

@daniel-de-vera
Copy link
Contributor

As far as I can see, it is still failing (this is against staging, the sandbox is pointing to hotrod:latest):

signadot job submit --attach -f .signadot/testing/demo-tests-job.yaml --set sandbox=hotrod-pr-256-frontend --set branch=fix-cypress-test-run --set namespace=hotrod-istio

Result:

https://app.staging.signadot.com/testing/jobs/hotrod-cypress-demo-srqdgdq/logs

@foxish foxish added the istio label Jan 15, 2025
@foxish foxish closed this Jan 15, 2025
@foxish foxish reopened this Jan 15, 2025
@foxish
Copy link
Member

foxish commented Jan 15, 2025

I'm looking into this now - it appears the frontend that it's running against in hotrod:latest is not the actual latest version of the frontend. Trying to understand why this might happen.

@foxish
Copy link
Member

foxish commented Jan 16, 2025

@daniel-de-vera - this succeeds once I replaced the baseline in hotrod-istio fully with signadot/hotrod:latest. Looks like the e2e-v2.9 and the latest are not compatible with one another.

https://app.staging.signadot.com/testing/jobs/hotrod-cypress-demo-fwcsfky/overview

@daniel-de-vera
Copy link
Contributor

@daniel-de-vera - this succeeds once I replaced the baseline in hotrod-istio fully with signadot/hotrod:latest. Looks like the e2e-v2.9 and the latest are not compatible with one another.

https://app.staging.signadot.com/testing/jobs/hotrod-cypress-demo-fwcsfky/overview

Mmm, but in the example from above I was running in a sandbox (hotrod-pr-256-frontend) that had signadot/hotrod:latest as the image. Will check further.

// require('./commands') No newline at end of file
// require('./commands')

Cypress.on('uncaught:exception', (err, runnable) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want to prevent cypress failing the test?

Copy link
Member

@foxish foxish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after comments

@foxish foxish merged commit 77d03dd into main Feb 7, 2025
6 checks passed
@foxish foxish deleted the fix-cypress-test-run branch February 7, 2025 15:00
foxish added a commit that referenced this pull request Feb 7, 2025
* fix contain and other issues to remediate cypress run

* test path matcher that is wider

* Delete cypress/e2e/hotrod-e2e.cy.js

---------

Co-authored-by: Anirudh Ramanathan <anirudh@signadot.com>
Co-authored-by: Anirudh Ramanathan <anirudh@foxish.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants