Skip to content

Migrate Files shared directives and regenerate v1.0 and beta wrappers - #3879

Open
Ramses Sanchez-Hernandez (ramsessanchez) wants to merge 14 commits into
powershell-v3from
ramsessanchez-files-v3-migration
Open

Ramses Sanchez-Hernandez (ramsessanchez) wants to merge 14 commits into
powershell-v3from
ramsessanchez-files-v3-migration

Conversation

@ramsessanchez

@ramsessanchez Ramses Sanchez-Hernandez (ramsessanchez) commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

N/A: module-specific shared-directive migration, not an issue closure.

Changes proposed in this pull request

  • Migrate only src/Files/Files.md shared cmdlet directives, retaining both original selectors and reviewed annotations. Actual same-profile original legacy selections are v1.0 56 (10 compatible survivors / 46 verified removals), beta 272 (56 / 216). Source tests prove complete original-survivor/current-literal selector equality; the finite ledger records exact current method/path/ID evidence without rejected Legacy bridging fields or false absence. Existing GET-only GroupDefaultDrive/UserDefaultDrive behavior is reused. All global/profile-local directives remain ignored. Parameter/schema/alias/transform classes stay deferred; none occur in this shared module file.
  • Preserve shared three-setting GeneratorConfig and separate runtime profile propagation with derived data on/off. Ambiguous shared-list GETs retain their reviewed names: underlying singleton Get-MgShareListItem, collection Get-MgShareListContainedItem from "All items contained in the list." Existing v1.0 derived collection suppression, narrowly scoped bare-item suppression, defaults, mandatory IDs and list/paging behavior remain unchanged. No new selector/group, authored profile filter, collection-naming design, global renderer/derived-data change or mutation variant.
  • Preserve the entire existing PR/branch history and separate combined Kiota client/cmdlet/project/lock generation boundaries. This final pass normally merges 6475f3f5beb4908d39ea356db32bf1e0fd3273cb (Remove automatic GET after successful PATCH #3886) in 5ee15ae8b0, adds only coupled actual Files PATCH regression c603f6e410, and includes fresh combined v1.0 ea944faa0d561a923f9a5874609a3cf677789c9f and beta e17d1e585ef4d54cffe2c1a87dd5fc27ba367e06. Original migration 7fbb5f6e7a, prior Support compatible natural-ID operation variants #3849 and Authentication refresh commits, and all earlier generation boundaries remain intact. Client/lock byte-identical results are reported honestly; generated source is never hand-edited. No binaries/session evidence committed.

Final acceptance on normal target 6475 — supersedes the old implicit-refetch requirement

PATCH204 now succeeds with no output, exactly one PATCH, no automatic GET, even when the test's sibling GET returns403. PATCH200 returns its actual typed model from one PATCH. Caller-explicit GET remains independently tested with its own native select query, headers, result and403 error. No PassThru/ReadBack/Refetch switch is added. The old844672 bound-header-loss-on-implicit-GET failure logs remain immutable historical evidence; they are not relabeled PASS. Freshly generated final workers and real transport establish the new user-approved one-operation contract.

Accepted normal adapted Authentication2.41.2 uses the exact designated locally packaged authentication-v2-sync\final-source\modules root. All64 file hashes, actual64-file count, physical nupkg SHA256 2FC09BFE6B70D313BC56DF8ADCCFB1976FB4E90A1898BF8A916B4B8B792898EB, and fresh imported path/version are verified. Normal manifests require Auth2.41.2, no dependency preloads; each full bin carries only its three owned DLLs. No old2.38/Gallery package, copied DLL, shim, #3881 overlay, #3897 implementation or unmerged dependency stack. PS7/Core only.

Let $buildEvidence be the immutable retained post3886-6475-final folder and $evidence the new canonical runtime-only post3886-6475-memory-final folder; $queue is the unchanged coordinator Invoke-QueuedModuleBuild.ps1. Process-local tool/module settings use isolated Kiota1.36.1+fd3bf87790149b87f40f7eae1a5feb9016625943 and KIOTA_Generation__MaxDegreeOfParallelism=1.

Offline isolation correction, no shipping/build change: importing normal Authentication into the genuine-No host's additional runspace resets the shared datastore. The canonical probe reapplies the existing Set-MgTestDataStore after the last additional-runspace import and before the first Connect, then asserts/records the actual reflected real shared GraphSession.DataStore type Microsoft.Graph.Authentication.Test.Mocks.MockDataStore before/after runtime and lifecycle/logout. Both earlier unguarded v1 runtime captures remain immutable in $buildEvidence and are not canonical in-memory acceptance. Only affected offline probes were rerun in $evidence; beta's first acceptance was already guarded. No source/Auth/package/FULL/TRX/generation rerun or extra commit was done for the isolation fix. A datastore-type reset alone is not evidence that credential I/O occurred.

Exact command / gate Final actual result
dotnet test .\tools\WrapperGenerator.Tests\WrapperGenerator.Tests.csproj --no-restore --filter 'FullyQualifiedName~FilesDirectiveMigrationTests|FullyQualifiedName~NamingTests|FullyQualifiedName~CmdletConfiguratorTests|FullyQualifiedName~RequiredQueryTests' --logger 'trx;LogFileName=targeted.trx' --results-directory "$buildEvidence\tests" --verbosity quiet --nologo 172 total / 172 executed / 172 passed / 0 failed / 0 skipped, actual scalar nonzero TRX. Includes complete actual source selector proof, profile bindings and actual Files PATCH generation with sibling GET removed. Existing NU1903 dependency warning remains.
.\tools\Get-WrapperDirectiveMigrationInventory.ps1 -Module Files -FailOnUnresolved -OutputPath "$buildEvidence\strict-inventory.json" 2 Mapped, no unresolved/invalid/unreviewed cmdlet group.
pwsh -NoProfile -NonInteractive -File $queue -RepoRoot $PWD.Path -Module Files -ApiVersion v1.0 -Configuration Release Exit0 / OK / 152.8 seconds / 718 exports; complete compatible Kiota+cmdlet generation/build.
Same full queued command with -ApiVersion beta Exit0 / OK / 382.5 seconds / 2040 exports, sequentially after v1.0.
dotnet build .\src\Files\wrapper\<profile>\Microsoft.Graph.Wrapper.Files.csproj -c Release --no-incremental --nologo -v minimal, after each full queued build Both exit0, supplemental nonincremental compiler validation of freshly generated complete projects; not a substitute for full generation.
pwsh -NoProfile -NonInteractive -File "$buildEvidence\Test-Compiled.ps1" -RepoRoot $PWD.Path -Profile v1.0, repeated forbeta Both pass fresh normal manifest, own3DLL/no preloads, original default/mandatory-ID/name/binder and all10/56 suppression+9/16 neighboring route checks. Exact manifest/project/client-lock/assembly SHA256 proof retained; combined per-cloud canonical proof in $evidence references these unchanged base facts.
pwsh -NoProfile -NonInteractive -File "$evidence\Test-NormalTransport.ps1" -RepoRoot $PWD.Path -Profile v1.0 -Cloud Global, repeated forv1USGov/betaGlobal/betaUSGov All4 exit0 / PASS: 25 checks perv1cloud and 26 perbetacloud, 20/22 actual requests, 5 genuine declined confirmations each (one prompt and0HTTP per mutation), plus WhatIf and invalid binder0HTTP. Every actual HTTP/body/header and normal assembly context is captured.
Raw parity pwsh -NoProfile -NonInteractive -File .\tools\Compare-WrapperCmdletNames.ps1 -GeneratedPath .\src\Files\wrapper\<profile>\Cmdlets -OutLedger "$buildEvidence\parity-<profile>.csv" Both exit1, not normalized: v1.0: 421 matched / 2 mismatch / 295 no-oracle; beta: 0 / 502 / 1538. Frozen search-name/oracle omissions and Mg versus MgBeta policy remain outside this migration.

Transport uses actual Connect-MgGraph + existing in-memory MockDataStore + GraphHttpClientFactory token pipeline + offline terminal handler. Despite the real factory's global/v1.0 BaseAddress, emitted requests keep the selected v1/beta path and Global/USGov host without changing that shared client. Cases include typed default-drive/singleton/descriptive collection GET/query/paging; actual typed POST/PATCH JSON/results; PATCH204 with forbidden GET and no output/no GET; PATCH200 one-operation typed result; caller-explicit GET403; bodyless DELETE/checkout; mediaPUT exact stream bytes/typed result and independent mediaGET bytes; invalid binder; WhatIf/genuine No; root/client cache reuse, request-context/reconnect/disconnect invalidation; single normal Authentication-owned Kiota/RMS/UriTemplate/Multipart identities/load contexts. Existing profile-specific checkout names are discovered from exact compiled route, not renamed. No live OAuth/Graph/credential store or tenant-service certification.

Native required-query audit: all actual Files inherited/operation query parameters in both specs are inspected by the source regression, finding zero mandatory native query inputs. Thus no Files QueryId/range-query operation needs a new binder or wire roundtrip. Existing inline function range arguments remain path inputs. Shared RequiredQueryTests are included, but no unrelated Files required-query capability is invented. Optional-query3897 remains tracking only.

Compatible spec blobs unchanged: v1.0ff503644e20100f9ee599a8782f35564a8b34912, betaba515d47b69731abb531fb5f1c43ff06460e7601. Original legacy/spec/source/Auth64/queue/Kiota identities, full Git scope beyond REST's list cap, immutable old failures, raw commands/exits/TRX/captures and canonical scalar handoff.json are retained. Generated whitespace preserved. Prior844672 proof (718/2040 fullbuilds,102TRX,2Mapped and4 exit1 refetch-header observations) remains historical and distinct from this final172TRX/all4transportPASS acceptance.

Other links

Preserve both active shared selectors, reconcile existing default-drive renames, and suppress exact surviving legacy activity and shared createLink operations across v1.0 and beta. Account for complete legacy match sets and pin migrated operations plus unaffected neighboring routes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run full queued Release generation with compatible v1.0 spec, Kiota 1.36.1 and Authentication 2.38.1. Rebuilt client sources and generated projects are byte-identical; retain the refreshed Kiota lock plus the cmdlet change from paired activity GET dispatch to collection-only GET. Compiled module exports 709 cmdlets.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ence

Reprove complete original legacy selector survivors against aligned compatible IDs, refresh literal ledger and spec blobs, and propagate the separate runtime profile in all module tests. Distinguish the ambiguous contained-list collection from the underlying shared singleton using the actual source description; preserve existing derived suppression and List behavior without selectors or invented route groups.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued compatible-spec Release generation with isolated Kiota 1.36.1 (parallelism 1) and original official Authentication 2.38.1 succeeded in 60.5 seconds with 718 exports. Fresh compiled checks prove 10 migrated suppressions, 9 neighboring routes and singleton/default bindings; real typed local GET deserialization passes. Keep client, cmdlets, projects and locks in one profile boundary. Raw oracle parity remains non-passing and is not normalized or claimed as full parity.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued compatible-spec Release generation with isolated Kiota 1.36.1 (parallelism 1) and original official Authentication 2.38.1 succeeded in 69.7 seconds with 2040 exports. Fresh compiled checks prove 56 migrated suppressions, 16 neighbors, both shared-list names and original mandatory ID behavior. Real typed local GET deserialization proves singleton and collection defaults plus collection query/paging bindings. Include all beta Kiota/client/cmdlets/projects/locks together, without binaries. Raw beta parity is explicitly non-passing; no MgBeta prefix normalization or full parity claim.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
After normal Authentication3891 integration, assert actual-spec generated singleton and collection workers pass the requested profile to GetRequestAdapter instead of inheriting the factory v1.0 base. Preserve directive selection, meaningful names and authored configuration. Ordinary strict inventory has two Mapped groups; combined 102 tests pass with nonzero TRX counters.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued compatible-spec Release generation against normally merged844672 and accepted64-file Authentication package, Kiota1.36.1/cap1: exit0/statusOK/60.8seconds/718exports. Normal manifest imports Auth2.41.2 without preloads; bin has exactly three owned DLLs; fresh compiled checks retain10 suppressions and9 neighbors. Actual factory transport/typed mutation results and safety pass separately from the known unmerged3886 refetch header failure. Preserve combined client/cmdlet/project/lock boundary and all prior history.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued compatible-spec Release generation against normal844672 with accepted64-file Auth2.41.2, Kiota1.36.1/cap1: exit0/statusOK/104.1seconds/2040exports. Normal manifest and three-owned-DLL bin pass. Fresh compiled56suppression/16neighbor/name/binder checks pass. Real authenticated factory preserves beta and Global/USGov despite globalv1 base; typed JSON/results, bodyless actionsDELETE, WhatIf, four genuine declined prompts and zeroHTTP invalid binding pass. Known unmerged3886 bound-header loss on PATCH204 refetch is preserved as actualFAIL in each cloud; no all-runtimePASS claim or framework overlay. Keep combined client/cmdlet/project/lock boundary.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use actual v1.0 and beta Files PATCH source with sibling GET removed to assert generation does not require readback, emits only PatchAsync and writes only non-null responses. Audit all actual inherited/operation query inputs: neither Files spec has native required query parameters. Preserve original shared selectors, naming and normal-profile transport. Combined own/naming/configurator/required-query tests pass with nonzero TRX counters.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued compatible Release build on normal6475 with acceptedAuth2.41.2/Kiota1.36.1/cap1: exit0/OK/152.8s/718exports; supplemental nonincremental build passes. Fresh full normal manifest route/naming/suppression checks pass. Real authenticated factory Global andUSGov prove PATCH204 onePATCH/nooutput/noGET even withGET403, PATCH200 actualmodel/onePATCH, independent callerGET, typedJSON, binaryPUT/mediaGET, bodylessDELETE/action,5genuine declines,WhatIf,binder,cache/reconnect/disconnect andsingleAuthclosure. Clients/projects/locks regenerated byte-identical where no delta; combined profileboundary retained.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued compatible Release build on normal6475 with acceptedAuth2.41.2/Kiota1.36.1/cap1: exit0/OK/382.5s/2040exports; supplemental nonincremental compile passes. Fresh full normal manifest proof retains56suppressions and16neighbors. First final beta Global/USGov factory acceptance uses actual post-additional-import MockDataStore guards and proves PATCH204 onePATCH/nooutput/noGET despiteGET403; PATCH200 typedmodel/onePATCH; independentGET403; typedPOST,binaryPUT/mediaGET,bodylessDELETE/action,5genuine declines,WhatIf,binder,cache/lifecycle andsingleclosure. No source/global correction for probe isolation; original source/config/naming and combined client/cmdlet profile boundary retained.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant