-
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
Minor post-platforms fix. #3981
Conversation
(Draft until I think about tests) |
It looks reasonable - Sorry that I missed doing this. |
1e50f9a
to
faea83b
Compare
faea83b
to
9bf2547
Compare
else: | ||
try: | ||
ret = itask.platform[key] | ||
except (KeyError, ItemNotFoundError): |
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.
There's no way to get ItemNotFoundError
here. And KeyError
can only occur if an illegal config item is requested.
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.
Tests look good to me! LGTM
One functional test job failing. Strange. Could it be similar issue to that from my PR fixing unused imports?? |
Damn, it passed before my final trivial commit. |
It is a flaky one. I've restarted the tests. |
Two jobs failing now 😄 (I think I had seen only one before) |
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.
Oh dear - tests look flaky this morning
The test failure here appears to be genuine, but is also happening on master (local testing):
So I'll merge this and try to diagnose the problem on master. |
This is a small change with no associated Issue.
Found some problems while looking at #3706
TaskEventsManager
has a methodget_host_conf
that used to extract config items from the deprecated taskremote
andjob
sections, defaulting to global config. It's broken because some deprecatedjob
items get auto-upgraded to top level task settings (so they no longer have a secondary dict key), butremote
items don't because they've moved to platforms (so in deprecated form they still have a secondary dict key). So I've split these into two separate functions.TaskJobManager
also makes a call to the above event manager method to extractbatch systems
config (err tailer
etc.) which is now in platforms. And, thebatch_sys_config
dict is not actually used anywhere, so I've removed it.@wxtim - could you cast your "platforms eye" over this to see I'm on the right track?
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.