platform/core/ml/mlops-agent.git
3 months ago[test] Add unit tests for plugin-parser
Yongjoo Ahn [Wed, 3 Apr 2024 04:00:03 +0000 (13:00 +0900)]
[test] Add unit tests for plugin-parser

- Add more tests covering more functions for plugin other than
  "INSTALL" function.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
3 months ago[test] Fix working `rpk_config.json` file
Yongjoo Ahn [Tue, 2 Apr 2024 07:24:02 +0000 (16:24 +0900)]
[test] Fix working `rpk_config.json` file

- Add `pipelines` and `resources` fields to invoke more lines of plugin
  code.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
3 months ago[test] Fix name of unit tests
Yongjoo Ahn [Mon, 1 Apr 2024 08:13:01 +0000 (17:13 +0900)]
[test] Fix name of unit tests

- Set proper names to each tests.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
3 months ago[CodeClean] unnecessary dbus signal accepted/tizen/unified/20240408.160657 accepted/tizen/unified/x/20240409.070645 accepted/tizen/unified/x/asan/20240415.123305
Jaeyun Jung [Fri, 5 Apr 2024 11:40:43 +0000 (20:40 +0900)]
[CodeClean] unnecessary dbus signal

Code clean, remove unnecessary dbus sig and update interface param.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
3 months ago[modified] modified app-installer process in plugin-parser
Suyeon Kim [Wed, 3 Apr 2024 00:44:46 +0000 (09:44 +0900)]
[modified] modified app-installer process in plugin-parser

- modified app-installer Handle process. - INSTALL, UNINSTALL, UPGRADE.
- delete the installed models, including activated model, by rpk uninstall.

Signed-off-by: Suyeon Kim <suyeon5.kim@samsung.com>
3 months ago[Add] add force-delete model in daemon.
Suyeon Kim [Wed, 3 Apr 2024 00:43:56 +0000 (09:43 +0900)]
[Add] add force-delete model in daemon.

In rpk uninstall, The target model will be deteted, even if the model is activated.
Add force-delete model in daemon.

Signed-off-by: Suyeon Kim <suyeon5.kim@samsung.com>
3 months ago[plugin-parser] Add more failure returns accepted/tizen/unified/20240402.061304 accepted/tizen/unified/x/20240402.093411
Yongjoo Ahn [Wed, 27 Mar 2024 02:07:05 +0000 (11:07 +0900)]
[plugin-parser] Add more failure returns

- Return -1 when pkgmgrinfo APIs failed.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
3 months ago[TDD][plugin-parser] Add unittest for plugin-parser using gmock
Yongjoo Ahn [Thu, 28 Mar 2024 08:07:58 +0000 (17:07 +0900)]
[TDD][plugin-parser] Add unittest for plugin-parser using gmock

- Add unittests testing plugin-parser using gmock.
- Those tests utilizing dlopen / dlsym.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
4 months ago[modified] modified mlops-plugin-parser for parsing updated json format. accepted/tizen/unified/20240326.105123 accepted/tizen/unified/x/20240327.044853
Suyeon Kim [Thu, 21 Mar 2024 06:01:28 +0000 (15:01 +0900)]
[modified] modified mlops-plugin-parser for parsing updated json format.

 - json file is updated from separated files to a single file.
 - add parsing updated json format code in mlops-plugin-parser.

Signed-off-by: Suyeon Kim <suyeon5.kim@samsung.com>
4 months ago[plugin-parser] Add mlops-plugin-parser
Yongjoo Ahn [Wed, 20 Mar 2024 07:04:02 +0000 (16:04 +0900)]
[plugin-parser] Add mlops-plugin-parser

- Add libmlops-plugin-parser.so to handle package install / upgrade / uninstall for Tizen

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
4 months ago[agent] Remove pkg-mgr module from the daemon
Yongjoo Ahn [Wed, 20 Mar 2024 07:01:54 +0000 (16:01 +0900)]
[agent] Remove pkg-mgr module from the daemon

- Remove the module.
- We will replace pkg-mgr module with app-installer's plugin-parser.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
4 months ago[Tizen] Fix gcov build error accepted/tizen/unified/20240319.141128 accepted/tizen/unified/20240319.154901 accepted/tizen/unified/x/20240320.132822
gichan2-jang [Tue, 19 Mar 2024 01:56:59 +0000 (10:56 +0900)]
[Tizen] Fix gcov build error

