-
Notifications
You must be signed in to change notification settings - Fork 40
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
ci: add e2e test workflow #333
Conversation
@cmycoups: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
.github/workflows/aio.yaml
Outdated
- name: update kcctl | ||
run: sudo cp ./dist/kcctl /usr/local/bin/ | ||
- name: update kc-server | ||
run: | | ||
sudo systemctl stop kc-server | ||
sudo cp ./dist/kubeclipper-server /usr/local/bin/ | ||
sudo systemctl start kc-server | ||
- name: update kc-agent | ||
run: | | ||
sudo systemctl stop kc-agent | ||
sudo cp ./dist/kubeclipper-agent /usr/local/bin/ | ||
sudo systemctl start kc-agent |
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.
合并一下,一起停掉,替换好,再一起开,这样干净,不会有残留数据,比如历史的 agent 数据上报到新的 server
- name: update kc assembly
run: |
sudo cp ./dist/kcctl /usr/local/bin/
sudo systemctl stop kc-agent
sudo systemctl stop kc-server
sudo cp ./dist/kubeclipper-agent /usr/local/bin/
sudo cp ./dist/kubeclipper-server /usr/local/bin/
sudo systemctl start kc-agent
sudo systemctl start kc-server
.github/workflows/aio.yaml
Outdated
sudo systemctl start kc-agent | ||
- name: login | ||
run: | | ||
sudo sleep 20s |
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.
不要 sudo,暂时 sleep 20 可以,后续可以想办法优化
/kind workflow |
help review first. /cc @lixd |
/retitle ci: add e2e test workflow |
/cc @lixd |
/milestone v1.3.1 |
Codecov Report
@@ Coverage Diff @@
## master #333 +/- ##
==========================================
- Coverage 12.96% 12.88% -0.08%
==========================================
Files 102 102
Lines 15647 15717 +70
==========================================
- Hits 2028 2025 -3
- Misses 13376 13450 +74
+ Partials 243 242 -1
|
.github/workflows/aio.yaml
Outdated
sudo systemctl stop kc-server | ||
sudo cp ./dist/kubeclipper-agent /usr/local/bin/ | ||
sudo cp ./dist/kubeclipper-server /usr/local/bin/ | ||
sudo systemctl start kc-agent |
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.
启动顺序要反过来,先启动 server,再 agent
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cmycoups, wu-wenxiang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
LGTM label has been added. Git tree hash: 1c6d6b9c9abbf7d7420b3ca2a0dbbe54d92423bf
|
/remove-approve |
/approve cancel |
/remove approve |
@@ -0,0 +1,83 @@ | |||
name: test |
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.
rename file aio to e2e-aio
rename job name test to e2e-aio-test
on: | ||
push: | ||
branches: | ||
- 'master' |
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.
pull request
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get branch name |
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.
uncessary step
/lgtm |
LGTM label has been added. Git tree hash: 1c6d6b9c9abbf7d7420b3ca2a0dbbe54d92423bf
|
/revert |
This reverts commit 2ccb656. Signed-off-by: x893675 <x893675@icloud.com>
No description provided.