-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repo-sync-2024-05-06T19:41:36+0800 #28
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# OPENSOURCE-CLEANUP DELETE_FILE | ||
# ACI 语法文档:https://yuque.antfin-inc.com/antci/help/syntax-plugins | ||
|
||
version: "1.5" | ||
|
||
git: | ||
depth: 200 | ||
|
||
stages: | ||
#- PreRequisites | ||
#- EnvPrepare | ||
- Build | ||
- Delivery | ||
|
||
parameters: | ||
BUILD_IMAGE: "reg.docker.alibaba-inc.com/nueva-stack/envoy-build-ubuntu:81a93046060dbe5620d5b3aa92632090a9ee4da6" | ||
KUSCIA_ENVOY_REPO_URL: "git@code.alipay.com:secretflow/kuscia-envoy.git" | ||
|
||
only: | ||
triggerType: | ||
- pullRequest # 创建PR及向PR分支push代码时触发 | ||
- tagPush | ||
- push | ||
triggerBranch: # 设置触发分支 | ||
pushOriginalBranch: # 只有向以下分支提交push才会触发 | ||
- master | ||
- release/* | ||
- codereview/* | ||
targetBranch: #只有向master分支提交pullRequest时才触发pipeline执行 | ||
- master | ||
- release/* | ||
- codereview/* | ||
|
||
agent: | ||
docker: | ||
image: ${BUILD_IMAGE} | ||
resourceRequirements: # 2c4g20g的配置 cpu/memory/ephemeral-storage取值均为整型 | ||
cpu: 4 # 最大值16 | ||
memory: 8 # 最大值32 | ||
ephemeral-storage: 10 # 最大值100 | ||
|
||
CMD-FLAKE8: | ||
stage: PreRequisites | ||
plugin: CMD | ||
pluginConfig: | ||
encoding: UTF-8 # 编码设置 | ||
excludes: # 排除哪些项不进行代码扫描 | ||
- "**/*_pb.go" # generated files for protocol buffer | ||
checkRule: | ||
- blocker = 0 | ||
- critical = 0 | ||
- major = 0 | ||
|
||
variableExport: | ||
stage: EnvPrepare | ||
script: | ||
- | | ||
cd ${WORKSPACE} | ||
export BUILD_DATE="$(date +'%Y%m%d-%H%M%S')" | ||
variables: | ||
- BUILD_DATE | ||
|
||
build-envoy: | ||
stage: Build | ||
plugin: ANT-BUILD | ||
pluginConfig: | ||
image: ${BUILD_IMAGE} | ||
script: | ||
- | | ||
set -ex | ||
# Note: git clone requires answer 'yes' | ||
ssh-keyscan -t rsa gitlab.alipay-inc.com >> ~/.ssh/known_hosts | ||
|
||
cd $ANTBUILD_WORKSPACE | ||
ls -l | ||
whoami && cat /proc/cpuinfo | grep process | wc -l && cat /proc/meminfo | grep MemTotal && df -h | ||
|
||
git submodule update --init | ||
ls envoy | ||
# .aci.yaml 开头的 depth 配置没有生效,aci 流水线写死 depth=5,这边强制修改 depth==200 | ||
git config --global --add safe.directory ./ | ||
|
||
bazel build //:envoy --verbose_failures | ||
mkdir -p build_apps | ||
mv bazel-bin/envoy build_apps | ||
afterScript: | ||
- ls | ||
outputs: | ||
- name: "kuscia-envoy" | ||
desc: "kuscia envoy package" | ||
type: custom | ||
paths: | ||
- build_app | ||
only: | ||
triggerType: | ||
- push | ||
- tagPush | ||
- pullRequest | ||
triggerBranch: # 设置触发分支 | ||
pushOriginalBranch: # 只有向以下分支提交push才会触发 | ||
- master | ||
- release/* | ||
targetBranch: #只有向master分支提交pullRequest时才触发pipeline执行 | ||
- release/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.4.1 | ||
6.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "envoy"] | ||
path = envoy | ||
url = https://github.com/envoyproxy/envoy.git | ||
branch = release/v1.20 | ||
branch = release/v1.29 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个也不同步 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# OPENSOURCE-CLEANUP DELETE_FILE | ||
reviewers: ["yuwen.lyf", "tingcheng.wtc", "xiaol.huxl", "dongwen.hdw", "changyu.ycy", "wujieqiang.wjq", "guoshilei.gsl", "caochen.cao", "yansi.zy", "jiamingyang.jmy", "wt388595"] | ||
threshold: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule envoy
updated
6278 files
Empty file.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个md不同步 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
## 说明 | ||
本说明文档仅限内部使用,不会带到开源仓库。 | ||
|
||
## 开发环境搭建 | ||
安装 golang | ||
|
||
```shell | ||
# mac | ||
wget https://go.dev/dl/go1.19.4.darwin-amd64.tar.gz | ||
sudo tar -C /usr/local -zxvf go1.19.4.darwin-amd64.tar.gz | ||
|
||
# linux | ||
wget https://go.dev/dl/go1.19.4.linux-amd64.tar.gz | ||
sudo tar -C /usr/local -zxvf go1.19.4.linux-amd64.tar.gz | ||
``` | ||
|
||
添加环境变量 | ||
```shell | ||
export GOPROXY="https://goproxy.cn,direct" | ||
export GO111MODULE=on | ||
export GOPATH="$HOME/gopath" | ||
export PATH="$PATH:$GOPATH/bin:/usr/local/go/bin" | ||
export GOPRIVATE="gitlab.alipay-inc.com" | ||
``` | ||
|
||
bazel_tools的java依赖 | ||
```shell | ||
sudo apt install default-jdk | ||
sudo update-alternatives --config javac | ||
``` | ||
|
||
gazelle的安装与使用 | ||
```shell | ||
# 安装 | ||
go install github.com/bazelbuild/bazel-gazelle/cmd/gazelle@latest | ||
# 生成BUILD(在根目录下执行) | ||
gazelle -exclude envoy -exclude bazel -exclude internaldoc -build_file_name BUILD -repo_root=. | ||
# 生成依赖 | ||
gazelle update-repos -from_file=go.mod -to_macro=deps.bzl%go_dependencie | ||
# 部分依赖需要手动禁止编译proto | ||
sed -i '/.*name = "\(io_k8s_api\|io_k8s_apimachinery\|com_github_google_gnostic\)",/a\ build_file_proto_mode = "disable_global",' deps.bzl | ||
``` | ||
|
||
git 配置 | ||
```shell | ||
git config --global user.name "xxx" | ||
git config --global user.email "xxx@antgroup.com" | ||
|
||
# http/https 免密码登录(首次需要密码验证) | ||
git config --global credential.helper store | ||
|
||
# 通过 ssh 访问 gitlab,需要加这行配置 | ||
git config --global url."git@gitlab.alipay-inc.com:".insteadOf "http://gitlab.alipay-inc.com/" | ||
``` | ||
ssh 配置 | ||
```shell | ||
# 生成 ssh 公私钥 | ||
ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N '' | ||
|
||
# 将公钥内容填至 AntCode->设置->SSH密钥 | ||
cat ~/.ssh/id_rsa.pub | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2023 Ant Group Co., Ltd. | ||
# | ||
# 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. | ||
# | ||
|
||
docker_image=envoyproxy/envoy-build-ubuntu:0ca52447572ee105a4730da5e76fe47c9c5a7c64 | ||
|
||
docker pull $docker_image | ||
bazel_cache_user_root=./.bazel-cache | ||
|
||
if [[ x$1 == 'x' ]]; then | ||
docker exec -it envoyv1.29.4-build-$(whoami) bash | ||
elif [[ x$1 == 'xinit' ]]; then | ||
docker run -d -it --name envoyv1.29.4-build-$(whoami) \ | ||
--mount type=bind,source="$(pwd)",target=/home/admin/dev/ -w /home/admin/dev \ | ||
-e HOST_PERMS="$(id -u):$(id -g)" \ | ||
-e GOPROXY='https://goproxy.cn,direct' \ | ||
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \ | ||
--cap-add=NET_ADMIN \ | ||
$docker_image | ||
else | ||
echo "unknown command" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aci不同步