Due to the lcov 2.0 upgrade, the warning is changed to error so the gcov build fails.
Ignore this case. (Tizen PM guide)

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
4 months ago[Tizen] Add config file for AHUB accepted/tizen/unified/20240319.020735 accepted/tizen/unified/x/20240320.055255
gichan2-jang [Tue, 5 Mar 2024 09:59:50 +0000 (18:59 +0900)]
[Tizen] Add config file for AHUB

 - Add config file for TCA
 - Add exclue file list for SAM

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
4 months ago[CodeClean] invalid typecast accepted/tizen/unified/20240307.075314 accepted/tizen/unified/toolchain/20240311.064828 accepted/tizen/unified/x/20240308.033332
Jaeyun Jung [Tue, 5 Mar 2024 03:03:53 +0000 (12:03 +0900)]
[CodeClean] invalid typecast

Fix invalid typecast to get the dbus proxy.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
4 months agoDaemon/Interface: Cut the dependency on glib.h in MLOps Agent interface
Wook Song [Thu, 22 Feb 2024 04:23:40 +0000 (13:23 +0900)]
Daemon/Interface: Cut the dependency on glib.h in MLOps Agent interface

This patch cuts the dependency on glib.h in the mlops-agent-interface.h.

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months ago[Test] testcase for service-db util
Jaeyun Jung [Tue, 23 Jan 2024 11:13:21 +0000 (20:13 +0900)]
[Test] testcase for service-db util

Add testcases for service-db util functions.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
5 months agoGitHub/Actions: Add a workflow running native build with Clang-17
Wook Song [Wed, 14 Feb 2024 05:20:57 +0000 (14:20 +0900)]
GitHub/Actions: Add a workflow running native build with Clang-17

This patch adds a GitHub Actions workflow that builds the project
using Clang/Clang++-17.

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months agoDaemon/ServiceDB: Fix compile errors related to -Wc99-designator
Wook Song [Wed, 14 Feb 2024 06:23:04 +0000 (15:23 +0900)]
Daemon/ServiceDB: Fix compile errors related to -Wc99-designator

This patch fixes the following compile errors:
- error: array designators are a C99 extension [-Werror,-Wc99-designator]
- error: mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Werror,-c99-designator]

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months agoGitHub/Actions: Add a workflow running gbs Tizen build
Wook Song [Tue, 13 Feb 2024 07:30:22 +0000 (16:30 +0900)]
GitHub/Actions: Add a workflow running gbs Tizen build

This patch adds a GitHub Actions workflow that runs GBS Tizen build and
unit testing.

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months agoTrivial: Clear unnecessary execute bit of source files accepted/tizen/unified/20240214.163929
Wook Song [Tue, 13 Feb 2024 07:16:13 +0000 (16:16 +0900)]
Trivial: Clear unnecessary execute bit of source files

This is a trivial patch that clears source files' unnecessary execute
bits.

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months ago[CodeClean] fix path to run test
Jaeyun Jung [Thu, 8 Feb 2024 08:34:27 +0000 (17:34 +0900)]
[CodeClean] fix path to run test

Code clean, update document and fix path to run unittest.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
5 months ago[Pkg] Fix the include path of package config file
Sangjung Woo [Thu, 8 Feb 2024 08:04:59 +0000 (17:04 +0900)]
[Pkg] Fix the include path of package config file

This patch fixes the include path of package config file.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
5 months ago[Build/Pkg] Rename spec and manifest files
Sangjung Woo [Mon, 5 Feb 2024 08:53:32 +0000 (17:53 +0900)]
[Build/Pkg] Rename spec and manifest files

This patch renames spec and manifest files to mlops-agent.spec and
mlops-agent.manifest. It also update the package name with the'mlops-agent'.
However, the name of D-Bus service is not changed since this channel is
also used as Service API.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
5 months agoGitHub/Actions: Add an action building the project with GCC-13/Ubuntu
Wook Song [Fri, 2 Feb 2024 06:37:42 +0000 (15:37 +0900)]
GitHub/Actions: Add an action building the project with GCC-13/Ubuntu

