Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds retry option to flaky edit_spec.rb #12800

Merged

Conversation

filipefurtad0
Copy link
Contributor

@filipefurtad0 filipefurtad0 commented Aug 21, 2024

What? Why?

Can't reproduce it locally (even after running it 50 times with out test script) and adding a sleep also does not seem to help: Pragmatically adding a retry: 3 flag, as this is occurring quite often apparently.

What should we test?

  • consistently green build

Release notes

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

@filipefurtad0 filipefurtad0 added the technical changes only These pull requests do not contain user facing changes and are grouped in release notes label Aug 21, 2024
@filipefurtad0 filipefurtad0 self-assigned this Aug 21, 2024
@filipefurtad0 filipefurtad0 changed the title Adds retry option to flaky spec Adds retry option to flaky edit_spec.rb Aug 21, 2024
Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

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

Thank you for looking into this. The message is displayed from an AngularJS controller. So part of solving this problem may be replacing that code. I think that those sleeps may actually help. It may be that the Save button was clicked before AngularJS had initialised all triggers and then the saving the happen.

@mkllnk mkllnk merged commit e2423ad into openfoodfoundation:master Aug 23, 2024
50 checks passed
@filipefurtad0
Copy link
Contributor Author

I think that those sleeps may actually help

Thanks @wandji20 for your suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical changes only These pull requests do not contain user facing changes and are grouped in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants