-
Notifications
You must be signed in to change notification settings - Fork 23
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
Hotfix/mkdir #3165
Hotfix/mkdir #3165
Conversation
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.
Looks good to me, left a comment.
if action != rpc.TRANSFER: | ||
tgtdir = os.path.dirname(tgt.path) | ||
if tgtdir != task_sandbox.path: | ||
self._log.debug("mkdir %s", tgtdir) |
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.
Should we elevate this to a warning with something like: "WARNING: implicit directory creation! Mkdir %s"?
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.
I don't think this would help: unless the end user is actively looking for warnings in the agent logs, it would not really show up. Also, if we provide some semantics then users begin to rely on it (as we have just seen in this case), and then a warning is not intuitive either.
Having said that, I will open a ticket to clearly document the implemented behavior - sorry for not doing that anyway...
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.
#3166 is now open for this.
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!
Another hotfix for staging semantics to get FACTS unstuck.