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

Feature/bootstrapping #35

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

bolomcs50
Copy link

Hey @aruizs, due to changes that happened on our fork and the fact that I do not have write access to this one, I found it easier to open a new PR instead of the old one.
This one is based on your latest main branch

@bolomcs50
Copy link
Author

@aruizs I think there might be a problem with sonar for Ubuntu?
Also I am quite puzzled by the segfault on MacOS, especially if the tests pass on the other platforms. I am unfortunately unable to test on Mac as I have none.

Copy link
Owner

@aruizs aruizs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First, I apologize for the long delay.

I've just fixed the sonnar issue in the ubuntu CI action. (Please rebase with the main branch)

I guess the MAC execution could be fixed when you add the commented stuff. (I don't have either a Mac for testing it directly)

cacheFile.close();
m_features = loadFeatures(features_buffer.str());
} else
std::cout << "Could not open cache file '" << m_cacheFilePath << "' for reading." << std::endl;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a missing return in this case. Otherwise the periodic task is launched and the instance is marked as initialized.

<< std::endl;
return;
std::cerr << "Attempted to initialize an Unleash Client instance without server response." << std::endl;
std::ifstream cacheFile(m_cacheFilePath, std::fstream::in);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could avoid to load the file if the cacheFile is not set or disable the "Could not open cache file" comment at least.

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.

2 participants