Skip to content

profiling: drop the template .identifier from stamped mock results - #114

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/profile-database-identifier-fix
Oct 15, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/profile-database-identifier-fix

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Fixes #113.

Release Integrate (PyAutoHeart run 38698294068) failed on profiling/aggregator/profile_database.py: "Database ingested 1 fits, expected 5".

Cause. PyAutoFit#1686 made SearchOutput.id prefer the identifier persisted in an output's .identifier file. The profiling mocks are copytree copies of one template leaf with only search.json's unique_tag rewritten, so every copy carried the template's identifier and the database collapsed them to one row.

Fix. stamp_results now unlinks .identifier in each copy, so the identifier is recomputed from the rewritten unique_tag as the script's comment already assumed.

Verification. Locally, with output/profiling_aggregator/mock removed first (the generator's manifest cache otherwise reuses the stale set), profile_database.py runs the full grid and writes its JSON (previously asserted on the first cell). CI: the smoke tests run on this PR.

Gate. Heart RED (this very integrate failure). Live human development override granted in session 6ffb59e9 (fourth grant): commit, push, PR-open; merge by human /prm, authorized in the same message. Tier judge.

🤖 Generated with Claude Code

PyAutoFit#1686 made SearchOutput.id prefer the persisted .identifier over a
recompute, so copytree'd mocks that only rewrite unique_tag all keyed to the
template's row (Release Integrate: 'Database ingested 1 fits, expected 5').
Unlink it in each copy so the identifier follows the rewritten unique_tag.

Closes #113

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 763d79d into main Oct 15, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/profile-database-identifier-fix branch October 15, 2026 20:57
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.

profiling: mock results collapse to one database row after PyAutoFit#1686

1 participant