oxidecomputer / oxidecomputer/packer-plugin-oxide

Run `make test` and `make plugin-check` in CI

Open Beginner friendly
#105 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Packer Plugin Testing
Dominant language
Go
Stars
2
Forks
1
Avg merge
3h 9m
Merged PRs (30d)
3

Description

Problem

.github/workflows/build-test.yml only runs make build, make lint, and a generated-docs diff check. No workflow runs go test at all, and the Makefile's plugin-check target (which validates the plugin binary against Packer's plugin contract via packer-sdc plugin-check) is never invoked in CI.

This means regressions like the -force panic (oxidecomputer/packer-plugin-oxide#101) can land with green CI.

Fix

  • Add make test to build-test.yml (unit tests run without credentials since acceptance tests are gated behind PACKER_ACC).
  • Add make plugin-check to build-test.yml.
  • Depends on there being unit tests worth running — see the companion unit-test issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with .github/workflows/build-test.yml and inspect the Makefile definitions for test and plugin-check. Update the workflow so both targets run alongside the existing checks, then confirm CI executes unit tests without PACKER_ACC credentials and validates the plugin binary.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
ci-cd, tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.