[ci] Fix integration tests so tests.yaml passes on every push #12
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_lib_rhai#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Symptom
.forgejo/workflows/tests.yamlhas been failing on every push todevelopmentfor many commits (run #36 latest, several before that). This makes the repo's CI permanently red even when lint and the actual library code are fine.Root cause (as best understood — needs CI log inspection)
make testrunsbash ci_rhai.sh --category tests --verbosewhich executes the Rhai integration test scripts undercrates/*/tests/rhai/. One of them fails locally too on a stock dev box:The 15 skipped are auto-skipped because their backing services (postgres, hero_proc, etc.) aren't running. The 1 failed needs a working podman/container runtime.
The CI workflow installs a heavy stack (
btrfs-progs,containerd,nerdctl,buildkit,cloud-hypervisor,iperf3,redis,postgresql) to support these tests, but the runner image apparently still can't get the podman test green.What needs to happen
tests.yamlis failing — is it apt-install, the storage config,containerdstartup, or the actualmake teststep?make testreaches the podman test and fails: investigate what the runner's container setup needs (storage driver? userns? specific kernel cap?)01_container_operations.rhaito mock the container runtime, OR add an explicitPODMAN=availableenv-gated skip with a comment.Acceptance criteria
development→tests.yamlrun completes with statussuccessdevelopment→tests.yamlrun completes with statussuccessRelated
Why this issue exists
During the home#188 CI sweep, an earlier draft of PR #11 restricted
tests.yamltriggers toworkflow_dispatch+ tags only — bypassing the failure to make dev push CI "green". That was rolled back as not honest enough: a green badge that doesn't run the tests on every push misrepresents what's actually being checked.The repo's overall CI on
developmentwill stay red on thetests.yamlworkflow until this is fixed. Lint is green; tests are TODO. This issue is the entry point for whoever picks up the integration-test-infrastructure work.Signed-off-by: mik-tf