Commit Graph

23 Commits

Author SHA1 Message Date
Andrew Mayorov
899bd71161
TD-312: Update to valitydev/damsel@dac2cb5 (#12)
* Drop proprietary CI stuff
* Sync with valitydev/erlang-templates@da1971c
* Update to valitydev/dmt-core@7584133
2022-06-20 11:17:22 +03:00
Jarosław Rogov
64591401b0
Feat/upstream latest (#53)
* deps: Fix build_utils dir

* feat: Add use_upstream_latest force fetch option

* fix: Add lower limits for max cache size opts

* fix: Fix dialyzer warning

* test: Add use_upstream_latest test

* fix: Fix use_upstream_latest opt fetching

* fix: Add option to sys.config

* ref: Fix naming

* ref: Fix dialyzer warning

* ref: Fix do_get naming

* ref: Move constants to defines

* fix: Check cache limits on start, refactor cache

* test: Fix unit tests

* fix: Fix dialyzer issue

* ref: Rename to use_cached_latest

* fix: Fix option invertion

* fix: Fix inversion once again

* fix: Remove use_cached_latest as env opt

* Revert "fix: Remove use_cached_latest as env opt"

This reverts commit a5216280e1c0a7c5a1bf3420cb60cf6e51343677.

* fix: Remove from opts

* ref: Rename to use_cached_last_version

* fix: Fix use_cached_last_version default

* test: Check default case
2021-10-21 17:58:03 +03:00
Yaroslav Rogov
3f66402843
Fix/commit latest (#52)
* fix: add pre-commit cache update for latest

* test: Remove unnecessary update

* refactor: Add updating_ref_to_version

* feat: Add /3 versions of convenience methods
2021-07-23 16:15:54 +03:00
Yaroslav Rogov
f6e181e86f
feat: Add convenience methods (#50)
* feat: Add convenience methods

* test: Add tests and fix and refactor things

* tests: Fix remove test

* fix: Remove god_modules warning for dmt_client

* chore: Fix elvis config

* chore: Fix elvis typo

* feat: Add sync opt to commit with default of true

* test: Remove unnecessary updates from tests

* fix: Remove commit update opts

* fix typo
2021-07-22 14:34:45 +03:00
Yaroslav Rogov
3d62d9bb7a
feat: Add latest option to commit and pull_range (#49)
* feat: Add latest option to commit and pull_range

* fix: typos

* feat: Add checkout/0

* test: Make tests more concise
2021-07-09 17:45:58 +03:00
Yaroslav Rogov
53924f4de4
fix: Change opts passing to include woody_context (#47)
* fix: Change opts passing to include woody_context

* test: Fix tests

* fix: More opts passing

* fix: Switch from proc_lib spawn to usual

* fix: Fix dmt_client_api opts parsing
2021-06-30 18:26:34 +03:00
Yaroslav Rogov
128f9f193b
Ed 180/feat/extra methods (#44)
* refactor: Switch to ensure_version variant of functions

* refactor: Fix naming and redundant API

* feat: Add get_by_type, filter and fold

* refactor: Generalize fetch_version, remove update

* feat: Add implicit head API, easier ref passing

* refactor: fix linter warning

* refactor: Fix linter for sure

* refactor: remove test-only methods

* refactor: split updating and fetching

* refactor: Fix ref and version type and API args

* fix: Fix cleanup perms issue for cleanup

* test: Fix tests for new API

* feat: deferred usage-based cleanup

* fix: PoC of fixing the stale-head issue

* perf: switch to ordered_set for snapshot tables

* feat: Switch to ets-based lock version

* fix: Fix cleanup interval options

* feat: Add time-based  snap-users table usage

* fix: Fix cleanup for locked snapshots

* fix: Add users-table cleanup

* fix: Improve update_head history check

* fix: Remove stale unlock cast

* fix: Fix cleanup_users for dead processes

* refactor: Fix dialyzer errors

* refactor: Fix recs for ets match specs for dialyze

* refactor: Simplify with_version

* refactor: switch back to checkout_* names

* Revert "refactor: Simplify with_version"

This reverts commit 8e1d925f72.

* Revert "fix: Fix cleanup_users for dead processes"

This reverts commit ff808b00a1.

* Revert "fix: Remove stale unlock cast"

This reverts commit c6f09fd640.

* Revert "fix: Add users-table cleanup"

This reverts commit 5665ee6df2.

* Revert "fix: Fix cleanup for locked snapshots"

This reverts commit c3a843887b.

* Revert "feat: Add time-based  snap-users table usage"

This reverts commit f852c7595c.

* Revert "fix: Fix cleanup interval options"

This reverts commit b3b5c30828.

* Revert "feat: Switch to ets-based lock version"

This reverts commit 8a224b81f8.

* Revert "feat: deferred usage-based cleanup"

This reverts commit cd8eef5d46.

* refactor: Fix init spec

* refactor: Fix cache API semantics

* chore: Mention proposal move to another task

* Revert "fix: Improve update_head history check"

This reverts commit 597d77a690.

* Revert "fix: PoC of fixing the stale-head issue"

This reverts commit 357c772284.
2021-06-29 14:28:57 +03:00
Andrey Fadeev
9e11f50e9c
Add formatter (#41)
* Add erlfmt
* Apply erlfmt
* Update build-utils
* Switch to Erlang lib pipe
2020-10-14 12:38:41 +03:00
Andrew Mayorov
24e3aad9ce
Bump to rbkmoney/woody_erlang@d106ef6 (#40)
* Bump to rbkmoney/genlib@1ca0879
* Bump to rbkmoney/dominant@6896d15 service image
* Bump to rbkmoney/machinegun@b366973 service image

Co-authored-by: Toporkov Igor <i.toporkov@rbkmoney.com>
2020-08-19 12:49:41 +03:00
Sergei Shuvatov
621fb49e9c
HG-494: rename dmsl to damsel (#30) 2019-07-31 14:45:27 +03:00
Toporkov Igor
6bb0b65a18
MSPF-438: Erlang 21 (#28)
* Revert "DC-116: Revert "Add Erlang 21 support (#24)" (#25)"

This reverts commit 97fdfe552c.

* Added hay metrics, updated to new deps

* Removed redundant configs

* Customizable event_handlers

* renamed event_handlers option
2019-05-07 17:31:16 +03:00
Sergei Shuvatov
ea5b1fd6d0
DC-116: implement LRU cache and workers (#27) 2019-05-06 16:19:41 +03:00
Sergei
97fdfe552c
DC-116: Revert "Add Erlang 21 support (#24)" (#25)
This reverts commit 22f5a54f87.
2019-04-22 20:07:25 +03:00
Andrey Fadeev
22f5a54f87
Add Erlang 21 support (#24) 2019-04-19 19:38:14 +03:00
Evgeny Levenets
8387fbed6f
fix wrong exception in checkout_object function (#22) 2018-07-09 13:29:39 +03:00
Andrey Fadeev
8a7fc3ec9b
Update test container images to latest versions (#21) 2018-07-06 20:02:59 +03:00
Evgeny Levenets
84b2735c0e
add ability to specify woody-opts on each call (#19)
* move network timeouts to sys.config
* add ability to specify woody-opts on each call
2018-06-19 14:44:35 +03:00
Evgeny Levenets
6de81bcb84 DC-34: added naive cache displacement implementation (#15) 2017-05-18 12:48:42 +03:00
Evgeny Levenets
d2be019477 DC-35: added cache and bumped some dependencies (#14) 2017-05-12 12:29:13 +03:00
Evgeny Levenets
8b2982e409 DC-11: fresh new transient woody (#9)
Bumped to e1782b323b
2016-12-27 21:50:43 +03:00
Evgeny Levenets
9a1df31957 MSPF-91: fixed crash on poll in case of error, updated tests (#5) 2016-10-19 00:21:16 +03:00
Igor Savchuk
cdb89bf59b use damsel_erlang
use damsel_erlang
2016-10-13 00:57:26 +03:00
Igor Savchuk
b63fcd77e9 HG-34: core files 2016-09-01 21:27:12 +03:00