Skip to content

FDB-618: Add test using fdb-reindex with the same source/sink fdb - #347

Merged
danovaro merged 1 commit into
developfrom
feature/FDB-618-floods-reindex
Sep 3, 2026
Merged

FDB-618: Add test using fdb-reindex with the same source/sink fdb#347
danovaro merged 1 commit into
developfrom
feature/FDB-618-floods-reindex

Conversation

@caraghbiner

@caraghbiner caraghbiner commented Sep 3, 2026

Copy link
Copy Markdown
Member

Description

Adds a test for how various bits of FDB functionality behave when the fdb-reindex tool is used. Somewhat surprisingly, the FDB seems to behave fine: new indexes are created masking the old ones, and purge seems to correctly remove the old ones.

Written with the efas use case in mind (FDB-618)

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-347

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.

🟢 Approval recommended

Fully reviewed with only a minor, non-blocking wording nit.

Pull request overview

Adds regression coverage for same-source/sink fdb-reindex behavior using an EFAS-style FDB layout.

Changes:

  • Tests reindexing, retrieval, wiping, and purging.
  • Verifies index compaction.
  • Registers the FDB-618 regression test.
File summaries
File Description
tests/regressions/FDB-618/schema Defines the EFAS-style schema.
tests/regressions/FDB-618/FDB-618.sh.in Implements the regression workflow; has a non-blocking wording nit on lines 66 and 92.
tests/regressions/FDB-618/config2.yaml Configures the separate sink FDB.
tests/regressions/FDB-618/config.yaml Configures the source/shared FDB.
tests/regressions/FDB-618/CMakeLists.txt Defines the test target.
tests/regressions/CMakeLists.txt Registers the regression directory.
Review details

Suppressed comments (1)

tests/regressions/FDB-618/FDB-618.sh.in:92

  • Correct the spelling of “indices.”
# --- confirm that reindexing into the same FDB produces compact indicies ---
  • Files reviewed: 6/7 changed files
  • Comments generated: 1
  • Review effort level: Balanced

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

Comment thread tests/regressions/FDB-618/FDB-618.sh.in Outdated
@caraghbiner
caraghbiner force-pushed the feature/FDB-618-floods-reindex branch from 098165d to 453d406 Compare September 3, 2026 14:26
@caraghbiner
caraghbiner force-pushed the feature/FDB-618-floods-reindex branch from 453d406 to 8cb4511 Compare September 3, 2026 14:26

@danovaro danovaro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, thanks @caraghbiner

@danovaro
danovaro merged commit 947b0a2 into develop Sep 3, 2026
129 of 159 checks passed
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