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

Nara master update #5096

Merged
merged 10 commits into from
Mar 13, 2024
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@oclif/test": "^1.2.5",
"@types/chai": "^4.2.11",
"@types/mocha": "^5.2.7",
"@types/node": "^10.17.18",
"@types/node": "^18.6.0",
"chai": "^4.2.0",
"eslint": "^7.6.0",
"eslint-config-oclif": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/argus/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eks-cluster",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/aws": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/node-network/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "joystream-node-network",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/aws": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/orion/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eks-cluster",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/awsx": "^0.30.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/pulumi-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pulumi-common",
"version": "1.0.0",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/kubernetes": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/query-node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "query-node",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/aws": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/storage-node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eks-cluster",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/aws": "^4.0.0",
Expand Down
8 changes: 8 additions & 0 deletions distributor-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 2.1.0

- Nara release.

### 2.0.0

- Replaced `Query-Node` API with `Storage-Squid` Graphql API. This is a breaking change and requires the `endpoints.queryNode` configuration option to be replaced with `endpoints.storageSquid`.

## 1.5.1

- Added parsing of Axios errors on logger level so that we never log the whole Axios client instance (which is a circular object and causes the node to crash)
Expand Down
4 changes: 2 additions & 2 deletions distributor-node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@joystream/distributor-cli",
"description": "Joystream distributor node CLI",
"version": "2.0.0",
"version": "2.1.0",
"author": "Joystream contributors",
"bin": {
"joystream-distributor": "./bin/run"
Expand Down Expand Up @@ -69,7 +69,7 @@
"@types/inquirer": "^8.1.1",
"@types/mime": "^3.0.1",
"@types/mocha": "^5",
"@types/node": "^14",
"@types/node": "^18.6.0",
"@types/node-cache": "^4.2.5",
"@types/node-cleanup": "^2.1.1",
"@types/send": "^0.17.0",
Expand Down
13 changes: 13 additions & 0 deletions storage-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
### 4.1.0

- Nara release.

### 4.0.1

- Set the `server.requestTimeout` option in `http.Server` instance to 0 to disable the timeout. This was default behaviour pre Node.js `18.x`

### 4.0.0

- Replaced `Query-Node` API with `Storage-Squid` Graphql API. This is a breaking change and requires the `--queryNodeEndpoint` configuration option to be replaced with `--storageSquidEndpoint`.

### 3.10.2

- Fix processing large arrays causing high cpu during sync and cleanup runs [#5033](https://github.com/Joystream/joystream/pull/5033)

- Fix task runner to avoid ending prematurely on individual task failure [#5033](https://github.com/Joystream/joystream/pull/5033)
Expand Down
6 changes: 6 additions & 0 deletions storage-node/client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ export interface StatusResponse {
* @memberof StatusResponse
*/
'version': string;
/**
*
* @type {number}
* @memberof StatusResponse
*/
'uptime': number;
/**
*
* @type {string}
Expand Down
4 changes: 2 additions & 2 deletions storage-node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "storage-node",
"description": "Joystream storage subsystem.",
"version": "4.0.0",
"version": "4.1.0",
"author": "Joystream contributors",
"bin": {
"storage-node": "./bin/run"
Expand Down Expand Up @@ -79,7 +79,7 @@
"@types/chai": "^4",
"@types/cors": "^2.8.12",
"@types/mocha": "^5",
"@types/node": "^10",
"@types/node": "^18.6.0",
"@types/pg": "^8.6.1",
"@types/swagger-ui-express": "^4.1.2",
"@types/ws": "^5.1.2",
Expand Down
3 changes: 3 additions & 0 deletions storage-node/src/api-spec/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ components:
type: object
required:
- version
- uptime
- queryNodeStatus
- uploadBuckets
- downloadBuckets
Expand All @@ -280,6 +281,8 @@ components:
properties:
version:
type: string
uptime:
type: number
nodeEnv:
type: string
queryNodeStatus:
Expand Down
6 changes: 5 additions & 1 deletion storage-node/src/commands/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,11 @@ Supported values: warn, error, debug, info. Default:debug`,
},
x_host_id: X_HOST_ID,
})
app.listen(port, () => logger.info(`Listening on http://localhost:${port}`))
const server = app.listen(port, () => logger.info(`Listening on http://localhost:${port}`))

// INFO: https://nodejs.org/dist/latest-v18.x/docs/api/http.html#serverrequesttimeout
// Set the server request timeout to 0 to disable it. This was default behaviour pre Node.js 18.x
server.requestTimeout = 0
} catch (err) {
logger.error(`Server error: ${err}`)
this.exit(ExitCodes.ServerError)
Expand Down
1 change: 1 addition & 0 deletions storage-node/src/services/webApi/controllers/stateApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export async function getStatus(req: express.Request, res: express.Response<Stat
// Copy from an object, because the actual object could contain more data.
res.status(200).json({
version: proc.version,
uptime: Math.floor(process.uptime()),
uploadBuckets,
downloadBuckets,
sync,
Expand Down
19 changes: 13 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5008,7 +5008,7 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.2.5.tgz#26d295f3570323b2837d322180dfbf1ba156fefb"
integrity sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==

"@types/node@^10", "@types/node@^10.0.3", "@types/node@^10.1.0", "@types/node@^10.17.18":
"@types/node@^10.0.3", "@types/node@^10.1.0":
version "10.17.60"
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b"
integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==
Expand All @@ -5018,16 +5018,18 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.52.tgz#2fd2dc6bfa185601b15457398d4ba1ef27f81251"
integrity sha512-cfkwWw72849SNYp3Zx0IcIs25vABmFh73xicxhCkTcvtZQeIez15PpwQN8fY3RD7gv1Wrxlc9MEtfMORZDEsGw==

"@types/node@^14":
version "14.18.18"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.18.tgz#5c9503030df484ccffcbb935ea9a9e1d6fad1a20"
integrity sha512-B9EoJFjhqcQ9OmQrNorItO+OwEOORNn3S31WuiHvZY/dm9ajkB7AKD/8toessEtHHNL+58jofbq7hMMY9v4yig==

"@types/node@^14.11.2":
version "14.18.22"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.22.tgz#fd2a15dca290fc9ad565b672fde746191cd0c6e6"
integrity sha512-qzaYbXVzin6EPjghf/hTdIbnVW1ErMx8rPzwRNJhlbyJhu2SyqlvjGOY/tbUt6VFyzg56lROcOeSQRInpt63Yw==

"@types/node@^18.6.0":
version "18.19.22"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.22.tgz#f622f92514b897e6b09903e97c16a0db8e94689f"
integrity sha512-p3pDIfuMg/aXBmhkyanPshdfJuX5c5+bQjYLIikPLXAUycEogij/c50n/C+8XOA5L93cU4ZRXtn+dNQGi0IZqQ==
dependencies:
undici-types "~5.26.4"

"@types/node@^8.0.0":
version "8.10.66"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.10.66.tgz#dd035d409df322acc83dff62a602f12a5783bbb3"
Expand Down Expand Up @@ -21633,6 +21635,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.6.0.tgz#8b38b10cacdef63337b8b24e4ff86d45aea529a8"
integrity sha512-z4o1fvKUojIWh9XuaVLUDdf86RQiq13AC1dmHbTpoyuu+bquHms76v16CjycCbec87J7z0k//SiQVk0sMdFmpQ==

undici-types@~5.26.4:
version "5.26.5"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==

undici@^5.1.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/undici/-/undici-5.2.0.tgz#18c5bd59f8f1b1ed8dcc9dca2f754c44ec994059"
Expand Down
Loading