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

fix(dist): unify binary name for hubble #392

Merged
merged 4 commits into from
Dec 9, 2022

Conversation

JackyYangPassion
Copy link
Contributor

@JackyYangPassion JackyYangPassion commented Dec 6, 2022

fix #393

@codecov
Copy link

codecov bot commented Dec 6, 2022

Codecov Report

Merging #392 (75a663a) into master (942e52c) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #392   +/-   ##
=========================================
  Coverage     62.55%   62.55%           
  Complexity     1866     1866           
=========================================
  Files           260      260           
  Lines          9405     9405           
  Branches        872      872           
=========================================
  Hits           5883     5883           
  Misses         3140     3140           
  Partials        382      382           

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

Comment on lines 38 to 40
mv $root_path/hugegraph-hubble/hugegraph-hubble ${final.name}/hugegraph-hubble-${project.version}
mv $root_path/hugegraph-loader/hugegraph-loader-${project.version} ${final.name}/hugegraph-loader-${project.version}
mv $root_path/hugegraph-tools/hugegraph-tools-${project.version} ${final.name}/hugegraph-tools-${project.version}
mv $root_path/hugegraph-loader/apache-hugegraph-loader-incubating-${project.version} ${final.name}/apache-hugegraph-loader-incubating-${project.version}
mv $root_path/hugegraph-tools/apache-hugegraph-tools-incubating-${project.version} ${final.name}/apache-hugegraph-tools-incubating-${project.version}
Copy link
Member

Choose a reason for hiding this comment

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

@z7658329 hubble should also rename to apache, and remember check the string path in IDEA (search usage) to avoid inconsistency

and 2 improvement:

  1. use mv -v to show the verbose info
  2. condiser use $root_path/apache-hugegraph-*-incubating*/ ? (need test it first)

Copy link
Member

@z7658329 z7658329 Dec 8, 2022

Choose a reason for hiding this comment

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

i have communicate with @JackyYangPassion

1.hubble rename to apache
2.use mv $root_path/apache-hugegraph--incubating/ instead

Copy link
Member

@z7658329 z7658329 Dec 8, 2022

Choose a reason for hiding this comment

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

image

run ' mvn install' in hugegraph-hubble dir, it seems Generate two identical files? should remove one of them?
@javeme @imbajin

Copy link
Member

Choose a reason for hiding this comment

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

image

run ' mvn install' in hugegraph-hubble dir, it seems Generate two identical files? should remove one of them? @javeme @imbajin

emm, seems keep one dir is right.. handle it in another PR together

javeme
javeme previously approved these changes Dec 7, 2022
@javeme
Copy link
Contributor

javeme commented Dec 7, 2022

ci error:

cp "${TRAVIS_DIR}"/jacocoagent.jar $HUBBLE_DIR/lib || exit 1
cp: cannot create regular file 'hugegraph-hubble/lib': No such file or directory
Error: Process completed with exit code 1.

Comment on lines +38 to +40
mv -v $root_path/hugegraph-hubble/apache-hugegraph-hubble-incubating-${project.version} ${final.name}/
mv -v $root_path/hugegraph-loader/apache-hugegraph-loader-incubating-${project.version} ${final.name}/
mv -v $root_path/hugegraph-tools/apache-hugegraph-tools-incubating-${project.version} ${final.name}/
Copy link
Member

@imbajin imbajin Dec 8, 2022

Choose a reason for hiding this comment

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

@z7658329 will the ${final.name} be different in one pom file? seems a little strange

is the output right?

Copy link
Member

Choose a reason for hiding this comment

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

@z7658329 will the ${final.name} be different in one pom file? seems a little strange

is the output right?

make a mistake, the 2nd param is the dest dir (treat as the source dir before, which is wrong)

and shall we use mv -v xx/*/*hugegraph-*xx/ destDir/ to replace current command?

but current way is more accurate, use it

@z7658329
Copy link
Member

z7658329 commented Dec 8, 2022

i have test in local, seems ok:
image

image

@JackyYangPassion @imbajin

@@ -18,7 +18,7 @@
set -ev

TRAVIS_DIR=$(dirname "$0")
HUBBLE_DIR="hugegraph-hubble"
HUBBLE_DIR="apache-hugegraph-hubble-incubating-1.0.0"
Copy link
Member

@imbajin imbajin Dec 8, 2022

Choose a reason for hiding this comment

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

@z7658329 the version should be a variable like $rivison? (not fixed?)

@imbajin imbajin changed the title fix hugegraph-dist package failed fix(dist): unify binary name for hubble Dec 8, 2022
@imbajin imbajin requested a review from javeme December 8, 2022 15:10
@imbajin
Copy link
Member

imbajin commented Dec 8, 2022

seems fine:
image

TODO: find another error by accident.... (solve it in another PR later)

image

@z7658329
Copy link
Member

z7658329 commented Dec 9, 2022

seems fine: image

TODO: find another error by accident.... (solve it in another PR later)

image

this error always exist, see #338
image

@coderzc coderzc merged commit e53539b into apache:master Dec 9, 2022
@imbajin imbajin added this to the 1.0.0 milestone Dec 9, 2022
@imbajin imbajin added the ci Continuous integration label Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous integration
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug] maven build failed in dist module
5 participants