Skip to content

[ws_health_exporter] Fix molecule idempotence test failure#98

Merged
eduardspa merged 7 commits into
mainfrom
eds-fix-ws-health-exporter-idempotence
Feb 19, 2026
Merged

[ws_health_exporter] Fix molecule idempotence test failure#98
eduardspa merged 7 commits into
mainfrom
eds-fix-ws-health-exporter-idempotence

Conversation

@eduardspa

@eduardspa eduardspa commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

Two issues:

  1. marshmallow 4.0 broke environs: marshmallow 4.0 removed __version_info__, which environs==9.5.0 depends on at import time. This caused the exporter to crash-loop on startup. Fix: pin marshmallow<4.
  2. Idempotence failure: daemon_reload: true on the start task always reports changed. Fix: add changed_when: false since this task just ensures the service is running.

… false

The service can crash in between runs (e.g. if websocket endpoints become
unavailable), leaving it in a failed state. Using state: started fails
to recover a failed service, and daemon_reload always reports changed.

Fix by using state: restarted with daemon_reload and suppressing the
changed status with changed_when: false, since this task is purely
ensuring the service is running.
…unning service

state: restarted causes the service to restart on every run, which
disrupts the running exporter and causes the verify health check to fail.

Keep state: started with daemon_reload (needed to recover from failed state)
but add changed_when: false to pass the idempotence check.
… in Docker

The exporter can crash between the idempotence and verify steps in the
Docker test environment when websocket endpoints become temporarily
unavailable. Restart it before the health check to ensure a clean state.
The exporter was crash-looping because marshmallow 4.0 removed the
__version_info__ attribute that environs 9.5.0 depends on.

Pin marshmallow<4 to restore compatibility, revert verify.yml to
original (no restart/debug needed), keep changed_when: false on the
start task for idempotence.
@eduardspa eduardspa enabled auto-merge February 18, 2026 17:29
@eduardspa eduardspa disabled auto-merge February 18, 2026 17:42
@eduardspa eduardspa enabled auto-merge February 19, 2026 07:34
@eduardspa eduardspa merged commit 6ff266c into main Feb 19, 2026
4 checks passed
@eduardspa eduardspa deleted the eds-fix-ws-health-exporter-idempotence branch February 19, 2026 07:49
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