Skip to content

Fix test suite noise: resolve 50+ MongoEngine DeprecationWarnings and repair topography test auto-skip bug #899

@ilayfalach

Description

@ilayfalach

Overview

Following recent updates and environment modernizations, running the test suite on master generates unnecessary log noise (~65 warnings) and causes certain tests to silently skip themselves instead of verifying logic.

We conducted a deep-dive analysis of the test execution and identified two quick-win code fixes that drastically reduce test noise and restore test coverage with zero risk of regression.


Detailed Findings & Implementation Plan

1. Eliminate 50+ MongoEngine Deprecation Warnings

  • The Issue: The logs are flooded with ~50 DeprecationWarning messages coming from deep within mongoengine (specifically around connection initialization and .to_json() calls), complaining about missing explicit UUID representations in modern environments.
  • The Fix: Inject a single configuration parameter into the central MongoDB connection gate. In hera/datalayer/document/__init__.py, update the connect() call to explicitly enforce standard UUID behavior:
    uuidRepresentation='standard'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions