Skip to content

improved config parsing (RemoteFieldLocation) - #362

Merged
danovaro merged 1 commit into
developfrom
fix/remote-config-parsing
Oct 13, 2026
Merged

danovaro merged 1 commit into
developfrom
fix/remote-config-parsing

Conversation

@danovaro

@danovaro danovaro commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Description

improved config parsing (accepts single value for RemoteFieldLocation) & improved error reporting (instead of ASSERT)

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

🌈🌦️📖🚧 Documentation FDB 🚧📖🌦️🌈
https://sites.ecmwf.int/docs/fdb/pull-requests/PR-362

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new scalar parsing and error behavior lacks focused automated tests.

1 open finding
What changed in this PR

Improves remote configuration parsing and diagnostics.

Changes:

  • Accepts scalar RemoteFieldLocation values.
  • Replaces assertions with descriptive exceptions for invalid scalar values.
  • Applies namespace formatting cleanup.
File Description
src/​fdb5/​remote/​RemoteConfiguration.cc Updates remote protocol configuration parsing.
src/​fdb5/​tools/​fdb-fam.cc Normalizes namespace formatting.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

}
}
else {
if (rfl.isNumber()) {
@danovaro
danovaro force-pushed the fix/remote-config-parsing branch from 70967eb to 5f43aa8 Compare October 12, 2026 13:23
@codecov-commenter

codecov-commenter commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.50%. Comparing base (84c083d) to head (d6ab01f).

Files with missing lines Patch % Lines
src/fdb5/remote/RemoteConfiguration.cc 25.00% 12 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #362      +/-   ##
===========================================
- Coverage    77.53%   77.50%   -0.03%     
===========================================
  Files          414      414              
  Lines        27755    27765      +10     
  Branches      2742     2747       +5     
===========================================
  Hits         21519    21519              
- Misses        6236     6246      +10     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danovaro
danovaro force-pushed the fix/remote-config-parsing branch from 5f43aa8 to d6ab01f Compare October 13, 2026 13:10
@danovaro
danovaro merged commit 52ab84b into develop Oct 13, 2026
153 of 155 checks passed
@danovaro
danovaro deleted the fix/remote-config-parsing branch October 13, 2026 14:32
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.

3 participants