Commit Graph

103 Commits

Author SHA1 Message Date
Bernd Ahlers
2c98cb8ab6 Improve fork handling for PR build dispatch (#24930)
Our dispatched workflows expect the caller repo to be in our own org.
2026-02-06 09:43:42 +01:00
Bernd Ahlers
b9cb99e884 Dispatch PR build when base branch changes (#24655)
We previously didn't check for base branch changes on edit events.
2026-01-08 13:54:28 +01:00
Bernd Ahlers
299dabcea4 Configure dependabot cooldown for Maven ecosystem (#24665) 2026-01-08 13:08:01 +01:00
Bernd Ahlers
72ba51a183 Remove .github/runs-on.yml config file (#24570)
RunsOn automatically checks for a custom config file in the
".github-private" repository, so we don't need a runs-on.yml in every
repo we want to use RunsOn runners.
2025-12-16 11:42:34 +01:00
Bernd Ahlers
5ad52b145a Update GitHub Actions runner selection (#24537)
* Update GitHub Actions runner selection

- Use RunsOn runners for our Open build
- Add RunsOn config file
- Switch to ubuntu-slim for small and fast jobs

* Use runs-on.yml file in graylog-project-internal instead

* Fix typo

* Add Node.JS memory settings
2025-12-15 19:14:41 +01:00
Bernd Ahlers
592c41c456 Use vars for GHA runners (#24378) 2025-11-28 10:18:30 +01:00
Dennis Oelkers
fa0d3edc8f Using cooldown for NPM dependencies. (#24346) 2025-11-25 09:29:14 +01:00
Bernd Ahlers
00d660706b Add openrewrite group in dependabot config (#24314) 2025-11-21 11:26:52 +01:00
Linus Pahl
a830cd984f Replace react-beautiful-dnd with dnd-kit. (#24264)
* Replace `react-beautiful-dnd with `dnd-kit`.`

* Remove usage of draggable props.

* Fixing sortable list tests.

* Make list item drag handle an actual button

* Cleanup

* Simplify drag handle creation.

* Update tests

* Simplify logic

* Cleanup

* Remove not needed import

* Add missing `@dnd-kit/utilities` package.

* Add dependabot group for dnd-kit

* Cleanup

* Improve test query

* Fixing linter hint

* Fixing linter hints.
2025-11-20 16:19:48 +01:00
Matthias Oesterheld
9a4e779ad8 ignore os java client (#24285) 2025-11-20 10:53:47 +01:00
Othello Maurer
bd0b7a2ef7 Move CODEOWNERS file to .github directory (#24282)
This way it doesn't clutter the root directory of our repository.
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-location
2025-11-20 08:07:14 +01:00
Bernd Ahlers
7d0beda0f0 Refactor open build into multiple jobs (#24015) 2025-10-28 11:55:50 +01:00
Othello Maurer
0adc5dbd35 Revert "Restrict AWS SDK updates to version 2.29.x (#22451)" (#23691)
This reverts commit abc12138fc.
2025-09-19 15:58:19 +02:00
Bernd Ahlers
13b2352003 Remove concurrency from dispatch-pr-build workflow (#23626)
The PR dispatch workflow runs should not cancel each other!
When opening a PR with labels (e.g., dependabot), we receive one "opened"
and one or more "labeled" events. If we would cancel the workflow run
for "opened" when receiving a "labeled", the PR build in
graylog-project-internal would not be triggered.
2025-09-15 12:55:35 +02:00
Bernd Ahlers
a87bae8505 Fix dispatch-pr-build workflow when a PR is labeled (#23614)
Adding any other label than "e2e-tests" to a newly created PR resulted in
the dispatch not being triggered because the extra workflow runs for the
"labeled" events cancelled the running dispatch.
2025-09-12 14:01:29 +02:00
Bernd Ahlers
81665b804f Trigger e2e-tests for PRs when labeled with the "e2e-tests" label (#23521) 2025-09-04 10:39:54 +02:00
Bernd Ahlers
5dc5cc8740 Update to Java 21 (#22908)
* Remove maven.compiler.* properties from plugin archetype

They are already defined in org.graylog:graylog-parent

* Maven: update java compiler version from 17 to 21

* Update java in Github workflows

* Fix deprecated usage of URL constructor

* Fix deprecated usage of Thread#id

* Catch IllegalArgumentException when URLs are not absolute

* Remove PMD plugin for lack of java 21 support

* Update to Java 21

* Inherig compiler source/target settings from parent

* Use Java 21 in test containers

* Fix URL deprecation error for Java 21

* Setup Mockito Java Agent for surefire

See "Explicitly setting up instrumentation for inline mocking (Java 21+)"
at https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3

* Switch dependency plugin to test phase and fix argLine

* Get dependency properties in test-compile phase

* Add changelog entry and adjust UPGRADING.md

---------

Co-authored-by: Othello Maurer <othello@graylog.com>
2025-08-18 12:42:27 +02:00
Ousmane SAMBA
1f04c4b5a1 add bug Checklist, update PR documentation (#13364) 2025-07-31 13:24:59 +02:00
Bernd Ahlers
abc12138fc Restrict AWS SDK updates to version 2.29.x (#22451)
Newer versions break compatibility with S3-compatible services.

See:
- https://github.com/apache/iceberg/pull/12264
- https://github.com/Graylog2/graylog-plugin-enterprise/issues/10504
2025-04-30 13:20:56 +02:00
Bernd Ahlers
979eacbf0a Fix dependabot ignore rule for Lucene dependency (#22304) 2025-04-11 09:27:40 +02:00
Bernd Ahlers
ad5b9421f8 Adjust dependabot rule for Lucene updates (#22190)
Only ignore versions greater-equals 10, so we still get updates for version 9.

/nocl Infrastructure change
2025-04-04 13:08:53 +02:00
Dennis Oelkers
8b81e4e088 Restoring fix linter hints job by disabling pedantic. (#21899) 2025-03-06 13:30:26 +01:00
Bernd Ahlers
aff01c9c4b Dispatch main builds for stable branches (#21719)
This will give us snapshot builds for stable branches.
2025-03-04 09:24:37 +01:00
Dennis Oelkers
8d81c790bd Adding prettier for code formatting, disabling ESLint formatting rules. (#18325)
* Adding prettier + shared config.

* Removing formatting rules from ESLint.

* Removing formatting rules conflicting with prettier from ESLint preset.

* Run `prettier` in auto-fixing job as well.

* Fixing typo.

* Including `test` & `docs` directories.
2025-01-31 14:29:44 +01:00
Bernd Ahlers
e209d8ba2a Fix quoting in notify-upgrade-notes.yml workflow (#20898)
[skip ci]
2024-11-21 08:46:59 +01:00
Bernd Ahlers
47a228003b Update formatting in notify-upgrade-notes.yml workflow (#20895) 2024-11-06 13:48:06 +01:00
Bernd Ahlers
450560640c Add workflow to send a Slack notification when UPGRADING.md changes (#20884) 2024-11-05 18:25:40 +01:00
Bernd Ahlers
53604c6d62 Let dependabot ignore Lucene versions >=10 until we update to JDK 21 (#20706)
See: https://lucene.apache.org/core/corenews.html#apache-lucenetm-1000-available

Refs #20700
2024-10-16 07:54:55 +02:00
Dennis Oelkers
807abac410 Use maven wrapper for fixing linter hints. (#18565) 2024-03-12 10:45:31 +01:00
Dennis Oelkers
98ed1f0e0e Bumping github action to create/update PR. (#18557)
* Bumping github action to create/update PR.

* Using upstream action.

* Updating action in shared workflow too.
2024-03-11 13:33:07 +01:00
Linus Pahl
8200b36182 Replace preflight Icon component with common Icon component. (#18391)
* Replace preflight Icon component with common Icon component.

* Import icon styles.

* Remove `@fortawesome` dependency.
2024-02-27 10:17:45 +01:00
Marco Pfatschbacher
5d9b1534b1 Convert yet another workflow to maven wrappers (#18327) 2024-02-20 16:46:56 +01:00
Marco Pfatschbacher
ba70caf174 Enforce that the build uses the maven version that is defined in the wrapper (#18207)
* Enforce the same maven version defined for the wrapper

* change open build to use maven wrapper
2024-02-20 11:00:06 +01:00
Dennis Oelkers
6474eeec0b Do not dispatch build when PR exists. (#17717) 2023-12-18 14:37:45 +01:00
Marco Pfatschbacher
a815152192 Request a dispatched build for periodical jobs (#17657)
* Request a dispatched build for periodical jobs

Automatically created PRs do not trigger other workflows
by default.
Request a dispatched PR build manually to overcome this.

Also change the cron schedule to run these jobs only on workdays.

* Fix if condition

* fix dispatch

* Fix variable

* add token

* sync gh dispatch code and update create-pull-request deps
2023-12-13 14:55:58 +01:00
Bernd Ahlers
75b4294fec Let dependabot skip patch version updates for AWS SDKs (#17631)
The AWS SDKs receive patch updates almost every day. To reduce the
dependabot noise, only create PRs for new minor versions.
2023-12-08 10:00:37 +01:00
Marco Pfatschbacher
dafc48300f Move pull request string extraction to gpi and add autodetection for pr-deps comment change (#17319)
* Move pull request string extraction to gpi

* remove unrelated change

* Retrigger PR build if dependency string changed

* fix edited literal

* fix retrieving old event body
2023-11-17 10:00:59 +00:00
Marco Pfatschbacher
d1ce0537d0 Add a dispatch workflow for main/master pushes (#17291) 2023-11-15 09:51:31 +00:00
Marco Pfatschbacher
7fb6b199be Fix workflow dispatch by explicitly providing master branch (#17221) 2023-11-08 16:47:38 +00:00
Marco Pfatschbacher
72897fb2b6 Add changelog check workflow (#17202)
* Add changelog check workflow

* add changelog

* Revert "add changelog"

This reverts commit 095e75be6f.

* no need to retrigger the check on issue comments
2023-11-08 15:35:41 +00:00
Marco Pfatschbacher
b30cf4859a Request a dispatched PR build (#17200)
* Request a dispatched PR build

Dispatch a PR build to graylog-project-internal.
Provide all the necessary informations so that the dispatched
build can update the commit status on the calling PR.

* Simplify building PR dependencies string

Co-authored-by: Bernd Ahlers <bernd@users.noreply.github.com>

* get pr_nr directoy from the github event

* ignore grep failure on missing /jpd

* fix wrong braces

* avoid logging the entire pr body in the build output

---------

Co-authored-by: Bernd Ahlers <bernd@users.noreply.github.com>
2023-11-08 15:34:50 +00:00
Bernd Ahlers
0229da184a Increase number of open Maven PRs (#16523)
Also add a "maven" label to simplify filtering.
2023-09-19 11:56:40 +02:00
Dennis Oelkers
1b069a5b81 Adding more groups to dependabot config. (#16465) 2023-09-18 13:47:18 +02:00
Dennis Oelkers
9fa615fd74 Do not free up disk space in workflow. (#16424) 2023-09-12 10:22:15 +02:00
Bernd Ahlers
b626e4a6ab Update workflows to use new action versions (#16418)
- Update actions/checkout to v4
- Update actions/setup-java to v3
- Remove yarn caching because restoring the cache is slower than
  downloading all dependencies

Refs #16411

Co-authored-by: Dennis Oelkers <dennis@graylog.com>
2023-09-12 07:56:08 +02:00
Bernd Ahlers
f41696b765 Bump actions/checkout and actions/cache to fix cache restore issue (#16411)
* Bump actions/checkout and actions/cache to fix cache restore issue

Should fix the following issue on GitHub Actions:

  The value of "length" is out of range. It must be >= 0 && <= 2147483647.

* Bump actions/setup-java to v3

* Remove yarn cache from build workflow

Restoring the cache seems to be slower than just running "yarn install"
with an empty cache.

* Cancel running builds when a new ref gets pushed
2023-09-11 11:11:01 +02:00
Dennis Oelkers
4d9fe9a879 Using larger runner for more disk space (#16404) 2023-09-11 06:57:29 +02:00
Dennis Oelkers
fbe737c12a Grouping font awesome dependencies. (#16270) 2023-08-25 09:52:27 +02:00
Dennis Oelkers
e7a2224db3 Read metrics from stdin when posting to endpoint. (#16252) 2023-08-24 11:58:52 +02:00
Dennis Oelkers
a9e7c70dc9 Adding more code quality metrics. (#16240) 2023-08-23 15:07:57 +02:00