Skip to content

Conversation

Radeity
Copy link
Member

@Radeity Radeity commented May 7, 2023

Fix some typo errors in start-computer.sh : )

Brief changes:

  • (Spelling) Change muse to must.
  • (Grammar) Add must before not be.
@codecov
Copy link

codecov bot commented May 7, 2023

Codecov Report

Merging #238 (7fd3671) into master (cc5a7e7) will decrease coverage by 0.10%.
The diff coverage is n/a.

@@ Coverage Diff @@ ## master #238 +/- ## ============================================ - Coverage 85.83% 85.73% -0.10%  + Complexity 3232 3228 -4  ============================================ Files 344 344 Lines 12072 12072 Branches 1087 1087 ============================================ - Hits 10362 10350 -12  - Misses 1185 1193 +8  - Partials 525 529 +4 

see 2 files with indirect coverage changes

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

@Radeity Radeity force-pushed the shell-typo-error branch from 3ddfba4 to b5676d0 Compare May 7, 2023 11:32
@Radeity
Copy link
Member Author

Radeity commented May 7, 2023

Hi, @imbajin , thanks for your comment, i've already changed must not to can't, also make some other tiny typo changes, PTAL : )

imbajin
imbajin previously approved these changes May 7, 2023
Copy link
Member

@imbajin imbajin left a comment

Choose a reason for hiding this comment

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

LGTM,and resolve the conversation is a right/good way during review 😁

@imbajin imbajin requested a review from coderzc May 7, 2023 18:03
Copy link
Contributor

@javeme javeme left a comment

Choose a reason for hiding this comment

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

LGTM

@imbajin
Copy link
Member

imbajin commented May 8, 2023

The ci always failed (>10times)... any way to improve it? @coderzc

image

@imbajin imbajin changed the title Fix some typo errors in start-computer.sh fix: typo errors in start-computer.sh May 8, 2023
@Radeity
Copy link
Member Author

Radeity commented May 9, 2023

The ci always failed (>10times)... any way to improve it? @coderzc

image

Hi, @imbajin, the error logs indicate that calling for jobObserver.onJobStateChanged() receive unexpected arg (status).

However, according to the UT codes, the only possible status change is from INITIALIZING to RUNNING, i'm a little confused, if the problem caused by unstable MiniKube environment, the probability of this happening is small, either.

BTW, I don't find the implementation class of JobObserver... I will be appreciated if you could guide me how to find it! Also, it seems that some classes are generated from go, such as org.apache.hugegraph.computer.k8s.crd.model.ComputerJobSpec, may i ask for the right way to map these go packages to java class? I really want to go on exploring our codes! cc @javeme @coderzc

@coderzc
Copy link
Member

coderzc commented May 9, 2023

BTW, I don't find the implementation class of JobObserver... I will be appreciated if you could guide me how to find it!

The JobObserver will be implemented by calling KubernetesDriver.waitJobAsync

@Radeity
Copy link
Member Author

Radeity commented May 9, 2023

The JobObserver will be implemented by calling KubernetesDriver.waitJobAsync

Get it, thanks!

@simon824 simon824 merged commit 3328d52 into apache:master May 9, 2023
@imbajin
Copy link
Member

imbajin commented May 9, 2023

may i ask for the right way to map these go packages to java class? I really want to go on exploring our codes!

you can run master/computer-k8s-operator/crd-generate/Makefile: gen-all , it will generate master/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml and master/computer-k8s/schema/crd-schema.json

@Radeity we do lack the doc in computer, if u passed this problem , could add a doc PR to improve it (Actually the first time I ran it, was also confused 😿 )

@Radeity
Copy link
Member Author

Radeity commented May 9, 2023

@Radeity we do lack the doc in computer, if u pass this problem , could add a doc PR to improve it (Actually the first time I run it, I'm also confused 😿 )

No problem, I'll try it later, I'm glad to help : )

@Radeity
Copy link
Member Author

Radeity commented May 13, 2023

Hi, @imbajin , I find that make gen-all is needed only when someone want to develop and modify CRD or Controller, they have to generate and submit codes with newly generated yaml and json schema files.

Thus, for me, directly run mvn install can solve the problem, cuz java classes will be generated with existed json schema files and jsonschema2pojo plugin.

May i ask which type of doc do we need, a doc to describe code structures (the meaning of different modules) OR a doc to to tell how to build development environment?

@imbajin
Copy link
Member

imbajin commented May 15, 2023

May i ask which type of doc do we need, a doc to describe code structures (the meaning of different modules) OR a doc to to tell how to build development environment?

We need add building-doc first for normal devs, then we could add the details u mentioned (optional & enhancement)

Hi, @imbajin , I find that make gen-all is needed only when someone want to develop and modify CRD or Controller, they have to generate and submit codes with newly generated yaml and json schema files.

Thus, for me, directly run mvn install can solve the problem, cuz java classes will be generated with existed json schema files and jsonschema2pojo plugin.

@coderzc could tell u the truth 👨🏻‍💻

@Radeity
Copy link
Member Author

Radeity commented May 15, 2023

We need add building-doc first for normal devs, then we could add the details u mentioned (optional & enhancement)

Hi, @imbajin , thanks for your reply, I'll do it step by step as you mentioned.

@coderzc could tell u the truth 👨🏻‍💻

And I've already confirmed with him, thanks again for your help @coderzc :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants