docs: document model fixture discovery and snapshot recreation workflow - #1043
Closed
CAOShurong wants to merge 1 commit into
Closed
docs: document model fixture discovery and snapshot recreation workflow#1043CAOShurong wants to merge 1 commit into
CAOShurong wants to merge 1 commit into
Conversation
Up to standards ✅🟢 Issues
|
Documentation build overview
|
Member
|
does this differ from #1031 ? |
Member
|
looks like there are 2 PRs opened by you, @CAOShurong , for the same scope/topic:
please consolidate the content in just one PR, and close the other. |
3 tasks
Contributor
Author
|
Thanks @jkowalleck! Consolidating into #1031 as suggested. I've updated #1031 with the additional schema version constraint documentation (all DCO sign-offs verified and CI green). Closing this duplicate PR in favor of #1031. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This documentation PR addresses #1030 by expanding
tests/_data/snapshots/README.mdto document the full model fixture and snapshot workflow:get_bom_*()factories viainspect.getmembers(sys.modules[__name__], isfunction)intoall_get_bom_funct_valid,all_get_bom_funct_valid_immut, andall_get_bom_funct_valid_reversible_migrate._invalidfixtures: Documents that factories ending with_invalidare collected inall_get_bom_funct_invalidfor testing error-handling and schema validation failure cases._LIMIT_GET_BOM_BY_VERSION_REGEX/is_valid_for_schema_version()logic for filtering versioned fixtures (e.g.get_bom_v1_5_*).mksname(purpose, sv, f)naming scheme<factory_name>-<schema_version>.<ext>[.bin].all_get_bom_funct_with_incomplete_deps.CDX_TEST_RECREATE_SNAPSHOTS=1 PYTHONHASHSEED=0, reviewing git diffs to avoid committing unintentional modifications, and verifying with snapshot re-creation disabled.Resolves or fixes issue: #1030
AI Tool Disclosure
AntigravityGemini 3.8 FlashDocument model fixture discovery, naming conventions, and snapshot re-creation workflow in tests/_data/snapshots/README.md resolving issue #1030Affirmation