GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: cover mem_feedback basics by snoopuppy582 · Pull Request #1715 · MemTensor/MemOS

Conversation

@snoopuppy582

@snoopuppy582 snoopuppy582 commented May 12, 2026

Copy link
Copy Markdown
Contributor

Fixes #1696

Summary

  • Added a dedicated tests/mem_feedback package.
  • Covered the base feedback interface contract and MemFeedbackConfig behavior.
  • Added dependency-free utility tests for token estimation, update filtering, JSON extraction, chunking, and memory item creation.

Tests

  • uv run --python 3.12 --extra mem-reader --with pytest pytest tests/mem_feedback -q
  • uv run --python 3.12 --extra mem-reader --with pytest pytest tests/mem_feedback tests/mem_chat/test_base.py tests/mem_cube/test_base.py -q
  • uv run --python 3.12 --extra mem-reader --with ruff ruff check tests/mem_feedback
  • git diff --check

Notes

  • Kept the tests local-only; no LLM, database, or network service is required.
  • The contributing guide mentions a dev base branch, but this repository currently exposes main as the active/default base branch.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@snoopuppy582
test: cover mem_feedback basics
fb58467
@CaralHsi

CaralHsi commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Hi!
Thanks for your contribution!
This is a good start for basic coverage, but it does not yet cover the main MemFeedback.process_feedback workflow. The PR currently tests config parsing, the abstract base class, and a few utility functions, while the core feedback processing path (_validate_feedback_data, _record_feedback, _analyze_feedback) and operation-specific branches remain untested. Could we add at least one mocked workflow test for process_feedback covering a valid feedback input and the expected downstream calls?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@snoopuppy582
test: cover mem feedback workflow
46d77ff
@snoopuppy582

snoopuppy582 commented May 13, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I added a mocked process_feedback workflow test that verifies a valid feedback input calls both _generate_answer and process_feedback_core, then returns the downstream memory record.

Verified locally:

  • uv run --with pytest pytest tests/mem_feedback -q -> 16 passed
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@CaralHsi
CaralHsi changed the base branch from main to v2.0.16 May 14, 2026 02:45
CaralHsi
CaralHsi approved these changes May 14, 2026
View reviewed changes

@CaralHsi CaralHsi left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 😸

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@CaralHsi
CaralHsi merged commit 99fb9e6 into MemTensor:v2.0.16 May 14, 2026
16 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@CaralHsi CaralHsi CaralHsi approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add unit tests for mem_feedback

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@snoopuppy582 @CaralHsi
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.