Skip to content

Commit c8c9b61

Browse files
committed
Use common workflow for checking compliance with current spec
1 parent 2196c2b commit c8c9b61

File tree

4 files changed

+42
-11
lines changed

4 files changed

+42
-11
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# ********************************************************************************
2+
# Copyright (c) 2024 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************/
13+
14+
# Verifies that this crate covers all requirements of the (currently) implemented
15+
# version of the uProtocol Specification.
16+
17+
name: Current uP Spec Compliance
18+
19+
on:
20+
workflow_call:
21+
workflow_dispatch:
22+
23+
concurrency:
24+
group: ${{ github.ref }}-${{ github.workflow }}
25+
cancel-in-progress: true
26+
27+
env:
28+
RUST_TOOLCHAIN: ${{ vars.RUST_TOOLCHAIN || 'stable' }}
29+
RUSTFLAGS: -Dwarnings
30+
CARGO_TERM_COLOR: always
31+
32+
jobs:
33+
requirements-tracing:
34+
uses: eclipse-uprotocol/ci-cd/.github/workflows/requirements-tracing.yaml@main
35+
# Do not include the recently revamped L1 API spec with requirements for
36+
# language libraries.
37+
# We also do not use OFT Tags for filtering specitems (yet).
38+
with:
39+
oft-file-patterns: "up-spec/*.adoc up-spec/*.md up-spec/basics up-spec/up-l1/cloudevents.adoc up-spec/up-l2/api.adoc *.adoc *.md *.rs .github examples src tests tools"

.github/workflows/check-up-spec-compatibility.yaml renamed to .github/workflows/latest-up-spec-compatibility.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Also performs requirements tracing using OpenFastTrace. The job fails if any of the two
1616
# activities fail.
1717

18-
name: uP Spec Compatibility
18+
name: Latest uP Spec Compatibility
1919

2020
on:
2121
schedule:

.github/workflows/nightly.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,5 @@ jobs:
5151
coverage:
5252
uses: eclipse-uprotocol/ci-cd/.github/workflows/rust-coverage.yaml@main
5353

54-
# This check still is based on up-spec v1.6.0_alpha.4
55-
# It therefore does not include the recently revamped L1 API spec with requirements for
56-
# language libraries.
57-
# We also do not use OFT Tags for filtering specitems (yet).
5854
requirements-tracing:
59-
uses: eclipse-uprotocol/ci-cd/.github/workflows/requirements-tracing.yaml@main
60-
with:
61-
oft-file-patterns: "up-spec/*.adoc up-spec/*.md up-spec/basics up-spec/up-l1/cloudevents.adoc up-spec/up-l2/api.adoc *.adoc *.md *.rs .github examples src tests tools"
55+
uses: ./.github/workflows/current-up-spec-compliance.yaml

.github/workflows/release.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ jobs:
3535
uses: eclipse-uprotocol/ci-cd/.github/workflows/rust-coverage.yaml@main
3636

3737
requirements-tracing:
38-
uses: eclipse-uprotocol/ci-cd/.github/workflows/requirements-tracing.yaml@main
39-
with:
40-
oft-file-patterns: "${{ vars.UP_SPEC_OPEN_FAST_TRACE_FILE_PATTERNS }} ${{ vars.UP_RUST_OPEN_FAST_TRACE_FILE_PATTERNS }}"
38+
uses: ./.github/workflows/current-up-spec-compliance.yaml
4139

4240
licenses:
4341
# This works off the license declarations in dependent packages/crates, so if these declarations are wrong, this report will contain erroneous information

0 commit comments

Comments
 (0)