`.
-
-OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
-source "${OPENIM_ROOT}/scripts/lib/init.sh"
-
-# This sets up a clean GOPATH and makes sure we are currently in it.
-openim::golang::setup_env
-
-# Run the user-provided command.
-"${@}"
diff --git a/scripts/start-all.sh b/scripts/start-all.sh
deleted file mode 100755
index 6f4a6c574..000000000
--- a/scripts/start-all.sh
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-#FIXME This script is the startup script for multiple servers.
-#FIXME The full names of the shell scripts that need to be started are placed in the `need_to_start_server_shell` array.
-
-OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
-source "${OPENIM_ROOT}/scripts/install/common.sh"
-
-# Function to execute the scripts.
-function execute_start_scripts() {
- for script_path in "${OPENIM_SERVER_SCRIPT_START_LIST[@]}"; do
- # Extract the script name without extension for argument generation.
- script_name_with_prefix=$(basename "$script_path" .sh)
-
- # Remove the "openim-" prefix.
- script_name=${script_name_with_prefix#openim-}
-
- # Construct the argument based on the script name.
- arg="openim::${script_name}::start"
-
- # Check if the script file exists and is executable.
- if [[ -x "$script_path" ]]; then
- openim::log::colorless "Starting script: ${script_path##*/}" # Log the script name.
- # Execute the script with the constructed argument.
- result=$("$script_path" "$arg")
- if [[ $? -ne 0 ]]; then
- openim::log::error "Start script: ${script_path##*/} failed"
- openim::log::error "$result"
- return 1
- fi
-
- else
- openim::log::errexit "Script ${script_path##*/} is missing or not executable."
- return 1
- fi
- done
-}
-
-if openim::util::is_running_in_container; then
- exec >> ${DOCKER_LOG_FILE} 2>&1
-fi
-
-openim::golang::check_openim_binaries
-if [[ $? -ne 0 ]]; then
- openim::log::error "OpenIM binaries are not found. Please run 'make build' to build binaries."
- "${OPENIM_ROOT}"/scripts/build-all-service.sh
-fi
-
-"${OPENIM_ROOT}"/scripts/init-config.sh --skip
-
-#openim::log::print_blue "Execute the following script in sequence: ${OPENIM_SERVER_SCRIPTARIES[@]}"
-
-# TODO Prelaunch tools, simple for now, can abstract functions later
-TOOLS_START_SCRIPTS_PATH=${START_SCRIPTS_PATH}/openim-tools.sh
-
-openim::log::status "Start the pre-start tools:"
-
-# if ! ${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start; then
-# openim::log::error "Start the pre-start tools, aborting!"
-# exit 1
-# fi
-
-openim::log::colorless "pre-start has been successfully completed!"
-
-result=$("${OPENIM_ROOT}"/scripts/stop-all.sh)
-if [[ $? -ne 0 ]]; then
- openim::log::error "View the error logs from this startup. ${LOG_FILE} \n"
- openim::log::error "Some programs have not exited; the start process is aborted .\n $result"
- exit 1
-fi
-
-openim::log::status "Start the OpenIM startup scripts: "
-execute_start_scripts
-openim::log::status "OpenIM startup scripts have been successfully completed!"
-
-sleep 2
-
-result=$(. $(dirname ${BASH_SOURCE})/install/openim-msgtransfer.sh openim::msgtransfer::check)
-if [[ $? -ne 0 ]]; then
- openim::log::error "The OpenIM services may fail to start.\n $result"
- exit 1
-fi
-
-result=$(openim::util::check_process_names ${OPENIM_ALL_SERVICE_LIBRARIES_NO_TRANSFER[@]})
-if [[ $? -ne 0 ]]; then
- openim::log::error "The OpenIM services may fail to start.\n $result"
- exit 1
-fi
-
-openim::log::status "Start the post-start tools:"
-# ${TOOLS_START_SCRIPTS_PATH} openim::tools::post-start
-openim::log::status "post-start has been successfully completed!"
-openim::util::find_ports_for_all_services ${OPENIM_ALL_SERVICE_LIBRARIES_NO_TRANSFER[@]}
-openim::util::find_ports_for_all_services ${OPENIM_MSGTRANSFER_BINARY[@]}
-
-openim::log::success "All OpenIM services have been successfully started!"
\ No newline at end of file
diff --git a/scripts/stop-all.sh b/scripts/stop-all.sh
deleted file mode 100755
index b2572f7d5..000000000
--- a/scripts/stop-all.sh
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# This script is stop all openim service
-#
-# Usage: `scripts/stop.sh`.
-# Encapsulated as: `make stop`.
-
-
-
-
-
-OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
-
-source "${OPENIM_ROOT}/scripts/install/common.sh"
-
-openim::log::status "Begin to stop all openim service"
-
-openim::log::status "Stop all processes in the path ${OPENIM_OUTPUT_HOSTBIN}"
-
-openim::util::stop_services_with_name "${OPENIM_OUTPUT_HOSTBIN}"
-# todo OPENIM_ALL_SERVICE_LIBRARIES
-
-
-
-
-max_retries=15
-attempt=0
-
-while [[ $attempt -lt $max_retries ]]
-do
- result=$(openim::util::check_process_names_for_stop)
-
- if [[ $? -ne 0 ]]; then
- if [[ $attempt -ne 0 ]] ; then
- echo "+++ cat openim log file >>> ${LOG_FILE} " $attempt
- openim::log::error "stop process failed. continue waiting\n" "${result}"
- fi
- sleep 1
- ((attempt++))
- else
- openim::log::success " All openim processes to be stopped"
- exit 0
- fi
-done
-
-openim::log::error "openim processes stopped failed"
-exit 1
diff --git a/scripts/update-generated-docs.sh b/scripts/update-generated-docs.sh
deleted file mode 100755
index 4c1fbfccc..000000000
--- a/scripts/update-generated-docs.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-# This file is not intended to be run automatically. It is meant to be run
-# immediately before exporting docs. We do not want to check these documents in
-# by default.
-
-OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
-source "${OPENIM_ROOT}/scripts/lib/init.sh"
-
-openim::golang::setup_env
-
-BINS=(
- gendocs
- genopenimdocs
- genman
- genyaml
-)
-make -C "${OPENIM_ROOT}" BINS="${BINS[*]}"
-
-openim::util::ensure-temp-dir
-
-openim::util::gen-docs "${OPENIM_TEMP}"
-
-# remove all of the old docs
-openim::util::remove-gen-docs
-
-# Copy fresh docs into the repo.
-# the shopt is so that we get docs/.generated_docs from the glob.
-shopt -s dotglob
-cp -af "${OPENIM_TEMP}"/* "${OPENIM_ROOT}"
-shopt -u dotglob
diff --git a/scripts/update-yamlfmt.sh b/scripts/update-yamlfmt.sh
deleted file mode 100755
index 8de0cc84c..000000000
--- a/scripts/update-yamlfmt.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
-source "${OPENIM_ROOT}/scripts/lib/init.sh"
-
-openim::golang::setup_env
-
-cd "${OPENIM_ROOT}"
-
-find_files() {
- find . -not \( \
- \( \
- -wholename './output' \
- -o -wholename './.git' \
- -o -wholename './_output' \
- -o -wholename './_gopath' \
- -o -wholename './release' \
- -o -wholename './target' \
- -o -wholename '*/vendor/*' \
- \) -prune \
- \) -name 'OWNERS*'
-}
-
-export GO111MODULE=on
-find_files | xargs go run tools/yamlfmt/yamlfmt.go
\ No newline at end of file
diff --git a/scripts/verify-pkg-names.sh b/scripts/verify-pkg-names.sh
deleted file mode 100755
index be1acd015..000000000
--- a/scripts/verify-pkg-names.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-# This script verifies whether codes follow golang convention.
-# Usage: `scripts/verify-pkg-names.sh`.
-
-
-OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
-source "${OPENIM_ROOT}/scripts/lib/init.sh"
-
-openim::golang::verify_go_version
-
-cd "${OPENIM_ROOT}"
-if git --no-pager grep -E $'^(import |\t)[a-z]+[A-Z_][a-zA-Z]* "[^"]+"$' -- '**/*.go' ':(exclude)vendor/*' ':(exclude)**/*.pb.go'; then
- openim::log::error "Some package aliases break go conventions."
- echo "To fix these errors, do not use capitalized or underlined characters"
- echo "in pkg aliases. Refer to https://blog.golang.org/package-names for more info."
- exit 1
-fi
diff --git a/scripts/verify-shellcheck.sh b/scripts/verify-shellcheck.sh
deleted file mode 100755
index 3e56038dd..000000000
--- a/scripts/verify-shellcheck.sh
+++ /dev/null
@@ -1,188 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-# This script lints each shell script by `shellcheck`.
-# Usage: `scripts/verify-shellcheck.sh`.
-
-OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
-source "${OPENIM_ROOT}/scripts/lib/init.sh"
-
-# allow overriding docker cli, which should work fine for this script
-DOCKER="${DOCKER:-docker}"
-
-# required version for this script, if not installed on the host we will
-# use the official docker image instead. keep this in sync with SHELLCHECK_IMAGE
-SHELLCHECK_VERSION="0.8.0"
-SHELLCHECK_IMAGE="docker.io/koalaman/shellcheck-alpine:v0.8.0@sha256:f42fde76d2d14a645a848826e54a4d650150e151d9c81057c898da89a82c8a56"
-
-# disabled lints
-disabled=(
- # this lint disallows non-constant source, which we use extensively without
- # any known bugs
- 1090
- # this lint warns when shellcheck cannot find a sourced file
- # this wouldn't be a bad idea to warn on, but it fails on lots of path
- # dependent sourcing, so just disable enforcing it
- 1091
- # this lint prefers command -v to which, they are not the same
- 2230
- # Error SC2155 indicates that you should separate variable declaration and assignment to avoid masking the return value of the command.
- # In Bash scripts, when you declare and assign a local variable at the same time a command is executed, you only get the output of the command, but not the exit status (return value) of the command. #
- 2155
- # ShellCheck issues SC2086 warnings when you refer to a variable in a script but don't put it in double quotes.This can lead to unexpected behavior when scripts encounter Spaces,
- # newlines, and wildcards in file names or other data.
- 2086
- 2206
-
- # TODO: 需要修复,然后开启
- 2034
- 2048
- 2148
- 2059
- 2214
- 2145
- 2128
- 2550
- 2046
- 2181
- 1102
- 2045
- 2068
- 2145
- 2207
- 2231
- 2013
- 2154
- 2120
- 1083
- 2001
- 2012
- 2016
- 2164
- 2223
- 2166
- 2119
- 2162
- 2295
- 2002
- 2004
- 2202
- 2178
- 2064
- 2260
- 2261
- 2043
- 2178
- 2044
- 2153
-)
-# comma separate for passing to shellcheck
-join_by() {
- local IFS="$1";
- shift;
- echo "$*";
-}
-SHELLCHECK_DISABLED="$(join_by , "${disabled[@]}")"
-readonly SHELLCHECK_DISABLED
-
-# ensure we're linting the k8s source tree
-cd "${OPENIM_ROOT}"
-
-# Find all shell scripts excluding:
-# - Anything git-ignored - No need to lint untracked files.
-# - ./_* - No need to lint output directories.
-# - ./.git/* - Ignore anything in the git object store.
-# - ./vendor* - Vendored code should be fixed upstream instead.
-# - ./third_party/*, but re-include ./third_party/forked/* - only code we
-# forked should be linted and fixed.
-all_shell_scripts=()
-while IFS=$'\n' read -r script;
-do git check-ignore -q "$script" || all_shell_scripts+=("$script");
- done < <(find . -name "*.sh" \
- -not \( \
- -path ./_\* -o \
- -path ./.git\* -o \
- -path ./Godeps\* -o \
- -path ./_output\* -o \
- -path ./components\* -o \
- -path ./logs\* -o \
- -path ./vendor\* -o \
- \( -path ./third_party\* -a -not -path ./third_party/forked\* \) \
-\) -print 2>/dev/null)
-
-# detect if the host machine has the required shellcheck version installed
-# if so, we will use that instead.
-HAVE_SHELLCHECK=false
-if which shellcheck &>/dev/null; then
- detected_version="$(shellcheck --version | grep 'version: .*')"
- if [[ "${detected_version}" = "version: ${SHELLCHECK_VERSION}" ]]; then
- HAVE_SHELLCHECK=true
- fi
-fi
-
-# if KUBE_JUNIT_REPORT_DIR is set, disable colorized output.
-# Colorized output causes malformed XML in the JUNIT report.
-SHELLCHECK_COLORIZED_OUTPUT="auto"
-if [[ -n "${KUBE_JUNIT_REPORT_DIR:-}" ]]; then
- SHELLCHECK_COLORIZED_OUTPUT="never"
-fi
-
-# common arguments we'll pass to shellcheck
-SHELLCHECK_OPTIONS=(
- # allow following sourced files that are not specified in the command,
- # we need this because we specify one file at a time in order to trivially
- # detect which files are failing
- "--external-sources"
- # include our disabled lints
- "--exclude=${SHELLCHECK_DISABLED}"
- # set colorized output
- "--color=${SHELLCHECK_COLORIZED_OUTPUT}"
-)
-
-# tell the user which we've selected and lint all scripts
-# The shellcheck errors are printed to stdout by default, hence they need to be redirected
-# to stderr in order to be well parsed for Junit representation by juLog function
-res=0
-if ${HAVE_SHELLCHECK}; then
- openim::log::info "Using host shellcheck ${SHELLCHECK_VERSION} binary."
- shellcheck "${SHELLCHECK_OPTIONS[@]}" "${all_shell_scripts[@]}" >&2 || res=$?
-else
- openim::log::info "Using shellcheck ${SHELLCHECK_VERSION} docker image."
- "${DOCKER}" run \
- --rm -v "${OPENIM_ROOT}:${OPENIM_ROOT}" -w "${OPENIM_ROOT}" \
- "${SHELLCHECK_IMAGE}" \
- shellcheck "${SHELLCHECK_OPTIONS[@]}" "${all_shell_scripts[@]}" >&2 || res=$?
-fi
-
-# print a message based on the result
-if [ $res -eq 0 ]; then
- echo 'Congratulations! All shell files are passing lint :-)'
-else
- {
- echo
- echo 'Please review the above warnings. You can test via "./scripts/verify-shellcheck.sh"'
- echo 'If the above warnings do not make sense, you can exempt this warning with a comment'
- echo ' (if your reviewer is okay with it).'
- echo 'In general please prefer to fix the error, we have already disabled specific lints'
- echo ' that the project chooses to ignore.'
- echo 'See: https://github.com/koalaman/shellcheck/wiki/Ignore#ignoring-one-specific-instance-in-a-file'
- echo
- } >&2
- exit 1
-fi
-
-# preserve the result
-exit $res
diff --git a/scripts/verify-spelling.sh b/scripts/verify-spelling.sh
deleted file mode 100755
index c718c1ad1..000000000
--- a/scripts/verify-spelling.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# This script checks commonly misspelled English words in all files in the
-# working directory by client9/misspell package.
-# Usage: `scripts/verify-spelling.sh`.
-
-OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
-export OPENIM_ROOT
-source "${OPENIM_ROOT}/scripts/lib/init.sh"
-
-# Spell checking
-# All the skipping files are defined in scripts/.spelling_failures
-skipping_file="${OPENIM_ROOT}/scripts/.spelling_failures"
-failing_packages=$(sed "s| | -e |g" "${skipping_file}")
-git ls-files | grep -v -e "${failing_packages}" | xargs "$OPENIM_ROOT/_output/tools/misspell" -i "Creater,creater,ect" -error -o stderr
diff --git a/scripts/verify-standardizer.sh b/scripts/verify-standardizer.sh
deleted file mode 100755
index 08a13b9a2..000000000
--- a/scripts/verify-standardizer.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# This script does a fast type check of script srnetes code for all platforms.
-# Usage: `scripts/verify-standardizer.sh`.
-
-OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
-source "${OPENIM_ROOT}/scripts/lib/init.sh"
-
-openim::golang::verify_go_version
-
-cd "${OPENIM_ROOT}"
-ret=0
-scripts/run-in-gopath.sh \
-make tools.verify.standardizer
-${OPENIM_ROOT}/_output/tools/standardizer || ret=$?
-if [[ $ret -ne 0 ]]; then
- openim::log::error "Failed to check the directory name or file name. Your name may not meet the specification. Please check the configuration file and the directory or file name." >&2
- openim::log::error "Please see https://github.com/kubecub/standardizer for more information." >&2
- exit 1
-fi
diff --git a/scripts/verify-typecheck.sh b/scripts/verify-typecheck.sh
deleted file mode 100755
index f6c14844f..000000000
--- a/scripts/verify-typecheck.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# This script does a fast type check of script srnetes code for all platforms.
-# Usage: `scripts/verify-typecheck.sh`.
-
-OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
-source "${OPENIM_ROOT}/scripts/lib/init.sh"
-
-openim::golang::verify_go_version
-
-cd "${OPENIM_ROOT}"
-ret=0
-TYPECHECK_SERIAL="${TYPECHECK_SERIAL:-false}"
-scripts/run-in-gopath.sh \
-make tools.verify.typecheck
-${OPENIM_ROOT}/_output/tools/typecheck "$@" "--serial=$TYPECHECK_SERIAL" || ret=$?
-if [[ $ret -ne 0 ]]; then
- openim::log::error "Type Check has failed. This may cause cross platform build failures." >&2
- openim::log::error "Please see https://github.com/kubecub/typecheck for more information." >&2
- exit 1
-fi
diff --git a/scripts/verify-yamlfmt.sh b/scripts/verify-yamlfmt.sh
deleted file mode 100755
index a0aa583a8..000000000
--- a/scripts/verify-yamlfmt.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-# This script checks whether the OWNERS files need to be formatted or not by
-# `yamlfmt`. Run `scripts/update-yamlfmt.sh` to actually format sources.
-#
-# Usage: `scripts/verify-yamlfmt.sh`.
-
-OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
-source "${OPENIM_ROOT}/scripts/lib/init.sh"
-
-openim::util::ensure_clean_working_dir
-# This sets up the environment, like GOCACHE, which keeps the worktree cleaner.
-openim::golang::setup_env
-
-_tmpdir="$(openim::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")"
-git worktree add -f -q "${_tmpdir}" HEAD
-openim::util::trap_add "git worktree remove -f ${_tmpdir}" EXIT
-cd "${_tmpdir}"
-
-# Format YAML files
-scripts/update-yamlfmt.sh
-
-# Test for diffs
-diffs=$(git status --porcelain | wc -l)
-if [[ ${diffs} -gt 0 ]]; then
- echo "YAML files need to be formatted" >&2
- git diff
- echo "Please run 'scripts/update-yamlfmt.sh'" >&2
- exit 1
-fi
\ No newline at end of file
diff --git a/scripts/wait-for-it.sh b/scripts/wait-for-it.sh
deleted file mode 100755
index c05b85678..000000000
--- a/scripts/wait-for-it.sh
+++ /dev/null
@@ -1,191 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-WAITFORIT_cmdname=${0##*/}
-
-echoerr() { if [[ $WAITFORIT_QUIET -ne 1 ]]; then echo "$@" 1>&2; fi }
-
-usage() {
- cat << USAGE >&2
-Usage:
- $WAITFORIT_cmdname host:port [-s] [-t timeout] [-- command args]
- -h HOST | --host=HOST Host or IP under test
- -p PORT | --port=PORT TCP port under test
- Alternatively, you specify the host and port as host:port
- -s | --strict Only execute subcommand if the test succeeds
- -q | --quiet Don't output any status messages
- -t TIMEOUT | --timeout=TIMEOUT
- Timeout in seconds, zero for no timeout
- -- COMMAND ARGS Execute command with args after the test finishes
-USAGE
- exit 1
-}
-
-wait_for() {
- if [[ $WAITFORIT_TIMEOUT -gt 0 ]]; then
- echoerr "$WAITFORIT_cmdname: waiting $WAITFORIT_TIMEOUT seconds for $WAITFORIT_HOST:$WAITFORIT_PORT"
- else
- echoerr "$WAITFORIT_cmdname: waiting for $WAITFORIT_HOST:$WAITFORIT_PORT without a timeout"
- fi
- WAITFORIT_start_ts=$(date +%s)
- while :
- do
- if [[ $WAITFORIT_ISBUSY -eq 1 ]]; then
- nc -z $WAITFORIT_HOST $WAITFORIT_PORT
- WAITFORIT_result=$?
- else
- (echo -n > /dev/tcp/$WAITFORIT_HOST/$WAITFORIT_PORT) >/dev/null 2>&1
- WAITFORIT_result=$?
- fi
- if [[ $WAITFORIT_result -eq 0 ]]; then
- WAITFORIT_end_ts=$(date +%s)
- echoerr "$WAITFORIT_cmdname: $WAITFORIT_HOST:$WAITFORIT_PORT is available after $((WAITFORIT_end_ts - WAITFORIT_start_ts)) seconds"
- break
- fi
- sleep 1
- done
- return $WAITFORIT_result
-}
-
-wait_for_wrapper() {
- # In order to support SIGINT during timeout: http://unix.stackexchange.com/a/57692
- if [[ $WAITFORIT_QUIET -eq 1 ]]; then
- timeout $WAITFORIT_BUSYTIMEFLAG $WAITFORIT_TIMEOUT $0 --quiet --child --host=$WAITFORIT_HOST --port=$WAITFORIT_PORT --timeout=$WAITFORIT_TIMEOUT &
- else
- timeout $WAITFORIT_BUSYTIMEFLAG $WAITFORIT_TIMEOUT $0 --child --host=$WAITFORIT_HOST --port=$WAITFORIT_PORT --timeout=$WAITFORIT_TIMEOUT &
- fi
- WAITFORIT_PID=$!
- trap "kill -INT -$WAITFORIT_PID" INT
- wait $WAITFORIT_PID
- WAITFORIT_RESULT=$?
- if [[ $WAITFORIT_RESULT -ne 0 ]]; then
- echoerr "$WAITFORIT_cmdname: timeout occurred after waiting $WAITFORIT_TIMEOUT seconds for $WAITFORIT_HOST:$WAITFORIT_PORT"
- fi
- return $WAITFORIT_RESULT
-}
-
-# process arguments
-while [[ $# -gt 0 ]]
-do
- case "$1" in
- *:* )
- WAITFORIT_hostport=(${1//:/ })
- WAITFORIT_HOST=${WAITFORIT_hostport[0]}
- WAITFORIT_PORT=${WAITFORIT_hostport[1]}
- shift 1
- ;;
- --child)
- WAITFORIT_CHILD=1
- shift 1
- ;;
- -q | --quiet)
- WAITFORIT_QUIET=1
- shift 1
- ;;
- -s | --strict)
- WAITFORIT_STRICT=1
- shift 1
- ;;
- -h)
- WAITFORIT_HOST="$2"
- if [[ $WAITFORIT_HOST == "" ]]; then break; fi
- shift 2
- ;;
- --host=*)
- WAITFORIT_HOST="${1#*=}"
- shift 1
- ;;
- -p)
- WAITFORIT_PORT="$2"
- if [[ $WAITFORIT_PORT == "" ]]; then break; fi
- shift 2
- ;;
- --port=*)
- WAITFORIT_PORT="${1#*=}"
- shift 1
- ;;
- -t)
- WAITFORIT_TIMEOUT="$2"
- if [[ $WAITFORIT_TIMEOUT == "" ]]; then break; fi
- shift 2
- ;;
- --timeout=*)
- WAITFORIT_TIMEOUT="${1#*=}"
- shift 1
- ;;
- --)
- shift
- WAITFORIT_CLI=("$@")
- break
- ;;
- --help)
- usage
- ;;
- *)
- echoerr "Unknown argument: $1"
- usage
- ;;
- esac
-done
-
-if [[ "$WAITFORIT_HOST" == "" || "$WAITFORIT_PORT" == "" ]]; then
- echoerr "Error: you need to provide a host and port to test."
- usage
-fi
-
-WAITFORIT_TIMEOUT=${WAITFORIT_TIMEOUT:-15}
-WAITFORIT_STRICT=${WAITFORIT_STRICT:-0}
-WAITFORIT_CHILD=${WAITFORIT_CHILD:-0}
-WAITFORIT_QUIET=${WAITFORIT_QUIET:-0}
-
-# Check to see if timeout is from busybox?
-WAITFORIT_TIMEOUT_PATH=$(type -p timeout)
-WAITFORIT_TIMEOUT_PATH=$(realpath $WAITFORIT_TIMEOUT_PATH 2>/dev/null || readlink -f $WAITFORIT_TIMEOUT_PATH)
-
-WAITFORIT_BUSYTIMEFLAG=""
-if [[ $WAITFORIT_TIMEOUT_PATH =~ "busybox" ]]; then
- WAITFORIT_ISBUSY=1
- # Check if busybox timeout uses -t flag
- # (recent Alpine versions don't support -t anymore)
- if timeout &>/dev/stdout | grep -q -e '-t '; then
- WAITFORIT_BUSYTIMEFLAG="-t"
- fi
-else
- WAITFORIT_ISBUSY=0
-fi
-
-if [[ $WAITFORIT_CHILD -gt 0 ]]; then
- wait_for
- WAITFORIT_RESULT=$?
- exit $WAITFORIT_RESULT
-else
- if [[ $WAITFORIT_TIMEOUT -gt 0 ]]; then
- wait_for_wrapper
- WAITFORIT_RESULT=$?
- else
- wait_for
- WAITFORIT_RESULT=$?
- fi
-fi
-
-if [[ $WAITFORIT_CLI != "" ]]; then
- if [[ $WAITFORIT_RESULT -ne 0 && $WAITFORIT_STRICT -eq 1 ]]; then
- echoerr "$WAITFORIT_cmdname: strict mode, refusing to execute subprocess"
- exit $WAITFORIT_RESULT
- fi
- exec "${WAITFORIT_CLI[@]}"
-else
- exit $WAITFORIT_RESULT
-fi
diff --git a/test/common.sh b/test/common.sh
deleted file mode 100644
index e583fe8b3..000000000
--- a/test/common.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
diff --git a/test/wrktest.sh b/test/wrktest.sh
deleted file mode 100755
index 10a41121f..000000000
--- a/test/wrktest.sh
+++ /dev/null
@@ -1,276 +0,0 @@
-#!/usr/bin/env bash
-# Copyright © 2023 OpenIM. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-: << EOF
-The API performance test script automatically executes wrk commands, collects data, analyzes it, and calls gnuplot to plot it
-
-Usage (to test API performance) :
-1. Start the openim-api(port 10002)
-2. Execute the test script: ./wrktest.sh
-
-The script will generate the data file.dat, each column meaning: concurrency QPS average response time success rate
-
-Usage (Compare the results of 2 tests)
-1. The performance test:. / wrktest. Sh openim apiserver - http://127.0.0.1:10002/healthz
-2. Execute the command:./wrktest.sh diff apiserver.dat http.dat
-
-> Note: Make sure you have wrk and gnuplot installed on your system
-
-EOF
-
-openim_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
-wrkdir="${openim_root}/_output/wrk"
-jobname="openim-api"
-duration="300s"
-threads=$((3 * $(grep -c processor /proc/cpuinfo)))
-
-source "${openim_root}/scripts/lib/color.sh"
-
-# Set wrk options
-openim::wrk::setup() {
- #concurrent="200 500 1000 3000 5000 10000 15000 20000 25000 50000 100000 200000 500000 1000000"
- concurrent="200 500 1000 3000 5000 10000 15000 20000 25000 50000"
- cmd="wrk -t${threads} -d${duration} -T30s --latency"
-}
-
-# Print usage
-openim::wrk::usage() {
- cat << EOF
-
-Usage: $0 [OPTION] [diff] URL
-Performance automation test script.
-
- URL HTTP request url, like: http://127.0.0.1:10002/healthz
- diff Compare two performance test results
-
-OPTIONS:
- -h Usage information
- -n Performance test task name, default: apiserver
- -d Directory used to store performance data and gnuplot graphic, default: _output/wrk
-
-Reprot bugs to <3293172751nss@gmail.com>.
-EOF
-}
-
-# Convert plot data to useable data
-function openim::wrk::convert_plot_data() {
- echo "$1" | awk -v datfile="${wrkdir}/${datfile}" ' {
- if ($0 ~ "Running") {
- common_time=$2
- }
-if ($0 ~ "connections") {
- connections=$4
- common_threads=$1
-}
-if ($0 ~ "Latency ") {
- avg_latency=convertLatency($2)
-}
-if ($0 ~ "50%") {
- p50=convertLatency($2)
-}
-if ($0 ~ "75%") {
- p75=convertLatency($2)
-}
-if ($0 ~ "90%") {
- p90=convertLatency($2)
-}
-if ($0 ~ "99%") {
- p99=convertLatency($2)
-}
-if ($0 ~ "Requests/sec") {
- qps=$2
-}
-if ($0 ~ "requests in") {
- allrequest=$1
-}
-if ($0 ~ "Socket errors") {
- err=$4+$6+$8+$10
-}
-}
-END {
-rate=sprintf("%.2f", (allrequest-err)*100/allrequest)
-print connections,qps,avg_latency,rate >> datfile
-}
-
-function convertLatency(s) {
- if (s ~ "us") {
- sub("us", "", s)
- return s/1000
- }
-if (s ~ "ms") {
- sub("ms", "", s)
- return s
-}
-if (s ~ "s") {
- sub("s", "", s)
- return s * 1000
-}
-}'
-}
-
-# Remove existing data file
-function openim::wrk::prepare() {
- rm -f "${wrkdir}"/"${datfile}"
-}
-
-# Plot according to gunplot data file
-function openim::wrk::plot() {
- gnuplot << EOF
-set terminal png enhanced #输出格式为png文件
-set ylabel 'QPS'
-set xlabel 'Concurrent'
-set y2label 'Average Latency (ms)'
-set key top left vertical noreverse spacing 1.2 box
-set tics out nomirror
-set border 3 front
-set style line 1 linecolor rgb '#00ff00' linewidth 2 linetype 3 pointtype 2
-set style line 2 linecolor rgb '#ff0000' linewidth 1 linetype 3 pointtype 2
-set style data linespoints
-
-set grid #显示网格
-set xtics nomirror rotate #by 90#只需要一个x轴
-set mxtics 5
-set mytics 5 #可以增加分刻度
-set ytics nomirror
-set y2tics
-
-set autoscale y
-set autoscale y2
-
-set output "${wrkdir}/${qpsttlb}" #指定数据文件名称
-set title "QPS & TTLB\nRunning: ${duration}\nThreads: ${threads}"
-plot "${wrkdir}/${datfile}" using 2:xticlabels(1) w lp pt 7 ps 1 lc rgbcolor "#EE0000" axis x1y1 t "QPS","${wrkdir}/${datfile}" using 3:xticlabels(1) w lp pt 5 ps 1 lc rgbcolor "#0000CD" axis x2y2 t "Avg Latency (ms)"
-
-unset y2tics
-unset y2label
-set ytics nomirror
-set yrange[0:100]
-set output "${wrkdir}/${successrate}" #指定数据文件名称
-set title "Success Rate\nRunning: ${duration}\nThreads: ${threads}"
-plot "${wrkdir}/${datfile}" using 4:xticlabels(1) w lp pt 7 ps 1 lc rgbcolor "#F62817" t "Success Rate"
-EOF
-}
-
-# Plot diff graphic
-function openim::wrk::plot_diff() {
- gnuplot << EOF
-set terminal png enhanced #输出格式为png文件
-set xlabel 'Concurrent'
-set ylabel 'QPS'
-set y2label 'Average Latency (ms)'
-set key below left vertical noreverse spacing 1.2 box autotitle columnheader
-set tics out nomirror
-set border 3 front
-set style line 1 linecolor rgb '#00ff00' linewidth 2 linetype 3 pointtype 2
-set style line 2 linecolor rgb '#ff0000' linewidth 1 linetype 3 pointtype 2
-set style data linespoints
-
-#set border 3 lt 3 lw 2 #这会让你的坐标图的border更好看
-set grid #显示网格
-set xtics nomirror rotate #by 90#只需要一个x轴
-set mxtics 5
-set mytics 5 #可以增加分刻度
-set ytics nomirror
-set y2tics
-
-#set pointsize 0.4 #点的像素大小
-#set datafile separator '\t' #数据文件的字段用\t分开
-
-set autoscale y
-set autoscale y2
-
-#设置图像的大小 为标准大小的2倍
-#set size 2.3,2
-
-set output "${wrkdir}/${t1}_${t2}.qps.ttlb.diff.png" #指定数据文件名称
-set title "QPS & TTLB\nRunning: ${duration}\nThreads: ${threads}"
-plot "/tmp/plot_diff.dat" using 2:xticlabels(1) w lp pt 7 ps 1 lc rgbcolor "#EE0000" axis x1y1 t "${t1} QPS","/tmp/plot_diff.dat" using 5:xticlabels(1) w lp pt 7 ps 1 lc rgbcolor "#EE82EE" axis x1y1 t "${t2} QPS","/tmp/plot_diff.dat" using 3:xticlabels(1) w lp pt 5 ps 1 lc rgbcolor "#0000CD" axis x2y2 t "${t1} Avg Latency (ms)", "/tmp/plot_diff.dat" using 6:xticlabels(1) w lp pt 5 ps 1 lc rgbcolor "#6495ED" axis x2y2 t "${t2} Avg Latency (ms)"
-
-unset y2tics
-unset y2label
-set ytics nomirror
-set yrange[0:100]
-set output "${wrkdir}/${t1}_${t2}.successrate.diff.png" #指定数据文件名称
-set title "Success Rate\nRunning: ${duration}\nThreads: ${threads}"
-plot "/tmp/plot_diff.dat" using 4:xticlabels(1) w lp pt 7 ps 1 lc rgbcolor "#EE0000" t "${t1} Success Rate","/tmp/plot_diff.dat" using 7:xticlabels(1) w lp pt 7 ps 1 lc rgbcolor "#EE82EE" t "${t2} Success Rate"
-EOF
-}
-
-# Start API performance testing
-openim::wrk::start_performance_test() {
- openim::wrk::prepare
-
- for c in ${concurrent}
- do
- wrkcmd="${cmd} -c ${c} $1"
- echo "Running wrk command: ${wrkcmd}"
- result=$(eval "${wrkcmd}")
- openim::wrk::convert_plot_data "${result}"
- done
-
- echo -e "\nNow plot according to ${COLOR_MAGENTA}${wrkdir}/${datfile}${COLOR_NORMAL}"
- openim::wrk::plot &> /dev/null
- echo -e "QPS graphic file is: ${COLOR_MAGENTA}${wrkdir}/${qpsttlb}${COLOR_NORMAL}
-Success rate graphic file is: ${COLOR_MAGENTA}${wrkdir}/${successrate}${COLOR_NORMAL}"
-}
-
-while getopts "hd:n:" opt;do
- case ${opt} in
- d)
- wrkdir=${OPTARG}
- ;;
- n)
- jobname=${OPTARG}
- ;;
- ?)
- openim::wrk::usage
- exit 0
- ;;
- esac
-done
-
-shift $((OPTIND-1))
-
-mkdir -p "${wrkdir}"
-
-case $1 in
- "diff")
- if [ "$#" -lt 3 ];then
- openim::wrk::usage
- exit 0
- fi
-
- t1=$(basename $2|sed 's/.dat//g') # 对比图中红色线条名称
- t2=$(basename $3|sed 's/.dat//g') # 对比图中粉色线条名称
-
- join $2 $3 > /tmp/plot_diff.dat
- openim::wrk::plot_diff "$(basename "$2")" "$(basename "$3")"
- exit 0
- ;;
- *)
- if [ "$#" -lt 1 ];then
- openim::wrk::usage
- exit 0
- fi
- url="$1"
-
- qpsttlb="${jobname}_qps_ttlb.png"
- successrate="${jobname}_successrate.png"
- datfile="${jobname}.dat"
-
- openim::wrk::setup
- openim::wrk::start_performance_test "${url}"
- ;;
-esac
From 281e3a8d6c6503ef2b26c525a19a9b9a0da56b36 Mon Sep 17 00:00:00 2001
From: xuan <146319162+wxuanF@users.noreply.github.com>
Date: Sun, 28 Apr 2024 12:13:12 +0800
Subject: [PATCH 7/9] Auto close issue test (#2243)
* Update README.md
* Update README.md
* Update README.md
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 045d28f47..7c34664d6 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@
[![Good First Issues](https://img.shields.io/github/issues/openimsdk/open-im-server/good%20first%20issue?style=for-the-badge&logo=github)](https://github.com/openimsdk/open-im-server/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22)
[![Language](https://img.shields.io/badge/Language-Go-blue.svg?style=for-the-badge&logo=go&logoColor=white)](https://golang.org/)
-
+
Englist ·
中文 ·
@@ -131,7 +131,7 @@ Thank you for contributing to building a powerful instant messaging solution!
## :closed_book: License
-OpenIMSDK is available under the Apache License 2.0. See the [LICENSE file](https://github.com/openimsdk/open-im-server/blob/main/LICENSE) for more information.
+OpenIMSDK is available under the Apache License 2.0. See the [LICENSE file](https://github.com/openimsdk/open-im-server/blob/main/LICENSE) for more information.
From 879cf757436f4c8d160de992e82a4c5b0c62c625 Mon Sep 17 00:00:00 2001
From: skiffer-git <72860476+skiffer-git@users.noreply.github.com>
Date: Sun, 28 Apr 2024 14:35:46 +0800
Subject: [PATCH 8/9] fix bug: If there are uppercase letters in the directory,
'mage start' encounters an error (#2253)
* fix bug:
If there are uppercase letters in the directory, 'mage start' encounters an error
* update go.mod
---
go.mod | 4 ++--
go.sum | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/go.mod b/go.mod
index 21eca956e..cc0de7614 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/openimsdk/open-im-server/v3
-go 1.21
+go 1.21.2
require (
firebase.google.com/go v3.13.0+incompatible
@@ -34,7 +34,7 @@ require (
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/kelindar/bitmap v1.5.2
github.com/likexian/gokit v0.25.13
- github.com/openimsdk/gomake v0.0.9
+ github.com/openimsdk/gomake v0.0.11
github.com/redis/go-redis/v9 v9.4.0
github.com/robfig/cron/v3 v3.0.1
github.com/shirou/gopsutil v3.21.11+incompatible
diff --git a/go.sum b/go.sum
index aa851c74b..7c256c58d 100644
--- a/go.sum
+++ b/go.sum
@@ -279,8 +279,8 @@ github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1y
github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE=
github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs=
-github.com/openimsdk/gomake v0.0.9 h1:ouf25ygN2PMQ68Gfgns/EQRPiLPnp+77SIr68GfE+n4=
-github.com/openimsdk/gomake v0.0.9/go.mod h1:PndCozNc2IsQIciyn9mvEblYWZwJmAI+06z94EY+csI=
+github.com/openimsdk/gomake v0.0.11 h1:jJ9286zKFfBeARkmfqMEcUYg9lJ+Cj9lylxP8W9uCFM=
+github.com/openimsdk/gomake v0.0.11/go.mod h1:PndCozNc2IsQIciyn9mvEblYWZwJmAI+06z94EY+csI=
github.com/openimsdk/protocol v0.0.65 h1:SPT9qyUsFRTTKSKb/FjpS+xr6sxz/Kbnu+su1bxYagc=
github.com/openimsdk/protocol v0.0.65/go.mod h1:OZQA9FR55lseYoN2Ql1XAHYKHJGu7OMNkUbuekrKCM8=
github.com/openimsdk/tools v0.0.49-alpha.2 h1:8IfV6o2ySU7C54sh/MG7ctEp1h3lSNe03OCUDWSk5Ws=
From a2d6a624548411844d7e1fc7d693f994301d4774 Mon Sep 17 00:00:00 2001
From: xuan <146319162+wxuanF@users.noreply.github.com>
Date: Sun, 28 Apr 2024 14:35:48 +0800
Subject: [PATCH 9/9] Update action (#2256)
* Rename check-coverage.yml to check-coverage.bak
* Rename release.yml to release.bak
* Update .env
* Rename sync.yml to sync.bak
* Rename sync-release.yml to sync-release.bak
---
.env | 4 ++++
.github/workflows/{check-coverage.yml => check-coverage.bak} | 0
.github/workflows/{release.yml => release.bak} | 2 +-
.github/workflows/{sync-release.yml => sync-release.bak} | 2 +-
.github/workflows/{sync.yml => sync.bak} | 2 +-
5 files changed, 7 insertions(+), 3 deletions(-)
rename .github/workflows/{check-coverage.yml => check-coverage.bak} (100%)
rename .github/workflows/{release.yml => release.bak} (97%)
rename .github/workflows/{sync-release.yml => sync-release.bak} (97%)
rename .github/workflows/{sync.yml => sync.bak} (97%)
diff --git a/.env b/.env
index 6c2baa41d..d3ae0426a 100644
--- a/.env
+++ b/.env
@@ -9,5 +9,9 @@ MINIO_IMAGE=minio/minio:RELEASE.2024-01-11T07-46-16Z
OPENIM_WEB_FRONT_IMAGE=openim/openim-web-front:release-v3.5.1
OPENIM_ADMIN_FRONT_IMAGE=openim/openim-admin-front:release-v1.7
+#FRONT_IMAGE: use aliyun images
+#OPENIM_WEB_FRONT_IMAGE=registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-web-front:release-v3.5.1
+#OPENIM_ADMIN_FRONT_IMAGE=registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-admin-front:release-v1.7
+
DATA_DIR=./
diff --git a/.github/workflows/check-coverage.yml b/.github/workflows/check-coverage.bak
similarity index 100%
rename from .github/workflows/check-coverage.yml
rename to .github/workflows/check-coverage.bak
diff --git a/.github/workflows/release.yml b/.github/workflows/release.bak
similarity index 97%
rename from .github/workflows/release.yml
rename to .github/workflows/release.bak
index 9950bdabb..c15cff6a3 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.bak
@@ -78,4 +78,4 @@ jobs:
./_output/dist/*.rpm
./_output/dist/*.apk
key: ${{ github.ref }}
- - run: task goreleaser:test:${{ matrix.format }}
\ No newline at end of file
+ - run: task goreleaser:test:${{ matrix.format }}
diff --git a/.github/workflows/sync-release.yml b/.github/workflows/sync-release.bak
similarity index 97%
rename from .github/workflows/sync-release.yml
rename to .github/workflows/sync-release.bak
index e156e07d8..a85c74fde 100644
--- a/.github/workflows/sync-release.yml
+++ b/.github/workflows/sync-release.bak
@@ -41,4 +41,4 @@ jobs:
automerge
ASSIGNEES: |
kubbot
- continue-on-error: true
\ No newline at end of file
+ continue-on-error: true
diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.bak
similarity index 97%
rename from .github/workflows/sync.yml
rename to .github/workflows/sync.bak
index 77ed2f881..595cbbe2c 100644
--- a/.github/workflows/sync.yml
+++ b/.github/workflows/sync.bak
@@ -37,4 +37,4 @@ jobs:
automerge
ASSIGNEES: |
kubbot
- continue-on-error: true
\ No newline at end of file
+ continue-on-error: true