Skip to content

Commit

Permalink
[Github Sync] Merge github/main to aosp/main
Browse files Browse the repository at this point in the history
Bug: 320820261

* github/main:
  [cli-tcat] define `VendorInfo` as a member variable (openthread#9869)
  [cli] style fixes & remove core defined error constants (openthread#9868)
  [ip6] add multicast forwarding restrictions to host (openthread#9863)
  [netdiag] update comments and fix style (openthread#9866)
  [cli] add references to CoAP concepts guide from CLI (openthread#9856)
  [netdiag] add support for Vendor App URL TLV (openthread#9816)
  [tools] add missing tcat ble client files (openthread#9857)
  [mle] generate challenge for "Child Update Request" early (openthread#9850)
  [mbedtls] make debug logging independent from builtin (openthread#9848)
  [cli] update coaps readme (openthread#9849)
  [slaac] implement address deprecation mechanism (openthread#9585)
  [cli] add Doxygen tags for coaps commands (openthread#9837)
  [instance] init `BackboneRouter::Local` before `Mle` (openthread#9843)
  [csl] reset data poll timer after successful csl transmission (openthread#9840)
  github-actions: bump actions/setup-python from 4.7.1 to 5.0.0 (openthread#9845)
  Bump grpcio from 1.53.0 to 1.53.2 in /tools/harness-simulation/harness (openthread#9842)
  [srp] implement `AdvertisingProxy` and define `Dnssd` platform APIs (openthread#9268)
  [tools] add tcat ble client (openthread#9739)
  [mbedtls] update to 2.28.7 (openthread#9835)
  [ip6] simplify `Ip6::SelectSourceAddress()` (openthread#9832)
  [cli] add Doxygen tags to CoAP commands (openthread#9821)
  [ip6] mesh-local addresses as preferred, platform control flag on host stack (openthread#9815)
  github-actions: bump step-security/harden-runner from 2.6.1 to 2.7.0 (openthread#9831)
  [ip6] `SelectSourceAddress()` rule 1 on preferring same address (openthread#9830)
  [posix] do not enable loop back to host (openthread#9826)
  [ip6] always deliver multicast to host (openthread#9824)
  [ncp] set message origin to host untrusted (openthread#9825)
  [trel] fix typo in `OPENTHREAD_CONFIG_TREL_PEER_TABLE_SIZE` (openthread#9823)
  [ci] fix artifact name conflict (openthread#9827)
  [routing-manager] fix `IsDeprecated()` to handle large preferred lifetime (openthread#9822)
  [common] add `ClearAllBytes()` template function (openthread#9818)
  [netdata-publisher] remove SRP unicast on anycast entry added by a BR (openthread#9807)
  [codecov] enable use of `CODECOV_TOKEN` (openthread#9819)
  [spinel] allow registering callback to restore vendor properties (openthread#9773)
  [key-manager] check if the key is present before exporting the key (openthread#9814)
  [cli] commissioner commands (openthread#9798)
  [spinel] fix set rx on when idle for RCP (openthread#9812)
  [net-diag] add Eui64Tlv support (openthread#9795)
  github-actions: bump github/codeql-action from 2.22.5 to 3.23.2 (openthread#9810)
  [multipan] Fix for multipan use case to handle tx timeout. (openthread#9781)
  [coap-secure] fix and test to validate max connection attempt limit (openthread#9803)
  [ip6] add method for creating/parsing IPv4-mapped IPv6 address (openthread#9799)
  [coap-secure] introduce maximum connection attempt limit for CoAP agent (openthread#9694)
  [border-agent] enable `otBorderAgentGetId` API when Border Agent is enabled (openthread#9794)
  [spinel] fix passing an unexpected transmit error to mac layer (openthread#9745)
  [docs] add TREL config group (openthread#9791)
  [cli] use `static constexpr` for constants instead of of `enum` (openthread#9789)
  [radio] add API for resetting CSL parameters (openthread#9772)
  github-actions: bump actions/upload-artifact from 3.1.3 to 4.2.0 (openthread#9788)
  [posix] use /dev/socket/ot-daemon for OT daemon socket (openthread#9776)
  [posix] fix netlink address deletion on posix (openthread#9779)
  [github-actions] remove use of geekyeggo/delete-artifact (openthread#9785)
  [net-diag] handle `MleCounterTlv` in `AppendDiagTlv()` (openthread#9777)
  [github-actions] add write permissions for geekyeggo/delete-artifact (openthread#9780)
  github-actions: bump geekyeggo/delete-artifact from 2.0.0 to 4.1.0 (openthread#9774)
  [github-actions] bump actions/upload-artifact and actions/download-artifact (openthread#9769)
  [tcat] define config defaults (openthread#9768)
  [posix] only add IPv4 route if NAT64 is enabled (openthread#9762)
  [srp] simplify crypto `ReadOrGenerateKey` in srp client (openthread#9764)
  [cli] add pd state (openthread#9757)
  [dtls] fix `OPENTHREAD_CONFIG_DTLS_ENABLE` check (openthread#9767)
  [test] move heap plat APIs in unit test under `extern "C"` block (openthread#9766)
  [srp] update config for auto-start mode to be enabled by default (openthread#9738)
  [ncp] differentiate DETACHED role and DISABLED role (openthread#9760)
  [docs] add Aqara to who supports list (openthread#9758)
  [cli] separate ping sender as a module (openthread#9756)
  [docs] fixed some common typos (openthread#9752)
  [telemetry] add API for TREL telemetry (openthread#9710)
  Bump pycryptodome from 3.17 to 3.19.1 in /tests/scripts/thread-cert (openthread#9755)
  [trel] add config for peer table size and packet pool size (openthread#9750)
  [cli] add Doxygen tags for history commands (openthread#9751)
  [telemetry] add upstream DNS metrics (openthread#9729)
  [dns] add `Name::ComapreMultipleLabels()` and update `Matches()` (openthread#9744)
  [dns] clarify trailing dot in `Name::ExtractLabels()` (openthread#9743)
  [heap-data] add `Matches()` to compare `Heap::Data` with a given buffer (openthread#9740)
  [posix] ignore required anycast address (openthread#9717)
  [cmake] always define `OPENTHREAD_FTD/MTD/RADIO` (openthread#9733)
  [dns] add `Name::Matches()` to compare DNS names (openthread#9734)
  [docs] create config variables list (openthread#9721)
  [factory-diags] fix usage of `OPENTHREAD_RADIO` (openthread#9736)
  [spinel] add spinel net role DISABLED (openthread#9731)
  [dns-types] add template variants of reading DNS names or labels (openthread#9720)
  [github-actions] avoid `dependabot` pull requests in forks (openthread#9728)
  [config] fix typos in config docs (openthread#9725)
  [spinel] fix `OPENTHREAD_ENABLE_SPINEL_VENDOR_HOOK` (openthread#9718)
  github-actions: bump docker/login-action from 2.2.0 to 3.0.0 (openthread#9723)
  [posix] prevent implicit conversion of `aUrl` to `RadioUrl` (openthread#9722)
  [posix] fix circular dependency on `OPENTHREAD_POSIX_CONFIG_DAEMON_ENABLE` (openthread#9719)
  [posix] fix usage of `__linux__` (openthread#9714)
  [docs] reference groups added and typos fixed (openthread#9709)
  [cmake] config posix config file runtime location (openthread#9701)
  [cmake] posix platform runtime configuration file (openthread#9701)
  [cmake] platform power calibration enable (openthread#9701)
  [posix] verify in `otPlatUdpBindToNetif` if Backbone Interface is set. (openthread#9696)
  [unit-test] make sure `otPlatLog()` is defined as `extern "C"` (openthread#9711)
  [routing-manager] advertise local OMR in RA after present in netdata (openthread#9703)
  [cli] add aliases for TCP and SRP concepts guides (openthread#9707)
  [routing-manager] deprecate OMR/on-mesh prefixes when removed from netdata (openthread#9599)
  github-actions: bump actions/setup-go from 4.1.0 to 5.0.0 (openthread#9706)
  [docs] SRP README update minor fix (openthread#9702)
  [cli] add `debug` command (openthread#9587)
  [github-actions] add arm-gcc-13 to build check (openthread#9695)
  [secure-transport] add `SetState()` and log state changes (openthread#9692)
  [mle] fix uninitialized `mLinkRequestAttempts` (openthread#9689)
  [tests] reduce flakiness of `test_publish_meshcop_service.py` (openthread#9690)
  [coap] remove duplicate method for setting `ConnectedCallback` (openthread#9691)
  [spinel] make `kTxWaitUs` configurable during compile time (openthread#9687)
  [secure-transport] rename `HandleUdpReceive` to `HandleReceive` (openthread#9686)
  [mesh-forwarder] finalize message direct tx on drop or eviction (openthread#9682)
  [meshcop-tlvs] simplify and enhance `ChannelMaskTlv` (openthread#9675)
  [tests] rename `get_netdata_nat64_prefix()` to `get_netdata_nat64_routes()` (openthread#9678)
  [posix] expose `platformInfraIfIsRunning()` as `otSysInfraIfIsRunning()` (openthread#9672)
  [telemetry] add api for DHCPv6 PD telemetry (openthread#9645)
  [crypto] remove PSA mbedtls hybrid setup of PBKDF2 function (openthread#9655)
  [crypto] add error handling to PBDF2 generate key function (openthread#9655)
  [tcat] initial commit of bluetooth-based commissioning (openthread#9210)
  [spinel] add vendor hook for the spinel host side (openthread#9560)
  github-actions: bump actions/setup-python from 4.7.0 to 4.7.1 (openthread#9677)
  [meshcop] `MeshCoP::ChannelTlv` to utilize `Mle::ChannelTlvValue` (openthread#9674)
  [srp-client] track registered addresses (openthread#9652)
  [cli] SRP Server Readme update - add srp server auto command (openthread#9669)

Change-Id: I6e9fbc4555569983cc8b8e3d1d03c2f2c82b6b9f
  • Loading branch information
superwhd committed Feb 23, 2024
2 parents 353a453 + f0b6fce commit 81d8cc5
Show file tree
Hide file tree
Showing 1,200 changed files with 169,409 additions and 100,269 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
if: github.repository == "openthread/openthread"
directory: "/"
schedule:
interval: "weekly"
Expand Down
31 changes: 17 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -71,7 +71,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -85,7 +85,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -104,7 +104,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
CXX: ${{ matrix.compiler_cpp }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -163,7 +163,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -182,7 +182,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down Expand Up @@ -233,9 +233,12 @@ jobs:
- gcc_ver: 12
gcc_download_url: https://developer.arm.com/-/media/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz
gcc_extract_dir: arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi
- gcc_ver: 13
gcc_download_url: https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz
gcc_extract_dir: arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down Expand Up @@ -276,7 +279,7 @@ jobs:
CXX: g++-${{ matrix.gcc_ver }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down Expand Up @@ -309,7 +312,7 @@ jobs:
CXX: clang++-${{ matrix.clang_ver }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down Expand Up @@ -347,7 +350,7 @@ jobs:
LDFLAGS: -m32
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down Expand Up @@ -375,7 +378,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down Expand Up @@ -411,7 +414,7 @@ jobs:
CXX: ${{ matrix.CXX }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -435,7 +438,7 @@ jobs:
image: openthread/environment
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -66,7 +66,7 @@ jobs:
sudo apt-get --no-install-recommends install -y ninja-build libreadline-dev libncurses-dev
- name: Initialize CodeQL
uses: github/codeql-action/init@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
uses: github/codeql-action/init@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -80,6 +80,6 @@ jobs:
./script/test build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
uses: github/codeql-action/analyze@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
with:
category: "/language:${{matrix.language}}"
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- docker_name: environment
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Login to DockerHub
if: success() && github.repository == 'openthread/openthread' && github.event_name != 'pull_request'
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -61,7 +61,7 @@ jobs:
fuzz-seconds: 1800
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
if: failure()
with:
name: artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/makefile-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down
41 changes: 20 additions & 21 deletions .github/workflows/otbr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ jobs:
export CI_ENV="$(bash <(curl -s https://codecov.io/env)) -e GITHUB_ACTIONS -e COVERAGE"
echo "CI_ENV=${CI_ENV}"
sudo -E ./script/test cert_suite ./tests/scripts/thread-cert/backbone/*.py || (sudo chmod a+r *.log *.json *.pcap && false)
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
- uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
with:
name: cov-thread-1-3-backbone-docker
path: /tmp/coverage/
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
retention-days: 1
- uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
if: ${{ failure() }}
with:
name: thread-1-3-backbone-results
Expand All @@ -103,10 +104,11 @@ jobs:
- name: Generate Coverage
run: |
./script/test generate_coverage gcc
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
- uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
with:
name: cov-thread-1-3-backbone
path: tmp/coverage.info
retention-days: 1

thread-border-router:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -143,7 +145,7 @@ jobs:
cert_scripts: ./tests/scripts/thread-cert/border_router/nat64/*.py
packet_verification: 1
nat64: 1
description: "nat64 openthread"
description: "nat64"
- otbr_mdns: "avahi"
otbr_trel: 0
cert_scripts: ./tests/scripts/thread-cert/border_router/*.py
Expand All @@ -162,7 +164,7 @@ jobs:
packet_verification: 1
nat64: 0
use_core_firewall: 1
description: "core firewall"
description: "core-firewall"
name: BR ${{ matrix.description }} (${{ matrix.otbr_mdns }}, TREL=${{matrix.otbr_trel}})
env:
REFERENCE_DEVICE: 1
Expand Down Expand Up @@ -206,14 +208,15 @@ jobs:
export CI_ENV="$(bash <(curl -s https://codecov.io/env)) -e GITHUB_ACTIONS -e COVERAGE"
echo "CI_ENV=${CI_ENV}"
sudo -E ./script/test cert_suite ${{ matrix.cert_scripts }} || (sudo chmod a+r *.log *.json *.pcap && false)
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
- uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
with:
name: cov-thread-border-router-docker
name: cov-br-docker-${{ matrix.description }}-${{ matrix.otbr_mdns }}-${{matrix.otbr_trel}}
path: /tmp/coverage/
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
retention-days: 1
- uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
if: ${{ failure() }}
with:
name: thread-border-router-results
name: br-results-${{ matrix.description }}-${{ matrix.otbr_mdns }}-${{matrix.otbr_trel}}
path: |
*.pcap
*.json
Expand All @@ -223,10 +226,11 @@ jobs:
- name: Generate Coverage
run: |
./script/test generate_coverage gcc
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
- uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
with:
name: cov-thread-border-router
name: cov-br-${{ matrix.description }}-${{ matrix.otbr_mdns }}-${{matrix.otbr_trel}}
path: tmp/coverage.info
retention-days: 1

upload-coverage:
needs:
Expand All @@ -240,25 +244,20 @@ jobs:
- name: Bootstrap
run: |
sudo apt-get --no-install-recommends install -y lcov
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
- uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
path: coverage/
pattern: cov-*
merge-multiple: true
- name: Combine Coverage
continue-on-error: true
run: |
script/test combine_coverage
- name: Upload Coverage
continue-on-error: true
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: final.info
fail_ci_if_error: true

delete-coverage-artifacts:
needs: upload-coverage
runs-on: ubuntu-20.04
steps:
- uses: geekyeggo/delete-artifact@54ab544f12cdb7b71613a16a2b5a37a9ade990af # v2.0.0
with:
name: cov-*
useGlob: true
2 changes: 1 addition & 1 deletion .github/workflows/otci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
REAL_DEVICE: 0
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down
Loading

0 comments on commit 81d8cc5

Please sign in to comment.