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

Suicide takes precedence in otherwise identical triggers. #4334

Closed
wants to merge 1 commit into from

Conversation

hjoliver
Copy link
Member

@hjoliver hjoliver commented Jul 30, 2021

These changes close #4333

Requirements check-list

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.py and conda-environment.yml. (None)
  • Appropriate tests are included (unit and/or functional).
  • Already covered by existing tests.
  • Does not need tests (why?).

I'm not sure how to test this, as the bug is not deterministic.

  • Appropriate change log entry included.

  • No change log entry required (why? e.g. invisible to users).

  • No documentation update required. (now conforms to advertised behavior)

@hjoliver hjoliver added this to the cylc-8.0b3 milestone Jul 30, 2021
@hjoliver hjoliver requested review from kinow and wxtim July 30, 2021 00:57
@hjoliver hjoliver self-assigned this Jul 30, 2021
Comment on lines -219 to -220
if dep.suicide:
continue
Copy link
Member Author

Choose a reason for hiding this comment

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

This was preventing the upstream parent of a suicide trigger being recognized as a parent (matters for spawning if the suicided task has no other parents).

Comment on lines -1519 to -1521
elif suicide and name == right:
# "foo => !bar" should not create taskdef bar
pass
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment incorrect. We still need to know the valid sequences of a suicided task, in case it isn't spawned by any non-suicide triggers (as is the case in the example that triggers the bug).

@hjoliver hjoliver marked this pull request as draft July 30, 2021 02:09
@hjoliver
Copy link
Member Author

Invalid! 😜

@hjoliver hjoliver closed this Jul 30, 2021
@hjoliver hjoliver removed request for kinow and wxtim July 30, 2021 04:04
@hjoliver hjoliver mentioned this pull request Jul 30, 2021
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in suicide trigger handling
1 participant