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

[WIP] Implement find in REAPI #1339

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

milroy
Copy link
Member

@milroy milroy commented Feb 13, 2025

This PR adds find functionality to the REAPI. The primary client will be the Fluence and FluxQueue projects.

The PR is WIP pending client testing and discussion about how to implement testing in Fluxion.

Copy link
Member

@vsoch vsoch left a comment

Choose a reason for hiding this comment

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

This is great! I'll be able to test this in fluxion-go after the grow/shrink stuff.

} else if (!(json_str = json_dumps (o, JSON_INDENT (0)))) {
json_decref (o);
o = NULL;
errno = ENOMEM;
Copy link
Member

Choose a reason for hiding this comment

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

This means no memory? In the context of parsing a string into json what is that saying?

goto done;
if (!(out_buf_c = strdup (out_buf.c_str ()))) {
ctx->err_msg = __FUNCTION__;
ctx->err_msg += ": ERROR: can't allocate memory\n";
Copy link
Member

Choose a reason for hiding this comment

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

Oh I think the answer is here. Could a find request really run out of memory? My impression is that the json string would be tiny.

@milroy milroy marked this pull request as draft February 15, 2025 00:36
Copy link

codecov bot commented Feb 19, 2025

Codecov Report

Attention: Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.

Project coverage is 75.6%. Comparing base (da6156a) to head (3151fc2).

Files with missing lines Patch % Lines
resource/reapi/bindings/c++/reapi_cli_impl.hpp 0.0% 18 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1339     +/-   ##
========================================
- Coverage    75.7%   75.6%   -0.1%     
========================================
  Files         112     112             
  Lines       16410   16427     +17     
========================================
  Hits        12426   12426             
- Misses       3984    4001     +17     
Files with missing lines Coverage Δ
resource/reapi/bindings/c++/reapi_cli_impl.hpp 38.0% <0.0%> (-1.6%) ⬇️

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