Migration shows successful when only exception stubs are generated due to missing package body in source
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 50/100
調査の方向性
まず、ソース本体のコンパイルに失敗するパッケージについて、マイグレーション変換パイプライン、生成された PostgreSQL ルーチンスタブ、マイグレーションレポートを追跡します。レポートが例外のみのスタブをどのようにカウントするか、またマイグレーション状態が再実行をどのように防いでいるかを確認します。不完全なパッケージが警告またはレビュータスクによって明確に示され、成功率が過大に表示されず、ソースを修正した後に再実行できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When a source Oracle package cannot be fully extracted/compiled, the conversion pipeline may generate PostgreSQL function stubs that only raise Oracle-compatible exceptions (ORA-06508 / ORA-04067). However, the migration report still marks the package as Converted with 100% success rate, which overstates migration readiness because the package implementation was not migrated.
observed on ms-ossdata.vscode-pgsql version 1.27.3
To Reproduce
Create a package where body compiles with error in the source (Oracle) and run the migration.
In PostgreSQL the migration create functions like this:
CREATE OR REPLACE FUNCTION _mig_scratch_soe."orderentry$browseproducts"
(
cust_id text,
min_sleep integer,
max_sleep integer
)
RETURNS character varying
LANGUAGE 'plpgsql'
AS $BODY$
BEGIN
-- Oracle raises ORA-04067 + ORA-06508
RAISE EXCEPTION
USING
ERRCODE = 'U6508',
MESSAGE = 'ORA-06508: PL/SQL: could not find program unit being called: ORDERENTRY.BROWSEPRODUCTS',
DETAIL = 'ORA-04067: not executed, package body does not exist';
END;
$BODY$;
And the report shows:
Package Objects
Object Type Extracted Converted Merged Fallback Failed Skipped Success Rate
PACKAGE 1 1 0 0 0 0 100.0%
Total Package
Additionally, when fixing the source (either remove the package because it is not used, or fix it) we cannot re-run the migration:
Expected behavior
I would expect at least a warning when the generated PostgreSQL routine contains a stub with error, not an all-green 100% success in the report, and a review task, with the possibility to re-run when the root cause has been fixed.
- 主要言語
- 言語のデータがありません
- スター
- 398
- フォーク
- 32
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/vscode-pgsql のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
microsoft/vscode-pgsql#190 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/vscode-pgsql#307 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
microsoft/vscode-pgsql#306 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
microsoft/vscode-pgsql#305 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/vscode-pgsql#302 ·
microsoft/vscode-pgsql の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
zcashlabs/thus-spoke-zakura#153 ·
メンテナーはふだん 1 日以内に返信
-
core
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
vectorize-io/hindsight#5276 ·
メンテナーはふだん 1 日以内に返信
-
duplicate request-theme
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
LizardByte/ThemerrDB#8856 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
perf(core): getComments() runs the approved count and the comment list as two sequential queriesオープンarea/core bot:bug bot:working
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
emdash-cms/emdash#3905 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Arkansas 2025 tax is $1.70 high above $100,000 net taxable income ($3,809 + 3.9% rule)対応中かも @PavelMakarchuk が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
PolicyEngine/policyengine-us#9828 ·
メンテナーはふだん 2 日以内に返信