This patch adds an action that checks the PR by building the project
using GCC-13 on Ubuntu 20.04 and 22.04.

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months agoDist/Tizen: Introduce the machine-learning-agent-test package
Wook Song [Fri, 2 Feb 2024 02:52:02 +0000 (11:52 +0900)]
Dist/Tizen: Introduce the machine-learning-agent-test package

This patch introduces a Tizen package that provides the ML agent for
testing purposes. Several meson build scripts are updated to support it
and the Tizen RPM spec file is also revised.

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months agoMeson: Add workaround for a glib-2.0 (< 2.67.1) internal bug
Wook Song [Fri, 2 Feb 2024 06:27:34 +0000 (15:27 +0900)]
Meson: Add workaround for a glib-2.0 (< 2.67.1) internal bug

Since glib-2.0( < 2.67.1) has a bug that incurs a warning,
incompatible-pointer-types, on gcc (>= 11) as follows:

/usr/include/glib-2.0/glib/gatomic.h:112:5: error: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Werror=incompatible-pointer-types]
  112 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST);   \
      |     ^~~~~~~~~~~~~
This patch adds a workaround for this bug to the meson build script.

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months agoMeson: Remove the unused build option, enable-gcov
Wook Song [Thu, 1 Feb 2024 07:26:55 +0000 (16:26 +0900)]
Meson: Remove the unused build option, enable-gcov

This patch removes the build option, enable-gcov, which is not used
anywhere in the source code.

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months agoDist/Tizen: Remove an unnecessary configure option
Wook Song [Thu, 1 Feb 2024 07:17:20 +0000 (16:17 +0900)]
Dist/Tizen: Remove an unnecessary configure option

This patch removes -Denable-gcov from the Tizen RPM spec file. Note that
this option is used nowhere in the source code.

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months agoDist/Tizen: Use meson and its commands to build and install the targets
Wook Song [Thu, 1 Feb 2024 01:59:14 +0000 (10:59 +0900)]
Dist/Tizen: Use meson and its commands to build and install the targets

This patch replaces the lines directly using ninja in the build and
install sections with the meson's compile and install commands.

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months agoDist/Tizen: Wipe-out the build directory before configuring the project
Wook Song [Wed, 31 Jan 2024 11:58:58 +0000 (20:58 +0900)]
Dist/Tizen: Wipe-out the build directory before configuring the project

This patch adds the omitted wiping-out of the build directory before the
configuration of this project.

Signed-off-by: Wook Song <wook16.song@samsung.com>
5 months agoDist/Tizen: Use a rpm spec macro instead of the hard-coded string
Wook Song [Wed, 31 Jan 2024 11:54:23 +0000 (20:54 +0900)]
Dist/Tizen: Use a rpm spec macro instead of the hard-coded string

This is a trivial patch for cleaning up the Tizen RPM spec file. Instead
of the hard-coded string for build directory, this patch updates it to the
RPM spec macro.

Signed-off-by: Wook Song <wook16.song@samsung.com>
6 months ago[Build] enable tizen feature
Jaeyun Jung [Tue, 23 Jan 2024 04:57:50 +0000 (13:57 +0900)]
[Build] enable tizen feature

1. Add option to set DB path.
2. Enable tizen feature in spec.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
6 months agoGitHub/Workflows: Add an action to check C++ source file format
Wook Song [Tue, 23 Jan 2024 05:10:24 +0000 (14:10 +0900)]
GitHub/Workflows: Add an action to check C++ source file format

This patch adds a GitHub Action workflow to check C++ source file
format.

Signed-off-by: Wook Song <wook16.song@samsung.com>
6 months agoClangFormat: Apply clang-format to all C++ source files
Wook Song [Tue, 23 Jan 2024 04:35:23 +0000 (13:35 +0900)]
ClangFormat: Apply clang-format to all C++ source files

This patch applies clang-format(-16) using NNS's .clang-format to all
C++ source files.

Signed-off-by: Wook Song <wook16.song@samsung.com>
6 months agoClangFormat: Add clang-format style configuration file
Wook Song [Tue, 23 Jan 2024 04:40:15 +0000 (13:40 +0900)]
ClangFormat: Add clang-format style configuration file

