Skip to content

fix(csharp): wait for NuGet indexing before release#87

Merged
konard merged 4 commits into
mainfrom
issue-86-799717a6ecc6
May 12, 2026
Merged

fix(csharp): wait for NuGet indexing before release#87
konard merged 4 commits into
mainfrom
issue-86-799717a6ecc6

Conversation

@konard
Copy link
Copy Markdown
Member

@konard konard commented May 12, 2026

Fixes #86

Summary

  • Replace the short inline NuGet verifier with csharp/scripts/wait-for-nuget.mjs, a tested helper that checks the flat-container nuspec endpoint every 2 minutes across the normal NuGet indexing window.
  • Use the helper in both automatic C# releases and manual instant releases before creating the GitHub release.
  • Add an issue 86 case study under docs/case-studies/issue-86 with GitHub issue/PR/run data, downloaded CI logs, NuGet evidence, template comparisons, and validation logs.
  • Report the matching C# template defect upstream: Wait longer for NuGet package indexing before release csharp-ai-driven-development-pipeline-template#13

Root Cause

NuGet accepted clink@2.4.0, but the package was not yet visible from the flat-container API before the old 0/5/10/20/30/60 second retry schedule finished. The package appeared later within the NuGet indexing window, so the release job failed before the registry state it depended on was ready.

Validation

  • node --test csharp/scripts/*.test.mjs
  • node --check csharp/scripts/wait-for-nuget.mjs
  • dotnet test csharp/Foundation.Data.Doublets.Cli.sln --configuration Release
  • git diff --check
  • node csharp/scripts/wait-for-nuget.mjs --package-id clink --release-version 2.4.0 --max-attempts 1

Evidence

The detailed investigation and preserved logs are in docs/case-studies/issue-86/README.md. Official NuGet references used in the investigation:

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

Issue: #86
@konard konard self-assigned this May 12, 2026
@konard konard changed the title [WIP] It may take up to 10-15 minutes, to index, so we should check for package availability at 2 minute intervals fix(csharp): wait for NuGet indexing before release May 12, 2026
@konard konard marked this pull request as ready for review May 12, 2026 21:42
@konard
Copy link
Copy Markdown
Member Author

konard commented May 12, 2026

Working session summary

Implemented and finalized PR 87: #87

What changed:

Validation:

  • Local checks passed: node --test csharp/scripts/*.test.mjs, node --check, dotnet test, git diff --check, and a live NuGet availability probe for clink@2.4.0.
  • Latest PR CI passed on head 4dbb7831b739c97fb821c9ebad51d330dcbcaf5e: https://github.com/link-foundation/link-cli/actions/runs/25764039344
  • PR is ready for review and the working tree is clean.

Official NuGet references used are linked in the PR body, including Microsoft’s package validation/indexing docs and flat-container API docs.


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

@konard
Copy link
Copy Markdown
Member Author

konard commented May 12, 2026

🤖 Solution Draft Log

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

💰 Cost estimation:

  • Model: GPT-5.5
  • Provider: OpenAI
  • Public pricing estimate: $14.369977

📊 Context and tokens usage:

  • 330.0K / 1.1M (31%) input tokens, 38.3K / 128K (30%) output tokens

Total: (330.0K + 9.3M cached) input tokens, 38.3K output tokens, $14.369977 cost

🤖 Models used:

  • Tool: OpenAI Codex
  • Requested: gpt-5.5
  • Model: GPT-5.5 (gpt-5.5)

📎 Log file uploaded as Repository (35757KB)


Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard konard merged commit f5a5a41 into main May 12, 2026
9 checks passed
@konard
Copy link
Copy Markdown
Member Author

konard commented May 12, 2026

🎉 Auto-merged

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

  • All CI checks have passed

Auto-merged by hive-mind with --auto-merge flag

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.

It may take up to 10-15 minutes, to index, so we should check for package availability at 2 minute intervals

1 participant