Commit graph

33 commits

Author SHA1 Message Date
Christian Hopps b9b608792d tests: ci: add ARM to docker based CI test
Signed-off-by: Christian Hopps <chopps@labn.net>
2025-01-18 01:59:47 +00:00
Christian Hopps e973c1dd48 ci: do apt-get update before installing required modules
- Use `uname -r` to also install specific module versions since
  with github runners the running kernel can become out-dated with
  the deployed packages.

Signed-off-by: Christian Hopps <chopps@labn.net>
2024-06-08 17:29:19 -04:00
Christian Hopps 7b76c8f67b ci: only run conflict check on pull-requests
This change will stop this action from running on forked repos.
Previously whenever one pushed a change to one's development branch the
action would "run but skip" which still generated an email notifications
and thus was very annoying. :)

Signed-off-by: Christian Hopps <chopps@labn.net>
2024-06-02 10:14:34 -04:00
Christian Hopps 15a33df79c github: add docker build and test github action
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-05-31 18:54:01 -04:00
Donatas Abraitis c733a38d84 github: Mark the build as failed if 'do not merge' label is set
This prevents us from merging PRs marked as 'do not merge'.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-12-22 10:29:52 +02:00
Donatas Abraitis c9f073d1de github: Add rebase label on PR if it's > 50 commits behind
The idea is to catch some PRs and rerun them in CI to avoid merging PRs that
are based on the stale base branch and causes issues afterwards.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-05-09 09:37:23 +03:00
Donald Sharp 9a28372044 git: Workflow grammar fixup
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-04-14 09:55:28 -04:00
Donatas Abraitis b3b0679cb0 tools: Use specific syntax for conditions for Github actions
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-13 09:52:13 +02:00
Donatas Abraitis 754a054059 tools: Do not run commit linter for other branches than master
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-05 21:15:18 +02:00
Donatas Abraitis 8b40b2f655 tools: Add help url when commitlint fails
Just point to our workflow documentation.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-03 10:05:53 +02:00
Donatas Abraitis 463e8d5d0a tools: Replace pull_request_target to pull_request for commitlint action
Tested locally, it works. So it seems that, pull_request_target is not
working properly, let's check.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 23:16:41 +02:00
Donatas Abraitis 8428482abb tools: Fetch more commits for commitlint to validate the commit
Note: It's necessary that you specify the fetch-depth argument to
actions/checkout@v2 step. By default they fetch only latest commit of the
branch, but we need more commits since we validate a range of commit messages.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 22:03:42 +02:00
Donatas Abraitis 0a18c855fd tools: Revalidate commits when PR is updated
Trigger GH action also if labeled, unlabeled.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 21:55:31 +02:00
Donatas Abraitis 5e66e742d7 tools: Add build as a valid prefix for commit messages
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 21:41:20 +02:00
Donatas Abraitis f05a0c1dde tools: Add commit linter
Run under Github Actions, and restrict commit messages, structure, with, etc.

Enforce using only our specified prefixes for commit messages. It reduces the
work release managers do when _crafting_ release notes.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-31 13:25:25 +02:00
Donatas Abraitis a228215b00 github: Prevent merging (fail CI) if 'freeze' label exists for PR
Mostly useful duging the freeze period to warn the maintainers from merging
unwanted PRs.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-25 10:43:55 +02:00
Donatas Abraitis 4179369cd0 github: Drop temporary docker-stable github action
Until we have a consensus how we ship stable/X.Y docker images.

For now we build images based on release tags, not based on HEAD of the branch.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-11 21:50:22 +02:00
Donatas Abraitis be402a42e0 github: Use static quay.io repository for docker images
Not dynamic from username, because tags do not allow using "+" character.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-11 21:34:46 +02:00
Donatas Abraitis ed3a0c3bfb github: Use quay.io as docker registry for github action generated images
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-09 21:33:39 +02:00
Donatas Abraitis e535be623a github: Prevent running actions on forked repositories
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-12-08 22:54:28 +02:00
Donatas Abraitis 5772fdff79 github: Build master daily docker images and for stable/X.Y on push
frrouting/frr:master will be generated every day
frrouting/frr:vX.Y.Z will be generated every time a new push is done on the
stable/X.Y branch.

Takes up to 3 hours to build and publish images.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-12-04 21:25:22 +02:00
Donald Sharp 398c407399
Merge pull request #12363 from opensourcerouting/feature/add_size_label_github
github: Create size label for every PR
2022-11-28 07:48:52 -05:00
Donatas Abraitis 0709fdb6d8 github: Create size label for every PR
Examples: size/XS, size/S, size/M, size/L, ...

Inspired by kubernetes/kubernetes.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-11-21 22:22:27 +02:00
Donatas Abraitis 3160e84254 github: Use action-regex-match action for adding backport label
Seems that labeler does not work properly with comments, tested on my own
local repository.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-11-21 21:06:40 +02:00
Donatas Abraitis d188e34fb5 github: Add enable-versioned-regex expicitly in labeler.yml
Error: Error: Input required and not supplied: enable-versioned-regex
Error: Input required and not supplied: enable-versioned-regex

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-11-21 12:04:57 +02:00
Donatas Abraitis bd22ae9ed4 github: Add backport label if pull request has Mergifyio backport comment
Useful to filter out which PRs should be backported yet.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-11-18 09:10:45 +02:00
Donatas Abraitis 1cc861a9c3 github: Add conflicts/no_conflicts labels for PRs
Just to quickly identify which PRs needs attention on rebasing.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-10-13 08:18:59 +03:00
Donatas Abraitis c909a9fa20 github: Set strict permissions for stale actions for Github
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-06-27 09:54:16 +03:00
Donatas Abraitis 0c687ea4c1 github: Autoclose stale issues/PRs that are stare longer than 180 days
Set autoclose label after 180 days (no activity) and close (really) two weeks
later.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-06-16 21:54:55 +03:00
Donatas Abraitis 7f69ced7bf github: Mark issues with no activity in 180 days as stale
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-06-10 10:03:05 +03:00
Donatas Abraitis 4588d0cb49 github: Use pull_request_target as a target
And drop checkout action - not needed.

Due to the dangers inherent to automatic processing of PRs, GitHub’s standard
pull_request workflow trigger by default prevents write permissions and
secrets access to the target repository. However, in some scenarios such
access is needed to properly process the PR.

To this end the pull_request_target workflow trigger was introduced.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-25 19:07:40 +03:00
Donatas Abraitis e13d4745ef github: Add permissions for labeler action
Should solve this:

```
Error: HttpError: Resource not accessible by integration
Error: Resource not accessible by integration
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-25 18:25:42 +03:00
Donatas Abraitis 3da33b248a github: Add base branch label to every PR to distinguish easily
Faster notice and filter backports by labels per release.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-23 16:58:07 +03:00