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

Fusion Hack #7740

Merged
merged 7 commits into from Mar 12, 2024
Merged

Fusion Hack #7740

merged 7 commits into from Mar 12, 2024

Conversation

ctmphuongg
Copy link
Contributor

Fixes #7652
🧹 Create one script to call all scripts under hack

Copy link

linux-foundation-easycla bot commented Mar 5, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

knative-prow bot commented Mar 5, 2024

Welcome @ctmphuongg! It looks like this is your first PR to knative/eventing 🎉

@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 5, 2024
Copy link

knative-prow bot commented Mar 5, 2024

Hi @ctmphuongg. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@knative-prow knative-prow bot added the area/test-and-release Test infrastructure, tests or release label Mar 5, 2024
@Leo6Leo
Copy link
Member

Leo6Leo commented Mar 5, 2024

/cc @Leo6Leo

@knative-prow knative-prow bot requested a review from Leo6Leo March 5, 2024 21:18
@Leo6Leo
Copy link
Member

Leo6Leo commented Mar 5, 2024

@ctmphuongg Thanks for your PR! As this is your first time pulling up a PR in Knative community, you may need to complete a authorization called "EasyCLA".

Here is a intro on what it is and how to complete it. Hope you find it is helpful!
https://knative.dev/blog/articles/getting-started-blog-p2/#cla

Leo6Leo
Leo6Leo previously requested changes Mar 6, 2024
Copy link
Member

@Leo6Leo Leo6Leo left a comment

Choose a reason for hiding this comment

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

@ctmphuongg Thanks for your PR! Please see the comments.

hack/run.sh Outdated Show resolved Hide resolved
hack/run.sh Outdated Show resolved Hide resolved
hack/run.sh Outdated Show resolved Hide resolved
hack/run.sh Outdated Show resolved Hide resolved
hack/run.sh Outdated Show resolved Hide resolved
hack/run.sh Outdated Show resolved Hide resolved
@ctmphuongg ctmphuongg requested a review from Leo6Leo March 6, 2024 17:48
hack/run.sh Outdated Show resolved Hide resolved
@Cali0707
Copy link
Member

Cali0707 commented Mar 6, 2024

/ok-to-test

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 6, 2024
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.15%. Comparing base (a154f1a) to head (96d4e03).
Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7740      +/-   ##
==========================================
+ Coverage   69.04%   69.15%   +0.11%     
==========================================
  Files         338      339       +1     
  Lines       19350    19429      +79     
==========================================
+ Hits        13360    13437      +77     
- Misses       5328     5330       +2     
  Partials      662      662              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Cali0707
Copy link
Member

Cali0707 commented Mar 6, 2024

/test reconciler-tests

hack/run.sh Outdated Show resolved Hide resolved
@Leo6Leo
Copy link
Member

Leo6Leo commented Mar 7, 2024

/lgtm
/cc @Cali0707 @creydr

@knative-prow knative-prow bot requested review from Cali0707 and creydr March 7, 2024 19:42
@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Mar 7, 2024
hack/run.sh Outdated
Comment on lines 30 to 49
if [[ "${action}" == "install" ]]; then
source "${ROOT_DIR}"/hack/install.sh
elif [[ "${action}" == "update-cert-manager" ]]; then
source "${ROOT_DIR}"/hack/update-cert-manager.sh "$2" "$3"
elif [[ "${action}" == "e2e-debug" ]]; then
source "${ROOT_DIR}"/hack/e2e-debug.sh "$2" "$3"
elif [[ "${action}" == "generate-yamls" ]]; then
source "${ROOT_DIR}"/hack/generate-yamls.sh "$2" "$3"
elif [[ "${action}" == "update-reference-docs" ]]; then
source "${ROOT_DIR}"/hack/update-reference-docs.sh
elif [[ "${action}" == "teardown" ]]; then
source "${ROOT_DIR}"/hack/teardown.sh
elif [[ "${action}" == "update-checksums" ]]; then
source "${ROOT_DIR}"/hack/update-checksums.sh
elif [[ "${action}" == "update-codegen" ]]; then
source "${ROOT_DIR}"/hack/update-codegen.sh
elif [[ "${action}" == "update-deps" ]]; then
source "${ROOT_DIR}"/hack/update-deps.sh
elif [[ "${action}" == "verify-codegen" ]]; then
source "${ROOT_DIR}"/hack/verify-codegen.sh
Copy link
Member

Choose a reason for hiding this comment

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

Here, instead of sourcing the bash scripts could you directly execute them? E.g. instead of:

source "{ROOT_DIR}"/hack/script.sh

Simply:

./"{ROOT_DIR}"/has/script.sh

This is probably simpler and more in line with how people currently use the scripts, and it is similar to what we do in https://github.com/knative-extensions/eventing-kafka-broker/blob/7a3464cca004edecc57b8eb3fc177fe2969546c6/hack/run.sh#L90-L103
when there are scripts that we execute in their entirety rather than just calling a function defined within.

@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 8, 2024
Copy link
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Thanks for your contribution @ctmphuongg 🎉

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Mar 8, 2024
Copy link

knative-prow bot commented Mar 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, ctmphuongg

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 8, 2024
@Leo6Leo
Copy link
Member

Leo6Leo commented Mar 11, 2024

/retest-required

2 similar comments
@Cali0707
Copy link
Member

/retest-required

@Cali0707
Copy link
Member

/retest-required

@knative-prow knative-prow bot merged commit bbb9051 into knative:main Mar 12, 2024
30 of 35 checks passed
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/test-and-release Test infrastructure, tests or release lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fusion Hack scipts to one script
3 participants