-
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
Fixed platforms subsequent cycles on localhost. #4169
Fixed platforms subsequent cycles on localhost. #4169
Conversation
86fde66
to
cdc064b
Compare
Discovered a bug where host ⇒ plaform upgrade only worked on first cycle. Cause: becuase Python passes refs rather than creating objects the upgrader function popped the required info for the first instance of a task. Fix: have `platform_from_job_info` put popped information back when it's finished.
cdc064b
to
2460e69
Compare
tests/functional/platforms/02-host-to-platform-upgrade/flow.cylc
Outdated
Show resolved
Hide resolved
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.
LGTM, with one small suggestion. I've run the fast tests locally, and tests/f/platforms/02-host-to-platform-upgrade
. Keeping an eye on the running func tests here https://github.com/cylc/cylc-flow/actions/runs/743942309
It may be necessary to take any that fail on Actions due to DNS and run them locally
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
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.
Ran the "fast tests" locally, all passed (GH failures due to DNS issues):
cylc.flow.exceptions.ClientTimeout: Timeout waiting for server response. This could be due to network or server issues. Check the suite log.
Can ignore for now (with local testing).
Looks good.
Tested locally with:
[remote]
[[t1]]
[[[job]]]
batch system = background
[[t2]]
[[[remote]]]
host = myremote
[[t3]]
platform = myremote
Over multiple cycles and submission batches, all good.
Discovered a bug where host ⇒ plaform upgrade only worked on first cycle.
Cause: becuase Python passes refs rather than creating objects the upgrader
function popped the required info for the first instance of a task.
Fix: have
platform_from_job_info
put popped information back when it'sfinished.
These changes close #4167
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.