25 Commits
Author SHA1 Message Date
Dario Gabriel LipicarandClaude Opus 5 4248520a7c refactor(api)!: rename version() to libstorageVersion()
`version` is now reserved for module identity. The generator injects
`version() -> tstr` from metadata.json for every module, and refuses a module
that declares the name with any other signature:

    storage_module.lidl: module 'storage_module' declares 'version() -> result',
    but 'version' is reserved for module identity and must be 'version() -> tstr'

That refusal is what currently blocks this module -- and everything downstream of
it -- from building against the current logos-module-builder.

This is a rename, not a removal, because the method is not the module's version
at all: it returns the version string of the underlying libstorage (Nim) library,
read from the live storage context. The module's OWN version was already exposed
separately as moduleVersion(), which is untouched.

So after this change the three are distinct and each says what it is:

    version()            -> tstr    injected from metadata.json (module identity)
    moduleVersion()      -> tstr    this module's version, from the build
    libstorageVersion()  -> result  the Nim library's version, from the node

moduleVersion() is left alone deliberately. It is now redundant with the injected
version(), but removing it is a second API break with no forcing reason, and it
belongs in its own change rather than riding along with an unblocking one.

BREAKING CHANGE: consumers calling storage_module.version() expecting the
libstorage string must call libstorageVersion(). The break is loud rather than
silent -- version() still exists, but returns a plain string instead of a
LogosResult, so a stale call site fails to compile rather than quietly reading
the wrong version. logos-storage-ui's StorageBackend::logVersion() is the one
in-tree caller and needs the companion one-line change.

Verified against the generated artifact rather than by inspection: the emitted
storage_module.lidl now carries `method libstorageVersion() -> result` and no
`method version()`, and logos-storage-ui -- the consumer whose qt-generator run
was failing -- builds clean against this module with the current
logos-module-builder.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-22 22:50:13 -03:00
Arnaud 5f3d94f451 Update tests to reflect the callback calls on error 2026-08-10 12:14:04 +04:00
Arnaud 4ec309981f chore: update logos storage nim (#72) 2026-08-03 15:43:09 -03:00
Arnaud 2eb900a049 chore: guard multiple init (#61)
* Guard multiple init

* Return false on double init
2026-06-29 15:06:42 -03:00
Arnaud 3130fad51d Fix tests 2026-06-29 17:41:35 +04:00
Arnaud 0bde27196d Add fix remove with events 2026-06-29 17:19:00 +04:00
Arnaud e7ff264a37 Update test 2026-06-29 15:31:06 +04:00
Arnaud 7b87eaa10f Fetch manifests using events 2026-06-29 15:24:12 +04:00
Arnaud 861f3e3e15 Restore integration tests 2026-06-29 09:47:05 +04:00
Marcin Czenko 89944708d7 test: adds more tests as suggested by copilot 2026-06-24 13:16:31 +02:00
Marcin Czenko e97dda02b0 feat: expose storage metrics api 2026-06-24 13:16:31 +02:00
Khushboo Mehta ea1745e1b6 feat: use new event mechanism 2026-06-23 20:28:17 +02:00
Arnaud 0c53b9a475 feat: add mix toggle (#41)
* Update Logos Storage nim to the last version

* Update docs

* Fix titles

* Fix doc reference

* Update documentation

* Improve tutorial

* Update preview

* update docs

* Save report into output dir

* Remove orphan docs (replaced by doctest)

* Improve docs

* Add CLAUDE.md

* Update documentation

* Make docs stricter

* Update storage module and provide more tests
2026-06-22 09:31:49 -03:00
Iuri Matias 500b2be394 update to new api
update to new api

update to new api

update flake

update flake

update to latest logos module builder

address some code review comments

address more comments
2026-06-09 10:54:13 +04:00
Arnaud bc08f874b0 Rename for more clarity 2026-04-13 16:51:24 +04:00
Arnaud ceec3d3fe1 Update tests 2026-04-13 16:51:24 +04:00
Arnaud 428972e4e1 Update tests to run start / stop for each test case 2026-04-13 16:49:58 +04:00
Iuri Matias add01f900c add module tests
add module tests

test module builder branch

fix flake

update flake

update flake
2026-04-06 15:09:01 -04:00
Iuri Matias e7d1d2be66 adapt tests to the module testing framework
adapt tests to the module testing framework

adapt tests to the module testing framework
2026-04-06 10:07:22 -04:00
Arnaud 66db423296 Make tests more independant by start / stop node for each test 2026-03-23 11:44:42 +04:00
Arnaud e4a30c32b1 Add remaining tests 2026-03-18 16:37:17 +04:00
Arnaud dc43bc1a7f Add downloads 2026-03-18 16:37:17 +04:00
Arnaud dd31f50d54 Add upload test case 2026-03-18 16:02:34 +04:00
Arnaud 0f66ea4a8f Add first tests 2026-03-18 16:00:52 +04:00
Arnaud 3719225cdf Add tests 2026-03-18 16:00:51 +04:00