Граф коммитов

345 Коммитов

Автор SHA1 Сообщение Дата
sidhant012 393f63c8b4
Serialized repair data bug fix (#184)
* bug fix

* FH v1.2.15

* v1.2.15

* v1.2.15 nit

---------

Co-authored-by: Sidhant Bhatia <sibhatia@microsoft.com>
2024-10-29 14:40:10 -04:00
Naresh Kumar ac002aa535
disable plugin reload at every repair workflow start (#181)
* deprecation notice

* new contract changes

* add token to async api

* update callers

* add sample plugin for new plugin contracts

* add default definition for remaing plugin interface methods too

* nit - format

* let plugins control predicate type construction - adds more flexibility

* no need abstraction for plugin loader

* new interface rename

* no need to break service initializer

* move deserialization extension point to predicate type interface

* move predicate load api to existing interface and delete the new one

* give a default body for the obselete method so the plugins dont have to implement those

* change existing usage instead of adding new samples, as it's confusing

* add new app param to determine which version of plugin code shud be used

* use the app param

* automate FH nuget consumption in sample project

* Revert "automate FH nuget consumption in sample project"

This reverts commit 31ae6af2b5.

* reverting sample project changes

* undo app rule change

* var rename

* nit - doc

* no need to catch null ref any more as we check for attribute instance for null

* now that attributes are merged, a single plugin will have multiple attribute usages. so handle that

* prev commit

* caller needs to know the type info even if we use a generic type.
and also that has to be child of FH's TelemetryData not FO's TelemetryData.
so better use string itself.
flexibility over type safety

* nit

* - remove old code
 - remove config that switches flow from old to new as it's not needed any more

* remove attributes that arent used anymore

* nit - method rename

* Made the suggested changes, plus a few minor ones.

* update documentation for plugin changes

* nit

---------

Co-authored-by: Charles Torre <ctorre@microsoft.com>
Co-authored-by: Sidhant Bhatia <sibhatia@microsoft.com>
2024-10-21 11:19:36 -04:00
sidhant012 99b85cd26c
New FH and FHProxy version and release notes (#176)
* FH v1.2.14

* FHProxy v1.0.5

* FH release notes

* Reverting sampleHealerPlugin FH version for codeQL

---------

Co-authored-by: Sidhant Bhatia <sibhatia@microsoft.com>
2024-07-11 16:11:06 -04:00
Sidhant Bhatia fe6431fe2e Updated Guan package 2024-07-02 19:14:10 -04:00
Naresh Kumar 1a4fc0c618 make inmemory events accesible to the plugins 2024-06-14 21:44:38 +05:30
Sidhant Bhatia a796b9724c v1.2.13 2024-03-19 16:31:30 -04:00
Sidhant Bhatia 1f2999b115 fixed variable mismatch 2024-03-19 15:03:23 -04:00
Sidhant Bhatia 11ad768cc5 documentation 2024-03-19 13:38:54 -04:00
Sidhant Bhatia 290d219f2b attribute documentation 2024-03-18 17:18:46 -04:00
Naresh Kumar 5c9c79e139 nit 2024-03-19 00:42:53 +05:30
Naresh Kumar 8cf728d1ec nit - class name correction in doc 2024-03-19 00:32:42 +05:30
Naresh Kumar 20d01391c3
nit 2024-03-18 19:41:48 +05:30
Sidhant Bhatia 497a00f3e2 revised information 2024-03-14 18:13:26 -04:00
Sidhant Bhatia 5c337bbd0e reference fix 2024-03-14 14:36:58 -04:00
Sidhant Bhatia ff1405e01e Added documentation for plugins 2024-03-13 15:01:32 -04:00
Sidhant Bhatia 115c87dc71 backwards compatibility 2024-03-11 18:22:15 -04:00
Naresh Kumar 09f3433aca nit - add this qualifier 2024-03-09 12:25:27 +05:30
Naresh Kumar b42d0d7c5e nit - sample rule rename 2024-03-09 12:24:17 +05:30
Naresh Kumar 27684f41ef shud be overridden by app param 2024-03-07 21:08:49 +05:30
Naresh Kumar 0ecb3d89f6 custom predicates shud support custom repair data so that custom rules can process custom info 2024-03-07 16:29:00 +05:30
Naresh Kumar 1ba2b03a18 add flags to enable/disable custom plugin support.
disabled by default
2024-03-07 16:25:06 +05:30
Naresh Kumar bfadd4f61b nit - function rename 2024-03-06 12:50:32 +05:30
Naresh Kumar 964536359e nit 2024-03-05 10:35:42 +05:30
Naresh Kumar ddefa77ff4 added comment to make it more self explainatory 2024-03-05 10:17:55 +05:30
Naresh Kumar 5e4af4292c undo service initializer rename and namespace change, to avoid breaking changes 2024-03-05 10:12:05 +05:30
Naresh Kumar b41c0596e4 rename - remove custom as it's meaning is redundant. plugin conveys that it's custom 2024-03-02 14:48:23 +05:30
Naresh Kumar d4e311ad3a refactor plugin loading code 2024-03-02 14:40:51 +05:30
Naresh Kumar 5ab5362007 nit 2024-03-02 12:18:19 +05:30
Naresh Kumar c7b8ad4181 renames 2024-03-02 12:17:21 +05:30
Naresh Kumar e31b63d55b sample healer plugin project like the one we have in FO 2024-03-02 00:58:22 +05:30
Naresh Kumar cca6332283 load custom predicates from plugins 2024-03-02 00:55:31 +05:30
Naresh Kumar 2dbcfada2f nit 2024-03-02 00:54:58 +05:30
Naresh Kumar d0ca1f4f16 interface plugins shud implement 2024-03-02 00:51:39 +05:30
Naresh Kumar a9d49f28d3 attribute to instantiate plugin classes 2024-03-02 00:51:19 +05:30
Naresh Kumar 5f8887ce21 move custom attributes to its own folder 2024-03-01 16:00:28 +05:30
Sidhant Bhatia a50a143853 update readme for plugin 2024-02-29 14:36:23 -05:00
Sidhant Bhatia 4a73a6fba9 v1.2.12 2024-02-29 14:01:17 -05:00
Naresh Kumar cb09a526ba Merge branch 'user/kumarnaresh/add_custom_initialization_support' of https://github.com/microsoft/service-fabric-healer into user/kumarnaresh/add_custom_initialization_support 2024-02-29 18:10:26 +05:30
Naresh Kumar 4a914bdfb2 nit 2024-02-29 11:25:07 +05:30
Naresh Kumar 432a7e0f7f service collecton is not needed 2024-02-29 11:23:38 +05:30
Sidhant Bhatia e3aa81dc2b added wrong file 2024-02-28 18:12:24 -05:00
Sidhant Bhatia bf83e0d7ba Remove unnecessary switch statement 2024-02-28 18:05:42 -05:00
Sidhant Bhatia 620df5871d doc clenaup 2024-02-28 17:32:31 -05:00
Naresh Kumar bf291d862d nit 2024-02-25 14:01:47 +05:30
Naresh Kumar 6ca43ced46 nit refactor 2024-02-24 20:22:54 +05:30
Naresh Kumar bb4b2b90b7 improve plugin load error handling 2024-02-24 20:12:28 +05:30
Naresh Kumar a7fd4772a0 no need for service collection, as no info has to be passed to FHManager and that is because no plugin API has to be called at regular intervals like ObserveAsync in FO plugins 2024-02-24 20:11:56 +05:30
Naresh Kumar 81250d15fd nit 2024-02-24 16:46:11 +05:30
Naresh Kumar 1415c540a9 nit 2024-02-24 16:41:30 +05:30
Naresh Kumar 9e71eabedd support multiple assemblies, just in case 2024-02-10 00:05:30 +05:30