Repository navigation
Conversation
…lysisShouldDecreaseCostsAsync Replace the wall-clock Stopwatch.Elapsed ratio assertion with a deterministic assertion on the connector chosen via the production routing: from the analysis's optimizationResults.SuggestedSettings, GetPromptSettings(job).SelectAppropriateTextCompletion(job, completions, SuggestedSettings.ConnectorComparer) returns the named connector selected by the weighted comparer. The wall-clock measure depends on machine load and flaked on Windows CI; the identity of the selected connector is the stable contract. Arithmetic result and cost assertions are kept unchanged. No skip, no extra retry, no widened timing tolerance. See #69. Tested locally under the .NET 6.0 SDK (net6.0, current main target) and the .NET 8.0 SDK (net8.0): 9/9 passed in both cases. Co-Authored-By: Claude-Code <noreply@anthropic.com> (cherry picked from commit 6333b7d)
Co-Authored-By: Claude Code <noreply@anthropic.com> (cherry picked from commit 3d4d5c5)
This was referenced Nov 30, 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.
Grain: MED/test — lane myia-po-2024:CoursIA — prev: LIGHT/guard #29548
Re-porte sur la ligne vivante
stable-from-v0343deux correctifs qui avaient ete ouverts contremainet que cette branche n'a jamais recus : #73 (6333b7d, oracle deterministe du connecteur choisi) et #71 (3d4d5c5, matrice d'SDK supportee). Les deux sont piques avec-x, un commit chacun, un fichier chacun.Portage de #73 (
40d9067)Sur
stable,MultiConnectorAnalysisShouldDecreaseCostsAsyncgarde une garde grossiere en temps d'horloge (secondPassDurationAfterWarmup <= firstPassDurationAfterWarmup * 3, issue #86). Le retrait des mesuresStopwatchs'est applique sans conflit ; trois hunks restaient en conflit (les deuxInlineData, la signature, et le bloc d'assertion) et sont resolus cote #73. Garder le cotestableaurait laisse deux variables non definies.Portage de #71 (
4d445f5)Applique sans conflit. Le code de
stableciblenet8.0(deux projets ; unnetstandard2.0) etdotnet/benchmarksn'y existe pas : la matrice 8.0 / 9.0 le couvre.Validation
dotnet test Connectors.UnitTests -c Release -- xUnit.ParallelizeTestCollections=false, sur une exportation de la tete : 64 reussis, 0 echec, sous les SDK 8.0.428, 9.0.321 et 10.0.115. Les trois lignes de la theorie sont executees dans ce compte.Ce que cette PR ne fait pas
Le test reste intermittent avec ce seul portage : 3 echecs sur 25 passages, tous le meme test,
ArgumentException: Destination is too shortdepuisStringBuilder.AppendWithExpansion <- RedirectOutput.Log. La base non modifiee donne 2 echecs sur 25. La course est dans le helper de test, pas dans l'assertion ; elle est traitee a part dans la PR empilee ci-dessus.🤖 Generated with Claude Code