You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changelog bot can fail at runtime while validating generated commit messages against the OpenWISP Commitizen rules.
The failure happens in generate_changelog.py when it imports OpenWispCommitizen from openwisp_utils.releaser.commitizen.
That module imports commitizen.cz.base, which triggers Commitizen plugin discovery.
Since openwisp-utils already registers OpenWispCommitizen as a commitizen.plugin entry point, Commitizen tries to import the same module again during initialization.
This leads to a circular import and raises an error similar to:
AttributeError: partially initialized module 'openwisp_utils.releaser.commitizen' has no attribute 'OpenWispCommitizen'
As a result, the GitHub Action for changelog generation can fail before posting the generated suggestion.
Issue Description
generate_changelog.pywhen it importsOpenWispCommitizenfromopenwisp_utils.releaser.commitizen.commitizen.cz.base, which triggers Commitizen plugin discovery.openwisp-utilsalready registersOpenWispCommitizenas acommitizen.pluginentry point, Commitizen tries to import the same module again during initialization.AttributeError: partially initialized module 'openwisp_utils.releaser.commitizen' has no attribute 'OpenWispCommitizen'Expected behavior
Proposed direction
openwisp_utils.releaser.commitizeninside the changelog action.