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

Hotfix/mkdir #3165

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Hotfix/mkdir #3165

merged 2 commits into from
Apr 10, 2024

Conversation

andre-merzky
Copy link
Member

Another hotfix for staging semantics to get FACTS unstuck.

Copy link
Contributor

@mturilli mturilli 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 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)
Copy link
Contributor

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"?

Copy link
Member Author

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...

Copy link
Member Author

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.

Copy link
Contributor

@mtitov mtitov left a comment

Choose a reason for hiding this comment

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

LGTM!

@andre-merzky andre-merzky merged commit d849aef into master Apr 10, 2024
27 checks passed
@andre-merzky andre-merzky deleted the hotfix/mkdir branch April 10, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants