上流バージョン監視の自動化(cron + 自動 Issue 起票) - #189
Open
k-yoshimi wants to merge 4 commits into
Open
Conversation
scripts/check_upstream_versions.sh derives the GitHub owner/repo of each package from its download.sh, compares the version.sh pin with the latest GitHub release (prefix-normalized, sort -V so an upstream whose formal releases lag the pin is not flagged), and optionally opens one issue per outdated package, skipping ones already open. The version watch workflow runs it twice a month and on manual dispatch. Dry-run against the live API checks 21 GitHub-hosted packages and currently reports 16 genuinely outdated ones with no false positives. Fixes #183 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- gh api failures other than 404/no-releases (auth, rate limit, network) are now reported per package and make the script exit nonzero, so a scheduled run cannot silently skip everything (verified: invalid token -> ERROR lines + exit 1) - URL detection also matches v"$__VERSION__" (unbraced), adding pybind11 and einsums to the checked set -- both turn out outdated - A pre-release pin (e.g. 1.0-beta) is treated as older than the released base version even though sort -V orders it after - Duplicate-issue detection compares open titles locally instead of relying on GitHub search syntax Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Open issue titles are fetched once up front (fatal on failure, so --create-issues cannot silently skip duplicate detection), created titles are appended locally, and a failed gh issue create is counted as an error making the run exit nonzero. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- New issues per run are capped by MAX_ISSUES (default 10) so the first scheduled run cannot flood watchers; skipped ones are listed and picked up by later runs - -h/--help prints usage instead of running 50 API calls - scripts/README.md documents the shared and maintenance scripts Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Collaborator
Author
AI review cycle (Codex + Antigravity) 結果Phase 1 (Codex): 2 巡実施。
Phase 2 (Antigravity): must_fix_docs 0 → 追加対応:
最終状態: dry-run で 23 パッケージ検査 / 18 件の実更新検出 / 誤検出 0 / shellcheck クリーン。 → 両フェーズ収束。 |
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.
概要
Fixes #183
version.shの pin と上流の最新 GitHub リリースを定期比較し、更新があれば Issue を自動起票する仕組みを追加します。scripts/check_upstream_versions.sh
download.shから${__VERSION__}でバージョン指定された github.com URL を抽出し owner/repo を自動導出(コメント行は除外、${__NAME__}は展開、変数が残る URL はスキップ)v3.6.0/v.1.5.0/qe-7.0→ 数値部分)し、sort -Vでpin より新しい場合のみ報告(espresso のように正式リリースが pin より古い上流を誤検出しない)--create-issues指定時、[<name>] New upstream version <ver>の Issue を起票。同名の open Issue があればスキップ(重複防止).github/workflows/version_watch.yml
workflow_dispatch(手動実行)issues: write権限で--create-issues実行検証
${__NAME__}未展開、v.接頭辞、上流リリースが pin より古い)はすべて解消済み--severity=warning -s sh) クリーン(共有スクリプトのクォート修正 + shellcheck の CI 導入 #178 の CI 対象に入っても通ります)運用メモ
マージ後の初回実行で最大 16 件の Issue が一度に立ちます。多すぎる場合は先に主要パッケージのバージョン更新を済ませるか、手動 dispatch で様子を見てから cron に任せてください。
🤖 Generated with Claude Code