about summary refs log tree commit diff
path: root/pkgs/test
diff options
context:
space:
mode:
authorSilvan Mosberger <silvan.mosberger@tweag.io>2023-12-19 23:13:11 +0100
committerSilvan Mosberger <silvan.mosberger@tweag.io>2023-12-20 17:38:05 +0100
commit9e03178865ea627413005b3fe82d3b287209d12f (patch)
tree46e4e59498bfaf6c2e6741607bee9ae1137edec6 /pkgs/test
parent92238ac52d13f6af1158eb8ae0b1132c79cdef33 (diff)
downloadnixlib-9e03178865ea627413005b3fe82d3b287209d12f.tar
nixlib-9e03178865ea627413005b3fe82d3b287209d12f.tar.gz
nixlib-9e03178865ea627413005b3fe82d3b287209d12f.tar.bz2
nixlib-9e03178865ea627413005b3fe82d3b287209d12f.tar.lz
nixlib-9e03178865ea627413005b3fe82d3b287209d12f.tar.xz
nixlib-9e03178865ea627413005b3fe82d3b287209d12f.tar.zst
nixlib-9e03178865ea627413005b3fe82d3b287209d12f.zip
tests.nixpkgs-check-by-name: Add documentation for scripts
Diffstat (limited to 'pkgs/test')
-rw-r--r--pkgs/test/nixpkgs-check-by-name/scripts/README.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/test/nixpkgs-check-by-name/scripts/README.md b/pkgs/test/nixpkgs-check-by-name/scripts/README.md
new file mode 100644
index 000000000000..41b3012b7d95
--- /dev/null
+++ b/pkgs/test/nixpkgs-check-by-name/scripts/README.md
@@ -0,0 +1,26 @@
+# 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](../../../../.github/workflows/check-by-name.yml).
+
+## `./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:
+- `BASE_BRANCH`: The base branch to use, e.g. master or release-23.11
+- `REPOSITORY`: The repository to fetch the base branch from, defaults to https://github.com/NixOS/nixpkgs.git
+
+## `./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`](#run-local-sh-base-branch-repository) 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