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

subprocpool: populate missing 255 callback arguments #6376

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders commented Sep 18, 2024

In some situations, these missing arguments could cause tasks to submit fail as the result of a host outage rather than moving onto the next host for the platform.

The bug is as old as the 255 callback - https://github.com/cylc/cylc-flow/pull/4184/files#diff-577155476a8501cbb774dad9dfc50a2ed7b846d577835e58d9bb4dfdb5d56b34R243-R244

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.cfg (and conda-environment.yml if present).
  • Tests are included (or explain why tests are not needed).
  • Changelog entry included if this is a change that can affect users
  • Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@oliver-sanders oliver-sanders added the bug Something is wrong :( label Sep 18, 2024
@oliver-sanders oliver-sanders added this to the 8.3.5 milestone Sep 18, 2024
@oliver-sanders oliver-sanders self-assigned this Sep 18, 2024
@oliver-sanders
Copy link
Member Author

Testing these exact lines is rather awkward, however, they are covered.

* In some situations, these missing arguments could cause tasks to
  submit fail as the result of a host outage rather than moving onto the
  next host for the platform.
@oliver-sanders oliver-sanders force-pushed the subprocpool-forward-255-args branch from 891a9b9 to 8c53251 Compare September 18, 2024 14:54
@oliver-sanders oliver-sanders marked this pull request as ready for review September 18, 2024 14:54
Copy link
Member

@wxtim wxtim left a comment

Choose a reason for hiding this comment

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

Makes sense and fixes a breakage that I introduced all the way back in intelligent host selection (oops). I'd have been happier with it explicitly causing a test failure, but this isn't an easy one to simulate.

Do you want a second review given the lack of tests?

@oliver-sanders oliver-sanders requested review from hjoliver and MetRonnie and removed request for hjoliver September 23, 2024 08:57
@hjoliver hjoliver merged commit 0c9908d into cylc:master Sep 29, 2024
27 checks passed
@oliver-sanders oliver-sanders deleted the subprocpool-forward-255-args branch September 30, 2024 09:05
@MetRonnie MetRonnie modified the milestones: 8.3.5, 8.3.6 Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants