Change recommendation for ci-build-id?

オープン
#431 コメント 11 件 リアクション 5 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
github-actions, javascript
領域
ci-cd

調査の方向性

まず、現在の ci-build-id の生成と、action が GitHub Actions コンテキストを読み取る方法を追跡します。その動作を github.run_id および github.run_attempt と比較し、再実行や並列実行も含めたうえで、提案された変更に実装、ドキュメント、またはその両方が必要かどうかを判断します。推奨事項が検証され、結果として得られる動作がプロジェクトの既存のチェックでカバーされれば完了です。

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

説明

Cypress Cloud

Hello!
Thanks for this action! It looks like Github has recently added context support for github.run_attempt. This action currently has to do backflips with the GH API in order to generate a unique (but predictable) ci-build-id property, but with the addition of run_attempt, I think you could probably deprecate that complexity. Eg:

- name: E2E Tests
  uses: cypress-io/github-action@v2
  with:
    record: true
    parallel: true
    ci-build-id: "${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}"

I think this build ID would be guaranteed unique across all of Github for every run, even for reruns. github.run_attempt hasn't made the GHA documentation yet, so I'm not sure if it's stable enough to recommend right now, but I've verified that it's present for all of the current "Github Provided" runners.

主要言語
JavaScript
スター
1.5k
フォーク
356
平均マージ
1日 18時間
マージ済み PR(30日)
25

環境構築

はじめの一歩

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

cypress-io/github-action のほかの issue

cypress-io/github-action の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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