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

Uncontrolled input fix for ModelManager #2635

Merged
merged 3 commits into from
Sep 30, 2023
Merged

Conversation

@msaroufim msaroufim marked this pull request as draft September 29, 2023 20:08
@msaroufim msaroufim marked this pull request as ready for review September 29, 2023 20:45
@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Merging #2635 (8ac8305) into master (d8a1146) will not change coverage.
Report is 3 commits behind head on master.
The diff coverage is n/a.

❗ Current head 8ac8305 differs from pull request most recent head 4a0eed0. Consider uploading reports for the commit 4a0eed0 to get more accurate results

@@           Coverage Diff           @@
##           master    #2635   +/-   ##
=======================================
  Coverage   71.34%   71.34%           
=======================================
  Files          85       85           
  Lines        3905     3905           
  Branches       58       58           
=======================================
  Hits         2786     2786           
  Misses       1115     1115           
  Partials        4        4           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@msaroufim msaroufim added this pull request to the merge queue Sep 29, 2023
Merged via the queue into master with commit 6e5b8cd Sep 30, 2023
12 of 13 checks passed
Copy link
Collaborator

@lxning lxning left a comment

Choose a reason for hiding this comment

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

We only need replace string with string[] for Runtime exec.

model.getModelDir().getAbsoluteFile());

ProcessBuilder processBuilder = new ProcessBuilder(commandParts);
processBuilder.directory(model.getModelDir().getAbsoluteFile());
Copy link
Collaborator

@lxning lxning Sep 30, 2023

Choose a reason for hiding this comment

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

This might break some cx environment setting such as SageMaker, where model dir is readonly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants