This repository was archived by the owner on Nov 19, 2026. It is now read-only.
Repository navigation
fix(workflows): show failed steps, drop the retired spec field, check step agents - #6
Open
rivetphilbot wants to merge 2 commits into
Open
rivetphilbot wants to merge 2 commits into
rivetphilbot wants to merge 2 commits into
Conversation
A run that failed before its step's task finished, such as a delegation rh refused, kept the step running with no result, and the run page never said why. The step now fails with the error as its result, and a failed or stopped run's page leads with a notice naming the step and the reason.
…p agents Every step sent spec with its task, a field rh's tasks API has retired: rh 0.7 ignores it with a warning and the next release refuses it. Steps now send only the fields POST /api/tasks takes. A step's agent was free text that nothing checked until a run failed on it. The editor now offers the agents rh's catalog lists, and adding a step, saving or running refuses an agent rh doesn't know, naming the ones it does. Reading the catalog needs agents.read, so the plug-in asks for it; rh opens GET /api/catalog/agents to that permission from CONTRACT note 116.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes for the Workflows plug-in, found in QA passes against a throwaway node.
A failed run shows why. When a run threw partway through (for example,
delegate_taskrefused the step), the run was marked failed but its current step stayed "running" with no reason, so the run page looked stuck.Delegation without the retired
specfield. Every step sentspec, which rh now warns about and will refuse in its next release. Steps delegate through the current API, and runs complete with no retired-field warning.Step agents are checked. A step's agent was free text and only failed at run time. It's now chosen from rh's agent catalog, and an unknown agent is refused when the step is added, when the workflow is saved and when it runs. The plug-in asks for
agents.readto read the catalog, so it needs re-approval after updating.