Skip to content

調査: deploy-pr job の live asset check green 化のための GitHub Pages Settings Source 診断 #1315

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: research
parent_issue: "none"
goal_ref: "PR #1310 で hard gate 化した deploy-pr job の live asset check を安定 green にする"
change_kind: research-only

Parent Issue

なし(単独改善)

Source

dedupe_key: "follow-up:squne121/loop-protocol:pr/1310:pages-settings-source-config"
source_url: "https://github.com/squne121/loop-protocol/pull/1310"

Background

PR #1310(Closes #1184、マージ済み: #1310 )で deploy-pages.yml の deploy-pr job から continue-on-error: true を除去し、Verify preview assets are live ステップを hard gate 化した。

マージ直後の実 CI run(head 6049fbc8, run_id 28677087884, job_id 85052659441)で、この live check が curl 404 で FAILURE したことを control-plane が確認済みである。原因として GitHub Pages Settings(Settings → Pages → Source)が gh-pages ブランチを source として正しく指していない可能性、または peaceiris/actions-gh-pages によるデプロイ完了と Pages 配信反映の間の timing race のいずれかが推定されている。

PR #1310 の Safety Claim Matrix にも「Pages Settings(Settings → Pages → Source)の設定状態自体は本 PR の Out of Scope であり、live asset check が実際に green になるかは Pages 側設定に依存する」旨の not_controlled 記載があり、そこで「新規 follow-up issue(未起票)」として言及されていた項目が本 Issue である。

live asset check は既に hard gate 化済みのため、Pages Settings が未設定または誤設定のままだと、今後の全 PR で deploy-pr job が恒常的に red になる可能性がある。これが本 Issue 起票の主動機である。

Outcome

GitHub repository Settings(Settings → Pages → Source)の設定状態を確認した上で、gh-pages ブランチが Pages source として正しく設定されているかどうかの診断結果が本 Issue 本文に記載され、以下のいずれかの成果物が確定した状態になる。

  • 設定済みで問題ない場合: 診断結果と、直近の live asset check FAILURE が timing race 由来であることの根拠を本 Issue に記載し、必要なら retry/wait 導入の implementation Issue を起票する
  • 設定が不足・誤りの場合: 人間に対する設定変更依頼(具体的な設定手順込み)を本 Issue に記載し、設定変更後に再度 live asset check の CI run 結果を確認できる状態にする
  • 初回デプロイ時に Pages source 設定が必要になる一般的な運用手順がある場合は、その手順を docs/dev/ 配下のドキュメントとして記録し、本 Issue からリンクする

In Scope

  • gh api repos/squne121/loop-protocol/pages 等による Pages 設定状態の read-only 確認
  • run_id 28677087884 / job_id 85052659441 の失敗ログの再確認と原因切り分け(Pages Settings 未設定 vs timing race)
  • 上記に基づく人間向け設定変更依頼、または peaceiris/actions-gh-pages 運用ドキュメントの追記提案

Out of Scope

Acceptance Criteria

  • AC1: gh api repos/squne121/loop-protocol/pages の read-only 実行結果(source.branch / source.path / status 等)が本 Issue 本文に記載されている
  • AC2: run_id 28677087884 の Verify preview assets are live ステップの失敗ログから、404 の原因が「Pages Settings 未設定・誤設定」「timing race」のいずれであるかの判断根拠が本 Issue 本文に記載されている
  • AC3: 診断結果に応じた次アクション(人間への設定変更依頼、または follow-up implementation Issue の起票、または運用ドキュメント追記提案)が本 Issue 本文に明記され、該当する場合は起票された Issue 番号がリンクされている

Verification Commands

# AC1
$ gh api repos/squne121/loop-protocol/pages
# AC2
$ gh run view 28677087884 --repo squne121/loop-protocol --log-failed
# AC3
$ gh issue list --repo squne121/loop-protocol --search "pages-settings-source-config in:body" --state all

Allowed Paths

  • 読み取り専用。リポジトリ変更なし(既定)
  • 運用ドキュメント追記が必要と判断された場合のみ docs/dev/ 配下に新規ファイルを追加してよい(本文で明示する場合のみ)

Stop Conditions

  • Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
  • Allowed Paths 外への書き込みを試みた場合は即停止
  • 権限不足(permission denied)により操作が完了できない場合は即停止
  • 成果物の書き込みに失敗した場合(I/O エラー等)は即停止

Handoff Contract

Required Skills

なし

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/researchphase/researchstate/queued

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions