Files
osmedeus/test/testdata/workflows/test-hooks-failure.yaml
T
j3ssie baac7a016a feat: add worker management, hooks support, and db cleanup enhancements
- Add worker eval command for distributed function execution with Redis hooks registration
- Add worker set command to update worker fields (alias, public-ip, ssh-enabled, ssh-keys-path)
- Enhance worker status with JSON output, search filtering, and column selection (--columns, --exclude-columns, --search)
- Add --keep-setting flag to install base/validate commands to preserve osm-settings.yaml after base installation
- Fix binary installation in Nix: replace CopyInstalledBinaryToFolder with SymlinkInstalledBinaryToFolder
- Add --clean-ws flag to db clean command for removing workspace data
- Add HooksEnabled field to Run records when creating runs from CLI and API
- Add comprehensive test coverage for hook execution (pre/post hooks, execution order, failure handling)
- Add test coverage for worker commands (eval, set, status with JSON) and db clean operations
- Improve usage documentation for worker subcommands and db operations
2026-02-15 10:47:44 +07:00

30 lines
648 B
YAML

name: test-hooks-failure
kind: module
description: Test that a failing hook step does not abort the workflow
tags: test,hooks
params:
- name: target
required: true
hooks:
pre_scan_steps:
- name: pre-fail
type: bash
command: exit 1
- name: pre-after-fail
type: bash
command: echo "[HOOK-PRE] Runs after failed hook"
post_scan_steps:
- name: post-fail
type: bash
command: exit 1
- name: post-after-fail
type: bash
command: echo "[HOOK-POST] Runs after failed hook"
steps:
- name: main-step
type: bash
command: echo "[MAIN] Should still run despite hook failures"