From 5c0d8118e81d368f9caa54f0046e8fdfe6d79c40 Mon Sep 17 00:00:00 2001 From: "jinli.yl" Date: Thu, 27 Aug 2026 17:39:16 +0800 Subject: [PATCH] ci: validate Auto Fin package manifest --- .github/workflows/release-auto-fin.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-auto-fin.yml b/.github/workflows/release-auto-fin.yml index 0ebbafb7..9ae7fd35 100644 --- a/.github/workflows/release-auto-fin.yml +++ b/.github/workflows/release-auto-fin.yml @@ -109,11 +109,23 @@ jobs: "${RUNNER_TEMP}/reme-auto-fin-smoke/bin/python" - <<'PY' from importlib.metadata import distribution + from reme.plugin_manifest import load_package_manifest + package = distribution("reme-auto-fin") plugins = {entry.name: entry for entry in package.entry_points if entry.group == "reme.plugins"} - configs = {entry.name: entry for entry in package.entry_points if entry.group == "reme.configs"} - assert plugins["auto-fin"].load().name == "auto-fin" - assert configs["auto-fin"].load().is_file() + assert plugins["auto-fin"].value == "reme_auto_fin" + manifest = load_package_manifest("reme_auto_fin", plugin_name="auto-fin") + assert set(manifest.backends) == { + "auto_fin_data_step", + "auto_fin_topic_step", + "auto_fin_merge_step", + } + assert set(manifest.application_defaults["jobs"]) == { + "auto_fin", + "auto_fin_0930_cron", + "auto_fin_1130_cron", + "auto_fin_1800_cron", + } PY - name: Upload distributions