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

Eslint plugin style fixes #3757

Merged
merged 13 commits into from
Sep 26, 2024
Merged

Eslint plugin style fixes #3757

merged 13 commits into from
Sep 26, 2024

Conversation

jsnoble
Copy link
Member

@jsnoble jsnoble commented Sep 17, 2024

No description provided.

@jsnoble jsnoble changed the title Draft: Eslint plugin style fixes Eslint plugin style fixes Sep 23, 2024
jest.config.base.js Outdated Show resolved Hide resolved
@sotojn
Copy link
Contributor

sotojn commented Sep 26, 2024

Here are logs from when the shutdown emitter is called from the ex server when window is in the jest config:

2024-09-26T16:57:28.847Z socket.io-parser encoding packet {"type":2,"data":["shutdown"],"nsp":"/"}
2024-09-26T16:57:28.847Z socket.io-parser encoded {"type":2,"data":["shutdown"],"nsp":"/"} as 2["shutdown"]
2024-09-26T16:57:28.847Z socket.io:client writing packet ["2[\"shutdown\"]"]
  console.log
    @@@@@ this.server.volatile.emit("shutdown") ran 1 times!

      at Server.log (packages/teraslice-messaging/dist/src/messenger/server.js:125:17)

  console.log
    @@@ after  this.server.volatile.emit("shutdown");

      at Server.log (packages/teraslice-messaging/dist/src/messenger/server.js:126:17)

  console.log
    @@@@@@@@@@@@@@ isTest:  true

      at Server.log (packages/teraslice-messaging/dist/src/messenger/server.js:127:17)

