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

Bug fix: Generic Worker: Process absolute paths in task payload correctly #6690

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

petemoore
Copy link
Member

Github Bug/Issue: Fixes #6689

@petemoore petemoore self-assigned this Nov 16, 2023
@petemoore petemoore marked this pull request as ready for review November 16, 2023 12:35
@petemoore petemoore requested a review from a team as a code owner November 16, 2023 12:35
@petemoore petemoore requested review from lotas and matt-boris and removed request for a team November 16, 2023 12:35
@petemoore petemoore marked this pull request as draft November 16, 2023 12:47
@petemoore
Copy link
Member Author

Converting back to draft, I realise I should probably add a test or two...

@petemoore petemoore force-pushed the issue6689 branch 3 times, most recently from b351daf to d7d000c Compare November 16, 2023 14:05
…ctly

Generic Worker now evaluates absolute paths inside `mounts` (properties
`directory` and `file`) and artifacts (property `path`) correctly.  Previously
Generic Worker would effectively strip leading path separators and treat them
as relative paths inside the task directory. For example, `/tmp` would be
resolved as the relative path `tmp` from inside the task directory.  This has
now been fixed, so that both absolute and relative paths are evaluated
correctly.
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.

Generic Worker evaluates absolute paths as relative in mounts and artifacts
1 participant