fix(metadata): rename form_* metadata files so filename matches the name field (testing) - #528
Merged
RazvanZegheanu merged 1 commit intoAug 13, 2026
Conversation
…ame field Same change as #527 (which targets stable), applied to testing. The OOB installer derives the ML package name it queries with from the metadata *filename* (strings.Split(fileName, "__")[0] in oobartifactsmanager.go:189), but ai-pkgmanager stores and filters on the metadata body's `name` field. For these 11 IRS-form packages the two disagreed -- filename `1040` vs name `form_1040` -- so the installer's lookup `GET /v1/mlpackages?name=1040` always returned empty, it took the "create" branch, and every version 2..N failed with HTTP 409 / respCode 20005 "MLPackage with name form_1040 already exists". Effect today: only version 1 of each of these packages ever installs; the rest are silently dropped on every install, including installs that pass (a 409 does not fail the job -- the gate is `succeedPkgList.IsEmpty() && len(errs) > 0`, an AND). Rename only: `1040__31__metadata.json` -> `form_1040__31__metadata.json` for all 139 affected files. No file contents change (139 files, 0 insertions, 0 deletions) -- in particular `name` and `displayName` are untouched, so nothing customer-visible changes. The rename was recomputed against testing rather than cherry-picked from the stable branch, since testing has diverged (875 metadata files / 71 packages vs 870 / 65 on stable). The affected set is identical: the same 11 packages with the same version ranges, 139 files. After this change all 71 packages on testing satisfy filename == name. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
andznui
approved these changes
Aug 13, 2026
serol-uipath
approved these changes
Aug 13, 2026
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.
What
Same change as #527, applied to
testinginstead ofstable.Renames 139 metadata files so the filename prefix matches the
namefield inside the file, for the 11form_*IRS-form packages:Rename only — no file contents change (
139 files changed, 0 insertions(+), 0 deletions(-), allR100).nameanddisplayNameare untouched.Why
The AI Center OOB installer derives the package name it queries with from the metadata filename —
strings.Split(fileName, "__")[0]inoobartifactsmanager.go:189— butai-pkgmanagerstores and filters on the metadata body'snamefield. The installer never parses the body; it passes it through as an opaque string.For these 11 packages the two disagreed (
1040vsform_1040), so:GET /v1/mlpackages?...&name=1040→ 0 hits (the row isname=form_1040)POST /v1/mlpackages→ 409{"respCode":20005,"respMsg":"MLPackage with name form_1040 already exists"}Only version 1 of each of these 11 packages ever installs. Versions 2..N are silently dropped on every install — including installs that pass, because a 409 does not fail the job (the gate is
succeedPkgList.IsEmpty() && len(errs) > 0, an AND, and plenty of other packages succeed).The
OOB_METADATA_BRANCHenv var on the installer Job selects which branch is read, sotestingneeds the same fix asstablefor any environment pointed at it.Recomputed, not cherry-picked
testinghas diverged fromstable, so the rename was regenerated againsttesting's own contents rather than cherry-picked:stabletestingThe affected set is identical — same 11 packages, same version ranges (
104018 versions 23–45,4506T19 versions 2–47, etc.). The extra 6 packages ontestingall already satisfyfilename == name.Verification
Before → after on this branch:
Re-run after checkout:
Checked before renaming: no target filename already existed, no duplicate targets, and every version of each package agreed on its
namevalue (so no package needed splitting).displayNamepreserved:namedisplayNameform_1040form_10401040form_1040ScheduleCform_1040ScheduleC1040ScheduleCform_4506Tform_4506T4506TNotes
form_990is included for consistency but is currently filtered out before any POST by theisSupported/minAIFabricVersioncheck (itsimagePathis on a 22.10 build), so it is latent rather than actively failing.form_1040:31instead of1040:31—bundle.sh:97fetches metadata by operator-suppliedMODEL:VERSIONandexit 1s on a 404. Nothing hardcodes the model list.stableandtestingstay consistent.