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

batch system -> job runner #3992

Merged
merged 18 commits into from
Dec 17, 2020
Merged

batch system -> job runner #3992

merged 18 commits into from
Dec 17, 2020

Conversation

MetRonnie
Copy link
Member

@MetRonnie MetRonnie commented Dec 11, 2020

These changes close #3910. Yikes.

Global config change:

  • [platforms][X]batch system -> [platforms][X]job runner
  • [platforms][X]batch submit command template -> [platforms][X]job runner command template

Plus: Change all permutations of batch system, batch_sys etc to an equivalent job runner, apart from where batch system refers to the workflow config item [runtime][X][job]batch system.

I've tried to batch the changes into somewhat digestible commits for reviewing.

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).
  • Appropriate tests are included (functional).
  • No dependency changes.

@MetRonnie MetRonnie added the config change Involves a change to global or workflow config label Dec 11, 2020
@MetRonnie MetRonnie added this to the cylc-8.0.0 milestone Dec 11, 2020
@MetRonnie MetRonnie self-assigned this Dec 11, 2020
Comment on lines -111 to +112
optional string batch_sys_job_id = 9;
optional string batch_sys_name = 10;
optional string job_id = 9;
optional string job_runner_name = 10;
Copy link
Member Author

@MetRonnie MetRonnie Dec 11, 2020

Choose a reason for hiding this comment

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

@dwsutherland Can I get a quick check from you that the GraphQL and protobuf stuff has been done correctly? (this commit b64822c and this one 7a23e2f#diff-3c027c5232fb05de824ca58eb160f34cd3e253500824026046cbf56fc526431a)

Copy link
Member

Choose a reason for hiding this comment

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

Looks good to me, as long as the instructions at the top were followed, the binary used to generate the module is the same version protobuf, and tests pass 👍

Copy link
Member

Choose a reason for hiding this comment

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

The diff in the generated module looks appropriate.. Will re-generate on review and see if there are any changes 👍

:toctree: batch-sys-handlers
:template: automodule_batch_sys_handlers.rst
:toctree: job-runner-handlers
:template: automodule_job_runner_handlers.rst
Copy link
Member

Choose a reason for hiding this comment

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

@@ -1125,22 +1127,27 @@ def _setup_custom_event_handlers(self, itask, event, message):
quote(str(self.uuid_str)),
EventData.TryNum.value:
itask.get_try_num(),
# next 2 are deprecated - still here for back compat:
Copy link
Member

Choose a reason for hiding this comment

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

Lesson learned from Cylc 5/6.

Back compat comments make sense at the time, but further down the road no-one can remember why they were added, when the change was made or when the support should be removed.

Suggest marking comments with BACK COMPAT so they can be grepped for, there doesn't seem to be a standard for this so we get to invent one.

Suggested change
# next 2 are deprecated - still here for back compat:
# BACK COMPAT
# For: Cylc <= 7
# Remove at: Cylc9 - pending announcement of upcoming deprecation
# https://github.com/cylc/cylc-flow/pull/3992
# next 2 (JobID_old, JobRunnerName_old) are deprecated

tests/functional/directives/README Outdated Show resolved Hide resolved
@oliver-sanders
Copy link
Member

Looks good, very thorough!

@hjoliver
Copy link
Member

The failed test tests/f/cylc-poll/04-poll-multi-hosts.t was fixed by #3995 (so a rebase will get it).

Plus tidy & remove remaining references to obsoleted [test battery] 
config section
@oliver-sanders
Copy link
Member

oliver-sanders commented Dec 15, 2020

One small hitch with Cylc env vars, after that should be good to go.

Copy link
Member

@hjoliver hjoliver left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@oliver-sanders oliver-sanders merged commit f38b47c into cylc:master Dec 17, 2020
@MetRonnie MetRonnie deleted the batch-sys branch December 17, 2020 11:50
@MetRonnie MetRonnie modified the milestones: cylc-8.0.0, cylc-8.0a3 Dec 17, 2020
@oliver-sanders oliver-sanders mentioned this pull request Dec 17, 2020
7 tasks
@hjoliver hjoliver modified the milestones: cylc-8.0a3, cylc-8.0b0 Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config change Involves a change to global or workflow config
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace batch system with job runner
4 participants