Skip to content

Commit 438449f

Browse files
authored
Merge pull request #454 from gabsuren/modem/latest_version
feat(modem): host test support of the latest ESP-IDF release (IDF-7828)
2 parents 46a6244 + a23a002 commit 438449f

21 files changed

+131
-70
lines changed

.github/workflows/asio__build-target-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
idf_ver: ["latest", "release-v5.0", "release-v5.1"]
1717
idf_target: ["esp32", "esp32s2"]
1818
example: ["asio_chat", "async_request", "socks4", "ssl_client_server", "tcp_echo_server", "udp_echo_server"]
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020
container: espressif/idf:${{ matrix.idf_ver }}
2121
env:
2222
TEST_DIR: components/asio/examples
2323
steps:
2424
- name: Checkout esp-protocols
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with:
2727
submodules: recursive
2828
- name: Build ${{ matrix.example }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
@@ -43,7 +43,7 @@ jobs:
4343
run: |
4444
. ${IDF_PATH}/export.sh
4545
esptool.py --chip ${{ matrix.idf_target }} merge_bin --fill-flash-size 4MB -o flash_image.bin @flash_args
46-
- uses: actions/upload-artifact@v3
46+
- uses: actions/upload-artifact@v4
4747
with:
4848
name: examples_app_bin_${{ matrix.idf_target }}_${{ matrix.idf_ver }}_${{ matrix.example }}
4949
path: |
@@ -76,8 +76,8 @@ jobs:
7676
steps:
7777
- name: Clear repository
7878
run: sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
79-
- uses: actions/checkout@v3
80-
- uses: actions/download-artifact@v3
79+
- uses: actions/checkout@v4
80+
- uses: actions/download-artifact@v4
8181
with:
8282
name: examples_app_bin_${{ matrix.idf_target }}_${{ matrix.idf_ver }}_${{ matrix.example }}
8383
path: ${{ env.TEST_DIR }}/${{ matrix.example }}/build
@@ -93,7 +93,7 @@ jobs:
9393
working-directory: ${{ env.TEST_DIR }}/${{ matrix.example }}
9494
run: |
9595
python -m pytest --log-cli-level DEBUG --junit-xml=./examples_results_${{ matrix.idf_target }}_${{ matrix.idf_ver }}_${{ matrix.config }}.xml --target=${{ matrix.idf_target }}
96-
- uses: actions/upload-artifact@v3
96+
- uses: actions/upload-artifact@v4
9797
if: always()
9898
with:
9999
name: examples_results_${{ matrix.idf_target }}_${{ matrix.idf_ver }}_${{ matrix.example }}

.github/workflows/console_cmd_ifconfig__build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
idf_ver: ["latest", "release-v5.0"]
1717
idf_target: ["esp32"]
1818
test: [ { app: ifconfig-basic, path: "components/console_cmd_ifconfig/examples"}]
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020
container: espressif/idf:${{ matrix.idf_ver }}
2121
steps:
2222
- name: Checkout esp-protocols
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
submodules: recursive
2626
- name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }}

.github/workflows/console_cmd_ping__build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
idf_ver: ["latest", "release-v5.0"]
1717
idf_target: ["esp32"]
1818
test: [ { app: ping-basic, path: "components/console_cmd_ping/examples" }]
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020
container: espressif/idf:${{ matrix.idf_ver }}
2121
steps:
2222
- name: Checkout esp-protocols
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
submodules: recursive
2626
- name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }}

.github/workflows/console_cmd_wifi__build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
idf_ver: ["latest", "release-v5.0"]
1717
idf_target: ["esp32"]
1818
test: [ { app: wifi-basic, path: "components/console_cmd_wifi/examples" }]
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020
container: espressif/idf:${{ matrix.idf_ver }}
2121
steps:
2222
- name: Checkout esp-protocols
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
submodules: recursive
2626
- name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }}

