about summary refs log tree commit diff
path: root/.github/workflows/check-by-name.yml
AgeCommit message (Collapse)AuthorFilesLines
2024-05-22check-by-name: remove concurrency groupPaul Meyer1-6/+6
Due to the trigger on PR edit, every change to the PR body will trigger a re-run of the check-by-name workflow. This is needed to catch of the base branch. However, an action like ticking the checkbox of a PR will also trigger a re-run. Furthermore, due to the concurrency group, any already running check-by-name workflow will be canceled, leading to a notification sent to the PR author. To reduce the noise, remove the concurrency group. As a consequence, multiple runs will run to completion on the same PR/commit. While concurrent runs are often canceled after a few seconds, the workflow will take about a minute to complete. Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2024-05-14workflows/check-by-name: Skip instead of canceling on conflictsSilvan Mosberger1-13/+8
This avoids sending emails when there's merge conflicts. The check will appear to be green, but it doesn't matter since the PR can't be merged anyways. Unfortunately there's no better way to do this right now: https://github.com/actions/runner/issues/662
2024-05-13build(deps): bump actions/checkout from 4.1.4 to 4.1.5dependabot[bot]1-1/+1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.4 to 4.1.5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/0ad4b8fadaa221de15dcec353f45205ec38ea70b...44c2b7a8a4ea60a981eaca3cf939b5f4305c123b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29build(deps): bump actions/checkout from 4.1.3 to 4.1.4dependabot[bot]1-1/+1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.3 to 4.1.4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/1d96c772d19495a3b5c517cd2bc0cb401ea0529f...0ad4b8fadaa221de15dcec353f45205ec38ea70b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-25workflows: add concurrency group to check-by-name workflow (again)Will Bush1-0/+7
This is the second attempt to add a concurrency group to the check-by-name in hopes that it will reduce unnecessary load on the CI system (wasted electricity) despite free cost. first attempt: https://github.com/NixOS/nixpkgs/pull/306072 revert: https://github.com/NixOS/nixpkgs/pull/306430
2024-04-24workflows/check-by-name.yml: Increase timeout for resolving merge commitPeder Bergebakken Sundt1-1/+1
2024-04-23Revert "workflows: add concurrency group to check-by-name workflow"Will Bush1-7/+0
This reverts commit 75600cde6bb25b0e04d2a10d0fb9aaf975e1da81.
2024-04-22workflows: add concurrency group to check-by-name workflowWill Bush1-0/+7
On event that triggers the workflow for the matching concurrency group, any previous runs of the workflow in the same group will be cancelled.
2024-04-22build(deps): bump actions/checkout from 4.1.1 to 4.1.3dependabot[bot]1-1/+1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.1...1d96c772d19495a3b5c517cd2bc0cb401ea0529f) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-21workflows: force CLI color when running nixpkgs-check-by-nameWill Bush1-0/+4
Currently something about the environment in which GH action is running the colored library is not using ANSI colors. I have done some testing in this repo: https://github.com/willbush/throwaway-miette-gh-action-test/actions/runs/8777029939/job/24081383467 And I'm fairly certain env var `CLICOLOR_FORCE: 1` should fix colors.
2024-03-26workflows/check-by-name.yml: Switch to new separate repoSilvan Mosberger1-10/+10
The nixpkgs-check-by-name tooling is [being moved](https://github.com/NixOS/nixpkgs/issues/286559#issuecomment-2000466124) to a [separate repo](https://github.com/NixOS/nixpkgs-check-by-name). This commit updates Nixpkgs CI to use it instead of the tree inside Nixpkgs No changes have been made to the tooling locally since it was moved: - [Exported history](https://github.com/NixOS/nixpkgs/commits/55bf02190ee57fcf83490fd7b6bf7834e28c9c86/pkgs/test/nixpkgs-check-by-name) - [Imported history](https://github.com/NixOS/nixpkgs-check-by-name/commits/d579e1821d56c79fd90dab34b991cc7bdab7a5c6/)
2024-03-18build(deps): bump actions/checkout from 4.1.1 to 4.1.2dependabot[bot]1-1/+1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/b4ffde65f46336ab88eb53be808477a3936bae11...9bb56186c3b09b4f86b1c65136769dd318469633) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-03-11build(deps): bump cachix/install-nix-action from 25 to 26dependabot[bot]1-1/+1
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 25 to 26. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/6004951b182f8860210c8d6f0d808ec5b1a33d28...8887e596b4ee1134dae06b98d573bd674693f47c) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2024-01-21workflows/check-by-name: Trigger on base branch changesSilvan Mosberger1-1/+9
Not doing this can cause CI to report a misleading result when it wasn't retriggered after a base branch change.
2024-01-18build(deps): bump cachix/install-nix-action from 24 to 25 (#281120)dependabot[bot]1-1/+1
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 24 to 25. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/7ac1ec25491415c381d9b62f0657c7a028df52a7...6004951b182f8860210c8d6f0d808ec5b1a33d28) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17check-by-name: Update contributor docsSilvan Mosberger1-2/+3
Now that the tooling is pinned instead of being fetched indirectly from the channel, the docs need some updating
2024-01-17check-by-name: Fix CISilvan Mosberger1-1/+1
Wasn't detected in https://github.com/NixOS/nixpkgs/pull/281407
2024-01-17check-by-name/run-local.sh: Make it usable for non-CI platformsSilvan Mosberger1-2/+6
Since https://github.com/NixOS/nixpkgs/pull/281374, the nixpkgs-check-by-name tooling is pinned to a specific /nix/store path to avoid having to evaluate Nixpkgs in CI. The same path is used for local runs, but that doesn't actually work when you're trying to run it on a platform different from CI. This commit makes it work by being clearer about platforms and making local runs check out the correct Nixpkgs to evaluate the tool from.
2024-01-16workflows/check-by-name: Pin nixpkgs-check-by-name toolSilvan Mosberger1-1/+1
Before this, the tool for CI would update when nixos-unstable updated, which is kind of terrible because you don't know when it happens, and it might break master. In fact, the tooling _right now_ has a serious bug and shouldn't be used! This PR addresses this by _pinning_ the tooling in Nixpkgs itself. Updating the tooling now requires two PRs: - The first PR to update the tooling source - (wait for Hydra to build and publish it in nixos-unstable) - The second PR to update the pinned tooling In turn you know exactly when the changes are going to take effect. This change however has additional benefits: - It makes CI more reproducible, because it doesn't depend on the state of nixos-unstable anymore - Updates to the tooling can be tested with the workflow itself, because PRs that update the pinned tool will be tested on the updated version - CI gets a sizable speed boost, because there's no need to download and evaluate a channel anymore - It makes it more realistic to move the source of the tool into a separate repository - It removes the brittle branch-specific logic that was previously needed to ensure that release branches use their own version of the tooling.
2023-12-22Merge pull request #274591 from tweag/by-name-reproducibleSilvan Mosberger1-115/+16
`pkgs/by-name`: Enable gradual migration checks and add `run-local.sh`
2023-12-22maintainers/scripts/check-by-name.sh: Introduce symlink aliasSilvan Mosberger1-1/+1
2023-12-20check-by-name: Pass --base in CI and local running scriptSilvan Mosberger1-1/+1
This enables the ratchet checks for pkgs/by-name, allowing gradual migrations!
2023-12-20workflows/check-by-name: Slim down and prepare for --baseSilvan Mosberger1-81/+11
Now that we have a script to run the check locally, there's no real need to output the information to reproduce anymore, which allows cleaning up the CI workflow. Furthermore, this prepares the CI workflow to be passed `--base`, as introduced recently.
2023-12-19workflows/check-by-name: Why the mergeability check needs to be inlineSilvan Mosberger1-0/+3
2023-12-19workflows/check-by-name: Move tool fetching into scriptSilvan Mosberger1-34/+2
This part of the CI can also be reproduced locally
2023-12-15workflows/check-by-name: Cancel on merge conflictsSilvan Mosberger1-3/+11
2023-12-05build(deps): bump cachix/install-nix-action from 23 to 24 (#272011)dependabot[bot]1-1/+1
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 24. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011...7ac1ec25491415c381d9b62f0657c7a028df52a7) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01Merge pull request #270496 from tweag/by-name-backoffSilvan Mosberger1-4/+21
workflows/check-by-name: Limited and exponential retries
2023-11-29ci: pin third party actionsVictor Engmark1-3/+2
For reproducibility. Command: ```shell for file in .github/workflows/*.y*ml; do npx pin-github-action --comment=' {ref}' "$file" done ``` Then had to manually replace all the versions with accurate specifiers (for example, "v4" → "v4.1.1" in case of `actions/checkout`).
2023-11-27workflows/check-by-name: Set 10 minute timeoutSilvan Mosberger1-0/+3
Co-Authored-By: Cole Helbling <cole.e.helbling@outlook.com>
2023-11-27workflows/check-by-name: Limited and exponential retriesSilvan Mosberger1-4/+18
We've had a recent PR CI mass failure event, ultimately caused by the mergeability check GitHub API not returning a result. But due to the `pkgs/by-name` check workflow not backing off appropriately between retries, it pummeled the API, resulting in exceeding the API rate limit: https://github.com/NixOS/nixpkgs/actions/runs/7010089143/job/19069845070 This commit fixes that for the future by implementing a retry strategy limited to three retries, with exponential backoff
2023-11-22workflows/check-by-name: If channel no existent, fall back to nixos-unstableSilvan Mosberger1-3/+9
2023-10-18workflows/check-by-name: Improved mergeability checkSilvan Mosberger1-6/+26
2023-10-17workflows/check-by-name: print failed command outputArtturin1-1/+3
2023-10-06Merge pull request #259074 from tweag/detect-merge-conflictsSilvan Mosberger1-3/+11
workflows/check-by-name: Better error for merge conflicts
2023-10-05workflows/check-by-name: Better error for merge conflictsSilvan Mosberger1-3/+11
2023-10-04workflows/check-by-name: Add a missing colonSilvan Mosberger1-1/+1
2023-10-02workflows/check-by-name: Better error when base branch also failsSilvan Mosberger1-1/+90
Previously, even if the check also failed on the base branch, it looked like the PR introduced the failure. We can easily have a better error message for such cases. Meanwhile this also paves the road for something like https://github.com/NixOS/nixpkgs/issues/256788
2023-09-11workflows/check-by-name: Make runnable without approvalSilvan Mosberger1-2/+7
Co-Authored-By: zowoq <59103226+zowoq@users.noreply.github.com>
2023-09-11build(deps): bump actions/checkout from 3 to 4dependabot[bot]1-1/+1
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05build(deps): bump cachix/install-nix-action from 22 to 23dependabot[bot]1-1/+1
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 22 to 23. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05pkgs/by-name: IntroduceSilvan Mosberger1-0/+49
This introduces the `pkgs/by-name` directory as proposed by RFC 140. Included are: - The implementation to add packages defined in that directory to the top-level package scope - Contributer documentation on how to add packages to it - A GitHub Actions workflow to check the structure of it on all PRs