Skip to content

Restore the C# tree and list APIs in NuGet 1.0.1 - #118

Merged
konard merged 6 commits into
mainfrom
issue-114-680cdc793c86
Nov 30, 2026
Merged

konard merged 6 commits into
mainfrom
issue-114-680cdc793c86

Conversation

@konard

@konard konard commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Fixes #114

Summary

  • Prepare C# package 1.0.1 from current source for .NET 8 and later. It includes the tree and list APIs from 0.7.3, including the original named arguments and the protected attach counter used by derived trees.
  • Confirm that NuGet already marks the legacy 1.0.0 unlisted. The flat-container index still includes it, and an exact reference can still restore it. Use 0.7.3 while the corrected package is pending or for .NET 7. NuGet 1.0.0 listing
  • The C++ release checks credentials before its build matrix. Both release workflows try a pinned NuGet/login OIDC exchange and check the short-lived key in preflight. At push time they use a fresh key first and fall back to NUGET_TOKEN if login fails or NuGet denies the trusted key. They verify the resulting public listing before creating the GitHub release. The C# pipeline also restores the public package and builds a consumer against it.
  • Document the correct NuGet username for organization-owned packages locally and report the documentation gap upstream. NuGet/login#47

Reproduction and verification

Run the isolated package consumer from this branch with the .NET 10 SDK.

CONSUMER_FRAMEWORK=net10.0 .github/scripts/check-csharp-nuget-consumer.sh 1.0.0
CONSUMER_FRAMEWORK=net10.0 .github/scripts/check-csharp-nuget-consumer.sh 0.7.3
dotnet pack csharp/Platform.Collections.Methods -c Release -o /tmp/collections-methods-package
CONSUMER_FRAMEWORK=net10.0 .github/scripts/check-csharp-nuget-consumer.sh 1.0.1 \
  /tmp/collections-methods-package/Platform.Collections.Methods.1.0.1.nupkg

1.0.0 reproduces CS0234 for both namespaces. The package from pre-fix main also reports CS1739 for the old named argument sb. 0.7.3 and the locally packed 1.0.1 compile successfully. The new package also compiles as a dependency of a .NET 8 consumer. Microsoft APICompat found no breaking changes against the published 0.7.3 assembly, with parameter-name checks enabled. The draft without the protected field also reproduced CS0103. A focused xUnit run passed all 20 size-balanced-tree rotation tests, including the attach-counter regression. All 150 local workflow and script tests passed. The PR checks passed, including 86 C# tests, the isolated package consumer, full C# line coverage, the C++ matrix, CodeQL and Codacy. PR checks

The Data.Doublets library from PR #557 also built with zero warnings and errors on .NET 10 after replacing its central 0.7.3 reference with exact [1.0.1], mapping the package to the local feed above, and refreshing the lock file with -p:RestoreLockedMode=false -p:RestoreForceEvaluate=true. The restored lock file confirms 1.0.1. Data.Doublets PR #557

Publication status

1.0.1 is absent from nuget.org. Both current main release runs failed preflight because NuGet rejected NUGET_TOKEN, and the repository has no NUGET_USER variable. A NuGet package owner must create the two trusted publishing policies in the README and set NUGET_USER to the creator's username, or replace the fallback key with one scoped to push both packages. The real credential exchange, push and public restore remain pending. C# release run · C++ release run

Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: #114
@konard konard changed the title [WIP] NuGet 1.0.0 loses tree/list APIs provided by 0.7.3; please publish corrected version or migration Restore the C# tree and list APIs in NuGet 1.0.1 Nov 30, 2026
@konard
konard marked this pull request as ready for review November 30, 2026 06:08
@konard

konard commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

Working session summary

PR #118 is ready for review and remains unmerged. It prepares version 1.0.1 with the tree and list APIs from 0.7.3. NuGet already marks the legacy 1.0.0 package as unlisted.

APICompat found no breaking changes against 0.7.3. The package built with .NET 8 and .NET 10 consumers, including Data.Doublets. All 26 applicable PR checks passed, and no review findings arrived during the 15-minute window. PR checks

NuGet publication remains blocked. 1.0.1 is absent from nuget.org. A package owner must configure trusted publishing and set NUGET_USER, or replace the fallback key that NuGet rejected. The public package restore remains unverified. Release logs


This summary was automatically extracted from the AI working session output.

@konard

konard commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Model: GPT-6.2 Sol
  • Provider: OpenAI
  • Public pricing estimate: $3.673606

📊 Context and tokens usage:

  • 301.6K input tokens across requests (cumulative, larger than the 272K context window, so not one request's context), 51.0K / 128K (40%) output tokens

Total: (301.6K + 8.5M cached) input tokens, 51.0K output tokens, $3.673606 cost

🤖 Models used:

  • Tool: OpenAI Codex
  • Requested: gpt-6.2-sol
  • Thinking level: xhigh (~31999 tokens)
  • Model: GPT-6.2 Sol (gpt-6.2-sol)

📎 Log file uploaded as Gist (845KB)


This AI session has ended. Monitoring of this pull request continues. Feel free to review and add feedback while checks are running.

@konard
konard merged commit 1ceb588 into main Nov 30, 2026
31 checks passed
@konard

konard commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

🎉 Auto-merged

This pull request has been automatically merged by hive-mind.

  • All CI checks have passed

Linked issues

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.

NuGet 1.0.0 loses tree/list APIs provided by 0.7.3; please publish corrected version or migration

1 participant