From f4de5ed3d65252761744f11d40875af5480226af Mon Sep 17 00:00:00 2001 From: Kenneth Mead Date: Thu, 23 Oct 2025 23:23:33 -0400 Subject: [PATCH 01/12] added spec compliance check addresses #282 --- .github/workflows/spec-compliance.yaml | 28 ++++++++++++++++++++++++++ README.md | 2 ++ up-spec | 2 +- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/spec-compliance.yaml diff --git a/.github/workflows/spec-compliance.yaml b/.github/workflows/spec-compliance.yaml new file mode 100644 index 0000000..60a167f --- /dev/null +++ b/.github/workflows/spec-compliance.yaml @@ -0,0 +1,28 @@ +# ******************************************************************************** +# Copyright (c) 2025 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + +name: Spec Compliance + +on: + push: + branches: [ main ] + workflow_dispatch: + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + update-spec-compliance-badge: + uses: xerner/ci-cd/.github/workflows/update-spec-compliance-badge.yaml@main + secrets: inherit diff --git a/README.md b/README.md index c4dbdd9..c61a931 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Eclipse uProtocol Rust library +[![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/eclipse-uprotocol/80759847e7bd262515184cb28f588a09/raw/spec-compliance-badge.json)](https://github.com/eclipse-uprotocol/up-spec) + This is the [uProtocol v1.6.0-alpha.6 Language Library](https://github.com/eclipse-uprotocol/uprotocol-spec/blob/v1.6.0-alpha.6/languages.adoc) for the Rust programming language. The crate can be used to diff --git a/up-spec b/up-spec index 3130bc5..af556f6 160000 --- a/up-spec +++ b/up-spec @@ -1 +1 @@ -Subproject commit 3130bc5bfe661f60509b9d5e1d03995d608a18b2 +Subproject commit af556f65b7ebedf89fcc1a5b678346a96b6e28c5 From 2c40af49167ddcf9d6f689c118b5b97d77b934a5 Mon Sep 17 00:00:00 2001 From: Kenneth Mead Date: Sun, 26 Oct 2025 21:48:46 -0400 Subject: [PATCH 02/12] renamed new spec compliance badge jobs filename --- .../{spec-compliance.yaml => update-spec-compliance-badge.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{spec-compliance.yaml => update-spec-compliance-badge.yaml} (100%) diff --git a/.github/workflows/spec-compliance.yaml b/.github/workflows/update-spec-compliance-badge.yaml similarity index 100% rename from .github/workflows/spec-compliance.yaml rename to .github/workflows/update-spec-compliance-badge.yaml From 85b0ca2d211ef11e0613a5d7a4eff46335bd5096 Mon Sep 17 00:00:00 2001 From: Kenneth Mead Date: Sun, 14 Dec 2025 17:33:38 +0000 Subject: [PATCH 03/12] improved badge creation for spec version and compliance check #282 --- .github/workflows/create-badges.yaml | 67 +++++++++++++++++++ .github/workflows/release.yaml | 2 + .../update-spec-compliance-badge.yaml | 28 -------- 3 files changed, 69 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/create-badges.yaml delete mode 100644 .github/workflows/update-spec-compliance-badge.yaml diff --git a/.github/workflows/create-badges.yaml b/.github/workflows/create-badges.yaml new file mode 100644 index 0000000..606b435 --- /dev/null +++ b/.github/workflows/create-badges.yaml @@ -0,0 +1,67 @@ +# ******************************************************************************** +# Copyright (c) 2025 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + +name: Create README badges +on: + push: + branches: [main] + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + spec-compliance: + uses: eclipse-uprotocol/ci-cd/.github/workflows/requirements-tracing.yaml@main + with: + env-file-suffix: "oft-current" + + create-readme-badges: + name: Create README badges + runs-on: ubuntu-latest + permissions: + contents: write + needs: + - spec-compliance + steps: + - uses: actions/checkout@v6 + + - name: check up-spec version + id: check-up-spec-version + uses: eclipse-uprotocol/ci-cd/.github/actions/check-spec-version@main + + - name: create up-spec version badge + uses: eclipse-uprotocol/ci-cd/.github/actions/create-spec-version-badge@main + with: + current-version: ${{ steps.check-up-spec-version.outputs.current-version }} + latest-version: ${{ steps.check-up-spec-version.outputs.latest-version }} + is-latest: ${{ steps.check-up-spec-version.outputs.is-latest }} + + - name: create up-spec compliance badge + uses: eclipse-uprotocol/ci-cd/.github/actions/create-spec-compliance-badge@main + with: + oft-exit-code: ${{ needs.spec-compliance.outputs.oft-exit-code }} + + - name: Commit badge + continue-on-error: true + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add ".github/badges" + git commit -m "Add/Update badges" || echo "No changes to commit" + + - name: Push badge commit + uses: ad-m/github-push-action@master + if: ${{ success() }} + with: + branch: ${{ github.head_ref }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ee5a04a..3fe2184 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -75,6 +75,7 @@ jobs: with: name: license-report path: dist/license/ + - name: Upload license report to release uses: svenstaro/upload-release-action@v2 id: upload_license_report @@ -90,6 +91,7 @@ jobs: with: name: tracing-report-html path: dist/tracing/ + - name: Upload requirements tracing report to release uses: svenstaro/upload-release-action@v2 id: upload_requirements_tracing_report diff --git a/.github/workflows/update-spec-compliance-badge.yaml b/.github/workflows/update-spec-compliance-badge.yaml deleted file mode 100644 index 60a167f..0000000 --- a/.github/workflows/update-spec-compliance-badge.yaml +++ /dev/null @@ -1,28 +0,0 @@ -# ******************************************************************************** -# Copyright (c) 2025 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Apache License Version 2.0 which is available at -# https://www.apache.org/licenses/LICENSE-2.0 -# -# SPDX-License-Identifier: Apache-2.0 -# ******************************************************************************* - -name: Spec Compliance - -on: - push: - branches: [ main ] - workflow_dispatch: - -concurrency: - group: ${{ github.ref }}-${{ github.workflow }} - cancel-in-progress: true - -jobs: - update-spec-compliance-badge: - uses: xerner/ci-cd/.github/workflows/update-spec-compliance-badge.yaml@main - secrets: inherit From 118233cb1a128b104168e176f4739df131679ea1 Mon Sep 17 00:00:00 2001 From: Kenneth Mead Date: Sun, 14 Dec 2025 12:39:02 -0500 Subject: [PATCH 04/12] resolved up-spec submodule conflict --- up-spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/up-spec b/up-spec index af556f6..a425a49 160000 --- a/up-spec +++ b/up-spec @@ -1 +1 @@ -Subproject commit af556f65b7ebedf89fcc1a5b678346a96b6e28c5 +Subproject commit a425a49c8ab1eeab45dc21c2cb5e6fe8cc238a1f From 03c254d983365d51310c451892dbe6aebdd65582 Mon Sep 17 00:00:00 2001 From: Kenneth Mead Date: Sun, 14 Dec 2025 17:54:02 +0000 Subject: [PATCH 05/12] pointed cicd actions to personal repo --- .github/workflows/create-badges.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-badges.yaml b/.github/workflows/create-badges.yaml index 606b435..c373955 100644 --- a/.github/workflows/create-badges.yaml +++ b/.github/workflows/create-badges.yaml @@ -38,17 +38,17 @@ jobs: - name: check up-spec version id: check-up-spec-version - uses: eclipse-uprotocol/ci-cd/.github/actions/check-spec-version@main + uses: xerner/ci-cd/.github/actions/check-spec-version@main - name: create up-spec version badge - uses: eclipse-uprotocol/ci-cd/.github/actions/create-spec-version-badge@main + uses: xerner/ci-cd/.github/actions/create-spec-version-badge@main with: current-version: ${{ steps.check-up-spec-version.outputs.current-version }} latest-version: ${{ steps.check-up-spec-version.outputs.latest-version }} is-latest: ${{ steps.check-up-spec-version.outputs.is-latest }} - name: create up-spec compliance badge - uses: eclipse-uprotocol/ci-cd/.github/actions/create-spec-compliance-badge@main + uses: xerner/ci-cd/.github/actions/create-spec-compliance-badge@main with: oft-exit-code: ${{ needs.spec-compliance.outputs.oft-exit-code }} From a0d00bf1e9d30bfb6726303f0166b111d77d9ef2 Mon Sep 17 00:00:00 2001 From: Kenneth Mead Date: Sun, 14 Dec 2025 17:57:10 +0000 Subject: [PATCH 06/12] updated checkout to be recursive --- .github/workflows/create-badges.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-badges.yaml b/.github/workflows/create-badges.yaml index c373955..13cf7ca 100644 --- a/.github/workflows/create-badges.yaml +++ b/.github/workflows/create-badges.yaml @@ -34,7 +34,9 @@ jobs: needs: - spec-compliance steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 + with: + submodules: "recursive" - name: check up-spec version id: check-up-spec-version From eae2b591c6d11681005e6ad50451a97264b23bed Mon Sep 17 00:00:00 2001 From: Kenneth Mead Date: Sun, 14 Dec 2025 18:13:10 +0000 Subject: [PATCH 07/12] updated checkout strategy --- .github/workflows/create-badges.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-badges.yaml b/.github/workflows/create-badges.yaml index 13cf7ca..6dcc948 100644 --- a/.github/workflows/create-badges.yaml +++ b/.github/workflows/create-badges.yaml @@ -36,7 +36,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - submodules: "recursive" + submodules: true - name: check up-spec version id: check-up-spec-version From bc12efc5d6b7e0649daedadb0978be409ea8e102 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 14 Dec 2025 18:54:39 +0000 Subject: [PATCH 08/12] Add/Update badges --- .github/badges/spec-compliance.svg | 20 ++++++++++++++++++++ .github/badges/spec-version.svg | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/badges/spec-compliance.svg create mode 100644 .github/badges/spec-version.svg diff --git a/.github/badges/spec-compliance.svg b/.github/badges/spec-compliance.svg new file mode 100644 index 0000000..00500d6 --- /dev/null +++ b/.github/badges/spec-compliance.svg @@ -0,0 +1,20 @@ + + up-spec compliance: + + + + + + + + + + + + + \ No newline at end of file diff --git a/.github/badges/spec-version.svg b/.github/badges/spec-version.svg new file mode 100644 index 0000000..5ee59c9 --- /dev/null +++ b/.github/badges/spec-version.svg @@ -0,0 +1,20 @@ + + up-spec: v1.6.0-alpha.7.a425a49 + + + + + + + + + + + + + \ No newline at end of file From c727290ef5897a378ef5d181c831cf748b42843d Mon Sep 17 00:00:00 2001 From: Kenneth Mead Date: Sun, 14 Dec 2025 18:56:31 +0000 Subject: [PATCH 09/12] removed unnecessary checkout github action --- .github/workflows/create-badges.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/create-badges.yaml b/.github/workflows/create-badges.yaml index 6dcc948..58af545 100644 --- a/.github/workflows/create-badges.yaml +++ b/.github/workflows/create-badges.yaml @@ -34,10 +34,6 @@ jobs: needs: - spec-compliance steps: - - uses: actions/checkout@v4 - with: - submodules: true - - name: check up-spec version id: check-up-spec-version uses: xerner/ci-cd/.github/actions/check-spec-version@main From 3c6e8a4573fccc6edcc042a219f20af3fc1a99a1 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 14 Dec 2025 18:57:37 +0000 Subject: [PATCH 10/12] Add/Update badges --- .github/badges/spec-compliance.svg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/badges/spec-compliance.svg b/.github/badges/spec-compliance.svg index 00500d6..f6cd78a 100644 --- a/.github/badges/spec-compliance.svg +++ b/.github/badges/spec-compliance.svg @@ -1,20 +1,20 @@ - - up-spec compliance: + + up-spec compliance: failing - + - - + + \ No newline at end of file From 321d4c06d0484f5c9ae6e6ac84d79a42a78ef6ae Mon Sep 17 00:00:00 2001 From: Kenneth Mead Date: Sun, 14 Dec 2025 18:58:31 +0000 Subject: [PATCH 11/12] added badges to README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index efb4a16..f493be8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Eclipse uProtocol Rust library +[![badge](.github/badges/spec-version.svg)](https://github.com/eclipse-uprotocol/up-spec) +[![badge](.github/badges/spec-compliance.svg)](https://github.com/eclipse-uprotocol/up-spec) + This is the [uProtocol v1.6.0-alpha.7 Language Library](https://github.com/eclipse-uprotocol/uprotocol-spec/blob/v1.6.0-alpha.7/languages.adoc) for the Rust programming language. The crate can be used to From e3d55d78d47071b3e7294aa1b17a92ffa6d6847f Mon Sep 17 00:00:00 2001 From: Kenneth Mead Date: Sun, 14 Dec 2025 19:12:56 +0000 Subject: [PATCH 12/12] replaced xerner refs with eclipse-uprotocol --- .github/workflows/create-badges.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-badges.yaml b/.github/workflows/create-badges.yaml index 58af545..e04f822 100644 --- a/.github/workflows/create-badges.yaml +++ b/.github/workflows/create-badges.yaml @@ -36,17 +36,17 @@ jobs: steps: - name: check up-spec version id: check-up-spec-version - uses: xerner/ci-cd/.github/actions/check-spec-version@main + uses: eclipse-uprotocol/ci-cd/.github/actions/check-spec-version@main - name: create up-spec version badge - uses: xerner/ci-cd/.github/actions/create-spec-version-badge@main + uses: eclipse-uprotocol/ci-cd/.github/actions/create-spec-version-badge@main with: current-version: ${{ steps.check-up-spec-version.outputs.current-version }} latest-version: ${{ steps.check-up-spec-version.outputs.latest-version }} is-latest: ${{ steps.check-up-spec-version.outputs.is-latest }} - name: create up-spec compliance badge - uses: xerner/ci-cd/.github/actions/create-spec-compliance-badge@main + uses: eclipse-uprotocol/ci-cd/.github/actions/create-spec-compliance-badge@main with: oft-exit-code: ${{ needs.spec-compliance.outputs.oft-exit-code }}