-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Rework OPA policies with go 'embed' #1018
refactor: Rework OPA policies with go 'embed' #1018
Conversation
aa97513
to
8dc8249
Compare
8dc8249
to
515ef43
Compare
@@ -103,16 +103,16 @@ func NewServer(ctx context.Context, tokenGenerator token.GeneratorFunc, options | |||
rv.NetworkServiceServer = chain.NewNamedNetworkServiceServer( | |||
opts.name, | |||
append([]networkservice.NetworkServiceServer{ | |||
serialize.NewServer(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
serialize
cannot stand before updatepath
- in such case all Request/Close events generated from refresh
/timeout
/heal
will race with Request/Close coming from previous hop, because they will have different Connection.Id
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems as a problem with serialize
. But ok, I'll fix sequence because @edwarnicke planning to replace serialize
to begin
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Bolodya1997 Do you have an idea why all tests working fine when serialize
is first in the chain? Did we miss scenario coverage tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI for chain when serialize is first https://github.com/networkservicemesh/sdk/actions/runs/1040411831
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have sandbox tests for timeout/refresh overlapping with Close/Request coming from the Client - it is pretty hard to guarantee such case without using clock
in sandbox.
3d9c610
to
86e542c
Compare
Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com>
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
86e542c
to
919f3b9
Compare
…k@main PR link: networkservicemesh/sdk#1018 Commit: 9c4ad0c Author: Denis Tingaikin Date: 2021-08-19 16:52:56 +0300 Message: - refactor: Rework OPA policies with go 'embed' (#1018) * rework OPA policies with go embed Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com> * move tokens adding from updatepath to upatetoken Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * fix linter issue Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1018 Commit: 9c4ad0c Author: Denis Tingaikin Date: 2021-08-19 16:52:56 +0300 Message: - refactor: Rework OPA policies with go 'embed' (#1018) * rework OPA policies with go embed Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com> * move tokens adding from updatepath to upatetoken Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * fix linter issue Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1018 Commit: 9c4ad0c Author: Denis Tingaikin Date: 2021-08-19 16:52:56 +0300 Message: - refactor: Rework OPA policies with go 'embed' (#1018) * rework OPA policies with go embed Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com> * move tokens adding from updatepath to upatetoken Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * fix linter issue Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1018 Commit: 9c4ad0c Author: Denis Tingaikin Date: 2021-08-19 16:52:56 +0300 Message: - refactor: Rework OPA policies with go 'embed' (#1018) * rework OPA policies with go embed Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com> * move tokens adding from updatepath to upatetoken Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * fix linter issue Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1018 Commit: 9c4ad0c Author: Denis Tingaikin Date: 2021-08-19 16:52:56 +0300 Message: - refactor: Rework OPA policies with go 'embed' (#1018) * rework OPA policies with go embed Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com> * move tokens adding from updatepath to upatetoken Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * fix linter issue Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1018 Commit: 9c4ad0c Author: Denis Tingaikin Date: 2021-08-19 16:52:56 +0300 Message: - refactor: Rework OPA policies with go 'embed' (#1018) * rework OPA policies with go embed Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com> * move tokens adding from updatepath to upatetoken Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * fix linter issue Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1018 Commit: 9c4ad0c Author: Denis Tingaikin Date: 2021-08-19 16:52:56 +0300 Message: - refactor: Rework OPA policies with go 'embed' (#1018) * rework OPA policies with go embed Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com> * move tokens adding from updatepath to upatetoken Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * fix linter issue Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1018 Commit: 9c4ad0c Author: Denis Tingaikin Date: 2021-08-19 16:52:56 +0300 Message: - refactor: Rework OPA policies with go 'embed' (#1018) * rework OPA policies with go embed Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com> * move tokens adding from updatepath to upatetoken Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * fix linter issue Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1018 Commit: 9c4ad0c Author: Denis Tingaikin Date: 2021-08-19 16:52:56 +0300 Message: - refactor: Rework OPA policies with go 'embed' (#1018) * rework OPA policies with go embed Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com> * move tokens adding from updatepath to upatetoken Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * fix linter issue Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com> * apply review comments Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Signed-off-by: denis-tingajkin denis.tingajkin@xored.com
Description
Motivation
updatepath
. Now updatepath is just updating path.How Has This Been Tested?
Types of changes