[CLI] Reject non-integer tokens for distributed render flags
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- aws, cloud, docker, gcp, typescript
- 領域
- cli
調査の方向性
フラグは Lambda と Cloud Run の CLI パスで Number.parseInt によって解析されています。そこから調べ始めて、width、height、fps、memory、concurrency、timeout、chunk size の解析に使われている共通の整数解析処理を見つけてください。それを、10進数の整数トークンのみを受け入れるチェックに置き換えてください。既存の正の値と FPS のチェック、および省略されたフラグのデフォルト値はそのまま維持します。--width=1920.5 と --fps=24.5 が不正な整数というメッセージで拒否され、有効な値は引き続き通ることが完了条件です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The Lambda and Cloud Run CLI paths use Number.parseInt for integer-valued flags. This accepts a numeric prefix and silently truncates the rest: for example, 1920.5 becomes 1920, and 24.5 becomes 24. A render can therefore use dimensions or an FPS different from what the caller supplied instead of rejecting malformed input.
Minimal reproduction
The latest published CLI reports v0.8.223 as current (npx --yes [email protected] hyperframes upgrade --check). In an isolated test setup, run:
npx --yes [email protected] hyperframes cloudrun render /tmp --width=1920.5 --height=1080 --fps=24.5
Steps to reproduce
- Use the latest Hyperframes CLI; the upgrade check above reports
Already up to datefor v0.8.223. - Run the Cloud Run command above in a test environment. Do not use a production stack for this check.
- Observe that it does not report an invalid integer for either flag. On my machine it continues to the optional Cloud Run adapter check; the adapter is not installed, so no render is dispatched.
Expected behavior
Reject supplied integer flags unless the entire value is a base-10 integer token, then apply the existing positive-value and supported-FPS checks. Omitted optional flags should continue to use their current defaults.
Actual behavior
Number.parseInt("1920.5", 10) returns 1920, and Number.parseInt("24.5", 10) returns 24, so the CLI accepts the values and can continue with a silently altered render configuration.
Environment
Sanitized npx hyperframes doctor output (machine-specific cache paths and hardware metrics omitted):
✓ Version 0.8.223 (latest)
✓ Node.js v25.2.1 (darwin arm64)
✗ Chrome Chrome Headless Shell is required for local rendering.
✓ FFmpeg ffmpeg 9.0.1
✓ FFprobe ffprobe 9.0.1
✓ Docker Docker version 29.6.1
✓ Docker running Running
Additional context
The same integer-token validation should cover Lambda and Cloud Run flags, including width, height, FPS, memory, concurrency, timeout, and chunk sizing. Empty optional values should remain equivalent to an omitted flag where the CLI parser can produce them.
- 主要言語
- TypeScript
- スター
- 54.1k
- フォーク
- 4.9k
- 平均マージ
- 6時間 28分
- マージ済み PR(30日)
- 793
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
heygen-com/hyperframes のほかの issue
-
render --start/--end applies the 2 GB Lambda plan cap to local renders対応中かも @ump45nose が 2 日前に担当しました。 オープンbug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
heygen-com/hyperframes#7035 ·
メンテナーはふだん 1 日以内に返信
-
Segmented capture always fails with `--format mov`対応中かも @DaKaufeeBoii が 5 日前に担当しました。 オープンbug difficulty/easy triage/ready
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
heygen-com/hyperframes#6481 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Timeline: show a clip's full name when its label is cut off対応中かも @DanielMcSheehy が 17 日前に担当しました。 オープンdesktop-candidate difficulty/easy enhancement good first issue help wanted triage/ready
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
heygen-com/hyperframes#5582 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Studio: press ? to open the keyboard shortcuts panel対応中かも @B-Payal が 22 日前に担当しました。 オープンdesktop-candidate difficulty/easy enhancement good first issue help wanted triage/ready
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
heygen-com/hyperframes#5580 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
lint: add tests for three caption rules that have none対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンdifficulty/easy enhancement help wanted triage/ready
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
heygen-com/hyperframes#5388 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
heygen-com/hyperframes の issue をすべて見る
似ている issue
-
[fullsend] E2E: scorecard — filecheck GitLab entity metrics unavailable due to initialDelay timingオープンe2e-failure ready-to-code
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
redhat-developer/rhdh-plugin-export-overlays#4698 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
devswha/herdr-web-ui#2884 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
b:minor bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
software-mansion/argent#1771 ·
メンテナーはふだん 1 日以内に返信
-
Resources: New palettes of Xiamen対応中かも @rmt-svc が今日担当しました。 オープンresources
難易度 1/5 1〜3時間 初心者へのやさしさ 74/100
railmapgen/rmg-palette#2491 ·
メンテナーはふだん 4 日以内に返信