This patch imports the clang-format style configuration file from the
NNStreamer repository.

Signed-off-by: Wook Song <wook16.song@samsung.com>
6 months ago[ServiceDB] interface to handle DB data
Jaeyun Jung [Tue, 23 Jan 2024 04:35:05 +0000 (13:35 +0900)]
[ServiceDB] interface to handle DB data

Add c-style DB interface and init/close DB when running daemon.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
6 months ago[ServiceDB] definition to key prefix
Jaeyun Jung [Thu, 18 Jan 2024 07:42:05 +0000 (16:42 +0900)]
[ServiceDB] definition to key prefix

Code clean, remove unnecessary definition of key prefix.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
6 months ago[Test] revise service-db test
Jaeyun Jung [Thu, 18 Jan 2024 07:25:59 +0000 (16:25 +0900)]
[Test] revise service-db test

revise service-db testcases, function to check error case.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
6 months ago[CodeClean] build error after enabling tizen
Jaeyun Jung [Wed, 17 Jan 2024 09:54:26 +0000 (18:54 +0900)]
[CodeClean] build error after enabling tizen

Code clean, fix log function and remove unnecessary path in meson.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
6 months ago[Test] delete unnecessary test
Jaeyun Jung [Mon, 8 Jan 2024 08:37:54 +0000 (17:37 +0900)]
[Test] delete unnecessary test

Delete unnecessary test-dbus and update spec file to install tc.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
6 months ago[Interface] invalid param case
Jaeyun Jung [Tue, 12 Dec 2023 13:02:52 +0000 (22:02 +0900)]
[Interface] invalid param case

1. Add condition to check invalid param of agent interface.
2. Code clean, fix param name and indent.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
6 months ago[Build/Pkg] exec prefix in pc
Jaeyun Jung [Thu, 4 Jan 2024 07:46:09 +0000 (16:46 +0900)]
[Build/Pkg] exec prefix in pc

Update exec prefix when configuring pc file.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
6 months ago[DBus] clear instance before getting new connection
Jaeyun Jung [Fri, 5 Jan 2024 05:15:38 +0000 (14:15 +0900)]
[DBus] clear instance before getting new connection

Code clean, clear dbus instance before getting new connection.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
7 months ago[Log] rename log util
Jaeyun Jung [Wed, 13 Dec 2023 11:39:15 +0000 (20:39 +0900)]
[Log] rename log util

Code clean, rename macro and use predefined log util.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
7 months ago[ServiceDB] check model in database
Jaeyun Jung [Tue, 12 Dec 2023 11:29:49 +0000 (20:29 +0900)]
[ServiceDB] check model in database

Add condition to check model is registered in database.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
7 months ago[Build] add spec for tizen build
Jaeyun Jung [Mon, 11 Dec 2023 11:42:50 +0000 (20:42 +0900)]
[Build] add spec for tizen build

Fix version and add spec for tizen build.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
7 months ago[Doc] set reviewers
Jaeyun Jung [Mon, 11 Dec 2023 08:55:11 +0000 (17:55 +0900)]
[Doc] set reviewers

Add code reviewers for this repogitory.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
7 months ago[Build] add testcase
Jaeyun Jung [Mon, 11 Dec 2023 08:10:48 +0000 (17:10 +0900)]
[Build] add testcase

Update meson script, add testcases from api repo.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
7 months ago[Doc] update description
Jaeyun Jung [Mon, 11 Dec 2023 08:02:06 +0000 (17:02 +0900)]
[Doc] update description

Fix link to main page and update documents.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
7 months ago[Build] prepare meson build
Jaeyun Jung [Wed, 6 Dec 2023 05:42:19 +0000 (14:42 +0900)]
[Build] prepare meson build

Initial commit, migrate ml-agent and dbus code from api repo.
Prepare meson build for dbus and ml-agent first.

TODO:
1. fix version of ml-agent packages.
2. enable testcase.
3. add .spec for tizen release.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
7 months agoInitial commit
MyungJoo Ham [Wed, 6 Dec 2023 05:19:04 +0000 (14:19 +0900)]
Initial commit