-
Notifications
You must be signed in to change notification settings - Fork 9
Open fast trace #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
catappreciationhours2
wants to merge
33
commits into
eclipse-uprotocol:main
from
catappreciationhours2:open_fast_trace
Closed
Open fast trace #73
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
158774a
added a conversion function from uri to iceorxy2 addressing scheme + …
catappreciationhours2 aa94194
Update src/lib.rs
catappreciationhours2 966803d
modified compute_service_name to accept source and sink instead of UM…
catappreciationhours2 8fe6511
added oft spec workflow
catappreciationhours2 c1e66f1
created workflow check
catappreciationhours2 f5af7d1
allow new branch to run on
catappreciationhours2 8435769
modified file name
catappreciationhours2 9b2504d
allow dead code
catappreciationhours2 56c0cfe
allow dead code
catappreciationhours2 41020a0
removed unused imports
catappreciationhours2 7033c26
retry with fixed email
catappreciationhours2 ef9f7fb
added a conversion function from uri to iceorxy2 addressing scheme + …
catappreciationhours2 f0d3f04
Update src/lib.rs
catappreciationhours2 d99be0c
modified compute_service_name to accept source and sink instead of UM…
catappreciationhours2 0f05535
Update src/lib.rs
catappreciationhours2 d71293a
modified to use helper function and use match for more clear pattern …
catappreciationhours2 d29b055
modified compute service name to use custom helper to determine messa…
catappreciationhours2 bb007c9
removed unwrap
catappreciationhours2 8fa1894
trying to get rid of eol errors
vidishac2004 dc2bbac
trying to get rid of build errors due to Ustatus::invalid_argument
vidishac2004 a0eee80
replaced match with simple if/else statements and used the let else l…
vidishac2004 7ce6f0c
Normalize line endings to LF and add .gitattributes
vidishac2004 f88b6dd
Normalize line endings to LF
vidishac2004 b4be668
resolved build error
vidishac2004 c024126
Update .env.oft-latest
vidishac2004 aa2e4ab
Update src/lib.rs
vidishac2004 570bb2c
resolved formatting issues
vidishac2004 3bebd0e
OFT branch merged with main
vidishac2004 5cb7657
Merge branch 'main' into open_fast_trace
vidishac2004 544bf37
Merge branch 'open_fast_trace' of github.com:catappreciationhours2/up…
catappreciationhours2 552e6e0
updated spec yaml to mirror mqtt formatting
catappreciationhours2 668990b
modified gitignore to match main
catappreciationhours2 177d959
Merge branch 'main' into open_fast_trace
catappreciationhours2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # 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 | ||
|
|
||
| # shellcheck disable=SC2148,SC2034 | ||
|
|
||
| # The file patterns that specify the relevant parts of the latest uProtocol Specification | ||
| # that this component is supposed to implement | ||
| UP_SPEC_FILE_PATTERNS="up-spec/basics/uattributes.adoc up-spec/up-l1/README.adoc up-spec/up-l1/iceoryx2.adoc" | ||
|
|
||
| # The file patterns that specify this component's resources which contain specification items | ||
| # that cover the requirements | ||
| COMPONENT_FILE_PATTERNS="*.adoc *.md *.rs .github examples src tests" | ||
|
|
||
| OFT_FILE_PATTERNS="$UP_SPEC_FILE_PATTERNS $COMPONENT_FILE_PATTERNS" | ||
| OFT_TAGS="_,TransportLayerImpl,TransportLayerImplPush" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| # ******************************************************************************** | ||
| # Copyright (c) 2024 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 | ||
| # ******************************************************************************** | ||
|
|
||
| # Verifies that this crate can be built using the uProtocol Core API from up-spec's main branch. | ||
| # Also performs requirements tracing using OpenFastTrace. The job fails if any of the two | ||
| # activities fail. | ||
|
|
||
| name: Latest uP Spec Compatibility | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 4 * * *' | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.ref }}-${{ github.workflow }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| RUST_TOOLCHAIN: ${{ vars.RUST_TOOLCHAIN || 'stable' }} | ||
| RUSTFLAGS: -Dwarnings | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| requirements-tracing: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| submodules: "recursive" | ||
| - name: Fast-Forward to HEAD revision of uProtocol Spec main branch | ||
| run: | | ||
| cd "${{ github.workspace }}/up-spec" | ||
| echo "Switching to up-spec/main branch ..." | ||
| git checkout main | ||
| echo "fast-forwarding to HEAD revision ..." | ||
| git pull | ||
| git status | ||
| cd "${{ github.workspace }}" | ||
|
|
||
| - name: "Determine OpenFastTrace file patterns from .env file" | ||
| uses: xom9ikk/dotenv@v2.3.0 | ||
| with: | ||
| mode: "oft-latest" | ||
| load-mode: strict | ||
|
|
||
| # run OpenFastTrace first because the action will always succeed and produce | ||
| # a tracing report | ||
| - name: Run OpenFastTrace | ||
| id: run-oft | ||
| uses: eclipse-uprotocol/ci-cd/.github/actions/run-oft@main | ||
| with: | ||
| file-patterns: "${{ env.OFT_FILE_PATTERNS }}" | ||
| tags: "${{ env.OFT_TAGS_}}" | ||
|
|
||
| # now try to build and run the tests which may fail if incompatible changes | ||
| # have been introduced into the uProtocol Core API | ||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
| - uses: Swatinem/rust-cache@v2 | ||
| - uses: taiki-e/install-action@nextest | ||
| - name: Run tests | ||
| run: | | ||
| # Using nextest because it's faster than built-in test | ||
| cargo nextest run --all-features | ||
| # but it cannot execute doc tests | ||
| cargo test --doc --all-features | ||
|
|
||
| # This step will only be run if the tests in the previous step have succeeded. | ||
| # In that case, we use the exit code produced by the OFT run as the job's | ||
| # overall outcome. This means that the job fails if the tests run successfully | ||
| # but some of the requirements from up-spec are not covered. | ||
| - name: Determine exit status | ||
| env: | ||
| OFT_EXIT_CODE: ${{ steps.run-oft.outputs.oft-exit-code }} | ||
| run: | | ||
| exit $OFT_EXIT_CODE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [submodule "up-spec"] | ||
| path = up-spec | ||
| url = https://github.com/eclipse-uprotocol/up-spec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this correctly marks this test as implementing the required test for the
dsn~up-transport-iceoryx2-service-name~1specitem. However, you will also need to add a corresponding marker to code/function that actually implements the specitem using[impl->dsn~up-transport-iceoryx2-service-name~1]...