Lease files: get a folder back
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with #2004 for the TreeArchive, folder kind, and LeaseFiles route action, then read the listed lease-files, gateway, daemon, HTTP, CLI, and contract modules alongside ADR 0100 and ADR 0067. Implement the folder get across the named seams and cover B8–B10 in the listed model, dispatcher, CLI, and gateway tests. Done means the existing file-get tests pass unchanged and website/scripts/check-openapi.mjs accepts GET /v1/leases/{id}/files/{name}/folder.
索引モデルが issue の本文から書いたものです。
説明
Part of #1636.
Scope
simlock files get <folder> brings a folder from the lease's folder to the caller's machine, whole or not at all, one a command wrote included, on a worker and through a gateway.
If it goes wrong, a downloaded folder misses files without an error, or a file's download changes.
Technical spec
Commit d95c152c6.
Rows
- Behaviours: B8, B9, B10
- Stored state: S3
- Interfaces: I4, I14
- Existing code: X1, X5, X11, X16
Facts
| # | Fact | Source |
|---|---|---|
| F1 | An answer that ends early through the gateway's relay fails the caller's read | src/gateway/relay.test.ts:157 |
| F2 | device.exec passes on the code of a LeaseFilesError from openFile |
src/daemon/dispatcher-exec.ts:184 |
| F3 | The protocol range is one number, changed once per PR that changes a contract shape | src/contract/protocol.ts:13 |
Modules touched
lease-files (store.ts, handler.ts, errors.ts), http (lease-declarations.ts, app.ts), contract (errors.ts, the protocol bump), daemon (gateway-lease-files.ts), cli (commands/files.ts, the help in src/cli/index.ts), the exec route's 409 list in src/http/lease-declarations.ts:177, docs/internal/flows/device-exec.md, website (copy-files, cli, errors, http-api, the OpenAPI document). Searches: rg "UNKNOWN_FILE", rg "ERROR_TABLE" src --files-with-matches, rg "runGet".
Rules in play
- ADR 0100 §1, §2: a get packs with the same port; what it does not carry is left out.
- ADR 0067 §4:
application/octet-stream,no-store. src/contract/AGENTS.mdProtocol version: one bump forNOT_A_FILEandNOT_A_FOLDER.src/cli/AGENTS.mdfiles: a failure of this machine's disk surfaces as it is.- Documentation rule 9: the pages above and both codes in the errors reference.
Tests
Seams: createLeaseFiles over MemoryFilesystem (model: src/daemon/lease-files.test.ts), the dispatcher (src/daemon/dispatcher-exec.test.ts), runCli (src/cli/index-files.test.ts), the gateway pair (src/daemon/relay-gateway-files.e2e.test.ts).
- B8: An HTTP caller gets a folder through I4 and sees its tar; a get of a folder through the file route sees
NOT_A_FILE, and of a file through I4NOT_A_FOLDER: folder; empty folder; inner link kept; link out, socket,\in a name left out; unknown name; another spelling; a file that vanishes or shrinks ends the body with an error; a file that grows is sent at its first size; the caller goes away;stdinFilenaming a folder seesNOT_A_FILE - B9:
simlock files get <folder>writes the folder at-oor./<name>, whole or not at all: default target;-o; target exists (exit 2, message of How it works);.partleft by another run (exit 1, kept); a cut body leaves no folder; a link this machine cannot create is left out; an entry refused by I1 (REMOTE_UNREACHABLE, nothing written); a file name still goes to stdout or-oas today - B10: A gateway relays the get of a folder, streaming: folder; worker's
UNKNOWN_FILE
Done when
- The file route's success path is unchanged: the existing tests of
src/daemon/lease-files.test.tsandsrc/cli/index-files.test.tsfor a file'sgetpass unedited. website/scripts/check-openapi.mjspasses withGET /v1/leases/{id}/files/{name}/folder.
Out of scope
Byte ranges of a folder. A real device: nothing here touches one.
Depends on
- #2004 because:
TreeArchive, the folder kind and the route action ofLeaseFiles.handle - #1155 because:
PROTOCOL_VERSION_RANGE
Written by an agent.
- 主要言語
- TypeScript
- スター
- 730
- フォーク
- 44
- 平均マージ
- 15時間 28分
- マージ済み PR(30日)
- 387
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
callstackincubator/simlock のほかの issue
-
bug:new
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
callstackincubator/simlock#2088 ·
メンテナーはふだん 1 日以内に返信
-
bug:new
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
callstackincubator/simlock#2080 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
task:ready
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
callstackincubator/simlock#2079 ·
メンテナーはふだん 1 日以内に返信
-
platform:ios task:ready
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
callstackincubator/simlock#2078 ·
メンテナーはふだん 1 日以内に返信
-
iOS copy: keep the app database at the copy's own UDID対応中かも @V3RON が今日担当しました。 オープンplatform:ios task:ready
callstackincubator/simlock#2077 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
callstackincubator/simlock の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
earendil-works/gondolin#222 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
endora-commerce/endora-commerce#2203 ·
メンテナーはふだん 1 日以内に返信
-
enhancement priority:medium ready-for-human
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
wondermoney/wondermoney#1079 ·
メンテナーはふだん 1 日以内に返信