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: Support run e2e test casese in local #1316

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

Hinsteny
Copy link
Contributor

Ⅰ. Describe what this PR does

Support run e2e test casese in local

Ⅱ. Does this pull request fix one issue?

No

Ⅲ. Describe how to verify it

just run e2e test command at local

make kruise-e2e-test

Ⅳ. Special notes for reviews

No

@kruise-bot
Copy link

Welcome @Hinsteny! It looks like this is your first PR to openkruise/kruise 🎉

@kruise-bot kruise-bot added the size/L size/L: 100-499 label Jun 15, 2023
@zmberg
Copy link
Member

zmberg commented Jun 15, 2023

just run e2e test command at local

What is 'at local', can you describe the background?

@@ -0,0 +1,22 @@
module github.com/envoyproxy/gateway/tools/src/kind

Check warning

Code scanning / Trivy

faccessat checks wrong group

Package: golang.org/x/sys Installed Version: 0.0.0-20210630005230-0f9fa26af87c Vulnerability CVE-2022-29526 Severity: MEDIUM Fixed Version: 0.0.0-20220412211240-33da011f77ad Link: [CVE-2022-29526](https://avd.aquasec.com/nvd/cve-2022-29526)
@Hinsteny Hinsteny force-pushed the feat_local_e2e_test branch 2 times, most recently from c0732d1 to 08da197 Compare June 15, 2023 11:00
@Hinsteny
Copy link
Contributor Author

just run e2e test command at local

What is 'at local', can you describe the background?

That means on the developer user's local computer.

@codecov-commenter
Copy link

codecov-commenter commented Jun 15, 2023

Codecov Report

Merging #1316 (334edb9) into master (ffcf189) will not change coverage.
The diff coverage is n/a.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##           master    #1316   +/-   ##
=======================================
  Coverage   48.50%   48.50%           
=======================================
  Files         151      151           
  Lines       21210    21210           
=======================================
  Hits        10288    10288           
  Misses       9793     9793           
  Partials     1129     1129           
Flag Coverage Δ
unittests 48.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

# See the License for the specific language governing permissions and
# limitations under the License.

#!/usr/bin/env bash
Copy link

Choose a reason for hiding this comment

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

SC1128: The shebang must be on the first line. Delete blanks and move comments.

❗❗ 3 similar findings have been found in this PR

🔎 Expand here to view all instances of this finding
File Path Line Number
tools/hack/kind-load-image.sh 15
tools/hack/install-kruise.sh 15
tools/hack/create-cluster.sh 15

Visit the Lift Web Console to find more details in your report.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

for ((i=1;i<10;i++));
do
set +e
PODS=$(kubectl get pod -n kruise-system | grep '1/1' | wc -l)
Copy link

Choose a reason for hiding this comment

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

SC2126: Consider using grep -c instead of grep|wc -l.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

sleep 3
done
set +e
PODS=$(kubectl get pod -n kruise-system | grep '1/1' | wc -l)
Copy link

Choose a reason for hiding this comment

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

SC2126: Consider using grep -c instead of grep|wc -l.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

# Setup default values
CLUSTER_NAME=${CLUSTER_NAME:-"ci-testing"}
KIND_NODE_TAG=${KIND_NODE_TAG:-"v1.24.2"}
PROJECT_DIR=$(pwd)
Copy link

Choose a reason for hiding this comment

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

18% of developers fix this issue

SC2034: PROJECT_DIR appears unused. Verify use (or export if used externally).


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

KIND_NODE_TAG=${KIND_NODE_TAG:-"v1.24.2"}
PROJECT_DIR=$(pwd)

echo ${KIND_NODE_TAG}
Copy link

Choose a reason for hiding this comment

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

19% of developers fix this issue

SC2086: Double quote to prevent globbing and word splitting.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

PROJECT_DIR=$(pwd)

echo ${KIND_NODE_TAG}
echo ${CLUSTER_NAME}
Copy link

Choose a reason for hiding this comment

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

19% of developers fix this issue

SC2086: Double quote to prevent globbing and word splitting.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

@zmberg
Copy link
Member

zmberg commented Jun 15, 2023

@Hinsteny The follow auto-checks fails, and you need to resolve them.

@Hinsteny
Copy link
Contributor Author

@Hinsteny The follow auto-checks fails, and you need to resolve them.

@zmberg Please help me review again.

@zmberg
Copy link
Member

zmberg commented Jun 25, 2023

/lgtm

@zmberg
Copy link
Member

zmberg commented Jun 26, 2023

/approve

@kruise-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zmberg

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

@kruise-bot kruise-bot merged commit ffe60f2 into openkruise:master Jun 26, 2023
6 checks passed
diannaowa pushed a commit to diannaowa/kruise that referenced this pull request Aug 29, 2023
lilongfeng0902 pushed a commit to lilongfeng0902/kruise that referenced this pull request Sep 12, 2023
ppbits pushed a commit to ppbits/kruise that referenced this pull request Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants