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

feat: Enhance Script Details and Add MacOS Compatibility with Documentation Updates #1794

Merged
merged 2 commits into from
Jan 21, 2024

Conversation

cubxxw
Copy link
Contributor

@cubxxw cubxxw commented Jan 21, 2024


🔍 What type of PR is this?

👀 What this PR does / why we need it:

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

This Pull Request introduces several enhancements to the existing scripts, adding support for MacOS deployment, and updating the documentation to reflect these changes. The key updates include:

  1. Script Optimization: Improved the overall structure and readability of the scripts, making them more efficient and easier to maintain.

  2. MacOS Compatibility: Extended support to MacOS by adding conditional statements to handle differences in command-line tools, especially the ps command, ensuring seamless functionality across both Linux and MacOS platforms.

  3. Documentation Improvements: Updated the documentation to include instructions and notes on MacOS compatibility, providing clear guidance for users deploying on MacOS.

These enhancements not only make the scripts more versatile and user-friendly but also ensure a wider range of compatibility, catering to a broader audience. This PR is a step forward in improving the usability and accessibility of our project, making it more inclusive for users across different operating systems.

I have thoroughly tested these changes on both Linux and MacOS environments to ensure reliability and consistency in performance.

🅰 Which issue(s) this PR fixes:

Fixes #1793

📝 Special notes for your reviewer:

🎯 Describe how to verify it

Could you please assist with the validation of deployment through CICD and on a local Mac computer?

📑 Additional documentation e.g., RFC, notion, Google docs, usage docs, etc.:

@kubbot
Copy link
Contributor

kubbot commented Jan 21, 2024

OpenIM Test

OpenIM API Test

Command Output for OpenIM API Test

