depot/third_party/nixpkgs/pkgs/test/nixpkgs-check-by-name/scripts/README.md
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

1.2 KiB

CI-related Scripts

This directory contains scripts used and related to the CI running the pkgs/by-name checks in Nixpkgs. See also the CI GitHub Action.

./run-local.sh BASE_BRANCH [REPOSITORY]

Runs the pkgs/by-name check on the HEAD commit, closely matching what CI does.

Note that this can't do exactly the same as CI, because CI needs to rely on GitHub's server-side Git history to compute the mergeability of PRs before the check can be started. In turn when running locally, we don't want to have to push commits to test them, and we can also rely on the local Git history to do the mergeability check.

Arguments:

./fetch-tool.sh BASE_BRANCH OUTPUT_PATH

Fetches the Hydra-prebuilt nixpkgs-check-by-name to use from the NixOS channel corresponding to the given base branch.

This script is used both by ./run-local.sh and CI.

Arguments:

  • BASE_BRANCH: The base branch to use, e.g. master or release-23.11
  • OUTPUT_PATH: The output symlink path for the tool