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/09/14 21:43:27 UTC

(logging-log4j2) branch revert-4216-fix/2.x/split-integration-test created (now e6198f74fa)

This is an automated email from the ASF dual-hosted git repository.

ppkarwasz pushed a change to branch revert-4216-fix/2.x/split-integration-test
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


      at e6198f74fa Revert "Split `integration-test` into per-deployment jobs (#4216)"

This branch includes the following new commits:

     new e6198f74fa Revert "Split `integration-test` into per-deployment jobs (#4216)"

The 1 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.



(logging-log4j2) 01/01: Revert "Split `integration-test` into per-deployment jobs (#4216)"

Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ppkarwasz pushed a commit to branch revert-4216-fix/2.x/split-integration-test
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit e6198f74fa9d34c5c83b41aebbf93af49036eb6e
Author: Piotr P. Karwasz <pi...@github.copernik.eu>
AuthorDate: Mon Sep 14 23:43:20 2026 +0200

    Revert "Split `integration-test` into per-deployment jobs (#4216)"
    
    This reverts commit 04c93c1d33f7d0fc46fe4f390ea1968e8d93c485.
---
 .github/workflows/build.yaml | 22 +++++++---------------
 1 file changed, 7 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 558b326df8..308f6dfc75 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -95,22 +95,14 @@ jobs:
       # Encode the `runs-on` input as JSON array
       runs-on: '["ubuntu-latest", "macos-latest"]'
 
-  # Run integration-tests automatically after a snapshot is published
-  integration-test-snapshot:
-    needs: deploy-snapshot
-    uses: apache/logging-log4j-samples/.github/workflows/integration-test.yaml@main
-    with:
-      log4j-version: ${{ needs.deploy-snapshot.outputs.project-version }}
-      # Use the `main` branch of `logging-log4j-samples`
-      samples-ref: 'refs/heads/main'
-
-  # Run integration-tests automatically after an RC is published
-  integration-test-release:
-    needs: deploy-release
+  # Run integration-tests automatically after a snapshot or RC is published
+  integration-test:
+    needs: [ deploy-snapshot, deploy-release ]
+    if: ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
+    name: "integration-test (${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }})"
     uses: apache/logging-log4j-samples/.github/workflows/integration-test.yaml@main
     with:
-      log4j-version: ${{ needs.deploy-release.outputs.project-version }}
-      # URL of the staging repository
-      log4j-repository-url: ${{ needs.deploy-release.outputs.nexus-url }}
+      log4j-version: ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }}
+      log4j-repository-url: ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || needs.deploy-snapshot.outputs.nexus-url }}
       # Use the `main` branch of `logging-log4j-samples`
       samples-ref: 'refs/heads/main'