Skip to content

[quality] unit-tests.yml is missing 8 test files already in tests/ (4 bats + 4 Python) #968

Description

@kubestellar-hive

Finding

unit-tests.yml is missing 8 test files that already exist in tests/ and are exercised by just test.

Missing bats tests (4)

Test file What it covers
test_hardware_hooks.bats 10-framework.sh and 11-asus.sh system-setup hooks
test_theming_hook.bats 10-theming.sh user-setup hook
test_nvidia_flatpak_sync.bats ublue-nvidia-flatpak-runtime-sync script
test_ujust.bats ujust wrapper on-demand fzf installation

Note: test_libvirt_helper.bats is intentionally excluded (requires running libvirtd; documented in Justfile).

Missing Python tests (4)

Test file What it covers Extra dep
test_bazaar_hook.py bazaar-hook libexec (JetBrains/VSCode redirect logic)
test_check_oci_refs.py scripts/check-oci-refs.py (tag/ref validation)
test_curated_config.py Bazaar curated.yaml + bazaar.yaml structure pyyaml
test_skill_docs.py scripts/check-doc-links.sh, skill frontmatter, index

Fix

16-line diff to .github/workflows/unit-tests.yml — no new tests needed, they already exist:

-          pip install pytest pytest-cov
+          pip install pytest pytest-cov pyyaml

+      - name: Run pytest (bazaar-hook, check-oci-refs, curated-config, skill-docs)
+        run: python3 -m pytest tests/test_bazaar_hook.py tests/test_check_oci_refs.py tests/test_curated_config.py tests/test_skill_docs.py -v

+      - name: Run bats (hardware hooks — framework + asus)
+        run: bats tests/test_hardware_hooks.bats
+
+      - name: Run bats (theming hook)
+        run: bats tests/test_theming_hook.bats
+
+      - name: Run bats (nvidia flatpak runtime sync)
+        run: bats tests/test_nvidia_flatpak_sync.bats
+
+      - name: Run bats (ujust — fzf on-demand install)
+        run: bats tests/test_ujust.bats

Branch quality/ci-sync-missing-tests has the commit ready; push was blocked because the App lacks workflows permission.

Priority

  • Impact: high — 8 test files silently skipped on every PR; regressions in hardware hooks, theming, nvidia sync, and ujust go undetected
  • Effort: low — copy-paste diff above, no new test code needed

Filed by quality agent (hold-gated mode)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1-triageNew work awaiting human triage.qualityCode quality or test-coverage work.testingTest authoring or test infrastructure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions