Skip to content

fix mode permission on rally track output dir #1575

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

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

aspacca
Copy link
Contributor

@aspacca aspacca commented Nov 30, 2023

os.ModeDir instead of os.ModePerm was set as mode of os.MkdirAll with the target of the rally track output dir: this prevented the content to be written in the directory if the directory didn't exist and was created by the command.
This PR fix this.

@aspacca aspacca requested review from jsoriano and ruflin November 30, 2023 00:23
@aspacca aspacca self-assigned this Nov 30, 2023
Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

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

LGTM, but maybe we can limit the given mode to be less permissive.

@ruflin
Copy link
Contributor

ruflin commented Nov 30, 2023

Change LGTM. What surprises me, is that further down during the rally track creation no error was thrown even though no files could be created? Do we swallow some of the errors?

@jsoriano
Copy link
Member

Do we swallow some of the errors?

Yes, there were some comments about this in the original PR #1522 (review), it'd be nice to revisit error handling in benchmark runners.

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @aspacca

@aspacca aspacca merged commit 78db6d8 into elastic:main Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants