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

Speedup testing [6501] #6

Merged
merged 1 commit into from
Oct 2, 2019
Merged

Speedup testing [6501] #6

merged 1 commit into from
Oct 2, 2019

Conversation

LuisGP
Copy link
Contributor

@LuisGP LuisGP commented Oct 2, 2019

  • Added parallel build
  • Check if Fast-RTPS was already built

@LuisGP LuisGP changed the title Speedup testing Speedup testing [6501] Oct 2, 2019
commands.add(new String[]{"rm -rf Fast-RTPS", OUTPUT_PATH});
commands.add(new String[]{"git clone -b " + branch + " https://github.com/eProsima/Fast-RTPS.git", OUTPUT_PATH});
commands.add(new String[]{"mkdir build", OUTPUT_PATH + "/Fast-RTPS"});
if (Files.notExists(Paths.get(OUTPUT_PATH + "/Fast-RTPS/build")))
Copy link
Contributor

Choose a reason for hiding this comment

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

What if the path exists but using a branch different from the one we currently want? Would we be using the old one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Take a look at the else branch.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I completely missed that :(

@TSC21
Copy link
Contributor

TSC21 commented Oct 2, 2019

Instead of cloning, why aren't we checking first if Fast-RTPS is installed on the system? Also, if Fast-RTPS is required for testing, IMHO it should be made as a dependency, not cloned on build time.

@LuisGP
Copy link
Contributor Author

LuisGP commented Oct 2, 2019

Instead of cloning, why aren't we checking first if Fast-RTPS is installed on the system? Also, if Fast-RTPS is required for testing, IMHO it should be made as a dependency, not cloned on build time.

Typically, we never install Fast-RTPS system-wide. This way, we can test Fast-RTPS-Gen against a concrete Fast-RTPS branch, which would not be possible if we use an already installed Fast-RTPS.

As you said, Fast-RTPS is only required for testing, so keep Fast-RTPS-Gen without such dependency is cleaner, I think.

commands.add(new String[]{"rm -rf Fast-RTPS", OUTPUT_PATH});
commands.add(new String[]{"git clone -b " + branch + " https://github.com/eProsima/Fast-RTPS.git", OUTPUT_PATH});
commands.add(new String[]{"mkdir build", OUTPUT_PATH + "/Fast-RTPS"});
if (Files.notExists(Paths.get(OUTPUT_PATH + "/Fast-RTPS/build")))
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I completely missed that :(

@LuisGP LuisGP merged commit add3e22 into master Oct 2, 2019
@LuisGP LuisGP deleted the feature/speedup_testing branch October 2, 2019 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants