This is an automated email from the ASF dual-hosted git repository. vy pushed a commit to branch release/10.1.0 in repository https://gitbox.apache.org/repos/asf/logging-parent.git
commit c1749637368ae853702275e76ca09f824643a186 Author: Piotr P. Karwasz <[email protected]> AuthorDate: Wed Sep 27 13:25:33 2023 +0200 Upload test and reproducibility results on failures in CI (#28) --- .github/workflows/build-reusable.yaml | 23 ++++++++++++ src/changelog/.10.x.x/.release-notes.adoc.ftl | 8 +---- src/changelog/10.1.0/add-reports-on-failure.xml | 9 +++++ src/site/_release-notes/_10.x.x.adoc | 48 ------------------------- 4 files changed, 33 insertions(+), 55 deletions(-) diff --git a/.github/workflows/build-reusable.yaml b/.github/workflows/build-reusable.yaml index 2ea76a3..5e671f7 100644 --- a/.github/workflows/build-reusable.yaml +++ b/.github/workflows/build-reusable.yaml @@ -52,6 +52,7 @@ jobs: # We could have used `verify`, but `clean install` is required while generating the build reproducibility report, which is performed in the next step. # For details, see: https://maven.apache.org/guides/mini/guide-reproducible-builds.html#how-to-test-my-maven-build-reproducibility - name: Build + id: build shell: bash run: | ./mvnw \ @@ -60,12 +61,34 @@ jobs: -DinstallAtEnd=true \ clean install + # We upload tests results if the build fails. + - name: Upload test results + if: failure() && steps.build.conclusion == 'failure' + uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # 3.1.3 + with: + name: surefire-${{matrix.os}}-${{github.run_number}}-${{github.run_attempt}} + path: | + **/target/surefire-reports + **/target/logs + # `clean verify artifact:compare` is required to generate the build reproducibility report. # For details, see: https://maven.apache.org/guides/mini/guide-reproducible-builds.html#how-to-test-my-maven-build-reproducibility - name: Verify build reproducibility + id: reproducibility shell: bash run: | ./mvnw \ --show-version --batch-mode --errors --no-transfer-progress \ -DskipTests=true \ clean verify artifact:compare + + # We reproducibility results if the build fails. + - name: Upload reproducibility results + if: failure() && steps.reproducibility.conclusion == 'failure' + uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # 3.1.3 + with: + name: reproducibility-${{matrix.os}}-${{github.run_number}}-${{github.run_attempt}} + path: | + **/target/*.buildcompare + **/target/*.jar + **/target/reference/*.jar diff --git a/src/changelog/.10.x.x/.release-notes.adoc.ftl b/src/changelog/.10.x.x/.release-notes.adoc.ftl index 8662cca..b220984 100644 --- a/src/changelog/.10.x.x/.release-notes.adoc.ftl +++ b/src/changelog/.10.x.x/.release-notes.adoc.ftl @@ -38,12 +38,6 @@ <#if release.date?has_content>Release date:: ${release.date}</#if> -This minor release focuses on shipping AsciiDoc-based website generation convenience targeting the `src/site` folder. -As a part of this effort, `logging-parent` started publishing https://logging.apache.org/logging-parent/latest[its own website] and `log4j-changelog` support is switched from Markdown to AsciiDoc. - -The introduced https://github.com/bndtools/bnd/blob/master/maven-plugins/bnd-maven-plugin[`bnd-maven-plugin`] default auto-generates both OSGi and JPMS descriptors. -Users only need to annotate packages that are to be exported with `org.osgi.annotation.bundle.Export`, plugin will do the rest of the magic. -Hence, no need for custom `.bnd` and/or `module-info.java` files anymore. -In particular, we expect the absence of `module-info.java` files to avoid several IDE and testing related headaches. +This minor release contains several small improvements. <#include "../.changelog.adoc.ftl"> diff --git a/src/changelog/10.1.0/add-reports-on-failure.xml b/src/changelog/10.1.0/add-reports-on-failure.xml new file mode 100644 index 0000000..46d0239 --- /dev/null +++ b/src/changelog/10.1.0/add-reports-on-failure.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns="http://logging.apache.org/log4j/changelog" + xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.1.xsd" + type="added"> + <issue id="28" link="https://github.com/apache/logging-parent/issues/28"/> + <author id="github:ppkarwasz"/> + <description format="asciidoc">Added CI report uploading in case of test or reproducibility failures</description> +</entry> diff --git a/src/site/_release-notes/_10.x.x.adoc b/src/site/_release-notes/_10.x.x.adoc deleted file mode 100644 index b08527a..0000000 --- a/src/site/_release-notes/_10.x.x.adoc +++ /dev/null @@ -1,48 +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. -//// - -//// - ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ ██ - ██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ ██ - ██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ - ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ - ███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ ██ - - IF THIS FILE DOESN'T HAVE A `.ftl` SUFFIX, IT IS AUTO-GENERATED, DO NOT EDIT IT! - - Version-specific release notes (`7.8.0.adoc`, etc.) are generated from `src/changelog/*/.release-notes.adoc.ftl`. - Auto-generation happens during `generate-sources` phase of Maven. - Hence, you must always - - 1. Find and edit the associated `.release-notes.adoc.ftl` - 2. Run `./mvnw generate-sources` - 3. Commit both `.release-notes.adoc.ftl` and the generated `7.8.0.adoc` -//// - -[#release-notes-10-x-x] -=== 10.x.x - - - -This minor release focuses on shipping AsciiDoc-based website generation convenience targeting the `src/site` folder. -As a part of this effort, `logging-parent` started publishing https://logging.apache.org/logging-parent/latest[its own website] and `log4j-changelog` support is switched from Markdown to AsciiDoc. - -The introduced https://github.com/bndtools/bnd/blob/master/maven-plugins/bnd-maven-plugin[`bnd-maven-plugin`] default auto-generates both OSGi and JPMS descriptors. -Users only need to annotate packages that are to be exported with `org.osgi.annotation.bundle.Export`, plugin will do the rest of the magic. -Hence, no need for custom `.bnd` and/or `module-info.java` files anymore. -In particular, we expect the absence of `module-info.java` files to avoid several IDE and testing related headaches. -
