`every 90 minutes` and `every 36 hours` compile to hourly and daily schedules
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 80/100
調査の方向性
チェックは pkg/parser/schedule_parser.go の validateMinimumInterval に、既存の 5 分の最小値のすぐ後に追加します。まず、そこで分と時の値がどのように解析されているかを読んでください。その後、issue に記載された拒否される間隔と受け入れられる間隔を網羅するテーブル駆動テストを pkg/parser に追加します。約数でない間隔がすべて、有効な値を示すメッセージとともに失敗し、every 5 minutes、every 1h、every 24h などの約数の間隔が引き続きコンパイルできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
schedule: every 90 minutes and every 36 hours compile to schedules that run hourly and daily
Analysis
Minute and hour intervals that a cron step cannot express are accepted and compile without a warning to a schedule with a different cadence.
Repro, with on.schedule set to each value and gh aw compile:
schedule: |
compiled cron | actual runs |
|---|---|---|
every 90 minutes |
56/90 * * * * |
once an hour, at :56 |
every 36 hours |
33 */36 * * * |
once a day, at 00:33 UTC |
every 45 minutes |
M/45 * * * * |
once or twice an hour, 45 and 15 minutes apart, depending on the scattered offset |
every 7 hours |
13 */7 * * * |
00:13, 07:13, 14:13, 21:13, then 00:13 (a 3 hour gap) |
Cron steps restart at the top of each hour (minutes) and each day (hours), so only intervals that divide 60 (minutes) or 24 (hours) repeat evenly.
docs/src/content/docs/reference/schedule-syntax.md lists the valid values (5m, 10m, 15m, 20m, 30m and 1h, 2h, 3h, 4h, 6h, 8h, 12h), and specs/fuzzy-schedule-specification.md lists every 5h (not a factor of 24) as error ERR-INTERVAL-002. validateMinimumInterval in pkg/parser/schedule_parser.go only checks the 5 minute minimum.
Expected: compilation fails with a message that names the valid intervals.
Reproducible on main at b1c6690.
Implementation plan
pkg/parser/schedule_parser.go: after the 5 minute check invalidateMinimumInterval, return an error when a minute interval does not divide 60 or an hour interval does not divide 24. Both the short (every 90m) and long (every 90 minutes) forms go through this function. Suggested messages:minute interval 90 is not supported: it must divide 60 evenly (e.g. 5, 10, 15, 20, 30, 60). Use a cron expression for other cadencesandhour interval 36 is not supported: it must divide 24 evenly (e.g. 1, 2, 3, 4, 6, 8, 12, 24). Use 'every N days' or a cron expression for other cadences.pkg/parser: add a table test that rejectsevery 90 minutes,every 45m,every 120m,every 36 hours,every 5 hours,every 7h on weekdaysand acceptsevery 5 minutesthroughevery 60mandevery 1hthroughevery 24h.- No docs change needed; the reference page already lists the valid values.
- 主要言語
- Go
- スター
- 5.7k
- フォーク
- 635
- 平均マージ
- 3時間 43分
- マージ済み PR(30日)
- 838
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-aw のほかの issue
-
automation backlog:reports documentation
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
ai-inspected
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
automated-analysis backlog:engineering-quality code-quality cookie refactoring
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
ai-inspected backlog:security
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
github/gh-aw#79301 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug: arc-dind generated Copilot CLI staging step fails when source and destination are the same fileオープンai-inspected arc awf backlog:runners-tools community
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
github/gh-aw#78972 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
unbound-force/replicator#193 ·
メンテナーはふだん 2 日以内に返信
-
A Gemini stream that fails partway completes the call with the partial text対応中かも @bnaylor が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
go-steer/core-agent#1600 ·
メンテナーはふだん 1 日以内に返信
-
bug raised-by:reviewer
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
medici-finance/assay#7655 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Edwin-metcalf/MetCode#67 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信