Skip to content
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

begin: update eventFactory context based on the initial one #1375

Merged
merged 2 commits into from
Dec 13, 2022

Conversation

glazychev-art
Copy link
Contributor

@glazychev-art glazychev-art commented Nov 7, 2022

Signed-off-by: Artem Glazychev artem.glazychev@xored.com

Description

In the current implementation, we update the eventFactory context after a successful request.
This is not quite right, because in addition to updating the context values, we also update the request timeout. It is calculated on the wayback.
For example, the request came with a timeout of 15s and took 5s. For the event factory, we calculate 10s, but we need 15s.

Issue link

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionallity
  • Documentation
  • Refactoring
  • CI

@glazychev-art glazychev-art force-pushed the begin_postpone branch 2 times, most recently from 7b46db5 to fbb4bb2 Compare November 23, 2022 04:50
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
@denis-tingaikin
Copy link
Member

@edwarnicke Could you also have a look into that?

@denis-tingaikin
Copy link
Member

@glazychev-art Could you rebase this on the latest main and check that tests are working?

@glazychev-art
Copy link
Contributor Author

@denis-tingaikin
It is already rebased (I did it yesterday) - #1375 (comment)

@edwarnicke edwarnicke merged commit bb4ba1a into networkservicemesh:main Dec 13, 2022
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-cluster-info-k8s that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Dec 13, 2022
…k@main

PR link: networkservicemesh/sdk#1375

Commit: bb4ba1a
Author: Artem Glazychev
Date: 2022-12-14 01:25:56 +0700
Message:
  - begin: update eventFactory context based on the initial one (#1375)
* begin: update eventFactory context based on the initial one

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Replace assert with require

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants