Skip to content

fix: resetAll() no longer dumps the whole configuration, only an enab… - #8965

Merged
lvca merged 1 commit into
mainfrom
fix/config-dump-on-reset
Oct 2, 2026
Merged

lvca merged 1 commit into
mainfrom
fix/config-dump-on-reset

Conversation

@lvca

@lvca lvca commented Oct 2, 2026

Copy link
Copy Markdown
Member

…led dumpConfigAtStartup does

What does this PR do?

A brief description of the change being made with this pull request.

Motivation

What inspired you to submit this pull request?

Related issues

A list of issues either fixed, containing architectural discussions, otherwise relevant
for this Pull Request.

Additional Notes

Anything else we should know when reviewing?

Checklist

  • I have run the build using mvn clean package command
  • My unit tests cover both failure and success scenarios

@coderabbitai

coderabbitai Bot commented Oct 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: e7931189-ee4d-4415-9937-9ad10f2aae0a

📥 Commits

Reviewing files that changed from the base of the PR and between ae6e0e2 and 09e0ef6.

📒 Files selected for processing (2)
  • engine/src/main/java/com/arcadedb/GlobalConfiguration.java
  • engine/src/test/java/com/arcadedb/Issue7281StartupConfigDumpOrderTest.java
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lvca
lvca merged commit 02ac273 into main Oct 2, 2026
@lvca lvca self-assigned this Oct 2, 2026
@lvca lvca added this to the 26.10.1 milestone Oct 2, 2026
@mergify

mergify Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@codacy-production

codacy-production Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage 100.00% diff coverage · -5.86% coverage variation

Metric Results
Coverage variation ✅ -5.86% coverage variation
Diff coverage ✅ 100.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (9319980) 207371 175683 84.72%
Head commit (09e0ef6) 240142 (+32771) 189363 (+13680) 78.85% (-5.86%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#8965) 2 2 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@lvca
lvca deleted the fix/config-dump-on-reset branch October 2, 2026 20:30
@claude

claude Bot commented Oct 2, 2026

Copy link
Copy Markdown

Review

Small, focused fix. I found nothing blocking.

Correctness

Tests

  • resettingTheFlagToItsDefaultDoesNotDump covers the regression: reset, resetAll() and setValue(false) all stay silent. The existing settingTheFlagAtRuntimeStillDumpsImmediately and startup-order tests cover the positive side.
  • Removing the old comment in the finally block of the first test is correct, since that reset no longer dumps.

Minor suggestions (non-blocking)

  1. The negative test asserts doesNotContain(" configuration:") only. Its assertion is only meaningful if CapturingLogger really captures the dump output, and the sibling test establishes that. A short note in the test, or a shared constant for the " configuration:" marker, would stop the two tests drifting apart if the dump header text changes. If the header changes, this test would pass vacuously.
  2. GlobalConfiguration.resetAll() in a test mutates JVM-wide state. That matches what fixtures already do, but if the engine module runs tests in parallel this class could in principle race with another test's settings. If the suite is sequential, which I believe it is, this is fine.
  3. The PR title is truncated ("...only an enab…") and the description is still the unfilled template. Please fill in the "What does this PR do?" and "Related issues" sections, referencing GlobalConfiguration sweep: txWalFiles=0 breaks every commit though documented, bucketReuseSpaceMode is DATABASE-scoped but read globally, and four settings are unreachable or unread #7121 and OTLP Metrics and Tracing Not Initialising #7281, and tick the checklist.

Style / conventions

  • The single-statement if without braces matches the repo style.
  • The new comment explains a non-obvious why. The test uses assertThat(...) as CLAUDE.md prefers.
  • No new dependencies and no performance or security concerns.

LGTM once the PR description is filled in.

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.52%. Comparing base (9319980) to head (09e0ef6).
⚠️ Report is 54 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8965      +/-   ##
============================================
+ Coverage     76.49%   76.52%   +0.03%     
- Complexity     3849     3851       +2     
============================================
  Files          2108     2108              
  Lines        207371   207542     +171     
  Branches      43711    43780      +69     
============================================
+ Hits         158619   158819     +200     
+ Misses        31728    31711      -17     
+ Partials      17024    17012      -12     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant