You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2026/07/31 20:31:58 UTC
(logging-flume) branch trunk updated (ae6c7db2 -> 7d95757b)
This is an automated email from the ASF dual-hosted git repository.
ppkarwasz pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/logging-flume.git
from ae6c7db2 Fix the file channel and the test suite on Windows (#478)
new 7e82cd28 Build with the `logging-parent` reusable workflows (#470)
new 7d95757b Automate dependency updates with Dependabot (#475)
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/dependabot.yaml | 77 ++++++++++++++++++
.../workflows/analyze-dependabot.yaml | 39 ++++------
.github/workflows/build.yaml | 90 ++++++++++++++++++++++
.github/workflows/build.yml | 77 ------------------
.github/workflows/process-dependabot.yaml | 48 ++++++++++++
pom.xml | 3 -
.../.2.x.x/.release-notes.adoc.ftl} | 13 ++--
.../changelog/.changelog.adoc.ftl | 26 +++----
src/changelog/.index.adoc.ftl | 42 ++++++++++
9 files changed, 291 insertions(+), 124 deletions(-)
create mode 100644 .github/dependabot.yaml
copy antora-playbook.yaml => .github/workflows/analyze-dependabot.yaml (55%)
create mode 100644 .github/workflows/build.yaml
delete mode 100644 .github/workflows/build.yml
create mode 100644 .github/workflows/process-dependabot.yaml
copy src/{site/antora/modules/ROOT/pages/flume-spring-boot/releases/index.adoc => changelog/.2.x.x/.release-notes.adoc.ftl} (73%)
copy flume-ng-channels/flume-file-channel/src/test/resources/log4j2.xml => src/changelog/.changelog.adoc.ftl (64%)
create mode 100644 src/changelog/.index.adoc.ftl
(logging-flume) 01/02: Build with the `logging-parent` reusable workflows (#470)
Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ppkarwasz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/logging-flume.git
commit 7e82cd289c65f933ecae3315cf9817a66a711188
Author: Piotr P. Karwasz <pk...@apache.org>
AuthorDate: Fri Jul 31 22:31:46 2026 +0200
Build with the `logging-parent` reusable workflows (#470)
* Build with the `logging-parent` reusable workflows
Flume no longer maintains its own checkout, JDK and Maven steps, and gains
snapshot/release deployment and reproducibility verification in exchange.
Assisted-By: Claude Fable 5 <no...@anthropic.com>
* Skip Taildir tests on non-POSIX file systems
TaildirSource tracks files by inode, so its tests cannot pass when the
default file system lacks a `unix` attribute view (e.g. on Windows).
Document that requirement in the user guide.
Assisted-By: Claude Fable 5 <no...@anthropic.com>
* Formatting
* Fix race condition in TestSyslogTcpSource.testSSLMessages
The test read from the channel immediately after closing the client
socket, but the source delivers events asynchronously, so the take
could return null on slow machines (first seen on Windows CI).
Wait for the source counter with Awaitility and close the TLS socket
gracefully, flushing before close.
Assisted-By: Claude Fable 5 <no...@anthropic.com>
* Keep the client socket open until the syslog event is committed
The Windows CI logs show the TLS handshake succeeding and the
connection aborting one millisecond later: the client never reads the
TLS 1.3 session tickets sent by the server, so close() aborts the
connection with a TCP RST, which on Windows discards the syslog record
before the server reads it.
Assisted-By: Claude Fable 5 <no...@anthropic.com>
* Reflow comment
---
.github/workflows/build.yaml | 90 ++++++++++++++++++++++++++++++++++++++++++++
.github/workflows/build.yml | 77 -------------------------------------
2 files changed, 90 insertions(+), 77 deletions(-)
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
new file mode 100644
index 00000000..a60a31f8
--- /dev/null
+++ b/.github/workflows/build.yaml
@@ -0,0 +1,90 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: build
+
+on:
+ push:
+ branches:
+ - "trunk"
+ - "release/*"
+ pull_request:
+
+# Disable all permissions by defaults:
+# Permissions are enabled on a per-job basis.
+permissions: { }
+
+concurrency:
+ # One group per PR, or per ref for branch pushes.
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ # Cancel in-progress runs for PRs only, so release branch builds always complete.
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+jobs:
+
+ build:
+ uses: apache/logging-parent/.github/workflows/build-reusable.yaml@gha/v0
+ with:
+ java-version: 17
+ site-enabled: true
+ reproducibility-check-enabled: false
+
+ deploy-snapshot:
+ needs: build
+ if: github.repository == 'apache/logging-flume' && github.ref_name == 'trunk'
+ uses: apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@gha/v0
+ # Secrets for deployments
+ secrets:
+ NEXUS_USERNAME: ${{ secrets.LOGGING_STAGE_DEPLOYER_USER }}
+ NEXUS_PASSWORD: ${{ secrets.LOGGING_STAGE_DEPLOYER_PW }}
+ with:
+ java-version: 17
+
+ deploy-release:
+ needs: build
+ if: github.repository == 'apache/logging-flume' && startsWith(github.ref_name, 'release/')
+ uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@gha/v0
+ # Secrets for deployments
+ secrets:
+ GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
+ NEXUS_USERNAME: ${{ secrets.LOGGING_STAGE_DEPLOYER_USER }}
+ NEXUS_PASSWORD: ${{ secrets.LOGGING_STAGE_DEPLOYER_PW }}
+ SVN_USERNAME: ${{ secrets.LOGGING_SVN_DEV_USERNAME }}
+ SVN_PASSWORD: ${{ secrets.LOGGING_SVN_DEV_PASSWORD }}
+ # Write permissions to allow the Maven `revision` property update, changelog release, etc.
+ permissions:
+ contents: write
+ with:
+ java-version: 17
+ project-id: flume
+
+ verify-reproducibility-snapshot:
+ needs: deploy-snapshot
+ uses: apache/logging-parent/.github/workflows/verify-reproducibility-reusable.yaml@gha/v0
+ with:
+ java-version: 17
+ # Compare against the repository `deploy-snapshot` uploaded as a run artifact, so that
+ # the check does not depend on the snapshot having propagated to the Nexus group repository.
+ reference-artifact-name: ${{ needs.deploy-snapshot.outputs.repository-artifact-name }}
+
+ verify-reproducibility-release:
+ needs: deploy-release
+ uses: apache/logging-parent/.github/workflows/verify-reproducibility-reusable.yaml@gha/v0
+ with:
+ java-version: 17
+ # `deploy-release` publishes no run artifact, so the staging repository is the reference.
+ nexus-url: ${{ needs.deploy-release.outputs.nexus-url }}
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
deleted file mode 100644
index 49f910d0..00000000
--- a/.github/workflows/build.yml
+++ /dev/null
@@ -1,77 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to you under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-name: build
-
-on:
- push:
- branches:
- - trunk
- - build-dev
- pull_request:
-
-# Remove all permissions by default. They will be added at a job level.
-permissions: {}
-
-concurrency:
- # One group per PR, or per ref for branch pushes.
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
- # Cancel in-progress runs for PRs only, so release branch builds always complete.
- cancel-in-progress: ${{ github.event_name == 'pull_request' }}
-
-jobs:
- build:
-
- runs-on: ${{ matrix.os }}
- name: build (${{ matrix.os }})
-
- strategy:
- # Don't cancel the remaining OS builds when one fails
- fail-fast: false
- matrix:
- os: [ ubuntu-latest, windows-latest ]
- java-distribution: [ temurin ]
- #
- # There is no protobuf 2.x version for `aarch64`.
- # Reenable the macOS build after the dependency has been upgraded.
- #
- #include:
- # # There is no Temurin JDK 8 for ARM
- # - os: macos-latest
- # java-distribution: zulu
-
- steps:
-
- - name: Checkout repository
- uses: actions/checkout@v6
-
- # JDK 8 is needed for the build, and it is the primary bytecode target.
- - name: Setup JDK 17
- uses: actions/setup-java@v5
- with:
- distribution: ${{ matrix.java-distribution }}
- java-version: 17
- cache: maven
-
- - name: Build with Maven
- timeout-minutes: 120
- shell: bash
- run: |
- ./mvnw clean verify -DredirectTestOutput=true \
- --show-version --batch-mode --errors --no-transfer-progress \
- -DtrimStackTrace=false \
- -Dsurefire.rerunFailingTestsCount=2
(logging-flume) 02/02: Automate dependency updates with Dependabot (#475)
Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ppkarwasz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/logging-flume.git
commit 7d95757b50a1a74a1327bb1c57f8745c2fc8bc7a
Author: Piotr P. Karwasz <pk...@apache.org>
AuthorDate: Fri Jul 31 22:31:47 2026 +0200
Automate dependency updates with Dependabot (#475)
Copy the Dependabot setup from Log4j: version updates target `trunk`
monthly, and the `logging-parent` reusable workflows generate a
changelog entry for each Dependabot PR.
The changelog entries require a `src/changelog` directory, so seed it
with templates and drop `log4j.changelog.skip`, whose rationale (no
`src/changelog` directory) no longer holds.
Assisted-By: Claude Fable 5 <no...@anthropic.com>
---
.github/dependabot.yaml | 77 ++++++++++++++++++++++++++++
.github/workflows/analyze-dependabot.yaml | 37 +++++++++++++
.github/workflows/process-dependabot.yaml | 48 +++++++++++++++++
pom.xml | 3 --
src/changelog/.2.x.x/.release-notes.adoc.ftl | 25 +++++++++
src/changelog/.changelog.adoc.ftl | 27 ++++++++++
src/changelog/.index.adoc.ftl | 42 +++++++++++++++
7 files changed, 256 insertions(+), 3 deletions(-)
diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml
new file mode 100644
index 00000000..63cd2c3d
--- /dev/null
+++ b/.github/dependabot.yaml
@@ -0,0 +1,77 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+#
+# ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ ██
+# ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ ██
+# ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██
+# ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
+# ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ ██
+#
+# `dependabot.yaml` must be stored in the `.github` directory of the default branch[1].
+#
+# 1. Make all your changes to this file!
+# Don't create another `dependabot.yaml` – it will simply be discarded.
+#
+# 2. Always associate your entries to a branch!
+# For instance, use `target-branch` in `updates` entries
+#
+# [1] https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
+#
+
+version: 2
+
+# Fix the Maven Central to the ASF repository to work around: https://github.com/dependabot/dependabot-core/issues/8329
+registries:
+ maven-central:
+ type: maven-repository
+ url: https://repo.maven.apache.org/maven2
+
+updates:
+
+ - package-ecosystem: maven
+ directory: "/"
+ schedule:
+ interval: "monthly"
+ cooldown:
+ default-days: 7
+ groups:
+ # Groups all non-major updates in a single PR.
+ # No group matches major updates, so each one gets a separate PR.
+ maven-minor-updates:
+ update-types: [ "minor", "patch" ]
+ target-branch: "trunk"
+ registries:
+ - maven-central
+
+ - package-ecosystem: github-actions
+ directory: "/"
+ schedule:
+ interval: "monthly"
+ groups:
+ github-actions-updates:
+ patterns: [ "*" ]
+ target-branch: "trunk"
+
+ - package-ecosystem: npm
+ directory: "/"
+ schedule:
+ interval: "monthly"
+ groups:
+ npm-updates:
+ patterns: [ "*" ]
+ target-branch: "trunk"
diff --git a/.github/workflows/analyze-dependabot.yaml b/.github/workflows/analyze-dependabot.yaml
new file mode 100644
index 00000000..ae2423bf
--- /dev/null
+++ b/.github/workflows/analyze-dependabot.yaml
@@ -0,0 +1,37 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: "Dependabot Analyze PR"
+
+on:
+ pull_request:
+
+# Default permissions for each job.
+# Additional permissions should be assigned on a per-job basis.
+permissions: { }
+
+jobs:
+
+ analyze-dependabot:
+ # `github.actor` prevents recursive calls when `github-actions[bot]` pushes to the PR;
+ # `github.event.pull_request.user.login` skips PRs not opened by Dependabot.
+ if: ${{
+ github.repository == 'apache/logging-flume'
+ && github.actor == 'dependabot[bot]'
+ && github.event.pull_request.user.login == 'dependabot[bot]'
+ }}
+ uses: apache/logging-parent/.github/workflows/analyze-dependabot-reusable.yaml@gha/v0
diff --git a/.github/workflows/process-dependabot.yaml b/.github/workflows/process-dependabot.yaml
new file mode 100644
index 00000000..a4e6b89c
--- /dev/null
+++ b/.github/workflows/process-dependabot.yaml
@@ -0,0 +1,48 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: "Dependabot Process PR"
+
+on:
+ workflow_run:
+ workflows:
+ - "Dependabot Analyze PR"
+ types:
+ - completed
+
+# Default permissions for each job.
+# Additional permissions should be assigned on a per-job basis.
+permissions: { }
+
+jobs:
+
+ process-dependabot:
+ # Skip this workflow on commits not pushed by Dependabot
+ if: ${{
+ github.repository == 'apache/logging-flume'
+ && github.actor == 'dependabot[bot]'
+ && github.event.workflow_run.conclusion == 'success'
+ }}
+ uses: apache/logging-parent/.github/workflows/process-dependabot-reusable.yaml@gha/v0
+ permissions:
+ # Append the changelog commit
+ contents: write
+ # Convert the PR into draft
+ pull-requests: write
+ with:
+ # The path to the changelog directory for the current development branch.
+ changelog-path: src/changelog/.2.x.x
diff --git a/pom.xml b/pom.xml
index fb0c5683..061bef42 100644
--- a/pom.xml
+++ b/pom.xml
@@ -101,9 +101,6 @@
<!-- Dummy value; overwritten by CI at release time. Do not edit manually. -->
<project.build.outputTimestamp>2026-01-01T00:00:00Z</project.build.outputTimestamp>
- <!-- Flume does not use `log4j-changelog` to generate release notes (there is no `src/changelog` directory). -->
- <log4j.changelog.skip>true</log4j.changelog.skip>
-
<!-- The website is generated by Antora from the root module: skip the per-module `maven-site-plugin` sites. -->
<maven.site.skip>true</maven.site.skip>
diff --git a/src/changelog/.2.x.x/.release-notes.adoc.ftl b/src/changelog/.2.x.x/.release-notes.adoc.ftl
new file mode 100644
index 00000000..6b5b47ec
--- /dev/null
+++ b/src/changelog/.2.x.x/.release-notes.adoc.ftl
@@ -0,0 +1,25 @@
+////
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+////
+
+${"[#release-notes-" + release.version?replace("[^a-zA-Z0-9]", "-", "r") + "]"}
+== ${release.version}
+
+<#if release.date?has_content>Release date:: ${release.date}</#if>
+
+This release...
+
+<#include "../.changelog.adoc.ftl">
diff --git a/src/changelog/.changelog.adoc.ftl b/src/changelog/.changelog.adoc.ftl
new file mode 100644
index 00000000..b36ecf92
--- /dev/null
+++ b/src/changelog/.changelog.adoc.ftl
@@ -0,0 +1,27 @@
+<#--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to you under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<#if entriesByType?size gt 0>
+<#list entriesByType as entryType, entries>
+
+${"[#release-notes-" + release.version?replace("[^a-zA-Z0-9]", "-", "r") + "-" + entryType?lower_case + "]"}
+=== ${entryType?capitalize}
+
+<#list entries as entry>
+* ${entry.description.text?replace("\\s+", " ", "r")}<#if entry.issues?has_content> (<#list entry.issues as issue>${issue.link}[${issue.id}]<#if issue?has_next>, </#if></#list>)</#if>
+</#list>
+</#list>
+</#if>
diff --git a/src/changelog/.index.adoc.ftl b/src/changelog/.index.adoc.ftl
new file mode 100644
index 00000000..c71482ee
--- /dev/null
+++ b/src/changelog/.index.adoc.ftl
@@ -0,0 +1,42 @@
+////
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+////
+
+////
+ ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ ██
+ ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ ██
+ ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██
+ ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
+ ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ ██
+
+ IF THIS FILE IS CALLED `release-notes.adoc`, IT IS AUTO-GENERATED, DO NOT EDIT IT!
+
+ The release notes page is generated from `src/changelog/.index.adoc.ftl` during
+ the `pre-site` phase of the Maven build and is written to
+ `target/generated-site/antora/modules/ROOT/pages/release-notes.adoc`,
+ where the Antora site build picks it up.
+ Hence, you must always edit `.index.adoc.ftl` and never the generated file.
+////
+
+// Release notes index does not look nice with a deep sectioning, override it:
+:page-toclevels: 1
+
+${"[#release-notes]"}
+= Release notes
+<#list releases as release><#if release.changelogEntryCount gt 0>
+
+include::_release-notes/${release.version}.adoc[]
+</#if></#list>