Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
446c2fc
docs: add spec guidelines
yohamta0 Jun 6, 2026
6b8b390
docs: add project and YAML schema specs
yohamta0 Jun 7, 2026
bc53bdf
docs: refine project and YAML validation specs
yohamta0 Jun 7, 2026
bef009d
docs: add value resolution and step reference specs
yohamta0 Jun 7, 2026
88b5611
docs: add expression functions spec
yohamta0 Jun 7, 2026
1a996f5
docs: add step outputs spec
yohamta0 Jun 7, 2026
2a8daae
docs: refine v3 spec documentation
yohamta0 Jun 7, 2026
be9cf43
docs: clarify v3 implementation coverage guidance
yohamta0 Jun 7, 2026
92b9be5
docs: require decisions for unspecified v3 behavior
yohamta0 Jun 7, 2026
1c0ad9b
docs: add step run spec
yohamta0 Jun 7, 2026
b1051fc
docs: clarify YAML document name rules
yohamta0 Jun 7, 2026
d2d8ed2
test: add v3 binary conformance test
yohamta0 Jun 7, 2026
1d364c7
refactor: simplify v3 conformance tests
yohamta0 Jun 7, 2026
65857af
test: satisfy linter for v3 conformance helper
yohamta0 Jun 7, 2026
83d1f1d
test: add license headers to v3 conformance tests
yohamta0 Jun 7, 2026
75d88ce
docs: disallow mapping-shaped v3 steps
yohamta0 Jun 8, 2026
93294ac
docs: specify v3 dependency runtime behavior
yohamta0 Jun 8, 2026
8cdd222
feat: add v3 workflow validate command
yohamta0 Jun 8, 2026
92f0767
refactor: simplify v3 workflow validation
yohamta0 Jun 8, 2026
6dd75ef
fix: tighten v3 workflow validation coverage
yohamta0 Jun 8, 2026
0e6ff2a
test: stabilize telegram notification retry test
yohamta0 Jun 8, 2026
d4b6509
refactor: remove legacy validate command
yohamta0 Jun 8, 2026
fb62b0c
test: drop removed command assertion
yohamta0 Jun 8, 2026
761167e
doc: update implementation guide
yohamta0 Jun 8, 2026
c98b633
Merge remote-tracking branch 'origin/v3' into v3-specs-001-002
yohamta0 Jun 10, 2026
afcbb89
test: stabilize notification monitor cursor test
yohamta0 Jun 10, 2026
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
60 changes: 60 additions & 0 deletions .github/workflows/blackbox-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Black-box Tests

on:
push:
branches:
- main
paths:
- ".github/workflows/blackbox-tests.yml"
- "cmd/**"
- "go.mod"
- "go.sum"
- "internal/**"
- "Makefile"
- "specs/**"
- "tests/**"
pull_request:
# Keep this workflow directly rerunnable from PR-only maintenance commits.
types:
- opened
- reopened
- synchronize
- ready_for_review
paths:
- ".github/workflows/blackbox-tests.yml"
- "cmd/**"
- "go.mod"
- "go.sum"
- "internal/**"
- "Makefile"
- "specs/**"
- "tests/**"
workflow_dispatch:

permissions:
contents: read

env:
GO_VERSION: "1.26.3"

jobs:
blackbox:
name: Black-box tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ env.GO_VERSION }}

- name: Build Dagu binary
run: make bin

- name: Run black-box tests
env:
DAGU_BIN: ${{ github.workspace }}/.local/bin/dagu
run: go test -count=1 ./tests
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func init() {
rootCmd.AddCommand(cmd.Stop())
rootCmd.AddCommand(cmd.Restart())
rootCmd.AddCommand(cmd.Dry())
rootCmd.AddCommand(cmd.Validate())
rootCmd.AddCommand(cmd.Status())
rootCmd.AddCommand(cmd.History())
rootCmd.AddCommand(cmd.Version())
Expand All @@ -55,6 +54,7 @@ func init() {
rootCmd.AddCommand(cmd.Upgrade())
rootCmd.AddCommand(cmd.License())
rootCmd.AddCommand(cmd.Schema())
rootCmd.AddCommand(cmd.Workflow())
rootCmd.AddCommand(cmd.Example())
rootCmd.AddCommand(cmd.Config())
rootCmd.AddCommand(cmd.ContextCommand())
Expand Down
7 changes: 4 additions & 3 deletions cmd/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestRootCommand(t *testing.T) {
rootCmd.AddCommand(cmd.Stop())
rootCmd.AddCommand(cmd.Restart())
rootCmd.AddCommand(cmd.Dry())
rootCmd.AddCommand(cmd.Validate())
rootCmd.AddCommand(cmd.Workflow())
rootCmd.AddCommand(cmd.Status())
rootCmd.AddCommand(cmd.Version())
rootCmd.AddCommand(cmd.Server())
Expand Down Expand Up @@ -169,7 +169,7 @@ func TestRootCommandStructure(t *testing.T) {
"stop",
"restart",
"dry",
"validate",
"workflow",
"status",
"version",
"server",
Expand All @@ -190,6 +190,7 @@ func TestRootCommandStructure(t *testing.T) {
for _, expected := range expectedCommands {
assert.True(t, commands[expected], "Command %s not found", expected)
}
assert.False(t, commands["validate"], "Command validate should be removed from the v3 root command surface")
}

func TestRootCommandMetadata(t *testing.T) {
Expand Down Expand Up @@ -243,7 +244,7 @@ operations, or remote commands.
rootCmd.AddCommand(cmd.Stop())
rootCmd.AddCommand(cmd.Restart())
rootCmd.AddCommand(cmd.Dry())
rootCmd.AddCommand(cmd.Validate())
rootCmd.AddCommand(cmd.Workflow())
rootCmd.AddCommand(cmd.Status())
rootCmd.AddCommand(cmd.Version())
rootCmd.AddCommand(cmd.Server())
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ func serviceForCommand(cmdName string) config.Service {
case "start", "restart", "retry", "dry", "exec", "agent":
return config.ServiceAgent
default:
// For all other commands (status, stop, validate, etc.), load all config
// For all other commands (status, stop, etc.), load all config.
return config.ServiceNone
}
}
Expand Down
142 changes: 0 additions & 142 deletions internal/cmd/validate.go

This file was deleted.

Loading
Loading