2024-09-26T16:57:28.850Z socket.io-client:manager writing packet {"type":2,"data":["client:available",{"id":"oddkx76Mv4","eventName":"client:available","from":"192.168.12.97__CxLISLvs","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}],"options":{"compress":true},"nsp":"/"}
2024-09-26T16:57:28.851Z socket.io-parser encoding packet {"type":2,"data":["client:available",{"id":"oddkx76Mv4","eventName":"client:available","from":"192.168.12.97__CxLISLvs","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}],"options":{"compress":true},"nsp":"/"}
2024-09-26T16:57:28.851Z socket.io-parser encoded {"type":2,"data":["client:available",{"id":"oddkx76Mv4","eventName":"client:available","from":"192.168.12.97__CxLISLvs","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}],"options":{"compress":true},"nsp":"/"} as 2["client:available",{"id":"oddkx76Mv4","eventName":"client:available","from":"192.168.12.97__CxLISLvs","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}]
2024-09-26T16:57:28.851Z engine.io-client:socket flushing 1 packets in socket
2024-09-26T16:57:28.851Z engine.io-client:polling-xhr xhr open POST: http://localhost:18016/socket.io/?clientId=192.168.12.97__CxLISLvs&clientType=worker&EIO=3&transport=polling&t=P8lH2WJ&b64=1&sid=p_icGoupRILiYoA3AAAA
2024-09-26T16:57:28.851Z engine.io-client:polling-xhr xhr data 204:42["client:available",{"id":"oddkx76Mv4","eventName":"client:available","from":"192.168.12.97__CxLISLvs","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}]
2024-09-26T16:57:28.851Z engine intercepting request for path "/socket.io/"
2024-09-26T16:57:28.851Z engine handling "GET" http request "/socket.io/?clientId=192.168.12.97__CxLISLvs&clientType=worker&EIO=3&transport=polling&t=P8lH2Vs&b64=1&sid=p_icGoupRILiYoA3AAAA"
2024-09-26T16:57:28.851Z engine setting new request for existing client
2024-09-26T16:57:28.851Z engine:polling setting request
2024-09-26T16:57:28.851Z engine:socket executing batch send callback
2024-09-26T16:57:28.852Z engine intercepting request for path "/socket.io/"
2024-09-26T16:57:28.852Z engine handling "POST" http request "/socket.io/?clientId=192.168.12.97__CxLISLvs&clientType=worker&EIO=3&transport=polling&t=P8lH2WJ&b64=1&sid=p_icGoupRILiYoA3AAAA"
2024-09-26T16:57:28.852Z engine setting new request for existing client
2024-09-26T16:57:28.852Z engine:polling received "204:42["client:available",{"id":"oddkx76Mv4","eventName":"client:available","from":"192.168.12.97__CxLISLvs","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}]"
2024-09-26T16:57:28.852Z engine:socket packet
2024-09-26T16:57:28.852Z socket.io-parser decoded 2["client:available",{"id":"oddkx76Mv4","eventName":"client:available","from":"192.168.12.97__CxLISLvs","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}] as {"type":2,"nsp":"/","data":["client:available",{"id":"oddkx76Mv4","eventName":"client:available","from":"192.168.12.97__CxLISLvs","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}]}
2024-09-26T16:57:28.852Z socket.io:socket got packet {"type":2,"nsp":"/","data":["client:available",{"id":"oddkx76Mv4","eventName":"client:available","from":"192.168.12.97__CxLISLvs","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}]}
2024-09-26T16:57:28.852Z socket.io:socket emitting event ["client:available",{"id":"oddkx76Mv4","eventName":"client:available","from":"192.168.12.97__CxLISLvs","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}]
2024-09-26T16:57:28.852Z socket.io:socket dispatching an event ["client:available",{"id":"oddkx76Mv4","eventName":"client:available","from":"192.168.12.97__CxLISLvs","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}]
2024-09-26T16:57:28.852Z socket.io:client writing packet {"type":2,"data":["message:response",{"id":"oddkx76Mv4","eventName":"client:available","from":"ExecutionController","to":"192.168.12.97__CxLISLvs","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}],"nsp":"/"}
2024-09-26T16:57:28.852Z socket.io-parser encoding packet {"type":2,"data":["message:response",{"id":"oddkx76Mv4","eventName":"client:available","from":"ExecutionController","to":"192.168.12.97__CxLISLvs","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}],"nsp":"/"}
2024-09-26T16:57:28.852Z socket.io-parser encoded {"type":2,"data":["message:response",{"id":"oddkx76Mv4","eventName":"client:available","from":"ExecutionController","to":"192.168.12.97__CxLISLvs","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}],"nsp":"/"} as 2["message:response",{"id":"oddkx76Mv4","eventName":"client:available","from":"ExecutionController","to":"192.168.12.97__CxLISLvs","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}]
2024-09-26T16:57:28.852Z engine:socket sending packet "message" (2["message:response",{"id":"oddkx76Mv4","eventName":"client:available","from":"ExecutionController","to":"192.168.12.97__CxLISLvs","payload":{},"volatile":true,"response":true,"respondBy":1727369850950}])
2024-09-26T16:57:28.852Z engine:socket flushing buffer to transport

Here is when window is removed from the jest config:

    @@@ before this.server.volatile.emit("shutdown");

      at Server.log (packages/teraslice-messaging/dist/src/messenger/server.js:117:17)

2024-09-26T17:14:32.496Z socket.io-parser encoding packet {"type":2,"data":["shutdown"],"nsp":"/"}
2024-09-26T17:14:32.496Z socket.io-parser encoded {"type":2,"data":["shutdown"],"nsp":"/"} as 2["shutdown"]
2024-09-26T17:14:32.496Z socket.io:client writing packet ["2[\"shutdown\"]"]
2024-09-26T17:14:32.496Z engine:socket sending packet "message" (2["shutdown"])
2024-09-26T17:14:32.496Z engine:socket flushing buffer to transport
2024-09-26T17:14:32.496Z engine:ws writing "42["shutdown"]"
  console.log
    @@@@@ this.server.volatile.emit("shutdown") ran 1 times!

      at Server.log (packages/teraslice-messaging/dist/src/messenger/server.js:125:17)

  console.log
    @@@ after  this.server.volatile.emit("shutdown");

      at Server.log (packages/teraslice-messaging/dist/src/messenger/server.js:126:17)

  console.log
    @@@@@@@@@@@@@@ isTest:  true

      at Server.log (packages/teraslice-messaging/dist/src/messenger/server.js:127:17)

2024-09-26T17:14:32.497Z socket.io-client:manager writing packet {"type":2,"data":["client:available",{"id":"xoce4tlaV_","eventName":"client:available","from":"192.168.12.97__c6hxCmx7","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727370874570}],"options":{"compress":true},"nsp":"/"}
2024-09-26T17:14:32.497Z socket.io-parser encoding packet {"type":2,"data":["client:available",{"id":"xoce4tlaV_","eventName":"client:available","from":"192.168.12.97__c6hxCmx7","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727370874570}],"options":{"compress":true},"nsp":"/"}
2024-09-26T17:14:32.497Z socket.io-parser encoded {"type":2,"data":["client:available",{"id":"xoce4tlaV_","eventName":"client:available","from":"192.168.12.97__c6hxCmx7","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727370874570}],"options":{"compress":true},"nsp":"/"} as 2["client:available",{"id":"xoce4tlaV_","eventName":"client:available","from":"192.168.12.97__c6hxCmx7","to":"ExecutionController","payload":{},"volatile":true,"response":true,"respondBy":1727370874570}]
2024-09-26T17:14:32.497Z engine.io-client:socket flushing 1 packets in socket
2024-09-26T17:14:32.497Z engine.io-client:socket socket receive: type "message", data "2["shutdown"]"
2024-09-26T17:14:32.497Z socket.io-parser decoded 2["shutdown"] as {"type":2,"nsp":"/","data":["shutdown"]}
2024-09-26T17:14:32.497Z socket.io-client:socket emitting event ["shutdown"]
2024-09-26T17:14:32.497Z teraslice:worker:messaging:client [DEBUG] server ExecutionController shutdown
2024-09-26T17:14:32.497Z teraslice:worker [WARN] Execution Controller shutdown, exiting...
2024-09-26T17:14:32.497Z socket.io-client:socket performing disconnect (/)
2024-09-26T17:14:32.497Z socket.io-client:manager writing packet {"type":1,"nsp":"/"}
2024-09-26T17:14:32.497Z socket.io-parser encoding packet {"type":1,"nsp":"/"}
2024-09-26T17:14:32.497Z socket.io-parser encoded {"type":1,"nsp":"/"} as 1
2024-09-26T17:14:32.497Z socket.io-client:manager disconnect
2024-09-26T17:14:32.497Z socket.io-client:socket close (io client disconnect)
2024-09-26T17:14:32.498Z teraslice:worker:messaging:client [INFO] client 192.168.12.97__c6hxCmx7 disconnected { reason: 'io client disconnect' }

package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@sotojn sotojn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once Peter's requested changes are in it looks good

@jsnoble jsnoble merged commit 8a6c703 into master Sep 26, 2024
67 checks passed
@jsnoble jsnoble deleted the eslint-plugin-style-fixes branch September 26, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants