-
Notifications
You must be signed in to change notification settings - Fork 94
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
family add and prune fix #6589
base: 8.4.x
Are you sure you want to change the base?
family add and prune fix #6589
Conversation
6858c7a
to
6d27d42
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'd really like a reproducible workflow example.
Must Have
- Duplicate test
test_update_data_structure
. test_update_data_structure
failing.
Nice to have
- More comments
Take on board or ignore
(as your time and energy permit)
- Wider refactoring of
test_data_store_mgr.py
90f69e9
to
ef5a78a
Compare
Thanks for the review Tim
Here's another example in the ticket.. I'm not sure the criteria for the families being visible in the UI, but graphql will show family proxies that accumulate every cycle.. (due to how suicide triggers add and remove items)
Yeah, duplicate removed.
More comments added
I've refactored the code around the tests I added.. Will leave a wider refactor to a bigger change (which there may be in the near future) Note: |
@dwsutherland - Unfortunately I couldn't replicate the bug with your example. 😢 |
Did you use graphiql to try view the accumulation of family proxies?
with that example workflow, it was 100% reproducible ... (even though the UI doesn't show them) |
Note
|
No. I was looking for the bug as reported. Why do the proxies accumulate but not show up in the GUI the same way. (Yes, I saw the hardcoded inter-workflow xtrigger) |
I cannot reproduce the GraphiQL family proxies accumulating on 8.4.x (21d18ba). I tried both the query and the same thing as a subscription. I assumed Also, I'm not sure if this would be the same bug as cylc/cylc-ui#1999, which seems to be an accumulation of jobs from Tom's GraphiQL output |
I tried to replicate using the above example and this diff: diff --git a/flow.cylc b/flow.cylc
index 40b932b..2c80133 100644
--- a/flow.cylc
+++ b/flow.cylc
@@ -2,7 +2,7 @@
initial cycle point = 20250204T2240Z
sequential xtriggers = True
[[xtriggers]]
- poll_exist = workflow_state(strigger/run1//%(point)s/spawn)
+ poll_exist = workflow_state(%(workflow)s//%(point)s/spawn)
poll_non_exist = workflow_state(this/workflow//%(point)s/doesnt_exist)
[[graph]]
PT1M = """ Unfortunately, I couldn't replicate families piling up in GraphiQL OR the empty cycles in the GUI as originally reported. |
Have any of us managed to reproduce the "empty cycles in the GUI" issue so far? |
I'm able to easily reproduce the accumulation of families, and the tests show this is fixed (if you undo the fix, but keep the tests, the tests fail).. I'm not sure what mechanism produced a stuck UI representation, however, I'm certain that the non-pruning of families (addressed here) is to blame.. (along with some combination of w/e state/criteria the UI requires to display a node) |
@MetRonnie - the main issue (in the title) is the accumulation of old cycles, which is addressed here.. The job accumulation is (I assume) a separate issue, where he may be suiciding running (or soon to be) jobs.. It's a Separate issue from cylc/cylc-ui#1999 ... He should create a new issue for job accumulation.. |
I don't think the job accumulation is a separate issue to old cycles being shown in the UI. It seems the old cycles are showing as a result of the old jobs being retained in the data store. Annoyingly I have not been able to reproduce that issue either, using the |
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.
Having worked on #6656, I think this makes sense, even if none of us were able to reproduce it outside of the added integration test
Yeah, still a little surprised about this .. Maybe you didn't set Because, the corresponding task/family wouldn't be pruned in the same batch as it was added otherwise.. But thanks all the same.. |
Co-authored-by: Ronnie Dutta <[email protected]>
5a016d2
to
dabb46b
Compare
Related to discussion in cylc/cylc-ui#1999
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.