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

ci: add e2e test workflow #333

Merged
merged 1 commit into from
Nov 4, 2022
Merged

Conversation

cmycoups
Copy link
Contributor

@cmycoups cmycoups commented Nov 3, 2022

No description provided.

@kubeclipper-bot
Copy link
Collaborator

@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.

@kubeclipper-bot kubeclipper-bot added dco-signoff: no do-not-merge/release-note-label-needed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 3, 2022
Comment on lines 38 to 45
- 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
Copy link
Contributor

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

sudo systemctl start kc-agent
- name: login
run: |
sudo sleep 20s
Copy link
Contributor

Choose a reason for hiding this comment

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

不要 sudo,暂时 sleep 20 可以,后续可以想办法优化

@x893675
Copy link
Collaborator

x893675 commented Nov 3, 2022

/kind workflow
/area testing

@kubeclipper-bot kubeclipper-bot added kind/workflow add github workflow area/testing Categorizes issue or PR as related to testing. labels Nov 3, 2022
@x893675
Copy link
Collaborator

x893675 commented Nov 3, 2022

help review first. /cc @lixd

@x893675
Copy link
Collaborator

x893675 commented Nov 3, 2022

/retitle ci: add e2e test workflow

@kubeclipper-bot kubeclipper-bot changed the title feat: add deploy check in workflow ci: add e2e test workflow Nov 3, 2022
@x893675
Copy link
Collaborator

x893675 commented Nov 3, 2022

/cc @lixd

@x893675
Copy link
Collaborator

x893675 commented Nov 3, 2022

/milestone v1.3.1

@codecov-commenter
Copy link

codecov-commenter commented Nov 3, 2022

Codecov Report

Merging #333 (8bfbbfb) into master (36da26a) will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
pkg/scheme/core/v1/k8s/node.go 0.34% <0.00%> (-0.01%) ⬇️
pkg/apis/core/v1/handler.go 0.30% <0.00%> (-0.01%) ⬇️
pkg/scheme/core/v1/k8s/kubeadm_step.go 0.00% <0.00%> (ø)
pkg/apis/core/v1/schema.go 70.28% <0.00%> (+0.55%) ⬆️

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
Copy link
Contributor

Choose a reason for hiding this comment

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

启动顺序要反过来,先启动 server,再 agent

@kubeclipper-bot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeclipper-bot kubeclipper-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 3, 2022
@wu-wenxiang
Copy link
Contributor

/lgtm

@kubeclipper-bot kubeclipper-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 3, 2022
@kubeclipper-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 1c6d6b9c9abbf7d7420b3ca2a0dbbe54d92423bf

@kubeclipper-bot kubeclipper-bot added dco-signoff: no and removed lgtm Indicates that a PR is ready to be merged. dco-signoff: yes labels Nov 3, 2022
@x893675
Copy link
Collaborator

x893675 commented Nov 4, 2022

/remove-approve

@x893675
Copy link
Collaborator

x893675 commented Nov 4, 2022

/approve cancel

@x893675
Copy link
Collaborator

x893675 commented Nov 4, 2022

/remove approve

@x893675 x893675 removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 4, 2022
@@ -0,0 +1,83 @@
name: test
Copy link
Collaborator

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'
Copy link
Collaborator

Choose a reason for hiding this comment

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

pull request

@kubeclipper-bot kubeclipper-bot added dco-signoff: yes approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed dco-signoff: no labels Nov 4, 2022
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get branch name
Copy link
Contributor

Choose a reason for hiding this comment

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

uncessary step

@wu-wenxiang
Copy link
Contributor

/lgtm

@kubeclipper-bot kubeclipper-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 4, 2022
@kubeclipper-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 1c6d6b9c9abbf7d7420b3ca2a0dbbe54d92423bf

@kubeclipper-bot kubeclipper-bot merged commit 2ccb656 into kubeclipper:master Nov 4, 2022
@x893675
Copy link
Collaborator

x893675 commented Nov 4, 2022

/revert

x893675 added a commit that referenced this pull request Nov 4, 2022
x893675 added a commit that referenced this pull request Nov 4, 2022
This reverts commit 2ccb656.

Signed-off-by: x893675 <x893675@icloud.com>
kubeclipper-bot pushed a commit that referenced this pull request Nov 4, 2022
This reverts commit 2ccb656.

Signed-off-by: x893675 <x893675@icloud.com>

Signed-off-by: x893675 <x893675@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/testing Categorizes issue or PR as related to testing. dco-signoff: yes do-not-merge/release-note-label-needed kind/workflow add github workflow lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

6 participants