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

collection_upload test - fix sporadic failure #1862

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Apr 6, 2022

Fixing (I hope)

Collection Upload Tests
  ✓ user should not be able to upload new collection without permissions (12005ms)
  ✓ collection should be uploaded (13209ms)
  ✓ should not upload new collection version when user does not have permissions
  1) should deprecate let user deprecate and undeprecate collections

  3 passing (28s)
  1 failing

  1) Collection Upload Tests
    should deprecate let user deprecate and undeprecate collections:
    Error: The following error originated from your application code, not from Cypress. It was caused by an unhandled promise rejection.

  Request failed with status code 403

https://github.com/ansible/ansible-hub-ui/runs/5854034056?check_suite_focus=true

the idea being the previous test doesn't wait long enough and gets a 403 in one of the requests .. wait for the list to appear first

    Collection Upload Tests
      ✓ user should not be able to upload new collection without permissions (12005ms)
      ✓ collection should be uploaded (13209ms)
      ✓ should not upload new collection version when user does not have permissions
      1) should deprecate let user deprecate and undeprecate collections

      3 passing (28s)
      1 failing

      1) Collection Upload Tests
        should deprecate let user deprecate and undeprecate collections:
        Error: The following error originated from your application code, not from Cypress. It was caused by an unhandled promise rejection.

      Request failed with status code 403

https://github.com/ansible/ansible-hub-ui/runs/5854034056?check_suite_focus=true

the idea being the previous test doesn't wait long enough and gets a 403 in one of the requests .. wait for the list to appear first

No-Issue
@himdel
Copy link
Collaborator Author

himdel commented Apr 7, 2022

well, tried 5 cypress runs and it only broke once and that was on the "use in controller" failure, not this one.. 🤞

(except the last run fails on issues caused by merging ansible/galaxy_ng#1057, ignoring here)

Copy link
Member

@ZitaNemeckova ZitaNemeckova left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Test failure seems unrelated to this PR.

@himdel himdel merged commit 35922af into ansible:master Apr 11, 2022
@himdel himdel deleted the spora-coup branch April 11, 2022 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants