-
Notifications
You must be signed in to change notification settings - Fork 1
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
ocis UI tests failing after account cache in ocis-proxy is removed #219
Comments
🤔
|
I noticed that as well - and it was already happening in other PRs to ocis, see e.g. here: https://cloud.drone.io/owncloud/ocis/1495/6/6 I don't know if it is related to the issues I'm having now - it happens on the preparation step that deletes the user before recreating it. I guess in other PRs this was not crashing CI because the accounts cache in ocis-proxy was already caching the account, so failing to create it didn't blow up. |
(e.g. if I have Just trying to think what is interestingly unique about the previous scenario that might cause trouble for delete-create of user1. |
there is also this known issue: #180 not sure if that is the same issue here |
probably not, here the issue is already at the login level |
I noticed that when running the full test suite and reaching the failing state, subsequent runs of the single scenario in line 95 (quoted above) also fail. Deleting |
something strange is going on there.
|
Thank you for reproducing it and even making a video! Fun stuff: when I run |
Now checking what happens on CI when we skip that test on ocis. |
@individual-it @phil-davis that one scenario is indeed blowing up the subsequent scenarios. Skipping that test in ocis CI passes: https://cloud.drone.io/owncloud/ocis/1522/6/7 |
Benedikt Kulmann commented: This behaviour was unintentionally reproduced on a QA instance by @dtoledo - no information existing about the steps, just that a QA instance had exactly the same symptoms. |
The test was skipped by Phoenix PR owncloud/web#4051 and OCIS PR owncloud/ocis#540 Now the underlying cause needs to be found, fixed, and the test scenario enabled again. |
It looks like the failure is appearing in different tests now. Some drone runs that failed with identical symptoms: |
Benedikt Kulmann commented: Phoenix UI Tests 1 pipeline fails in following scenarios: |
Benedikt Kulmann commented: server debug output gives a hint that
|
Benedikt Kulmann commented: looking at
|
Benedikt Kulmann commented: The duplicate accounts are an error creeping into the debugging. I created a PR that prevents creating duplicate accounts in the future. This might help debugging as well. owncloud/ocis-accounts#123 |
I added this to the "OCIS Server QA/CI Automation" project so that it keeps being noticed by QA. Next step is to get the "no duplicate accounts" code merged... Then we can see if there is more to be done. |
Benedikt Kulmann commented: The |
how to reproduce it manually:
|
aha, so the user gets auto-provisioned again from the IDP claims. which can only work if in the proxy:
|
Benedikt Kulmann commented: This is now also the explanation why it popped up after we removed the account cache in the proxy. Previously there was a cache hit for the user that was deleted in the meantime. Now it gets re-provisioned. |
Michael Barz commented: Fixed by owncloud/ocis#648 |
Web ui tests are failing on CI on this PR:
owncloud/ocis#525
Example drone run with the failures:
https://cloud.drone.io/owncloud/ocis/1505/6/7
Timeline and things I noticed:
70 scenarios (36 failed, 34 passed)
. Always.user1
after deleting it. If that's true, the account cache in ocis-proxy would have hidden that, because, well, the account was cached in ocis-proxy. The cache doesn't exist anymore.@individual-it @phil-davis @dpakach
Solution
Long Term
The text was updated successfully, but these errors were encountered: