Repository navigation
Retire the legacy RST extractor and form-migration commands - #4588
Open
evanchooly wants to merge 1 commit into
Open
evanchooly wants to merge 1 commit into
evanchooly wants to merge 1 commit into
Conversation
Delete rst/, model/, GizaExtracts, fetch.py and the FormMainKt commands that read historical pages (draft, capture, apply, references, recheck-references, migrate, convert). Every fixture has moved, so their catalogs are frozen: FormMigrationTest now checks the migrated declarations and references offline, including that each referenced fixture is in the ledger. FormMainKt keeps rescenario and manifest. Update the README and design docs to match.
This branch has not been deployed
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.
Stacked on #4587 (
audits-structured-inventory). Step 3 of the parser retirement.Problem
After #4587 the inventory and discovery read operator pages with the structured extractor, but the old path was still in the tree. That was the legacy RST extractor (
rst/,model/),GizaExtracts,audits/probes/form-sources/fetch.py(along with a committed__pycache__.pyc), and theFormMainKtcommands that read historical pages through it. Those commands no longer had any work to do:form-review.jsonhas 0 pending declarations (136 migrated);form-migration.jsonhas 0 overrides and 0 unresolved;legacy-references.jsonreferences point at fixtures that are already in thefixture-migration.jsonledger (386 entries).Keeping the old code meant a second parser to maintain, tests for extraction failures nobody hits anymore, and docs describing commands that would only produce empty diffs.
Change
rst/andmodel/;repairs/GizaExtracts.kt;fetch.pyand its .pyc;GizaExtracts,RawCodeBlockandSnippetstests, and theirparser/fixtures;FormMainKtcommandsdraft,capture,apply,references,recheck-references,migrateandconvert;AuditJson.formCandidates.FormMainKtkeepsrescenarioandmanifest.FormMigration.documented,FormEquivalence,FormCorrections,NumericRetypesandPublishedComparisonstay because they are still in use;PublishedComparisonwill be used by the option (c) update reads.FormMigration.verify(review, report)andverifyReferences(report, moved)check the frozen catalogs offline. Declarations must match overrides, override digests must match, references must not be duplicated, reference digests must match, and every referenced fixture must be in the ledger. A new test,referenceChecksRejectDrift, shows both a missing ledger entry and an edited source text being rejected.operator-audits-design.mdgains a "Frozen records" section.operator-audits-reference.md's "Generated cases" and "Scheduled discovery" sections were stale since Inventory documented examples with the structured extractor #4587 and now describeplan/inventoryandSourcesMainKt/DocumentsMainKt.rst/andmodel/links no longer resolve.Decisions to review
migrateandapplywere also retired, beyond the approved list (draft, capture, references, recheck-references, convert, andfetch.py candidates/references). They only act on unmigrated declarations or unconverted fixtures, and there are none of either.reproduceand the legacy-layout checks are removed. They compared catalogs against legacy fixture folders, and those folders no longer exist for any case, so they couldn't run on the frozen data. Integrity is now checked through the digests and ledger membership described above.Testing
Self-reviewed only.