Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Reduce time taken to deploy a new snapshot

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, node.js

調査の方向性

ファイル、テスト、エントリーポイントは指定されていません。まず snapshot のデプロイシーケンスと npm install の呼び出しを追跡し、その後、提案されている3つの戦略と、それぞれのダウンタイムおよび安全性に関するトレードオフを評価してください。完了とは、フローのダウンタイムを最小限に抑える具体的で検証済みのアプローチが得られていることを意味しますが、この issue では受け入れ基準が定義されていません。

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

説明

area:remote-instance

When deploying a new snapshot we currently stop the existing flows, npm install the dependencies, then start the new flows.
Depending on how much work npm has to do, this can lead to prolonged downtime of the flows. We want to look at strategies for reducing this downtime to a minimum.

The npm cache work recently added is one way to skip the npm step - but that assumes you know ahead of time exactly what needs to be installed on the device and you lose some flexibility.

Other options we should consider:

  1. compare the new package.json with what's already there and skip the npm install step if everything appears in order. Need to assess how risky this is - we rely on npm to ensure everything is in order even though that takes a bit of time.
  2. look at what flags we passing to npm to minimise what its doing (production-only, skip audit etc)
  3. do not stop the existing flows until after npm install has completed and we're ready to run the new flows. This will require running the install in a clean directory (thereby losing some of efficiencies npm has when rerunning it in an existing dir, unless we clone node_modules first). This will need some investigation.
主要言語
JavaScript
スター
20
フォーク
10
平均マージ
17時間 37分
マージ済み PR(30日)
24

環境構築

はじめの一歩

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

FlowFuse/device-agent のほかの issue

FlowFuse/device-agent の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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