Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/orchestrator-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "orchestrator-cli"
version = "0.6.18"
version = "0.6.19"
edition = "2021"
license = "Elastic-2.0"
default-run = "animus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ use std::path::{Path, PathBuf};
use anyhow::{Context, Result};

use animus_config_protocol::parse::yaml_workflows_dir;
// Only the test-only `default_workflow_template_files` consumes these template
// name constants; gate the import so non-test builds don't warn on unused imports.
#[cfg(any(test, feature = "test-utils"))]
use animus_config_protocol::yaml_types::{
DEFAULT_WORKFLOW_TEMPLATE_FILE_NAME, HOTFIX_WORKFLOW_TEMPLATE_FILE_NAME, RESEARCH_WORKFLOW_TEMPLATE_FILE_NAME,
STANDARD_WORKFLOW_TEMPLATE_FILE_NAME,
Expand Down
15 changes: 13 additions & 2 deletions crates/orchestrator-core/src/workflow/phase_plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,21 @@ pub fn resolve_phase_plan_for_workflow_ref(
crate::resolve_pack_registry(root).map(|registry| registry.has_pack_overlays()).unwrap_or(false);
let has_legacy_workflow_config =
crate::legacy_workflow_config_paths(root).iter().any(|candidate| candidate.exists());
if !has_yaml_workflows && !has_pack_workflows && !workflow_config_path.exists() && !has_legacy_workflow_config {
// An installed `config_source` plugin (e.g. config-postgres reading team_*,
// or config-yaml reading author YAML) is an authoritative config source even
// when no `.animus/workflows/*.yaml`, pack, or compiled cache exists on disk.
// Mirror `load_workflow_config`'s own gate (loading.rs) so config_source-only
// projects (no on-disk YAML) can still resolve workflows.
let has_config_source = orchestrator_config::config_source_client::config_source_installed(root);
if !has_config_source
&& !has_yaml_workflows
&& !has_pack_workflows
&& !workflow_config_path.exists()
&& !has_legacy_workflow_config
{
let requested = requested_workflow_ref.as_deref().or(normalized_workflow_ref.as_deref()).unwrap_or("<default>");
return Err(anyhow!(
"workflow '{requested}' is not available until the project defines workflows in .animus/workflows.yaml or .animus/workflows/*.yaml, or installs a pack"
"workflow '{requested}' is not available until the project defines workflows in .animus/workflows.yaml or .animus/workflows/*.yaml, installs a pack, or installs a config_source plugin"
));
}

Expand Down
Loading