-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add space client to AppContext #836
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alicja-gruzdz
approved these changes
Apr 4, 2023
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.
a really clever idea, thanks for your help with this.
patuwwy
force-pushed
the
feature/space-client
branch
from
April 4, 2023 21:32
c4f71c7
to
4b1edff
Compare
patuwwy
force-pushed
the
feature/space-client
branch
from
April 5, 2023 06:14
69ddfa1
to
19fcb45
Compare
patuwwy
force-pushed
the
feature/space-client
branch
from
April 6, 2023 00:52
19fcb45
to
ba0327a
Compare
patuwwy
force-pushed
the
feature/space-client
branch
from
April 6, 2023 17:06
ba0327a
to
e360f7e
Compare
patuwwy
force-pushed
the
feature/space-client
branch
3 times, most recently
from
June 6, 2023 10:44
7838f4b
to
c709b10
Compare
patuwwy
force-pushed
the
feature/space-client
branch
from
June 19, 2023 08:50
c709b10
to
6cd8f3f
Compare
patuwwy
changed the title
Add getSpaceClient to HostClient
Add space client to AppContext
Jun 19, 2023
patuwwy
force-pushed
the
feature/space-client
branch
from
June 20, 2023 15:10
2a3cdc0
to
1dc1c03
Compare
a-tylenda
approved these changes
Jun 22, 2023
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.
patuwwy
force-pushed
the
feature/space-client
branch
from
July 7, 2023 11:04
5644cbc
to
7f048db
Compare
verified after rebase: ✔ ~/shared/transform-hub/bdd/data/sequences/seq [feature/space-client|…1⚑ 1]
11:21 $ si inst stdout -
Instance output start
Manager ManagerClient { apiBase: 'http://scramjet-host/api/v1/cpm/api/v1' }
Manager version {
service: '@scramjet/manager',
apiVersion: 'v1',
version: '0.32.4',
build: '30f6943'
}
Hubs connected to space [
{
id: 'sth-0',
info: {
created: '2023-06-30T11:29:22.850Z',
lastConnected: '2023-06-30T11:29:23.141Z'
},
healthy: true,
isConnectionActive: true,
selfHosted: false,
description: '',
tags: []
},
{
id: 'SELF_HOSTED_STH-1',
info: {
created: '2023-07-04T09:08:02.331Z',
lastConnected: '2023-07-04T09:08:04.449Z',
lastDisconnected: '2023-07-04T09:09:33.469Z'
},
healthy: false,
isConnectionActive: false,
selfHosted: true,
description: 'Some description',
tags: [ 'tag1', ' tag2' ]
},
{
id: 'SHH-1',
info: {
created: '2023-07-03T09:11:39.747Z',
lastConnected: '2023-07-03T09:11:41.080Z',
lastDisconnected: '2023-07-03T09:18:32.273Z'
},
healthy: false,
isConnectionActive: false,
selfHosted: true,
description: 'My awesome Self-Hosted Hub <3',
tags: [ 'scramjet', ' samples' ]
},
{
id: 'shh-1',
info: {
created: '2023-07-07T11:21:14.523Z',
lastConnected: '2023-07-07T11:21:14.798Z'
},
healthy: true,
isConnectionActive: true,
selfHosted: true,
description: 'My awesome Self-Hosted Hub <3',
tags: [ 'scramjet', ' samples' ]
}
]
Instance output end and logs from sth: 2023-07-07T11:21:24.801Z TRACE CSIController [b118d163] Instance started
2023-07-07T11:21:24.801Z TRACE Host [shh-1] CSIController started [ 'b118d163-db38-474a-908f-ff7c4777f019' ]
2023-07-07T11:21:24.801Z TRACE CPMConnector [shh-1] Send instance status update [ 0 ]
2023-07-07T11:21:24.801Z TRACE CPMConnector [shh-1] Instance status update sent [ 0 ]
2023-07-07T11:21:24.802Z DEBUG Host [shh-1] Instance limits [ { memory: 512 } ]
2023-07-07T11:21:24.802Z DEBUG LokiAdapter [shh-1] Pushing log entry [ '["Instance started",{"version":"0.34.4","environment":"vm","hostSize":"m","ip":"51.444.13.111","adapter":"process","id":"b118d163-db38-474a-908f-ff7c4777f019","language":"js","seqId":"e1d46f5b-b7c0-4007-b0f1-ec572722e361"}]' ]
2023-07-07T11:21:24.804Z DEBUG Host [shh-1] Request [ 'date: 2023-07-07T11:21:22.278Z, method: POST, url: /api/v1/sequence/e1d46f5b-b7c0-4007-b0f1-ec572722e361/start, status: 200' ]
2023-07-07T11:21:24.811Z INFO Host [shh-1] SPACE REQUEST [ '/api/v1/cpm/api/v1/version', 'version' ]
2023-07-07T11:21:24.811Z INFO CPMConnector [shh-1] make HTTP Req to CPM [ 'https://api-hybrid.scp.ovh/api/v1/cpm/org-f8d19d60-0dc6-446b-9794-c701f5c3a584-manager/api/v1/version' ]
2023-07-07T11:21:24.812Z INFO VerserClient Creating muxed channel in verser connection
2023-07-07T11:21:24.887Z DEBUG Host [shh-1] Request [ 'date: 2023-07-07T11:21:24.812Z, method: GET, url: /api/v1/cpm/api/v1/version, status: 200' ]
2023-07-07T11:21:24.893Z INFO Host [shh-1] SPACE REQUEST [ '/api/v1/cpm/api/v1/list', 'list' ]
2023-07-07T11:21:24.893Z INFO CPMConnector [shh-1] make HTTP Req to CPM [ 'https://api-hybrid.scp.ovh/api/v1/cpm/org-f8d19d60-0dc6-446b-9794-c701f5c3a584-manager/api/v1/list' ]
2023-07-07T11:21:24.893Z INFO VerserClient Creating muxed channel in verser connection
2023-07-07T11:21:24.926Z DEBUG Host [shh-1] Request [ 'date: 2023-07-07T11:21:24.893Z, method: GET, url: /api/v1/cpm/api/v1/list, status: 200' ]
2023-07-07T11:21:24.929Z TRACE Host [shh-1] PANG received [ { provides: '', requires: undefined, contentType: '' } ]
2023-07-07T11:21:24.929Z TRACE CSIController [b118d163] Got message: SEQUENCE_COMPLETED. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Usage:
Sample Sequence printing Space version and the list of connected Hubs to stdout:
Review checks:
These aspects need to be checked by the reviewer:
when host is not connected all ManagerClient requests return 404