-
Notifications
You must be signed in to change notification settings - Fork 1
Added custom engine version support in the integration tests #84
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
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.
Cool :)
Could you add an example of a valid test argument to the comments?
parse_test_args will parse the args of the julia executable not from a julia REPL, right?
I have added the example but I am not sure whether parse_test_args will work with REPL or not? I am not that familiar with Julia yet :) The github action is calling it using julia binary with --project It also works with REPL |
NRHelmi
left a comment
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.
Thanks @miazamrai
Awesome 🎉 |
|
Also we see this in the test logs: We can change it to the one with the bang. |
Tested it with REPL, it works! Like julia> include(test/runtests.jl) or module test
@bachdavi I have talked to @NRHelmi and we are agreed on sending the custom headers as an env variable. So no command line arguments will be used. It is to use the same approach for all the SDKs and env variable seems like the easiest and the most consistent approach to follow. |
Integration tests can honor an environment variable like CUSTOM_HEADERS= '{"key1":"val1", "key2":"val2"}'. The custom headers key value pair should be valid JSON string otherwise, I runtime error will be thrown. The JSON string will be parsed into a dictionary and will passed to the create_engine function as kwargs...
export CUSTOM_HEADERS='{"x-rai-parameter-compute-version":"6df2736eccdc6a4844c2f8e8d78bcd7782046e1d"}'