Skip to content

test(submission_checker): refresh MD5_EXCLUDE_PREFIXES exact-membership tuple#552

Merged
russfellows merged 2 commits into
mainfrom
fix/group-D-md5-exclude-prefixes
Jun 28, 2026
Merged

test(submission_checker): refresh MD5_EXCLUDE_PREFIXES exact-membership tuple#552
russfellows merged 2 commits into
mainfrom
fix/group-D-md5-exclude-prefixes

Conversation

@FileSystemGuy

Copy link
Copy Markdown
Contributor

Summary

`constants.MD5_EXCLUDE_PREFIXES` (`mlpstorage_py/submission_checker/constants.py:163-182`) gained 8 new entries — `.idea/`, `.vscode/`, `.claude/`, `.agent/`, `.agents/`, `.roo/`, `.planning/`, `.gsd-tmp/` — to keep developer-tool and agent-runtime artifacts out of the code-tree MD5. The `test_md5_exclude_prefixes_exact_membership` gate still encoded the pre-change tuple and started failing.

Update the expected tuple to mirror production. The "exact membership" gate is intentionally brittle — it's there to catch unintended drops as well as unintended additions — so the right fix is the maintenance step the constants-bumping commits should have taken, not loosening the gate to subset semantics. Also added a one-line maintenance note on the test docstring so the next person who edits the production constant sees the contract.

Test plan

  • `uv run python -m pytest mlpstorage_py/tests/test_config_reference_checksum.py -v` → 12 passed (was 11 passed + 1 failed)

…ip expected tuple

constants.MD5_EXCLUDE_PREFIXES gained 8 new entries (.idea/, .vscode/,
.claude/, .agent/, .agents/, .roo/, .planning/, .gsd-tmp/) to keep
developer-tool / agent-runtime artifacts out of the code-tree MD5
(submission_checker/constants.py:163-182). The gate's
test_md5_exclude_prefixes_exact_membership assertion still encoded the
pre-change tuple and started failing as a result.

Update the test's expected tuple to mirror the current production list
verbatim. The "exact membership" gate is intentionally brittle — it's
there to catch unintended drops as well as unintended additions —
so the right fix is the maintenance step the constants-bumping commits
should have taken, not loosening the gate to subset semantics.

Added a one-line maintenance note on the test docstring so the next
person who edits MD5_EXCLUDE_PREFIXES sees the contract.
@FileSystemGuy FileSystemGuy requested a review from a team June 26, 2026 22:48
@github-actions

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@russfellows russfellows left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

good idea

@russfellows russfellows merged commit 6630de5 into main Jun 28, 2026
3 checks passed
@russfellows russfellows deleted the fix/group-D-md5-exclude-prefixes branch June 28, 2026 04:56
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants