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.
* 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
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.
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.
* 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>
* 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
* Add changelog check workflow
* add changelog
* Revert "add changelog"
This reverts commit 095e75be6f.
* no need to retrigger the check on issue comments
* 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>
- 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>
* 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