-
Notifications
You must be signed in to change notification settings - Fork 11
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
FMU-proxy orchestration support #239
Conversation
We have no need for model_directory and slave_uri_resolver at the moment. It is better to re-introduce them at a later time if needed.
…urely, add support for relative file paths for fmuproxy
…eric-fmu-interface-fmuproxy # Conflicts: # include/cse/orchestration.hpp
…e' into feature/165-generic-fmu-interface-fmuproxy # Conflicts: # src/cpp/ssp_parser.cpp
I've updated the PR to use the new iteration. I added some ad-hoc changes to the original code. Should be fixed upstream and merged back. |
I guess we could modify #if __has_include(<cse/fmuproxy/fmuproxy_uri_sub_resolver.hpp>)
#DEFINE HAS_FMUPROXY
#include <cse/fmuproxy/fmuproxy_uri_sub_resolver.hpp>
#endif
....
std::shared_ptr<model_uri_resolver> default_model_uri_resolver()
{
auto resolver = std::make_shared<model_uri_resolver>();
resolver->add_sub_resolver(std::make_shared<file_uri_sub_resolver>());
#ifdef HAS_FMUPROXY
resolver->add_sub_resolver(std::make_shared<fmuproxy_uri_sub_resolver>());
#endif
return resolver;
}
? |
We concluded to keep the fmu-proxy flag last meeting, so we need something like that yes. We can discuss this tomorrow. |
I'm travelling btw, but I'll be available at slack if there should be any discussion afterwards. |
We are getting close to merge this PR. How shall we do that? This PR is requesting to merge into BTW, I think your proposal for adding the sub_resolver is good @markaren |
I would suggest to merge #233 first, then change the target of this to master. |
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 now!
We'll need to figure out what to do about running the tests, but that was a pre-existing problem that is not related to this PR.
I agree, this is the cleanest way to do it. |
Linux build agent is up and running again, and |
Same here. It could be added in the final PR (to |
The error is
How to best resolve @kyllingstad ? Add a |
Thrift does:
which is better than using |
There is another linux error. Will fix when I get back to a linux machine tomorrow. |
Yes,
Only the |
…-fmu-interface-fmuproxy
Jenkins is happy 🎉 |
Then it's only the final modification of orchestration.cpp to include the sub resolver left. |
|
This is caused by
no? Should we rather specify a add_definition("WITH_FMUPROXY") in the CMake file? @kyllingstad |
… if fmuproxy is enabled
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.
Great!
FMU-proxy support for PR #233