Skip to content

Commit

Permalink
[IM] Fix potential CI crash and random CI failure (project-chip#17158)
Browse files Browse the repository at this point in the history
* [IM] Fix CI crash and random CI failure

* lift ci timeout

* Fix
  • Loading branch information
erjiaqing authored Apr 8, 2022
1 parent 3621b3b commit 2358a9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cirque.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ concurrency:
jobs:
cirque:
name: Cirque
timeout-minutes: 60
timeout-minutes: 75

env:
DOCKER_RUN_VERSION: 0.5.56
Expand Down
1 change: 1 addition & 0 deletions src/app/InteractionModelEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ class InteractionModelEngine : public Messaging::ExchangeDelegate,
readClient->mpImEngine = nullptr;
auto * tmpClient = readClient->GetNextClient();
readClient->SetNextClient(nullptr);
readClient->Close(CHIP_NO_ERROR);
readClient = tmpClient;
}

Expand Down
6 changes: 4 additions & 2 deletions src/controller/TypedReadCallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ class TypedReadAttributeCallback final : public app::ReadClient::Callback
aReadPrepareParams.mpAttributePathParamsList != nullptr);
chip::Platform::Delete<app::AttributePathParams>(aReadPrepareParams.mpAttributePathParamsList);

VerifyOrDie(aReadPrepareParams.mDataVersionFilterListSize == 1 && aReadPrepareParams.mpDataVersionFilterList != nullptr);
chip::Platform::Delete<app::DataVersionFilter>(aReadPrepareParams.mpDataVersionFilterList);
if (aReadPrepareParams.mDataVersionFilterListSize == 1 && aReadPrepareParams.mpDataVersionFilterList != nullptr)
{
chip::Platform::Delete<app::DataVersionFilter>(aReadPrepareParams.mpDataVersionFilterList);
}
}

ClusterId mClusterId;
Expand Down

0 comments on commit 2358a9a

Please sign in to comment.