Run PDF and API documentation builds in parallel - #131
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #59
- Move PDF generation to self-hosted runners with 'pdf-generation' label for improved performance - Implement artifact-based workflow to separate heavy PDF processing from documentation deployment - Create unified documentation publishing script that combines API docs and PDF - Add graceful fallback when PDF generation is unavailable - Generate unified landing page with navigation for both API reference and PDF documentation Fixes #59 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Double check everything delivered with highest possible quality, resolve conflicts. |
|
🤖 AI Work Session Started Starting automated work session at 2026-09-22T04:52:52.836Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait for the session to finish, and provide your feedback. Runtime: solve |
# Conflicts: # .github/workflows/csharp.yml
|
Codacy needs a maintainer/service retry on the final commit |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (248.7K + 7.0M cached) input tokens, 27.8K output tokens, $8.391847 cost 🤖 Models used:
📎 Log file uploaded as Gist (3161KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
🔄 Auto-restart 1/5Reason: CI failures detected Starting new session to address the issues. Auto-restart-until-mergeable mode is active. This run will stop after 5 restart iterations in total. |
Working session summaryFixed and finalized PR #131.
This summary was automatically extracted from the AI working session output. |
🔄 Auto-restart-until-mergeable Log 1/5This log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (82.0K + 1.5M cached) input tokens, 12.8K output tokens, $2.244240 cost 🤖 Models used:
📎 Log file uploaded as Gist (4417KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
🎉 Auto-mergedThis pull request has been automatically merged by hive-mind.
Auto-merged by hive-mind with --auto-merge flag |
Summary
Resolve #59 by moving the expensive PDF build off the API-documentation critical path.
.github/scripts/publish-csharp-docs.shas the single repository-owned Pages publisher, preserving other content ongh-pagesmainand remove the draft's unavailablepdf-generationself-hosted label and duplicate publisherPublication now waits for
max(PDF build, API build)instead ofPDF build + API build, while still refusing to deploy an incomplete site.Reproduction and regression coverage
Before the fix,
buildDocumentationdeclaredgeneratePdfWithCodeas a dependency, so DocFX could not start until the slow TeX job finished. The updated workflow-policy test reproduced this dependency and failed before the workflow change.The regression tests now verify that:
Verification
node --test .github/scripts/*.test.mjs— 31 passed.github/scripts/validate-csharp-package.shwith .NET 8 — clean build, 2 tests passed, package and embedded symbols validatedactionlint1.7.12 — passedshellcheck .github/scripts/*.sh— passed--warningsAsErrors— 0 warnings, 0 errors.github/scripts/generate-csharp-pdf.sh— generated a valid eight-page PDFgit diff --check origin/main...HEAD— passedf3ac75a— passedResolves #59