Skip to content

refactor: standardize build feature macros and cleanup storage headers - #536

Merged
hummeltech merged 1 commit into
openstreetmap:masterfrom
hummeltech:HeaderCleanUp
Oct 31, 2026
Merged

hummeltech merged 1 commit into
openstreetmap:masterfrom
hummeltech:HeaderCleanUp

Conversation

@hummeltech

Copy link
Copy Markdown
Collaborator
  • Move context and tile cache struct definitions for ro_composite and ro_http_proxy into public header files to enable internal test visibility.
  • Standardize compile-time feature checks across storage backends and unit tests, replacing WANT_STORE_COMPOSITE with HAVE_CAIRO.
  • Clean up unused/duplicate include directives across source files and unit tests, and add missing copyright headers to store.c and sys_utils.c.

- Move context and tile cache struct definitions for ro_composite and
  ro_http_proxy into public header files to enable internal test visibility.
- Standardize compile-time feature checks across storage backends and unit
  tests, replacing WANT_STORE_COMPOSITE with HAVE_CAIRO.
- Clean up unused/duplicate include directives across source files and unit
  tests, and add missing copyright headers to store.c and sys_utils.c.
struct stat_info st_stat;
char * tile;
int x, y, z;
char xmlname[XMLCONFIG_MAX];

struct ro_composite_ctx {
struct storage_backend * store_primary;
char xmlconfig_primary[XMLCONFIG_MAX];
struct storage_backend * store_primary;
char xmlconfig_primary[XMLCONFIG_MAX];
struct storage_backend * store_secondary;
char xmlconfig_secondary[XMLCONFIG_MAX];
struct stat_info st_stat;
char * tile;
int x, y, z;
char xmlname[XMLCONFIG_MAX];
@codecov

codecov Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.58%. Comparing base (c4e3e62) to head (6423531).
⚠️ Report is 67 commits behind head on master.

Files with missing lines Patch % Lines
src/store_rados.c 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #536      +/-   ##
==========================================
+ Coverage   81.54%   89.58%   +8.04%     
==========================================
  Files          24       24              
  Lines        5645     5463     -182     
==========================================
+ Hits         4603     4894     +291     
+ Misses       1042      569     -473     

☔ 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.

@hummeltech
hummeltech merged commit 2035c6b into openstreetmap:master Oct 31, 2026
39 of 40 checks passed
@hummeltech
hummeltech deleted the HeaderCleanUp branch October 31, 2026 03:53
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