[autonomy-atomicity] ESTC docs PR review uses a shared /tmp/style-guide cache path

オープン 初心者向け
#2,522 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, yaml
領域
ci-cd, devops

調査の方向性

.github/workflows/gh-aw-estc-docs-pr-review.mdを読み、issueで示された行の周辺にあるダウンロード手順とプロンプトテキストに注目してください。workflowが実行とジョブのコンテキストをどのように提供するかを確認し、実行で古いファイルが使われないように、キャッシュパスとダウンロード失敗時の処理を更新してください。ガイドファイルが実行ごとに分離され、利用できないダウンロードが明示的に識別されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Autonomy / Atomicity Findings

1. Shared style-guide cache path can leak state across concurrent/reused runs

Category: Global state
File(s): .github/workflows/gh-aw-estc-docs-pr-review.md (lines 114, 129, 131, 167-169)
Problem: The workflow always writes downloaded guide pages to /tmp/style-guide/ and later instructs the agent to trust/read that directory. Because the path is fixed and not run-scoped, concurrent runs on the same runner (or reused self-hosted runners) can overwrite each other or leave stale files. The step also allows download failures with warnings, so stale files can be consumed as if they were current.

Evidence snippets:

  • mkdir -p /tmp/style-guide
  • curl ... -o "/tmp/style-guide/${slug}.html" || echo "::warning::Failed to download ..."
  • echo "Downloaded $(ls /tmp/style-guide/ | wc -l) ..."
  • Prompt text: "The style guide ... have been pre-downloaded to /tmp/style-guide/. Read them from disk..."

Suggested fix: Use a run-scoped temp directory (for example ${RUNNER_TEMP}/style-guide-${GITHUB_RUN_ID}-${GITHUB_JOB}), clean it before download, and pass that path to the prompt via env/context. Also record missing downloads explicitly so the agent does not silently rely on stale local files.

Suggested Actions

  • Make style-guide cache paths run-scoped and isolated per workflow run/job
  • Fail fast or mark missing documents as unavailable instead of reusing stale files from a shared temp directory

What is this? | From workflow: Trigger Autonomy Atomicity Analyzer

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

主要言語
Python
スター
13
フォーク
16
平均マージ
45分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

elastic/ai-github-actions のほかの issue

elastic/ai-github-actions の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。