Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nixos tests #299

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Commits on Jun 30, 2024

  1. test(nix): add basic functionality testing infra

    Use nixos-test scaffolding to spawn VMs and run any scripts in
    `checks/*.sh` as tests inside of the VM. This should lessen the risk of
    any obvious breakage in the CI but needs more and better tests to cover
    more commands.
    
    Signed-off-by: Thomas Mühlbacher <[email protected]>
    tmuehlbacher committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    3e50eea View commit details
    Browse the repository at this point in the history
  2. build(nix): filter src to reduce useless rebuilds

    This in particular speeds up the dev/run/debug cycle for writing more
    tests. Without this, the actual bcachefs-tools package will be rebuilt
    by Nix all the time because of changes to files that are tracked by git.
    Even when it's changes in parts that aren't relevant to that package
    build such as `checks/*`.
    
    Signed-off-by: Thomas Mühlbacher <[email protected]>
    tmuehlbacher committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    922ba24 View commit details
    Browse the repository at this point in the history
  3. Revert "ci: run nix build in workflow"

    This reverts commit 88aa61e.
    
    No longer required because the added nixos-tests check already causes
    the package to be built now.
    
    Signed-off-by: Thomas Mühlbacher <[email protected]>
    tmuehlbacher committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    6377d93 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    99b02a8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9d00095 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    31d031b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    77e90e7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    65f1c3f View commit details
    Browse the repository at this point in the history
  9. test: add failing sub-test w/ dev added post mkfs

    The second mount works if the device is already part of the `bcachefs
    format` but fails if it's added afterwards. In particular the `blkid`
    output is interesting.
    tmuehlbacher committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    0e0be9b View commit details
    Browse the repository at this point in the history