-
Notifications
You must be signed in to change notification settings - Fork 760
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
Conversation
Welcome @Hinsteny! It looks like this is your first PR to openkruise/kruise 🎉 |
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
c0732d1
to
08da197
Compare
That means on the developer user's local computer. |
Codecov Report
❗ 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
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 |
tools/hack/run-kruise-e2e-test.sh
Outdated
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
#!/usr/bin/env bash |
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.
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.
tools/hack/install-kruise.sh
Outdated
for ((i=1;i<10;i++)); | ||
do | ||
set +e | ||
PODS=$(kubectl get pod -n kruise-system | grep '1/1' | wc -l) |
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.
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.
tools/hack/install-kruise.sh
Outdated
sleep 3 | ||
done | ||
set +e | ||
PODS=$(kubectl get pod -n kruise-system | grep '1/1' | wc -l) |
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.
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.
tools/hack/create-cluster.sh
Outdated
# Setup default values | ||
CLUSTER_NAME=${CLUSTER_NAME:-"ci-testing"} | ||
KIND_NODE_TAG=${KIND_NODE_TAG:-"v1.24.2"} | ||
PROJECT_DIR=$(pwd) |
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.
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.
tools/hack/create-cluster.sh
Outdated
KIND_NODE_TAG=${KIND_NODE_TAG:-"v1.24.2"} | ||
PROJECT_DIR=$(pwd) | ||
|
||
echo ${KIND_NODE_TAG} |
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.
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.
tools/hack/create-cluster.sh
Outdated
PROJECT_DIR=$(pwd) | ||
|
||
echo ${KIND_NODE_TAG} | ||
echo ${CLUSTER_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.
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.
@Hinsteny The follow auto-checks fails, and you need to resolve them. |
08da197
to
334edb9
Compare
Signed-off-by: Hinsteny <[email protected]>
334edb9
to
1510617
Compare
/lgtm |
/approve |
[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 |
Signed-off-by: Hinsteny <[email protected]>
Signed-off-by: Hinsteny <[email protected]>
Ⅰ. 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