Fix ACTS failures on qemuarm
Initial testing showed that practically no HAP tests produce any output. It seems there's some systemic problem, like missing or not working service or feature.
Mandatory Distributed task scheduling
component has no test suite to execute in the source code.
Mandatory ACTS status on qemuarma7
:
-
[ ]- not needed according to the comment belowDistributed task scheduling
- no test suite in the source code - discuss with OpenAtom -
[ ] //test/xts/acts/compileruntime:compileruntime- not needed according to the comment below[ ] ActsUrlJsTest.json - HAP doesn't produce result - timeout or test failure[ ] ActsWorkerJSTest.json - HAP doesn't produce result - timeout or test failure[ ] ActsProcessJSApiTest.json - HAP doesn't produce result - timeout or test failure[ ] ActsUtilJsTest.json - HAP doesn't produce result - timeout or test failure
-
//test/xts/acts/hiviewdfx:hiviewdfxtestacts
- ActsFaultLoggerTest.json - 2/2
- ActsHiAppEventJsTest.json - 24/24
- ActsHiCollieCppTest.json - 11/11
- ActsHilogTest.json - 75/75
- ActsLibhilogCPPTest.json - 41/41
- ActsLibhilogCTest.json - 41/41
- ActsHiSysEventCPPTest.json - 20/20
- ActsHitraceCPPTest.json - 7/7
- ActsHitraceCTest.json - 7/7
-
//test/xts/acts/startup:startup
- ActsStartupJSApiTest.json - 90/90
-
//test/xts/acts/powermgr:powermgr
- ActsPowerMgrBatteryTest.json - 35/35
-
//test/xts/acts/account:account
- ActsOsAccountJSApiTest.json - 7/7
-
//test/xts/acts/communication:communication
-
ActsWifiJSApiTest.json - HAP doesn't produce result - timeout or test failurenot needed because there is no WiFi on qemu
-
-
//test/xts/acts/distributeddatamgr:distributeddatamgr
- ActsAppdatamagrJsTest.json - 368/368
- ActsDistributedDatamgrJsTest.json - 57/57
-
//test/xts/acts/appexecfwk:appexecfwk and aafwk:aafwk
- ActsContextTest.json - 11/11
- ActsAmsDataUriUtilsTest.json - 20/20
- ActsAmsZipfileUnzipfileSTest.json - 51/51
- ActsGetWantAllTest.json - 19/19 (inconsistently)
- ActsFeatureAbilityTest.json - 42/42 (inconsistently)
- ActsBmsCheckPermissionTest.json 16/16
- ActsBmsJsTest.json 4/4
- ActsBmsKitTest.json 6/6
- ActsBmsModuleUsageRecordTest.json 14/14
- ActsBundleManagerTest.json 87/87
- ActsBundleManagerUninstallTest.json 8/8
- Show closed items
Relates to
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Esben Haabendal marked this issue as related to #18 (closed)
marked this issue as related to #18 (closed)
- Esben Haabendal changed milestone to %goofy beta
changed milestone to %goofy beta
- Robert Drab changed the description
Compare with previous version changed the description
- Robert Drab changed the description
Compare with previous version changed the description
- Robert Drab changed iteration to *iteration:14
changed iteration to *iteration:14
- Robert Drab set weight to 10
set weight to 10
- Robert Drab marked this issue as related to #52 (closed)
marked this issue as related to #52 (closed)
- Contributor
According to a replay from jiyong@huawei.com on 06-Aug-22 10:13 to our email regarding
Public base library
(some tests are present in the//test/xts/acts/compileruntime:compileruntime
but are not being built) andDistributed task scheduling
(no tests whatsoever are present in the/test/xts/acts
directory):OpenHarmony 3.0.1-LTS version, a test suite with two components missing from the minimal test set introspection table:
- Public base library
- Distributed task scheduling
Please approve Oniro Compatibility Test without building and testing both components.
---This part does not need to be tested
- Robert Drab changed the description
Compare with previous version changed the description
- Contributor
It turned out that haps generated in meta-openharmony are broken. Until that is sorted out for debugging / testing using ACTS haps built in vanilla OpenHarmony-LTS-3.0.1 build.
- Robert Drab closed
closed
- Robert Drab reopened
reopened
- Esben Haabendal assigned to @robertd
assigned to @robertd
- Contributor
Comparing qemu and HiTaurus board logs from running
ActsStartupJSApiTest.json
following failure happens on qemu:08-12 10:17:54.427 465 473 I 03b00/JSApp: app Log: start################################start 08-12 10:17:54.445 465 475 E 03900/Ace: [card_transition_controller.cpp(operator())] handle event: 3 failed. unknown event. 08-12 10:17:54.508 255 255 W 01510/IPCObjectProxy: SendObituary: handle = 16 call OnRemoteDied 08-12 10:17:54.509 255 255 I 01510/IPCWorkThreadPool: 60: SpawnThread Name= 4IPC 08-12 10:17:54.509 255 255 I 01510/IPCWorkThreadPool: 67: SpawnThread, now idleThreadNum_ =11 08-12 10:17:54.509 255 255 I 01510/IPCWorkThread: void OHOS::IPCWorkThread::Start(int, int, std::string) 87: create thread = 4IPC255_255, policy=0, proto=0 08-12 10:17:54.509 255 255 W 01510/IPCObjectProxy: SendObituary: handle = 17 call OnRemoteDied 08-12 10:17:54.510 255 255 E 01000/AbilityManagerService: [ability_scheduler_stub.cpp(OnRemoteDied:565)]recv AbilitySchedulerRecipient death notice 08-12 10:17:54.510 255 255 D 01000/AbilityManagerService: [ability_record.cpp(OnSchedulerDied:851)]On scheduler died. 08-12 10:17:54.510 255 255 I 01000/AbilityManagerService: [ability_record.cpp(OnSchedulerDied:880)]Ability on scheduler died: 'ohos.acts.startup.js.function.MainAbility' 08-12 10:17:54.511 218 372 W 01510/IPCObjectProxy: SendObituary: handle = 3 call OnRemoteDied 08-12 10:17:54.518 255 330 E 01110/AppMgrService: [app_mgr_service_inner.cpp(OptimizerAbilityStateChanged):989] process optimizer is not init 08-12 10:17:54.518 255 330 E 01110/AppMgrService: [app_mgr_service_inner.cpp(OptimizerAppStateChanged):1039] process optimizer is not init 08-12 10:17:54.519 255 330 W 01510/IPCObjectProxy: not databus dbinder, need do nothing 08-12 10:17:54.519 255 330 W 01510/IPCObjectProxy: handle = 16 destroyed 08-12 10:17:54.529 218 372 W 01510/IPCObjectProxy: not databus dbinder, need do nothing 08-12 10:17:54.530 218 372 W 01510/IPCObjectProxy: handle = 3 destroyed 08-12 10:17:54.541 255 285 I 01000/AbilityManagerService: [ability_stack_manager.cpp(OnAbilityDied:2059)]On ability died.
Reason of this failure is not yet known.
- Contributor
As it turned out, tests are not being executed when they are started from
onShow()
method in HAPindex.js
. With following patch in //test/xts/acts:diff --git a/startup/startup_standard/src/main/js/default/pages/index/index.js b/startup/startup_standard/src/main/js/default/pages/index/index.js index 173f299a..0466f9fc 100644 --- a/startup/startup_standard/src/main/js/default/pages/index/index.js +++ b/startup/startup_standard/src/main/js/default/pages/index/index.js @@ -24,8 +24,7 @@ export default { }, onInit() { this.title = this.$t('strings.world'); - }, - onShow() { + console.info('onShow finish') const core = Core.getInstance() const expectExtend = new ExpectExtend({ @@ -41,6 +40,8 @@ export default { require('../../test/List.test') core.execute() }, + onShow() { + }, onReady() { }, }
ActsStartupJSApiTest.json
test suite has a pass ratio of 63/92 (it may be higher as the test suite exits on first failure).I expect similar patch will enable executing rest of the ACTS hap tests.
Edited by Robert Drab - Contributor
Vanilla OpenHarmony-3.0.1 acts test suite acts-suites.tgz
Edited by Robert Drab - Author Developer
You have listed
ActsWifiJSApiTest.json
. Does this belong to our list of mandatory tests when we don't have wifi support? Collapse replies - Contributor
It was marked as mandatory. We'll need to discus it.
- Esben Haabendal changed iteration to *iteration:15
changed iteration to *iteration:15
- Contributor
Tests that pass with test code executed from
onInit
instead ofonShow
:Testcase ActsOsAccountJSApiTest.json: PASS total cases:7;failure 0,error 0,pass 7; consuming 4.35S
Testcase ActsAmsDataUriUtilsTest.json: PASS total cases:20;failure 0,error 0,pass 20; consuming 10.34S
- Robert Drab marked the checklist item ActsOsAccountJSApiTest.json - HAP doesn't produce result - timeout or test failure as completed
marked the checklist item ActsOsAccountJSApiTest.json - HAP doesn't produce result - timeout or test failure as completed
- Robert Drab marked the checklist item //test/xts/acts/account:account as completed
marked the checklist item //test/xts/acts/account:account as completed
- Robert Drab marked the checklist item ActsAmsDataUriUtilsTest.json - HAP doesn't produce result - timeout or test failure as completed
marked the checklist item ActsAmsDataUriUtilsTest.json - HAP doesn't produce result - timeout or test failure as completed
- Robert Drab changed the description
Compare with previous version changed the description
- Robert Drab changed the description
Compare with previous version changed the description
- Robert Drab changed the description
Compare with previous version changed the description
- Robert Drab changed the description
Compare with previous version changed the description
- Robert Drab changed the description
Compare with previous version changed the description
- Robert Drab changed the description
Compare with previous version changed the description
- Robert Drab changed the description
Compare with previous version changed the description
- Robert Drab changed the description
Compare with previous version changed the description
- Francesco Pham marked the checklist item ActsStartupJSApiTest.json - 63/92 as completed
marked the checklist item ActsStartupJSApiTest.json - 63/92 as completed
- Francesco Pham marked the checklist item ActsPowerMgrBatteryTest.json - 24/35 as completed
marked the checklist item ActsPowerMgrBatteryTest.json - 24/35 as completed
- Francesco Pham marked the checklist item //test/xts/acts/startup:startup as completed
marked the checklist item //test/xts/acts/startup:startup as completed
- Francesco Pham marked the checklist item //test/xts/acts/powermgr:powermgr as completed
marked the checklist item //test/xts/acts/powermgr:powermgr as completed
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham marked the checklist item //test/xts/acts/distributeddatamgr:distributeddatamgr as completed
marked the checklist item //test/xts/acts/distributeddatamgr:distributeddatamgr as completed
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham mentioned in merge request !88 (merged)
mentioned in merge request !88 (merged)
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham marked the checklist item ActsWifiJSApiTest.json - HAP doesn't produce result - timeout or test failure as completed
marked the checklist item ActsWifiJSApiTest.json - HAP doesn't produce result - timeout or test failure as completed
- Francesco Pham marked the checklist item ActsWifiJSApiTest.json - HAP doesn't produce result - timeout or test failure as incomplete
marked the checklist item ActsWifiJSApiTest.json - HAP doesn't produce result - timeout or test failure as incomplete
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Maintainer
ActsAmsZipfileUnzipfileSTest.json
needs some files to test zipping and unzipping.I wasn't able to find these files in the test suites so I generated them myself. Download the following files and place them in the following directory
${OHOE_DIR}/build/tmp-musl/work/cortexa7-neon-vfpv4-oe-linux-musleabi/openharmony-standard/3.0-r0/src/out/ohos-arm-release/suites/acts/testcases/resource/appexecfwk/
TODO: Make these files built in openharmony-standard recipe
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham mentioned in merge request !89 (merged)
mentioned in merge request !89 (merged)
- Francesco Pham mentioned in merge request !90 (merged)
mentioned in merge request !90 (merged)
- Esben Haabendal changed the description
Compare with previous version changed the description
- Francesco Pham mentioned in commit mrfrank/meta-openharmony@7742315c
mentioned in commit mrfrank/meta-openharmony@7742315c
- Francesco Pham mentioned in merge request !93 (merged)
mentioned in merge request !93 (merged)
- Francesco Pham mentioned in commit mrfrank/meta-openharmony@b8b7e638
mentioned in commit mrfrank/meta-openharmony@b8b7e638
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham changed the description
Compare with previous version changed the description
- Kareem Zarka mentioned in merge request !99 (merged)
mentioned in merge request !99 (merged)
- Kareem Zarka marked the checklist item //test/xts/acts/hiviewdfx:hiviewdfxtestacts as completed
marked the checklist item //test/xts/acts/hiviewdfx:hiviewdfxtestacts as completed
- Francesco Pham marked the checklist item ActsHiAppEventJsTest.json - 24/24 as incomplete
marked the checklist item ActsHiAppEventJsTest.json - 24/24 as incomplete
- Francesco Pham marked the checklist item ActsAmsZipfileUnzipfileSTest.json - 51/51 (needs some test resources to work) as incomplete
marked the checklist item ActsAmsZipfileUnzipfileSTest.json - 51/51 (needs some test resources to work) as incomplete
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham mentioned in merge request !102 (merged)
mentioned in merge request !102 (merged)
- Kareem Zarka mentioned in merge request !103 (merged)
mentioned in merge request !103 (merged)
- Kareem Zarka marked the checklist item ActsAmsZipfileUnzipfileSTest.json - 51/51 (needs some test resources to work) as completed
marked the checklist item ActsAmsZipfileUnzipfileSTest.json - 51/51 (needs some test resources to work) as completed
- Kareem Zarka marked the checklist item //test/xts/acts/appexecfwk:appexecfwk and aafwk:aafwk as completed
marked the checklist item //test/xts/acts/appexecfwk:appexecfwk and aafwk:aafwk as completed
- Francesco Pham changed the description
Compare with previous version changed the description
- Francesco Pham marked the checklist item //test/xts/acts/communication:communication as completed
marked the checklist item //test/xts/acts/communication:communication as completed