Repository navigation
Migrate Files shared directives and regenerate v1.0 and beta wrappers - #3879
Open
Ramses Sanchez-Hernandez (ramsessanchez) wants to merge 14 commits into
Open
Ramses Sanchez-Hernandez (ramsessanchez) wants to merge 14 commits into
Ramses Sanchez-Hernandez (ramsessanchez) wants to merge 14 commits into
Conversation
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>
…z-files-v3-migration
…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>
Ramses Sanchez-Hernandez (ramsessanchez)
requested a review
from a team
as a code owner
October 30, 2026 02:23
…z-files-v3-migration
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>
…z-files-v3-migration
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
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.
N/A: module-specific shared-directive migration, not an issue closure.
Changes proposed in this pull request
src/Files/Files.mdshared 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.GeneratorConfigand separate runtime profile propagation with derived data on/off. Ambiguous shared-list GETs retain their reviewed names: underlying singletonGet-MgShareListItem, collectionGet-MgShareListContainedItemfrom "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.6475f3f5beb4908d39ea356db32bf1e0fd3273cb(Remove automatic GET after successful PATCH #3886) in5ee15ae8b0, adds only coupled actual Files PATCH regressionc603f6e410, and includes fresh combined v1.0ea944faa0d561a923f9a5874609a3cf677789c9fand betae17d1e585ef4d54cffe2c1a87dd5fc27ba367e06. Original migration7fbb5f6e7a, 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\modulesroot. All64 file hashes, actual64-file count, physical nupkg SHA2562FC09BFE6B70D313BC56DF8ADCCFB1976FB4E90A1898BF8A916B4B8B792898EB, 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
$buildEvidencebe the immutable retainedpost3886-6475-finalfolder and$evidencethe new canonical runtime-onlypost3886-6475-memory-finalfolder;$queueis the unchanged coordinatorInvoke-QueuedModuleBuild.ps1. Process-local tool/module settings use isolated Kiota1.36.1+fd3bf87790149b87f40f7eae1a5feb9016625943 andKIOTA_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-MgTestDataStoreafter the last additional-runspace import and before the first Connect, then asserts/records the actual reflected real shared GraphSession.DataStore typeMicrosoft.Graph.Authentication.Test.Mocks.MockDataStorebefore/after runtime and lifecycle/logout. Both earlier unguarded v1 runtime captures remain immutable in$buildEvidenceand 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.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.\tools\Get-WrapperDirectiveMigrationInventory.ps1 -Module Files -FailOnUnresolved -OutputPath "$buildEvidence\strict-inventory.json"pwsh -NoProfile -NonInteractive -File $queue -RepoRoot $PWD.Path -Module Files -ApiVersion v1.0 -Configuration Release-ApiVersion betadotnet build .\src\Files\wrapper\<profile>\Microsoft.Graph.Wrapper.Files.csproj -c Release --no-incremental --nologo -v minimal, after each full queued buildpwsh -NoProfile -NonInteractive -File "$buildEvidence\Test-Compiled.ps1" -RepoRoot $PWD.Path -Profile v1.0, repeated forbeta$evidencereferences these unchanged base facts.pwsh -NoProfile -NonInteractive -File "$evidence\Test-NormalTransport.ps1" -RepoRoot $PWD.Path -Profile v1.0 -Cloud Global, repeated forv1USGov/betaGlobal/betaUSGovpwsh -NoProfile -NonInteractive -File .\tools\Compare-WrapperCmdletNames.ps1 -GeneratedPath .\src\Files\wrapper\<profile>\Cmdlets -OutLedger "$buildEvidence\parity-<profile>.csv"MgversusMgBetapolicy 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.0
ff503644e20100f9ee599a8782f35564a8b34912, 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 scalarhandoff.jsonare 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