-
Notifications
You must be signed in to change notification settings - Fork 27
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
Use Task Executor Workdir #281
Conversation
/azp run |
src/TesApi.Web/BatchScheduler.cs
Outdated
@@ -1106,7 +1106,7 @@ private async Task<CloudTask> ConvertTesTaskToBatchTaskAsync(string taskId, TesT | |||
sb.AppendLinuxLine($"chmod -R o+rwx $AZ_BATCH_TASK_WORKING_DIR/wd && \\"); | |||
sb.AppendLinuxLine($"export TES_TASK_WD=$AZ_BATCH_TASK_WORKING_DIR/wd && \\"); | |||
sb.AppendLinuxLine($"write_ts ExecutorStart && \\"); | |||
sb.AppendLinuxLine($"docker run --rm {volumeMountsOption} --entrypoint= --workdir / {executor.Image} {executor.Command[0]} \"{string.Join(" && ", executor.Command.Skip(1))}\" && \\"); | |||
sb.AppendLinuxLine($"docker run --rm {volumeMountsOption} --entrypoint= --workdir {executor.Workdir ?? "/"} {executor.Image} {executor.Command[0]} \"{string.Join(" && ", executor.Command.Skip(1))}\" && \\"); |
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.
Suggestion: use string.IsNullOrWhitespace
Even better suggestion: remove --workdir
entirely if/when there's no non-whitespace text in executor.Workdir
, which would bring this implementation of TES into conformity with the TES specification.
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.
It would change the default behavior right? running on the container workdir vs on root, are we good with that?
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 will talk with the team on Friday about this, but the TES spec is clear that if this parameter is not set then the container default is to be used.
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.
Its fine by me, we are always passing a workdir, and I would be happy to push that change. I just wanted to make sure that there are no regressions or breaking changes for current users
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.
@BMurri Done
/azp run |
the creds secret aren't used in the dotnet-format action, maybe because its from a fork? |
That's definitely possible. Our azure CI/CD also doesn't work with forks (I've had to copy this branch to this repo in order to build your PR to run our integration tests, etc.) |
In that case, can I get permission to create a branch in the repo? Or can this be merged without the check? |
We can merge it without the check. I expect to complete validation by mid-week. |
@SharonHart Will the website allow you to merge? |
|
Addresses #282