Skip to content

Repair CI validation and NuGet release checks - #120

Merged
konard merged 13 commits into
mainfrom
issue-119-5753d3bf192f
Nov 30, 2026
Merged

konard merged 13 commits into
mainfrom
issue-119-5753d3bf192f

Conversation

@konard

@konard konard commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Fixes #119

The C# and C++ release runs on main failed at NuGet credential preflight
after their package validation passed. The audit also found skipped
validation on large diffs, C++ build warnings, CodeQL findings hidden
behind green runs, and vulnerable transitive NuGet dependencies.

The development-log upload then introduced 24 Codacy findings in a
copied NuGet article. This PR replaces the copy with a repository-specific
note and links to the original guidance. The existing Markdown check now
covers evidence notes, including changes that touch only those notes.

Changes

  • Select checks from the full Git diff of the push or merge result.
    Validate both packages, C# documentation and PDF, README, evidence
    Markdown and workflow policy on pull requests.
  • Build and test one package artifact per language. The pull request logs
    explain why publishing and its credential checks run only on main.
    Release runs verify the original NuGet credential or use trusted
    publishing, then confirm the public listing before creating the GitHub
    release. Publishing jobs queue pending runs.
  • Resolve the CMake, CodeQL and transitive dependency findings. Require
    complete zero-finding SARIF, transitive NuGet auditing, pinned actions,
    workflow and shell lint, file size limits and overdue Dependabot checks.
  • Include the latest main and preserve the local and public NuGet consumer
    checks added in PR #118.

Reproduction and verification

  • The failed Codacy check
    recorded 23 MD013 findings and one MD025 finding. Run
    npx --yes markdownlint-cli2@0.22.0 README.md 'dev/log/**/*.md'.
    The command reports 24 findings at 45956a3 and zero with this fix.
    node --test .github/scripts/plan-ci.test.mjs also verifies that an
    evidence-only change selects the check.
  • node --test --test-concurrency=1 .github/scripts/*.test.mjs passed all 164 tests. The
    release tests mock missing and rejected credentials, a registry
    outage, duplicate releases and eventual public availability. The
    selector tests include a real Git diff with more than 300 changed paths
    and a rename across languages.
  • Compare the original C# release failure
    and C++ release failure.
    Both preflights still fail with instructions when a publishing credential
    is required and unavailable. PR validation builds and consumes the
    packages without that credential.
  • The audit and template comparison
    and the Codacy investigation
    include the timelines, recorded findings and workflow logs. Matching
    defects were reported to the C++ template
    and Dependabot.

Hosted verification

All 30 applicable checks passed on ce815a0 and six jobs were
intentionally skipped. PR checks

Release action for the NuGet package owner

  1. On NuGet.org, create trusted publishing policies
    for linksplatform/Collections.Methods. Grant push permission for
    Platform.Collections.Methods in csharp.yml and for
    Platform.Collections.Methods.TemplateLibrary in deploy-cpp.yml.
    Leave the optional environment blank. Set the GitHub Actions repository
    variable NUGET_USER to the NuGet username that created the policies.
    A scoped API key with push permission for both IDs can serve as the
    NUGET_TOKEN repository secret.
  2. Once the fix is on main through the repository's release process,
    rerun the failed jobs or dispatch each workflow on main with
    Retry publication from main selected. Confirm the public NuGet
    listing and corresponding GitHub release for C# 1.0.1 and C++ 0.4.0.

NuGet rejected the existing secret after #118 in both the
C# run
and the C++ run.
NUGET_USER is unset, and both target versions remain absent from the
public index. This PR remains open and unmerged.

Repository auto-merge is disabled. The repository owner can enable it in
Settings > General > Pull Requests after configuring required checks.
Dependabot PR #107
remains overdue and needs maintainer triage. GitHub manages the updater
image that produces the CA bundle warning reported upstream.

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

Issue: #119
@konard konard self-assigned this Nov 30, 2026
@konard konard changed the title [WIP] Check for all false positives, false negatives, warnings and errors in CI/CD and fix them all Repair CI validation and NuGet release checks Nov 30, 2026
@konard
konard marked this pull request as ready for review November 30, 2026 06:30
@konard

konard commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

Working session summary

Updated PR #120, merged the latest main into its branch, and marked it ready for review. The PR fixes CI change detection, strengthens package validation and release checks, and resolves the C++ build warnings and CodeQL findings.

All 30 applicable hosted checks and 163 local regression tests passed on ed46def. No automated review findings appeared during the 15-minute review window. PR checks

The audit and archived logs document the timeline, root causes, and comparison of all three CI templates. The [latest run logs](/dev/log/issues/119/pulls/120/final/README.md) are saved locally. I reported the matching defects to the C++ template and Dependabot.

Live publication remains blocked. NuGet rejected NUGET_TOKEN for both release workflows, and NUGET_USER is unset. An authorized package owner must configure trusted publishing or replace the scoped key before C# 1.0.1 and C++ 0.4.0 can be published and verified. The PR remains open and unmerged. C# failure · C++ failure


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: $6.669901

📊 Context and tokens usage:

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

Total: (465.1K + 16.9M cached) input tokens, 95.6K output tokens, $6.669901 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 (1646KB)


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

@konard

konard commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

🔄 Auto-restart 1/5

Reason: CI failures detected

Evidence:

Starting a new session to address it.

@konard
konard marked this pull request as draft November 30, 2026 07:13
@konard
konard marked this pull request as ready for review November 30, 2026 07:19
@konard

konard commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

Working session summary

Fixed Codacy in PR #120. All 30 applicable checks passed on ce815a0, along with 164 local regression tests. The PR is ready for review, and the 15-minute review window returned zero findings. Pull request and checks

A copied NuGet article caused all 24 findings. I replaced it with a linked evidence note and extended Markdown lint to cover evidence files. The same lint command reported 24 findings before the fix and zero afterward. Investigation and logs

Live publishing remains blocked. A NuGet package owner must configure trusted publishing or replace the scoped NUGET_TOKEN. Both release workflows report the required action on main. The PR remains unmerged. Release instructions


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

@konard

konard commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

🔄 Auto-restart-until-mergeable Log 1/5

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: $2.251905

📊 Context and tokens usage:

  • 135.0K / 272K (50%) input tokens, 30.0K / 128K (23%) output tokens

Total: (135.0K + 6.3M cached) input tokens, 30.0K output tokens, $2.251905 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 (2276KB)


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 0fdacc7 into main Nov 30, 2026
36 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

konard added a commit that referenced this pull request Nov 30, 2026
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.

Check for all false positives, false negatives, warnings and errors in CI/CD and fix them all

1 participant