Repository navigation
ci: nightly の OpenCV artifact 検査を名前で引くようにする - #84
Merged
Merged
Conversation
`OpenCV artifact is still fetchable` は 2026-09-21 以降毎晩赤く、 6 platform すべてを "gone or expired" と報告していた。**実物は 6 件とも 在る** —— run 34699511493(v0.4.0 の build-opencv)の artifact は expired=false、expires_at は 2026-12-11(retention 90 日)。 原因は探し方で、`actions/artifacts?per_page=100` はリポジトリ全体の artifact を新しい順に 100 件しか返さない。test-results などが積もって OpenCV の artifact が 1 ページ目から押し出された時点で、在るものを 「無い」と言うようになっていた。`tools/opencv.ps1 restore` は以前から `?name=` で絞り込んで 1 回で引いているので、同じ引き方にそろえた。 actionlint 1.7.12 と `dev.ps1 test-tools`(7 本、PASS 627 / FAIL 0)を ローカルで通した。workflow を実際に走らせての確認はしていない。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q1NCU9ZJ728AvdcQ1tjkdw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
nightlyのOpenCV artifact is still fetchablejob が毎晩失敗し、6 platform すべてを「gone or expired」と報告していました。ですが実物の artifact は 6 件とも存在しており、この失敗は誤報です。検査で artifact を探す方法が原因だったため、探し方を修正しました。変更は.github/workflows/nightly.ymlの 1 step だけです。変更内容
9f20289ci: nightly の OpenCV artifact 検査を名前で引くようにするgh api repos/.../actions/artifacts?per_page=100をフィルタ無しで呼んでいたため、リポジトリ全体の artifact を新しい順に 100 件しか見ていませんでした。test-results などが積もって OpenCV の artifact が 1 ページ目から押し出された時点から、存在するものを「無い」と報告するようになっていました。?name=<URL エンコードした名前>&per_page=100で、名前で絞り込んで取得するようにしました。tools/opencv.ps1 restoreがすでに使っているのと同じ方法です(restore を使う他の nightly job は green でした)。確認したこと
opencv-5.0.0-<platform>-<hash>。エラーに出ていた名前と完全に一致)は、すべてexpired: false、expires_at: 2026-12-11(retention 90 日)でした。OpenCV artifact is still fetchableだけでした。actionlint(1.7.12、CI と同じ版): 全 workflow でエラーなしpwsh tools/dev.ps1 test-tools(PowerShell 7.4.6): 7 スクリプトすべて OK、PASS 627 / FAIL 0(nightly.yml の修正後に実行。OpenCvConfig.Testsは workflow も検査します)dotnet test bindings/generator/Ocvu.Generator.Tests(.NET SDK 8.0.131): 116/116 pass(修正前・修正後とも)dotnet run --project bindings/generator/Ocvu.Generator -- --repo-root . --check: 生成物は spec と一致(23 ファイル、exit 0)未確認・注意点
tools/dev.ps1 test)は行っていません。残課題(この PR の範囲外)
2>$nullで gh のエラー(レート制限など)も握りつぶし、「missing」と報告します。API エラーと「本当に無い」場合を区別すれば、誤報をさらに減らせます。Missing Unity License Fileで失敗します。人が同じ内容のブランチで CI を回すか、Dependabot secrets に Unity ライセンスを登録してから判断してください。🤖 Generated with Claude Code
https://claude.ai/code/session_01Q1NCU9ZJ728AvdcQ1tjkdw
Generated by Claude Code