Skip to content

Commit 78e6c60

Browse files
authored
Remove omg interoperability (#486)
* do not Remove DustDDS * do not use own build * add path * remove source code * change manifest-path * add Cargo.toml * fix path * checkout shape.idl * remove sparse chackout * add ls dir * fix Remove DustDDS * fix upload path * add config patch * zipBall false * Remove zip files * use unzip * zip exe * use same dds-rtps for report making * use 'v2.0.2025' * fix version * download exes from omg * add working-directory * use sed for version
1 parent d0465a0 commit 78e6c60

File tree

6 files changed

+32
-908
lines changed

6 files changed

+32
-908
lines changed

.github/workflows/interoperability.yml

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,30 @@ jobs:
1010
steps:
1111
- name: Checkout sources
1212
uses: actions/checkout@v4
13-
14-
- run: cargo build --package dust_dds_shape_main_linux --release
15-
- name: Install tomlq
16-
run: cargo install tomlq
17-
- name: Install zip
18-
run: sudo apt-get install zip -y
19-
- name: Rename executable
13+
with:
14+
path: dust-dds
15+
- name: Checkout omg dds-rtps from s2e-systems fork
16+
uses: actions/checkout@v4
17+
with:
18+
repository: s2e-systems/dds-rtps
19+
ref: update-dust-dds-src
20+
path: dds-rtps
21+
- name: Build executable
22+
run: cargo build --package dust_dds_shape_main_linux --release --manifest-path dds-rtps/srcRs/DustDDS/Cargo.toml --config patch.crates-io.dust_dds.path="'dust-dds/dds'"
23+
- name: Zip executable # Zipping done here to preserve executable bit
2024
run: |
21-
version=$( tq -f dds/Cargo.toml 'package.version' | tr -d '"' )
22-
cp ./target/release/dust_dds_shape_main_linux ./dust_dds-${version}_shape_main_linux
23-
mkdir artifacts
24-
zip --junk-paths artifacts/dust_dds-${version}_shape_main_linux.zip ./dust_dds-${version}_shape_main_linux
25+
version=$( cargo tree --package dust_dds --depth 0 --prefix none | sed -n 's/.*v\([0-9.]*\).*/\1/p' )
26+
echo $version
27+
cp ../dds-rtps/srcRs/DustDDS/target/release/dust_dds_shape_main_linux dust_dds-${version}_shape_main_linux
28+
mkdir ../artifacts
29+
zip --junk-paths ../artifacts/dust_dds-${version}_shape_main_linux.zip dust_dds-${version}_shape_main_linux
30+
working-directory:
31+
dust-dds
2532
- name: Upload executable artifact
2633
uses: actions/upload-artifact@v4
2734
with:
2835
name: interoperability_executable
29-
path: ./artifacts/
36+
path: artifacts
3037

3138
run_tests:
3239
runs-on: ubuntu-latest
@@ -61,19 +68,12 @@ jobs:
6168
steps:
6269
- name: Checkout sources
6370
uses: actions/checkout@v4
64-
- name: Checkout dds-rtps
71+
- name: Checkout omg dds-rtps
6572
uses: actions/checkout@v4
6673
with:
67-
repository: omg-dds/dds-rtps
68-
ref: 'v2.0.2025'
74+
repository: s2e-systems/dds-rtps
75+
ref: update-dust-dds-src
6976
path: omg-dds-rtps
70-
sparse-checkout-cone-mode: false
71-
sparse-checkout: |
72-
interoperability_report.py
73-
test_suite.py
74-
rtps_test_utilities.py
75-
test_suite_functions.py
76-
requirements.txt
7777
- uses: actions/setup-python@v5
7878
with:
7979
python-version: '3.11.4'
@@ -84,22 +84,25 @@ jobs:
8484
latest: true
8585
preRelease: false
8686
fileName: "*"
87+
out-file-path: zipped_executables
8788
- name: Remove DustDDS
88-
run: rm dust_dds-*
89+
run: rm zipped_executables/dust_dds*
90+
continue-on-error: true
8991
- name: Download dust_dds_shape_main executable artifact from create_bin_release
9092
uses: actions/download-artifact@v4
9193
with:
9294
name: interoperability_executable
95+
path: zipped_executables
9396
- name: Unzip executables
94-
run: unzip '*.zip' -d executables
97+
run: unzip 'zipped_executables/*.zip' -d executables
9598
- name: List directory
96-
run: ls -l
99+
run: ls -l executables
97100
- name: Install omg-dds dds-rtps Python requirements
98101
run: pip install --requirement omg-dds-rtps/requirements.txt
99102

100103
- name: Run Interoperability script
101-
timeout-minutes: 60
102-
run: python3 ./omg-dds-rtps/interoperability_report.py --verbose --publisher ./executables/${{ matrix.publisher }}-*shape_main_linux --subscriber ./executables/${{ matrix.subscriber }}-*shape_main_linux --output-name junit_report-${{ matrix.publisher }}-${{ matrix.subscriber }}.xml
104+
timeout-minutes: 30
105+
run: python3 ./omg-dds-rtps/interoperability_report.py --verbose --publisher ./executables/${{ matrix.publisher }}*shape_main_linux --subscriber ./executables/${{ matrix.subscriber }}*shape_main_linux --output-name junit_report-${{ matrix.publisher }}-${{ matrix.subscriber }}.xml
103106

104107
- name: Upload report
105108
uses: actions/upload-artifact@v4
@@ -119,16 +122,9 @@ jobs:
119122
- name: Checkout omg-dds dds-rtps
120123
uses: actions/checkout@v4
121124
with:
122-
repository: omg-dds/dds-rtps
123-
ref: '9e1fdbcd30bc785e5e5113a94e5e936695a3385e'
125+
repository: s2e-systems/dds-rtps
126+
ref: update-dust-dds-src
124127
path: omg-dds-rtps
125-
sparse-checkout-cone-mode: false
126-
sparse-checkout: |
127-
generate_xlsx_report.py
128-
rtps_test_utilities.py
129-
test_suite.py
130-
test_suite_functions.py
131-
requirements.txt
132128
- uses: actions/setup-python@v5
133129
with:
134130
python-version: '3.11.4'

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ members = [
88
"shapes_demo/android",
99
"fuzz",
1010
"bindings/python",
11-
"omg_interoperability_executable",
1211
"nostd_test_project",
1312
]
1413
default-members = [

omg_interoperability_executable/Cargo.toml

Lines changed: 0 additions & 23 deletions
This file was deleted.

omg_interoperability_executable/build.rs

Lines changed: 0 additions & 20 deletions
This file was deleted.

omg_interoperability_executable/shape.idl

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)