[Bug][Blueprint] Scheduled run fails silently when plan generation errors
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start at BlueprintJob.Run in backend/server/services/blueprint.go and follow the call to createPipelineByBlueprint, where the MakePlanForBlueprint error returns before any pipeline record is created. The maintainers have not chosen how the failure should surface, so confirm the approach in the thread before coding. Done means a scheduled run that fails at plan time leaves a visible failed record, and a test covers the cron path.
索引モデルが issue の本文から書いたものです。
説明
Search before asking
- I had searched in the issues and found no similar issues.
What happened
When a scheduled (cron) blueprint run fails during plan generation, the failure is only logged. BlueprintJob.Run in backend/server/services/blueprint.go calls createPipelineByBlueprint, which returns the MakePlanForBlueprint error before any pipeline is created. No pipeline record exists, so nothing shows as a failed run in the UI, and alerting on pipeline status can't catch it. The only trace is the lake log:
[blueprint] run cron job failed on blueprint:[1][my-blueprint]
caused by: ...
This is plugin-agnostic: any error raised while making the plan (e.g. a data source rejecting credentials) is handled this way. Example cause: #9220.
What do you expect to happen
A scheduled run that fails at plan time is visible the same way a failed pipeline is: in the UI and to anything monitoring pipeline status. Recording it as a failed pipeline is one option; maintainers may prefer another.
How to reproduce
- Create a GitHub App connection and a blueprint using it, with a cron schedule.
- Set the DevLake host clock about 2s ahead of real time (see #9220).
- Wait for the scheduled run.
- No new pipeline appears; the error is only in the lake log.
Anything else
Manually triggering the same blueprint (POST /blueprints/:id/trigger) returns the error to the caller, so only scheduled runs are affected.
Version
v1.0.3-beta14 (same code on main)
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
- 主要言語
- Go
- スター
- 3.2k
- フォーク
- 824
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 43
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/devlake のほかの issue
-
[Bug][Project] Invalid metric plugin options are accepted on project save and only fail at the next pipeline run対応中かも @chenwei791129 が 1 日前に担当しました。 オープン
難易度 3/5 半日 初心者へのやさしさ 22/100
メンテナーはふだん 2 日以内に返信
-
[Bug][Dashboard] Engineering Throughput PR time panels count PRs without a project_pr_metrics row as 0 hours対応中かも @chenwei791129 が 2 日前に担当しました。 オープン
難易度 3/5 半日 初心者へのやさしさ 22/100
メンテナーはふだん 2 日以内に返信
-
[Bug][e2e] Several plugin e2e tests fail on a fresh database because they depend on tables created by other tests対応中かも @chenwei791129 が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 2 日以内に返信
-
[Feature][dora] Allow filtering which pull requests count toward Lead Time for Changes by branch name対応中かも @chenwei791129 が 1 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 62/100
メンテナーはふだん 2 日以内に返信
似ている issue
-
bug
難易度 2/5 半日 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
kubernetes-sigs/external-dns#6816 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
ANSI translator ignores SGR 22/24 (and other attribute-off codes): bold and underline never turn offオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Named Tuple element with a space in its name fails to parse対応中かも @spicysharkco が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ClickHouse/clickhouse-go#2073 ·
メンテナーはふだん 1 日以内に返信