Repository navigation
NOC Weekly Digest #16 - Oct 26 – Nov 1, 2026 #766
dvolodin7
started this conversation in
NOC Choronicles
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
A week of consolidation, modernization, and ecosystem-wide improvements. Engineering work across NOC, gufo-thor, and gufo-loader focused on simplifying the architecture, standardizing core mechanisms, and reducing long-term maintenance costs.
The central milestone was the adoption of gufo-loader 3.0.0 in NOC, bringing plugin discovery under a shared, extensible contract. In parallel, NOC consolidated its web-serving architecture, introduced a more structured API configuration model, completed another phase of legacy-code removal, and strengthened its development and testing infrastructure.
Two releases shipped this week: gufo-loader 3.0.0 and gufo-thor 0.15.0.
Highlights
uiservice has been consolidated intoweb. The WSGI-to-ASGI adapter has moved toasgiref, and service startup conventions are now consistent across NOC and gufo-thor.[api]section, HTTP protocol selection is configurable, and enumeration-based parameters replace ad hoc string choices.refbooksapplication, obsolete ClickHouse dictionary implementation, orphaned templates, and unused template infrastructure have been removed. Remaining Django templates in the targeted areas have been migrated to Jinja2.Major Developments
1. One plugin-loading contract across the ecosystem
The release of gufo-loader 3.0.0 establishes a more flexible foundation for plugin discovery and integration.
The new developer-facing API includes:
Loader.iter_members()— an overridable extension point for custom module-member discovery.attributeparameter — loads a plugin through a specific module attribute instead of enumerating every public member.module_policyandModulePolicy— control whether re-exported members originating in other modules are accepted.The release also internalizes the
strictattribute as_strict. Thestrictconstructor parameter remains available, preserving the existing parameter-level interface. Python 3.15 is now supported, while Python 3.10 support has been removed following its end-of-life date.NOC has already adopted the new version, upgrading from
gufo-loader2.0.1 to 3.0.0. FastAPI router discovery inService.init_apinow relies on the genericLoader, replacing the bespokePathLoaderandServicePathLoaderimplementation.Why it matters: NOC no longer needs to maintain its own path-loading mechanism. Integrators and developers can rely on a shared plugin-discovery contract, while the new extension points provide greater flexibility for future integrations.
2. A leaner web architecture and consistent service execution
NOC's web-serving architecture has been simplified by consolidating the standalone
uiservice intoweb.The change brings the browser-interface REST API into the
webservice and removes the obsoleteuiruntime, package tree, Ansible role, and configuration section. Deprecation aliases provide a transition path for legacy configuration.The WSGI-to-ASGI integration for Django applications has also moved from
a2wsgitoasgiref. Already used by Django itself,asgirefremoves the need for a separate adapter dependency and is now an explicit, version-pinned dependency.Additional changes include:
LoggingMiddleware, eliminating duplicate access-log entries./uiprefix.ctl,mongo,psql, andshell— toBaseCommandmodules.In parallel, gufo-thor 0.15.0 standardizes service startup through
python -m noc.services.*. Its CLI commands have been split into separate modules, with consistent error handling throughdie()and dedicated man pages.Why it matters: Fewer independently managed services, fewer redundant dependencies, and a consistent Python-native startup convention make deployments easier to operate and maintain. NOC and its single-node orchestrator now follow the same approach to service execution.
3. A more structured configuration interface
A coordinated set of changes makes NOC's runtime configuration more explicit, consistent, and type-safe.
The new
[api]section owns the API listener configuration:api.listen— API listener address, defaulting toauto:0.api.backlog— configurable listener backlog, defaulting to2048.api.http_version— selectsAUTO,HTTP_1_1, orHTTP_2, with automatic selection as the default.The legacy global
listenparameter andNOC_LISTENenvironment variable remain available but are deprecated.Across the configuration system, ad hoc
StringParameter(choices=...)definitions have been replaced withEnumParameterbacked by domain-specificStrEnumtypes. This centralizes valid values and avoids duplicating string-choice lists across the codebase.Logging configuration has been aligned with the same organizational principle: the top-level
log_formatparameter has moved tologging.format.Why it matters: Operators get a clearer configuration hierarchy and more explicit protocol and listener controls. Typed enumerations reduce configuration ambiguity, while backward-compatibility shims allow existing deployments to transition without an immediate configuration rewrite.
4. Reducing legacy code and maintenance overhead
This week's cleanup continues the broader modernization of NOC's application and template infrastructure.
The deprecated
refbooksapplication has been removed, including its ORM models, data-provider backend, CLI synchronization command, web management interface, and ExtJS module.Other removals include:
Dictionaryclass, superseded by the newer BI dictionary system.templateattribute onBaseInterface.noctabletemplate tag, along with obsoletepaginatorandtagsmodules and their templates.BaseService.setup_test_loggingstub.The remaining Django templates in
main/desktopandfm/reporthierarchyhave been migrated to Jinja2. The shared Jinja2 environment now also supports a configurable custom template path.Why it matters: Removing obsolete implementations reduces the number of code paths that future changes must account for. These changes continue the migration toward Jinja2 and the newer BI dictionary architecture, making the codebase easier to evolve.
5. Engineering quality, documentation, and testing
The development toolchain has received a broad set of consistency improvements.
Ruff configuration now includes:
isort.ICNrules, includingdatetime→dt,numpy→np,polars→pl,networkx→nx,numpy.typing→npt, andxml.etree.ElementTree→ET.PLW) category, which surfaced two additional correctness fixes.Some PLW checks remain explicitly disabled as follow-up work.
All docstrings across the 150 files under
core/have been converted from Sphinx style to Google style, aligning documentation with the configuredpydocstyleconventions without changing runtime behavior, signatures, or types.The model and document test infrastructure has also been modernized. Import-time parameterized helpers have been replaced with a typed
DatabaseInfodataclass and session-scoped, type-annotated pytest fixtures.In gufo-loader, the same import-sorting conventions and a modernized
importlib.import_moduleusage have been introduced. Developer documentation has been refreshed, ascripts/run-devwrapper has been added, and the project's Discord community is now discoverable from both the README and PyPI metadata.Why it matters: Consistent tooling, clearer documentation, and better-structured test fixtures establish a stronger baseline for contributors and integrators. These largely mechanical improvements also help keep future changes predictable and easier to review.
Fixes and Reliability
Several targeted fixes improve reliability across the ecosystem.
Generic.get_metricsandapply_snmp_rulespreviously resolvedsnmp_metrics/*.jsonrelative to the process's current working directory. Rule paths are now anchored to the absoluteconfig.noc_baseor customercustom_pathroots, eliminating an implicit dependency on the launch directory.gufo-thor backup rmfor removing backups.noc.versionconfiguration parameter allows gufo-thor to select Docker images corresponding to a particular NOC version.Together, these changes improve the reliability of rule loading, recovery workflows, and version-controlled single-node deployments.
Discussions and Decisions
The week's major architectural decisions were implemented directly in code:
uiservice intoweb.python -m.Release announcements for gufo-loader 3.0.0 and gufo-thor 0.15.0 were published as GitHub Discussions, which serve as the projects' release-note channels. No separate roadmap or architectural proposals were published during the reporting period.
NOC's weekly digest cadence continues, with the previous week's digest also published in English and Russian.
Releases
gufo-loader 3.0.0 — October 28
Added
Loader.iter_members()for customizable plugin-member discovery.attributeparameter for loading plugins through a specific module attribute.Loader.module_policyandModulePolicyfor controlling the handling of re-exported members.Changed
strictattribute is now_strict; the constructor parameter remains available.Removed
Significance: A major update to the plugin-loading API that introduces new extension points and a more explicit discovery contract. NOC has already migrated to this version.
gufo-thor 0.15.0 — October 26
Added
gufo-thor backup rm.noc.versionparameter for selecting Docker images corresponding to a desired NOC version.Changed
die().python -m noc.services.*.Removed
staticservice.Significance: Improved backup and recovery capabilities, more explicit version selection, and a consistent service-startup convention for single-node deployments.
NOC
No new NOC release was published during the reporting period. Version 25.1.3, released on October 23, remains the latest release. This week's work provides further architectural and maintenance improvements ahead of a future release.
Other projects
No releases, pull requests, closed issues, or discussions were recorded during the reporting period for Gufo Tower, Gufo SNMP, Gufo Blob, Gufo ACME, or CSR Proxy.
Looking Ahead
The week's work lays the groundwork for the next phase of NOC development.
Three areas remain particularly relevant:
global-update,missing-__hash__, andfor-loop-variable-overwrite.All reactions