-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix load context bug #137
Fix load context bug #137
Conversation
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.
Something broke:
joconnel@joconnel-mac arcaflow-engine % export WFPATH=/Users/joconnel/Documents/projects/arcaflow/workflows/test-workflows/python_deployer_wait_simple
joconnel@joconnel-mac arcaflow-engine % go run cmd/arcaflow/main.go -config=$WFPATH/config.yaml -input=$WFPATH/input.yaml -context=$WFPATH
2024-01-04T15:45:44-05:00 error source=main Failed to load configuration file /Users/joconnel/Documents/projects/arcaflow/workflows/test-workflows/python_deployer_wait_simple/config.yaml (error loading context files, failed to read file /Users/joconnel/Documents/projects/arcaflow-clean/arcaflow-engine (read /Users/joconnel/Documents/projects/arcaflow-clean/arcaflow-engine: is a directory))
We've allowed specifying the entire directory, which, from that, it determined the workflow path without it being explicitly set. That appears to be broken now.
I initialized the slice to an incorrect length which added several empty strings that were converted to absolute file paths. It seems to be fixed now. |
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.
Looks good, and works.
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've got a small question and a bunch of suggestions for polishing (but, I didn't see anything that I would block the merge over).
00da437
to
c2acab8
Compare
add readable test refactor to load context test changes fix linting add test explanation refactor to limit context files read change context establishment
rewrite test and add comment fix init slice len fix gosec warning maybe report abs file path config use abs filepath use regular file move code clarify test simplify error msg func comment
c2acab8
to
4e23bfd
Compare
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.
Looks good, although I have a few comments and pointed questions for your consideration before you merge.
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.
👍
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.
👍
Changes introduced with this PR
By contributing to this repository, I agree to the contribution guidelines.