Repository navigation
feat: roles and harnesses for alert notifiers, maintenance actions and command plugins; release 0.12.0 - #27
Merged
Conversation
…he forge-cli 0.38.0 plugin groups
… actions and command plugins Also adds unit tests for the three roles and for the harnesses themselves (each must fail on a plugin forge-cli would refuse), pins the new exports, and registers the three entry-point groups the docs gate knows.
One package per new role, each with its entry point and a test that runs the conformance harness. Also tells mypy that sqlglot, which the SDK only imports when installed, may be absent.
…he forge-cli versions that load them
Finalizes the CHANGELOG [Unreleased] section as [0.12.0] and bumps both version constants (pyproject and fluid_sdk.version.SDK_VERSION) from 0.11.0 to 0.12.0, as the 0.11.0 release did. SDK_PROTOCOL_VERSION stays 1 (the BasePlugin interface is unchanged). MIN_CLI_VERSION is unchanged (0.7.0).
fas89
added a commit
that referenced
this pull request
Nov 22, 2026
…red statement target, harnesses that match forge (#28) Brings in the review fixes that missed #27: forge-cli's option-key and option-value secret rules (from forge-cli PR #1063, in 0.38.0), a maintenance statement target anchored after its keyword, and harnesses that build, skip and report as forge-cli does.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
forge-cli 0.38.0 loads three new plugin groups:
fluid_build.alert_notifiers,fluid_build.alert_defaultsandfluid_build.maintenance_actions.fluid_build.commandshas been there since 0.8.3, but until now the SDK had nothing for it. This adds typed roles and conformance harnesses for all four, and cuts 0.12.0.fluid_sdk.roles. Each uses forge's own attribute names, defaults and signatures, and none imports forge:AlertNotifier, plusalert_route()/check_alert_route()for analert_defaultsentry point;MaintenanceAction, plussql_literal,statement_problemandchecked_statements;CommandPlugin.fluid_sdk.testing:AlertNotifierTestHarness,MaintenanceActionTestHarnessandCommandPluginTestHarness. They check the rules forge applies when it loads a plugin. Negative tests show that each harness fails on a plugin forge would refuse.acme-chat-alerts,acme-erasure-actionandacme-hello-command. Each has its entry point and a harness test.docs/reference/plugin-groups.md;sqlglotis used only when it is installed.Checked:
python -m buildandtwine check.Also checked end to end against forge-cli's main branch (0.38.0) in a fresh venv:
fluid pluginslists all three examples.fluid generate schedulewrites its notifier into the DAG, along with the default route fromalert_defaults.fluid acme-helloruns.