feat: Add integration tests for flake-checker #47
No reviewers
Labels
No labels
automerge
bug
dependencies
duplicate
enhancement
help wanted
invalid
migrations
question
vulnerability
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Reference
Personal/woodpecker-plugins!47
Loading…
Reference in a new issue
No description provided.
Delete branch "tests/integration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Review Summary
This PR adds a fish-based integration test runner that auto-discovers
plugins/<name>/integration.yamlfiles, builds Nix OCI images, loads them into Docker or Podman, and executes pipelines viawoodpecker-cli exec. The overall design is solid — auto-discovery eliminates a central registry, and the Docker/Podman dual-backend support is well thought out.The documentation (AGENTS.md, README.md) and justfile recipe are well-written and consistent. The
flake-checkerintegration test is a reasonable first example.I found two correctness issues in the Podman branch of
scripts/integration-test.fishand one minor robustness concern. The two bugs involve missing exit-status checks that would produce confusing error messages if Nix builds fail.*🤖 Review by opencode (opencode/mimo-v2.5-free) — verdict: changes
Code review findings from opencode.
@ -0,0 +64,4 @@set -l image "woodpecker-plugin-$plugin"set -l image_version (nix eval --raw "$root#$plugin.version")or fail "could not determine image version for $plugin"@ -0,0 +65,4 @@set -l image "woodpecker-plugin-$plugin"set -l image_version (nix eval --raw "$root#$plugin.version")or fail "could not determine image version for $plugin"set -l versioned_image "$image:$image_version"@ -0,0 +67,4 @@or fail "could not determine image version for $plugin"set -l versioned_image "$image:$image_version"set -l image_ref "$image:integration"printf '\n==> testing %s\n' $plugin39ee93bce7f4843394c4Code review findings from opencode.
@ -0,0 +66,4 @@set -l image_version (nix eval --raw "$root#$plugin.version")or fail "could not determine image version for $plugin"set -l versioned_image "$image:$image_version"set -l image_ref "$image:integration"@ -0,0 +69,4 @@set -l image_ref "$image:integration"printf '\n==> testing %s\n' $pluginnix build "$root#$plugin-image"@ -0,0 +70,4 @@printf '\n==> testing %s\n' $pluginnix build "$root#$plugin-image"f4843394c4f6b12b86acCode review findings from opencode.
Code review findings from opencode.