.github/workflows/console_simple_init__build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
idf_ver: ["latest", "release-v5.0"]
1717
idf_target: ["esp32"]
1818
test: [ { app: console_basic, path: "components/console_simple_init/examples" }]
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020
container: espressif/idf:${{ matrix.idf_ver }}
2121
steps:
2222
- name: Checkout esp-protocols
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
submodules: recursive
2626
- name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }}

.github/workflows/examples_build-host-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
strategy:
1515
matrix:
1616
idf_ver: ["latest", "release-v5.1"]
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-22.04
1818
container: espressif/idf:${{ matrix.idf_ver }}
1919
steps:
2020
- name: Checkout esp-protocols
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
- name: Build with IDF-${{ matrix.idf_ver }}
2323
shell: bash
2424
run: |
@@ -33,11 +33,11 @@ jobs:
3333
strategy:
3434
matrix:
3535
idf_ver: ["latest"]
36-
runs-on: ubuntu-20.04
36+
runs-on: ubuntu-22.04
3737
container: espressif/idf:${{ matrix.idf_ver }}
3838
steps:
3939
- name: Checkout esp-protocols
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141
- name: Build with IDF-${{ matrix.idf_ver }}
4242
shell: bash
4343
run: |

.github/workflows/mdns__build-target-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
matrix:
1616
idf_ver: ["latest", "release-v5.0"]
1717
test: [ { app: example, path: "examples/query_advertise" }, { app: unit_test, path: "tests/unit_test" }, { app: test_app, path: "tests/test_apps" } ]
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-22.04
1919
container: espressif/idf:${{ matrix.idf_ver }}
2020
steps:
2121
- name: Checkout esp-protocols
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323
- name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }}
2424
shell: bash
2525
run: |
@@ -34,7 +34,7 @@ jobs:
3434
$GITHUB_WORKSPACE/ci/clean_build_artifacts.sh `pwd`/$dir
3535
zip -qur artifacts.zip $dir
3636
done
37-
- uses: actions/upload-artifact@v3
37+
- uses: actions/upload-artifact@v4
3838
with:
3939
name: mdns_bin_esp32_${{ matrix.idf_ver }}_${{ matrix.test.app }}
4040
path: components/mdns/${{ matrix.test.path }}/artifacts.zip
@@ -58,8 +58,8 @@ jobs:
5858
steps:
5959
- name: Clear repository
6060
run: sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
61-
- uses: actions/checkout@v3
62-
- uses: actions/download-artifact@v3
61+
- uses: actions/checkout@v4
62+
- uses: actions/download-artifact@v4
6363
with:
6464
name: mdns_bin_${{ matrix.idf_target }}_${{ matrix.idf_ver }}_${{ matrix.test.app }}
6565
path: components/mdns/${{ matrix.test.path }}/ci/
@@ -77,7 +77,7 @@ jobs:
7777
mv $dir build
7878
python -m pytest --log-cli-level DEBUG --junit-xml=./results_${{ matrix.test.app }}_${{ matrix.idf_target }}_${{ matrix.idf_ver }}_${dir#"ci/build_"}.xml --target=${{ matrix.idf_target }}
7979
done
80-
- uses: actions/upload-artifact@v3
80+
- uses: actions/upload-artifact@v4
8181
if: always()
8282
with:
8383
name: results_${{ matrix.test.app }}_${{ matrix.idf_target }}_${{ matrix.idf_ver }}.xml

.github/workflows/mdns__host-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
host_test_mdns:
1212
if: contains(github.event.pull_request.labels.*.name, 'mdns') || github.event_name == 'push'
1313
name: Host test
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-22.04
1515
container: espressif/idf:release-v5.1
1616

1717
steps:
1818
- name: Checkout esp-protocols
19-
uses: actions/checkout@master
19+
uses: actions/checkout@v4
2020
with:
2121
path: esp-protocols
2222

@@ -40,11 +40,11 @@ jobs:
4040
idf_ver: ["latest"]
4141
idf_target: ["esp32"]
4242

43-
runs-on: ubuntu-20.04
43+
runs-on: ubuntu-22.04
4444
container: espressif/idf:${{ matrix.idf_ver }}
4545
steps:
4646
- name: Checkout esp-protocols
47-
uses: actions/checkout@master
47+
uses: actions/checkout@v4
4848
with:
4949
path: esp-protocols
5050
- name: Install Necessary Libs

.github/workflows/modem__build-host-tests.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,19 @@ jobs:
2727
example: "simple_cmux_client"
2828
warning: "Warning: The smallest app partition is nearly full"
2929

30-
runs-on: ubuntu-20.04
30+
runs-on: ubuntu-22.04
3131
container: espressif/idf:${{ matrix.idf_ver }}
3232
steps:
33-
- name: Checkout esp-protocols
33+
- name: Check out code (v3) # @v4 failed due to Node 20's requirement, incompatible with older IDF versions
34+
if: matrix.idf_ver != 'latest' && matrix.idf_ver < 'release-v5.0'
3435
uses: actions/checkout@v3
3536
with:
3637
path: protocols
38+
- name: Check out code (v4)
39+
if: matrix.idf_ver == 'latest' || matrix.idf_ver >= 'release-v5.0'
40+
uses: actions/checkout@v4
41+
with:
42+
path: protocols
3743
- if: ${{ matrix.skip_config }}
3844
run: rm -f $GITHUB_WORKSPACE/protocols/components/esp_modem/examples/${{ matrix.example }}/sdkconfig.ci.${{ matrix.skip_config }}*
3945
- name: Build ${{ matrix.example }} with IDF-${{ matrix.idf_ver }}
@@ -54,11 +60,11 @@ jobs:
5460
idf_ver: ["release-v5.0", "release-v5.1", "latest"]
5561
test: ["target", "target_ota", "target_iperf"]
5662

57-
runs-on: ubuntu-20.04
63+
runs-on: ubuntu-22.04
5864
container: espressif/idf:${{ matrix.idf_ver }}
5965
steps:
6066
- name: Checkout esp-protocols
61-
uses: actions/checkout@v3
67+
uses: actions/checkout@v4
6268
with:
6369
path: protocols
6470
- name: Build ${{ matrix.test }} with IDF-${{ matrix.idf_ver }}
@@ -76,10 +82,25 @@ jobs:
7682
if: contains(github.event.pull_request.labels.*.name, 'modem') || github.event_name == 'push'
7783
uses: "./.github/workflows/run-host-tests.yml"
7884
with:
79-
idf_version: "release-v4.3"
85+
idf_version: "latest"
8086
app_name: "host_modem_test"
8187
app_path: "esp-protocols/components/esp_modem/test/host_test"
8288
component_path: "esp-protocols/components/esp_modem"
8389
upload_artifacts: true
90+
run_executable: true
91+
run_coverage: true
8492
pre_run_script: "esp-protocols/components/esp_modem/test/host_test/env.sh"
8593
publish_unit_test_result: true
94+
95+
build_linux_example:
96+
if: contains(github.event.pull_request.labels.*.name, 'modem') || github.event_name == 'push'
97+
uses: "./.github/workflows/run-host-tests.yml"
98+
with:
99+
idf_version: "latest"
100+
app_name: "linux_modem"
101+
app_path: "esp-protocols/components/esp_modem/examples/linux_modem"
102+
component_path: "esp-protocols/components/esp_modem"
103+
upload_artifacts: true
104+
run_executable: false
105+
run_coverage: false
106+
pre_run_script: "esp-protocols/components/esp_modem/test/host_test/env.sh"

.github/workflows/modem__target-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
- idf_ver: "latest"
2121
idf_target: "esp32s2"
2222
test: { app: usb_a7670_s2, path: examples/pppos_client }
23-
runs-on: ubuntu-20.04
23+
runs-on: ubuntu-22.04
2424
container: espressif/idf:${{ matrix.idf_ver }}
2525
env:
2626
TEST_DIR: components/esp_modem/${{ matrix.test.path }}
2727
steps:
2828
- name: Checkout esp-protocols
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
with:
3131
submodules: recursive
3232
- name: Build esp-modem target tests with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }}

0 commit comments

Comments
 (0)