feat: Add integration tests for flake-checker #47
No reviewers
Labels
No labels
plugin/bun2nix
plugin/cargo-build
plugin/cargo-clippy
plugin/cargo-nextest
plugin/cargo-publish
plugin/cargo-verify
plugin/command-suite
plugin/flake-checker
plugin/flake-lock-report
plugin/forgejo-file-sync
plugin/forgejo-opencode-review
plugin/forgejo-pr-merge
plugin/forgejo-release
plugin/new
plugin/nix-build
plugin/nixidy-cli
plugin/nixidy-switch
plugin/nix-unit
plugin/ntfy
plugin/oci-build-push
plugin/oci-copy
plugin/openapi-to-rust
plugin/path-filter
plugin/renovate-config-check
plugin/woodpecker-lint
type
feature
type
task
automerge
bug
dependencies
duplicate
help wanted
invalid
lang
rust
migrations
opencode
question
security
type
documentation
type
enhancement
type
maintenance
type
refactor
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.