===========> Run api test
{"errCode":1001,"errMsg":"ArgsError","errDlt":"header must have operationID: 1001 ArgsError"}
{"errCode":1001,"errMsg":"ArgsError","errDlt":"header must have token: 1001 ArgsError"}
User registration failed.
TODO: openim test man
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiJvcGVuSU0xMjM0NTYiLCJQbGF0Zm9ybUlEIjoxLCJleHAiOjE3MTM1ODAzNjMsIm5iZiI6MTcwNTgwNDA2MywiaWF0IjoxNzA1ODA0MzYzfQ.mAWNr1flhlS2QF6sePGM1PXKfOLXDj9o9wMXDF_UXQo
Requesting force logout for user: {
  "platformID": 2,
  "userID": "4950983283"
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
�[32m[success 0121 02:32:43] �[0m==>  Auth test suite completed successfully.
Request body for user registration: {
  "secret": "openIM123",
  "users": [
    {
      "userID": "22318",
      "nickname": "user01",
      "faceURL": "new_face_url"
    }
  ]
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
Request body for user registration: {
  "secret": "openIM123",
  "users": [
    {
      "userID": "26803",
      "nickname": "user01",
      "faceURL": "new_face_url"
    }
  ]
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "checkUserIDs": [
    "26803",
    "openIM123456",
    "openIM654321",
    "openIMAdmin"
  ]
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"results":[{"userID":"26803","accountStatus":"registered"},{"userID":"openIM123456","accountStatus":"registered"},{"userID":"openIM654321","accountStatus":"registered"},{"userID":"openIMAdmin","accountStatus":"registered"}]}}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "pagination": {
    "pageNumber": 1,
    "showNumber": 100
  }
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"total":2,"users":[{"userID":"22318","nickname":"user01","faceURL":"new_face_url","ex":"","createTime":1705804363234,"appMangerLevel":0,"globalRecvMsgOpt":0},{"userID":"26803","nickname":"user01","faceURL":"new_face_url","ex":"","createTime":1705804363273,"appMangerLevel":0,"globalRecvMsgOpt":0}]}}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "userIDs": [
    "26803",
    "openIM123456"
  ]
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"usersInfo":[{"userID":"26803","nickname":"user01","faceURL":"new_face_url","ex":"","createTime":1705804363273,"appMangerLevel":0,"globalRecvMsgOpt":0},{"userID":"openIM123456","nickname":"system1","faceURL":"","ex":"","createTime":-62135596800000,"appMangerLevel":2,"globalRecvMsgOpt":0}]}}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "userIDs": [
    "26803",
    "openIM123456",
    "openIM654321",
    "openIMAdmin"
  ]
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":[{"userID":"26803","status":"offline","detailPlatformStatus":null},{"userID":"openIM123456","status":"offline","detailPlatformStatus":null},{"userID":"openIM654321","status":"offline","detailPlatformStatus":null},{"userID":"openIMAdmin","status":"offline","detailPlatformStatus":null}]}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "userInfo": {
    "userID": "26803",
    "nickname": "openimbot",
    "faceURL": "https://github.com/openimbot"
  }
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "userID": "26803"
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"statusList":null}}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "userID": "9168684795",
  "userIDs": [
    "7475779354",
    "6317136453",
    "8450535746"
  ],
  "genre": 1
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"statusList":[{"userID":"7475779354","status":0,"platformIDs":null},{"userID":"6317136453","status":0,"platformIDs":null},{"userID":"8450535746","status":0,"platformIDs":null}]}}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "userID": "26803",
  "globalRecvMsgOpt": 0
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
�[32m[success 0121 02:32:43] �[0m==>  User test suite completed successfully.
Request body for user registration: {
  "secret": "openIM123",
  "users": [
    {
      "userID": "10095",
      "nickname": "user01",
      "faceURL": "new_face_url"
    }
  ]
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
Request body for user registration: {
  "secret": "openIM123",
  "users": [
    {
      "userID": "8802",
      "nickname": "frient01",
      "faceURL": "new_face_url"
    }
  ]
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
Request body for user registration: {
  "secret": "openIM123",
  "users": [
    {
      "userID": "25168",
      "nickname": "frient02",
      "faceURL": "new_face_url"
    }
  ]
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "userID1": "10095",
  "userID2": "8802"
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"inUser1Friends":false,"inUser2Friends":false}}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "fromUserID": "10095",
  "toUserID": "8802",
  "reqMsg": "hello!",
  "ex": ""
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "userID": "10095",
  "pagination": {
    "pageNumber": 1,
    "showNumber": 100
  }
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"friendsInfo":null,"total":0}}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "userID": "openIM123456",
  "pagination": {
    "pageNumber": 1,
    "showNumber": 100
  }
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"FriendRequests":null,"total":0}}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "userID": "10095",
  "pagination": {
    "pageNumber": 1,
    "showNumber": 100
  }
}
+++ [0121 02:32:43] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"friendRequests":[{"fromUserID":"10095","fromNickname":"user01","fromFaceURL":"new_face_url","toUserID":"8802","toNickname":"frient01","toFaceURL":"new_face_url","handleResult":0,"reqMsg":"hello!","createTime":1705804363830,"handlerUserID":"","handleMsg":"","handleTime":0,"ex":""}],"total":1}}
�[32m[success 0121 02:32:43] �[0m==>  Operation was successful.
{
  "ownerUserID": "10095",
  "blackUserID": "25168"
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "ownerUserID": "10095",
  "blackUserID": "25168"
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "userID": "10095",
  "pagination": {
    "pageNumber": 1,
    "showNumber": 100
  }
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"blacks":null,"total":0}}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
�[32m[success 0121 02:32:44] �[0m==>  Friend test suite completed successfully.
Request body for user registration: {
  "secret": "openIM123",
  "users": [
    {
      "userID": "2602",
      "nickname": "group00",
      "faceURL": "new_face_url"
    }
  ]
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
Request body for user registration: {
  "secret": "openIM123",
  "users": [
    {
      "userID": "26673",
      "nickname": "group01",
      "faceURL": "new_face_url"
    }
  ]
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
Request body for user registration: {
  "secret": "openIM123",
  "users": [
    {
      "userID": "14104",
      "nickname": "group02",
      "faceURL": "new_face_url"
    }
  ]
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "memberUserIDs": [
    "14104"
  ],
  "adminUserIDs": [
    "26673"
  ],
  "ownerUserID": "2602",
  "groupInfo": {
    "groupID": "12727",
    "groupName": "test-group",
    "notification": "notification",
    "introduction": "introduction",
    "faceURL": "faceURL url",
    "ex": "ex",
    "groupType": 2,
    "needVerification": 0,
    "lookMemberInfo": 0,
    "applyMemberFriend": 0
  }
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"groupInfo":{"groupID":"12727","groupName":"test-group","notification":"notification","introduction":"introduction","faceURL":"faceURL url","ownerUserID":"2602","createTime":1705804364255,"memberCount":4,"ex":"ex","status":0,"creatorUserID":"","groupType":2,"needVerification":0,"lookMemberInfo":0,"applyMemberFriend":0,"notificationUpdateTime":0,"notificationUserID":""}}}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupID": "12727",
  "invitedUserIDs": [
    "openIM123456",
    "openIM654321"
  ],
  "reason": "your reason"
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupID":"12727",
  "oldOwnerUserID":"2602",
  "newOwnerUserID": "26673"
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupIDs": ["12727", "26673"]
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"groupInfos":[{"groupID":"12727","groupName":"test-group","notification":"notification","introduction":"introduction","faceURL":"faceURL url","ownerUserID":"26673","createTime":1705804364255,"memberCount":5,"ex":"ex","status":0,"creatorUserID":"","groupType":2,"needVerification":0,"lookMemberInfo":0,"applyMemberFriend":0,"notificationUpdateTime":0,"notificationUserID":""}]}}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupID": "12727",
  "kickedUserIDs": [
    "14104"
  ],
  "reason": "Bye!"
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupID": "12727",
  "userIDs": ["2602"]
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"members":[{"groupID":"12727","userID":"2602","roleLevel":60,"joinTime":1705804364255,"nickname":"group00","faceURL":"new_face_url","appMangerLevel":0,"joinSource":2,"operatorUserID":"openIM123456","ex":"","muteEndTime":0,"inviterUserID":"openIM123456"}]}}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupID": "12727",
  "pagination": {
    "pageNumber": 1,
    "showNumber": 100
  }
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"total":4,"members":[{"groupID":"12727","userID":"2602","roleLevel":60,"joinTime":1705804364255,"nickname":"group00","faceURL":"new_face_url","appMangerLevel":0,"joinSource":2,"operatorUserID":"openIM123456","ex":"","muteEndTime":0,"inviterUserID":"openIM123456"},{"groupID":"12727","userID":"26673","roleLevel":100,"joinTime":1705804364255,"nickname":"group01","faceURL":"new_face_url","appMangerLevel":0,"joinSource":2,"operatorUserID":"openIM123456","ex":"","muteEndTime":0,"inviterUserID":"openIM123456"},{"groupID":"12727","userID":"openIM123456","roleLevel":20,"joinTime":1705804364310,"nickname":"system1","faceURL":"","appMangerLevel":0,"joinSource":2,"operatorUserID":"","ex":"","muteEndTime":0,"inviterUserID":""},{"groupID":"12727","userID":"openIM654321","roleLevel":20,"joinTime":1705804364310,"nickname":"system2","faceURL":"","appMangerLevel":0,"joinSource":2,"operatorUserID":"","ex":"","muteEndTime":0,"inviterUserID":""}]}}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "fromUserID": "2602",
  "pagination": {
    "showNumber": 10,
    "pageNumber": 1
  }
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"total":1,"groups":[{"groupID":"12727","groupName":"test-group","notification":"notification","introduction":"introduction","faceURL":"faceURL url","ownerUserID":"26673","createTime":1705804364255,"memberCount":4,"ex":"ex","status":0,"creatorUserID":"","groupType":2,"needVerification":0,"lookMemberInfo":0,"applyMemberFriend":0,"notificationUpdateTime":0,"notificationUserID":""}]}}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "members": [
    { 
      "groupID": "12727",
      "userID": "2602",
      "nickName": "New NickName",
      "faceURL": "New Face URL",
      "roleLevel": 60,
      "ex":"Extra Info"
    }
  ]
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupID": "12727"
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupID": "12727"
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupID":"12727"
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "memberUserIDs": [
    "14104"
  ],
  "adminUserIDs": [
    "26673"
  ],
  "ownerUserID": "2602",
  "groupInfo": {
    "groupID": "27269",
    "groupName": "test-group",
    "notification": "notification",
    "introduction": "introduction",
    "faceURL": "faceURL url",
    "ex": "ex",
    "groupType": 2,
    "needVerification": 0,
    "lookMemberInfo": 0,
    "applyMemberFriend": 0
  }
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"groupInfo":{"groupID":"27269","groupName":"test-group","notification":"notification","introduction":"introduction","faceURL":"faceURL url","ownerUserID":"2602","createTime":1705804364820,"memberCount":4,"ex":"ex","status":0,"creatorUserID":"","groupType":2,"needVerification":0,"lookMemberInfo":0,"applyMemberFriend":0,"notificationUpdateTime":0,"notificationUserID":""}}}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupID": "12727",
  "userID": "2602"
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupInfoForSet": {
    "groupID": "27269",
    "groupName": "new-name",
    "notification": "new notification",
    "introduction": "new introduction",
    "faceURL": "www.newfaceURL.com",
    "ex": "new ex",
    "needVerification": 1,
    "lookMemberInfo": 1,
    "applyMemberFriend": 1
  }
}
+++ [0121 02:32:44] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:44] �[0m==>  Operation was successful.
{
  "groupID": "27269",
  "userID": "26673"
}
+++ [0121 02:32:45] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:45] �[0m==>  Operation was successful.
{
  "fromUserID": "2602",
  "pagination": {
    "pageNumber": 1,
    "showNumber": 100
  }
}
+++ [0121 02:32:45] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"total":0,"groupRequests":null}}
�[32m[success 0121 02:32:45] �[0m==>  Operation was successful.
{
  "userID": "2602",
  "pagination": {
    "pageNumber": 1,
    "showNumber": 100
  }
}
+++ [0121 02:32:45] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"total":0,"groupRequests":null}}
�[32m[success 0121 02:32:45] �[0m==>  Operation was successful.
{
  "groupID": "12727",
  "userID": "26673",
  "mutedSeconds": 3600
}
+++ [0121 02:32:45] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:45] �[0m==>  Operation was successful.
{
  "groupID": "12727",
  "userIDs": [
    "2602"
  ]
}
+++ [0121 02:32:45] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"total":0,"groupRequests":null}}
�[32m[success 0121 02:32:45] �[0m==>  Operation was successful.
�[32m[success 0121 02:32:45] �[0m==>  Group test suite completed successfully.
Request body for user registration: {
  "secret": "openIM123",
  "users": [
    {
      "userID": "10509",
      "nickname": "msg00",
      "faceURL": "new_face_url"
    }
  ]
}
+++ [0121 02:32:45] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:45] �[0m==>  Operation was successful.
{
  "sendID": "openIM123456",
  "recvID": "10509",
  "groupID": "",
  "senderNickname": "openIMAdmin-Gordon",
  "senderFaceURL": "http://www.head.com",
  "senderPlatformID": 1,
  "content": {
    "content": "hello!!"
  },
  "contentType": 101,
  "sessionType": 1,
  "isOnlineOnly": false,
  "notOfflinePush": false,
  "sendTime": 1705804365000,
  "offlinePushInfo": {
    "title": "send message",
    "desc": "",
    "ex": "",
    "iOSPushSound": "default",
    "iOSBadgeCount": true
  }
}
+++ [0121 02:32:45] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"serverMsgID":"d03080f717e02291890492ad937490da","clientMsgID":"505b09735397e57322bdfa7fe43ff018","sendTime":1705804365000}}
�[32m[success 0121 02:32:45] �[0m==>  Operation was successful.
Searching for messages between openIM123456 and 10509...
{
  "sendID": "openIM123456",
  "recvID": "10509",
  "msgType": 101,
  "sendTime": "2023-01-01T00:00:00Z",
  "sessionType": 1,
  "pagination": {
    "pageNumber": 1,
    "showNumber": 20
  }
}
+++ [0121 02:32:45] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"chatLogs":null,"chatLogsNum":0}}
�[32m[success 0121 02:32:45] �[0m==>  Operation was successful.
{
  "userID": "10509",
  "seqRanges": [
    {
      "conversationID": "ci_openIM123456_10509",
      "begin": 0,
      "end": 10,
      "num": 5
    }
  ],
  "order": 0
}
+++ [0121 02:32:45] Response from user registration: {"errCode":0,"errMsg":"","errDlt":"","data":{"msgs":null,"notificationMsgs":null}}
�[32m[success 0121 02:32:45] �[0m==>  Operation was successful.
{
  "userID": "10509"
}
+++ [0121 02:32:45] Response from user registration: {"errCode":0,"errMsg":"","errDlt":""}
�[32m[success 0121 02:32:45] �[0m==>  Operation was successful.
�[32m[success 0121 02:32:45] �[0m==>  Message test suite completed successfully.
�[32mcongratulations, all test passed!�[0m

OpenIM E2E Test

Command Output for OpenIM E2E Test

===========> Verifying ginkgo is installed
===========> Installing The default installation path is /home/runner/work/open-im-server/open-im-server/_output/tools/ginkgo
===========> ginkgo is install in /home/runner/work/open-im-server/open-im-server/_output/tools/ginkgo
===========> Run e2e test
=== RUN   TestE2E
--- PASS: TestE2E (0.00s)
PASS

Ginkgo ran 1 suite in 1.913430028s
Test Suite Passed

Copy link

codecov bot commented Jan 21, 2024

Codecov Report

Attention: 21 lines in your changes are missing coverage. Please review.

Comparison is base (98d3646) 5.10% compared to head (68bc62d) 5.28%.
Report is 5 commits behind head on main.

Files Patch % Lines
pkg/common/config/parse.go 0.00% 15 Missing ⚠️
pkg/util/genutil/genutil.go 57.14% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main   #1794      +/-   ##
========================================
+ Coverage   5.10%   5.28%   +0.17%     
========================================
  Files         42      43       +1     
  Lines       3797    3821      +24     
========================================
+ Hits         194     202       +8     
- Misses      3592    3606      +14     
- Partials      11      13       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

sweep-ai bot commented Jan 21, 2024

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run make gen
yielded the following error:
##[error]Process completed with exit code 2.
##[group]Run make gen
�[36;1mmake gen�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
##[endgroup]
===========> Verifying codegen is installed
===========> Installing The default installation path is /home/runner/work/open-im-server/open-im-server/_output/tools/codegen
make[3]: *** No rule to make target 'install.codegen'.  Stop.
make[2]: *** [scripts/make-rules/tools.mk:49: tools.install.codegen] Error 2
make[1]: *** [scripts/make-rules/tools.mk:61: tools.verify.codegen] Error 2
make: *** [Makefile:69: gen] Error 2
##[error]Process completed with exit code 2.
##[group]Run make gen
�[36;1mmake gen�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
##[endgroup]
===========> Verifying codegen is installed
===========> Installing The default installation path is /home/runner/work/open-im-server/open-im-server/_output/tools/codegen
make[3]: *** No rule to make target 'install.codegen'.  Stop.
make[2]: *** [scripts/make-rules/tools.mk:49: tools.install.codegen] Error 2
make[1]: *** [scripts/make-rules/tools.mk:61: tools.verify.codegen] Error 2
make: *** [Makefile:69: gen] Error 2
##[error]Process completed with exit code 2.
##[group]Run cd /home/runner/work/open-im-server/open-im-server
�[36;1mcd /home/runner/work/open-im-server/open-im-server�[0m
�[36;1mmake cover�[0m
�[36;1mecho "::set-output name=coverage_file::./_output/tmp/coverage.out"�[0m
�[36;1mecho "Test Coverage:"�[0m
�[36;1mcat �[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
##[endgroup]
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
===========> Verifying go-junit-report is installed
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
===========> Installing The default installation path is /home/runner/work/open-im-server/open-im-server/_output/tools/go-junit-report
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
github.com/jstemmer/go-junit-report: go install github.com/jstemmer/go-junit-report: copying /tmp/go-build630859029/b001/exe/a.out: open /home/runner/work/open-im-server/open-im-server/_output/tools/go-junit-report: permission denied
make[3]: *** [scripts/make-rules/tools.mk:102: install.go-junit-report] Error 1
make[2]: *** [scripts/make-rules/tools.mk:49: tools.install.go-junit-report] Error 2
make[1]: *** [scripts/make-rules/tools.mk:61: tools.verify.go-junit-report] Error 2
make: *** [Makefile:167: cover] Error 2
##[error]Process completed with exit code 2.
Current runner version: '2.311.0'
##[group]Operating System
macOS
12.7.2
21G1974
##[endgroup]
##[group]Runner Image
Image: macos-12
Version: 20231216.1
Included Software: https://github.com/actions/runner-images/blob/macOS-12/20231216.1/images/macos/macos-12-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macOS-12%2F20231216.1
##[endgroup]
##[group]Runner Image Provisioner
2.0.321.1
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: write
Metadata: read
PullRequests: write
##[endgroup]
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11)
Download action repository 'actions/setup-go@v4' (SHA:93397bea11091df50f3d7e59dc26a7711a8bcfbe)
##[warning]Failed to download action 'https://api.github.com/repos/actions/setup-go/tarball/93397bea11091df50f3d7e59dc26a7711a8bcfbe'. Error: nodename nor servname provided, or not known (api.github.com:443)
##[warning]Back off 17.699 seconds before retry.
##[warning]Failed to download action 'https://api.github.com/repos/actions/setup-go/tarball/93397bea11091df50f3d7e59dc26a7711a8bcfbe'. Error: nodename nor servname provided, or not known (api.github.com:443)
##[warning]Back off 10.682 seconds before retry.
##[error]nodename nor servname provided, or not known (api.github.com:443)
##[group]Run cd /home/runner/work/open-im-server/open-im-server
�[36;1mcd /home/runner/work/open-im-server/open-im-server�[0m
�[36;1mmake cover�[0m
�[36;1mecho "::set-output name=coverage_file::./_output/tmp/coverage.out"�[0m
�[36;1mecho "Test Coverage:"�[0m
�[36;1mcat �[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
##[endgroup]
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
===========> Verifying go-junit-report is installed
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
===========> Installing The default installation path is /home/runner/work/open-im-server/open-im-server/_output/tools/go-junit-report
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
github.com/jstemmer/go-junit-report: go install github.com/jstemmer/go-junit-report: copying /tmp/go-build3101255927/b001/exe/a.out: open /home/runner/work/open-im-server/open-im-server/_output/tools/go-junit-report: permission denied
make[3]: *** [scripts/make-rules/tools.mk:102: install.go-junit-report] Error 1
make[2]: *** [scripts/make-rules/tools.mk:49: tools.install.go-junit-report] Error 2
make[1]: *** [scripts/make-rules/tools.mk:61: tools.verify.go-junit-report] Error 2
make: *** [Makefile:167: cover] Error 2
##[error]Process completed with exit code 2.
Requested labels: macos-latest
Job defined at: openimsdk/open-im-server/.github/workflows/openimci.yml@refs/pull/1794/merge
Waiting for a runner to pick up this job...
Job is waiting for a hosted runner to come online.
Job is about to start running on the hosted runner: GitHub Actions 18 (hosted)
Current runner version: '2.311.0'
##[group]Operating System
macOS
12.7.2
21G1974
##[endgroup]
##[group]Runner Image
Image: macos-12
Version: 20231216.1
Included Software: https://github.com/actions/runner-images/blob/macOS-12/20231216.1/images/macos/macos-12-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macOS-12%2F20231216.1
##[endgroup]
##[group]Runner Image Provisioner
2.0.321.1
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: write
Metadata: read
PullRequests: write
##[endgroup]
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11)
Download action repository 'actions/setup-go@v4' (SHA:93397bea11091df50f3d7e59dc26a7711a8bcfbe)
##[warning]Failed to download action 'https://api.github.com/repos/actions/setup-go/tarball/93397bea11091df50f3d7e59dc26a7711a8bcfbe'. Error: nodename nor servname provided, or not known (api.github.com:443)
##[warning]Back off 17.699 seconds before retry.
##[warning]Failed to download action 'https://api.github.com/repos/actions/setup-go/tarball/93397bea11091df50f3d7e59dc26a7711a8bcfbe'. Error: nodename nor servname provided, or not known (api.github.com:443)
##[warning]Back off 10.682 seconds before retry.
##[error]nodename nor servname provided, or not known (api.github.com:443)
##[group]Run cd /home/runner/work/open-im-server/open-im-server
�[36;1mcd /home/runner/work/open-im-server/open-im-server�[0m
�[36;1mmake cover�[0m
�[36;1mecho "::set-output name=coverage_file::./_output/tmp/coverage.out"�[0m
�[36;1mecho "Test Coverage:"�[0m
�[36;1mcat �[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
##[endgroup]
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
===========> Verifying go-junit-report is installed
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
===========> Installing The default installation path is /home/runner/work/open-im-server/open-im-server/_output/tools/go-junit-report
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/bin’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/logs’: Permission denied
mkdir: cannot create directory ‘/home/runner/work/open-im-server/open-im-server/_output/tmp’: Permission denied
go: downloading github.com/jstemmer/go-junit-report v1.0.0
github.com/jstemmer/go-junit-report: go install github.com/jstemmer/go-junit-report: copying /tmp/go-build3937830204/b001/exe/a.out: open /home/runner/work/open-im-server/open-im-server/_output/tools/go-junit-report: permission denied
make[3]: *** [scripts/make-rules/tools.mk:102: install.go-junit-report] Error 1
make[2]: *** [scripts/make-rules/tools.mk:49: tools.install.go-junit-report] Error 2
make[1]: *** [scripts/make-rules/tools.mk:61: tools.verify.go-junit-report] Error 2
make: *** [Makefile:167: cover] Error 2
##[error]Process completed with exit code 2.

Here are the logs:
===========> Verifying codegen is installed
===========> Installing The default installation path is /home/runner/work/open-im-server/open-im-server/_output/tools/codegen
make[3]: *** No rule to make target 'install.codegen'.  Stop.
make[2]: *** [scripts/make-rules/tools.mk:49: tools.install.codegen] Error 2
make[1]: *** [scripts/make-rules/tools.mk:61: tools.verify.codegen] Error 2
make: *** [Makefile:69: gen] Error 2

[!CAUTION]

An error has occurred: Message is too long, max tokens is -11936 (tracking ID: 4d0910386a)

@cubxxw cubxxw added this pull request to the merge queue Jan 21, 2024
Merged via the queue into main with commit 7155d1a Jan 21, 2024
29 checks passed
@cubxxw cubxxw deleted the feat/optimize-structural branch January 21, 2024 02:49
@openimsdk openimsdk locked and limited conversation to collaborators Jan 21, 2024
@github-actions github-actions bot added this to the v3.1 milestone Jan 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Other]: Enhancement Request: Support MacOS Deployment and Improve Script Details with Updated Documentation
3 participants