Skip to content

fix(processors): add missing getint to ConfigAdapter (#145 regression)#148

Merged
anderslindho merged 5 commits into
masterfrom
fix-1-9-3
May 5, 2026
Merged

fix(processors): add missing getint to ConfigAdapter (#145 regression)#148
anderslindho merged 5 commits into
masterfrom
fix-1-9-3

Conversation

@anderslindho
Copy link
Copy Markdown
Contributor

#145 introduced a breaking bug, which was not caught by CI because the entire test suite consists of Docker integration tests - there were no tests exercising the configuration parsing path.

We will need an immediate new patch release (1.9.4) after this MR.

CFConfig.loads() called conf.getint() to parse pushMaxRetries, but
ConfigAdapter only implemented get() and getboolean(). This caused an
AttributeError on startup in any deployment using the cfstore processor.
The existing suite is entirely Docker integration tests, leaving the
configuration parsing path untested. Cover ConfigAdapter.get,
getboolean, and getint (including missing-key and invalid-value
fallback) and CFConfig.loads defaults and overrides so regressions like
the missing getint method are caught without needing Docker.
Comment thread server/tests/test_config.py Outdated
Comment thread server/tests/test_processors.py
Verifies the container reaches the CF connection attempt (CF_START in
logs) rather than crashing during config parsing. A missing method on
ConfigAdapter would cause an AttributeError in makeService, before the
log system is even configured, so CF_START would never appear.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

Comment thread server/tests/test_processors.py
@anderslindho anderslindho merged commit 1829da1 into master May 5, 2026
22 of 24 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.

2 participants