Skip to content

PRT-4071 bağımlılık, test altyapısı ve runtime güvenlik güncelle… - #3

Open
gamzesabah wants to merge 1 commit into
mainfrom
PRT-4071-bagimlilik-guvenlik
Open

gamzesabah wants to merge 1 commit into
mainfrom
PRT-4071-bagimlilik-guvenlik

Conversation

@gamzesabah

Copy link
Copy Markdown

PRT-4071

…mesi

Kütüphane paketleri:

  • Google.Protobuf 3.27.1 -> 3.36.2
  • libphonenumber-csharp 9.0.13 -> 9.0.41
  • Microsoft.ML.OnnxRuntime 1.18.0 -> 1.31.0
  • Microsoft.ML.Tokenizers 0.22.0 -> 2.0.1

Test altyapısı:

  • xunit 2.7.0 -> xunit.v3 4.0.2. Gerekçe: xunit 2.x NuGet'te "Legacy" işaretli ve xunit.v3'e yönlendiriyor.
  • xunit.runner.visualstudio 2.5.7 -> 4.0.1
  • Microsoft.NET.Test.Sdk 17.11.1 -> 18.11.0
  • coverlet.collector 6.0.0 -> 10.1.0
  • Test projesine OutputType=Exe eklendi; xunit v3 gereksinimi.
  • global.json eklendi, dotnet test'in Microsoft.Testing.Platform modunu seçmesi için. Bu dosya olmadan .NET 10 SDK ile testler HİÇ koşmuyor ("No test is available") ve derleme yeşil kaldığı için sessizce geçiyor.

Test projesindeki Google.Protobuf doğrudan referansı kaldırıldı: tek test dosyasında hiç kullanılmıyor ve kütüphane sürümüyle arasında paket düşürme çakışması üretiyordu.

Hedef framework net8.0 -> net10.0 (üç proje). Gerekçe: .NET 8'in desteği 10.11.2026'da bitiyor ve sonrasında güvenlik yaması almıyor.

CI: actions/checkout v4 -> v7, actions/setup-dotnet v4 -> v6, SDK 8.0.x -> 10.0.x.

dependabot.yml: NuGet izlemesi artık "/src" ile birlikte "/tests" ve "/samples" dizinlerini de kapsıyor. Önceden yalnız "/src" yazılıydı ve test ile örnek projelerin paketleri hiç izlenmiyordu. Ayrıca github-actions ekosistemi eklendi.

Doğrulama: temiz kurulum sonrası derleme 0 hata 0 uyarı, 5/5 test geçti, 0 zafiyet, 0 deprecated paket, güncellenecek paket kalmadı.

Ölçülen ama bu commit kapsamında düzeltilmeyen kusur: Ner/MicrosoftMlTokenizerAdapter, Microsoft.ML.Tokenizers API'sini reflection ile arıyor. Aradığı tipler (TokenizerModel, Tokenizer.FromFile, Tokenizer.FromJson, Encode(string)) ne 0.22.0 ne de 2.0.1 sürümünde var; gerçek API BertTokenizer.Create + EncodeToIds. Yani adaptör bu güncellemeden ÖNCE de çalışmıyordu ve başarısızlıkta sessizce basit bir yedek yola düşüyor. Ayrı bir iş olarak ele alınmalı.

…mesi

Kütüphane paketleri:
- Google.Protobuf 3.27.1 -> 3.36.2
- libphonenumber-csharp 9.0.13 -> 9.0.41
- Microsoft.ML.OnnxRuntime 1.18.0 -> 1.31.0
- Microsoft.ML.Tokenizers 0.22.0 -> 2.0.1

Test altyapısı:
- xunit 2.7.0 -> xunit.v3 4.0.2. Gerekçe: xunit 2.x NuGet'te "Legacy"
  işaretli ve xunit.v3'e yönlendiriyor.
- xunit.runner.visualstudio 2.5.7 -> 4.0.1
- Microsoft.NET.Test.Sdk 17.11.1 -> 18.11.0
- coverlet.collector 6.0.0 -> 10.1.0
- Test projesine OutputType=Exe eklendi; xunit v3 gereksinimi.
- global.json eklendi, dotnet test'in Microsoft.Testing.Platform modunu
  seçmesi için. Bu dosya olmadan .NET 10 SDK ile testler HİÇ koşmuyor
  ("No test is available") ve derleme yeşil kaldığı için sessizce geçiyor.

Test projesindeki Google.Protobuf doğrudan referansı kaldırıldı: tek test
dosyasında hiç kullanılmıyor ve kütüphane sürümüyle arasında paket düşürme
çakışması üretiyordu.

Hedef framework net8.0 -> net10.0 (üç proje). Gerekçe: .NET 8'in desteği
10.11.2026'da bitiyor ve sonrasında güvenlik yaması almıyor.

CI: actions/checkout v4 -> v7, actions/setup-dotnet v4 -> v6, SDK 8.0.x -> 10.0.x.

dependabot.yml: NuGet izlemesi artık "/src" ile birlikte "/tests" ve
"/samples" dizinlerini de kapsıyor. Önceden yalnız "/src" yazılıydı ve test
ile örnek projelerin paketleri hiç izlenmiyordu. Ayrıca github-actions
ekosistemi eklendi.

Doğrulama: temiz kurulum sonrası derleme 0 hata 0 uyarı, 5/5 test geçti,
0 zafiyet, 0 deprecated paket, güncellenecek paket kalmadı.

Ölçülen ama bu commit kapsamında düzeltilmeyen kusur:
Ner/MicrosoftMlTokenizerAdapter, Microsoft.ML.Tokenizers API'sini reflection
ile arıyor. Aradığı tipler (TokenizerModel, Tokenizer.FromFile,
Tokenizer.FromJson, Encode(string)) ne 0.22.0 ne de 2.0.1 sürümünde var;
gerçek API BertTokenizer.Create + EncodeToIds. Yani adaptör bu güncellemeden
ÖNCE de çalışmıyordu ve başarısızlıkta sessizce basit bir yedek yola düşüyor.
Ayrı bir iş olarak ele alınmalı.

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T06:54:20.116836Z 97299d8 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 97299d896e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="10.1.0">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the MTP-compatible Coverlet package

When coverage is requested after this commit, global.json forces Microsoft Testing Platform while this reference installs Coverlet's VSTest-only data collector. Coverlet explicitly documents that coverlet.collector is incompatible with MTP v2 and recommends coverlet.MTP, so commands such as dotnet test --collect:"XPlat Code Coverage" can no longer collect the expected report even though ordinary test runs pass. Replace this package with coverlet.MTP, or retain VSTest for coverage runs. Coverlet's MTP guidance

Useful? React with 👍 / 👎.

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.

3 participants