-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fixes for projects/user pages in Openshift #9530
Fixes for projects/user pages in Openshift #9530
Conversation
34965ce
to
4bbb2b5
Compare
4bbb2b5
to
e71e754
Compare
test/verify/check-openshift
Outdated
@@ -542,15 +542,15 @@ LABEL io.projectatomic.nulecule.atomicappversion="0.1.11" \ | |||
b.click("tr[data-row-id='vm-fedoravm']") # expand row | |||
b.wait_present("tr[data-row-id='vm-fedoravm'] + tr.listing-ct-panel") | |||
b.wait_present("#vm-fedoravm-node") | |||
wait(lambda: b.text("#vm-fedoravm-node > a").strip() != "-") # `-` == unassigned ; so wait for a change | |||
b.wait_js_cond('$("#vm-fedoravm-node > a").text().strip() !== "-"') # `-` == unassigned ; so wait for a change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is indeed a much more efficient way to wait for a condition, as it doesn't need to keep circling between Python, CDP, and the browser; but in principle it should achieve the same thing. The browser does continue to run the page while talking (or not) via CDP to it. Not running the page was a PhantomJS behaviour. Does that correspond to any test flake?
@stefwalter , is this still WIP, or can/should we land some of this? |
These tests have regressed to the point of not even being able to run them once through on my own machine ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These all look good to me. As I said I don't actually think that the last commit actually fixes a flake, it's just optimization. But it's a nice little cleanup anyway. But this should be rebased to current master to get some up to date test runs.
91f8b01
to
501edba
Compare
I pushed a rebase, and took out the last commit for now. It's unrelated, and introducing jQuery there doesn't leave me with lots of confidence, so let's revisit that part in a separate PR. I'm running openshift test locally with that now, but let's see what the bots have to say. |
Running On master, everything succeeded except for On this branch, there are three failures:
So this whole PR actually makes things worse. I'll split this up into several smaller PRs. |
501edba
to
d135623
Compare
These dialogs need to ask Kuberenetes for data, and not expect side effects of other pages to load the data for them. Closes cockpit-project#9530
I split out the six "safe" ones to #9701. The two additional ones ("kubernetes: Load appropriate kubernetes objects for add member dialogs" and "kubernetes: Populate the user/group 'Add Member' drop down on the fly") cause the above crashes and I rebased this PR on top of #9701 to expose the regressions on the bots, and keep the needswork label. |
d135623
to
15b587d
Compare
This allows data arriving from kubernetes to populate this dropdown on the projects page 'Add Member' dialog. This prevents races in the tests. We had to change a bit more code than expected due to the fact that Angular wants to have stable objects across digests. Load appropriate kubernetes objects for add member dialogs These dialogs need to ask Kuberenetes for data, and not expect side effects of other pages to load the data for them.
15b587d
to
ba956c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't say I truly understand this, but it looks plausible and demonstrably works. Thanks!
These are fixes and cosmetic touch ups for the projects page in Openshift.