Skip to content

Add ctest loop script - #1076

Merged
mkhansenbot merged 4 commits into
ros-navigation:masterfrom
mkhansenbot:ctest_loop
Aug 29, 2019
Merged

mkhansenbot merged 4 commits into
ros-navigation:masterfrom
mkhansenbot:ctest_loop

Conversation

@mkhansenbot

Copy link
Copy Markdown
Collaborator

Description of contribution in a few bullet points

Adds a script to the system tests directory for looping the bt_navigator system test. Useful for reliability testing.

Also updates the README files with instructions


Future work that may be required in bullet points

N/A

@mkhansenbot
mkhansenbot requested a review from a user August 28, 2019 21:18
@mkhansenbot mkhansenbot self-assigned this Aug 28, 2019
@mkhansenbot
mkhansenbot requested a review from orduno August 28, 2019 22:00
echo $failcount "TOTAL FAILURES"
done
echo $failcount " FAILURES / " $loopcount
echo $failcount " FAILURES / " $loopcount >> $outfile

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I never use the the $outfile. I didn't even realize it was there in the script. I'm OK with removing it if you don't have a use for it. That way we can simplify to just one log.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I use it to get a quick pass/fail count summary

@dirk-thomas

Copy link
Copy Markdown

Just as a note: if you are not interested in the detailed statistic this script generates you can check for two different cases with colcon already:

  • by invoking colcon test --retest-until-fail N (possibly in combination with selecting a specific package and/or test) you can ensure that a test pass every of the N runs and isn't flaky
  • by invoking colcon test --retest-until-pass N (again possibly in combination with selecting a specific package and/or test) you can check that a test passes at least sometime (and kind of ignore the flaky failures)

@mkhansenbot

mkhansenbot commented Aug 29, 2019 •

Copy link
Copy Markdown
Collaborator Author

Thanks @dirk-thomas for the info.

This script is explicitly for measuring pass/fail % so we can determine how flaky the system is and track it over time.

It's good to know about the colcon options though, the --retest-until-pass may be useful. We could use that instead of our other ctest_retry script: https://github.com/ros-planning/navigation2/blob/master/tools/ctest_retry.bash


## To run the test
First, build the package
First, remove the COLCON_IGNORE; this exists so the system tests won't be in the debian release package

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You should not use a COLCON_IGNORE file for this since it makes it impossible to build/test this package from source without manually removing the file. Instead you should ignore the package explicitly in the release repository. See https://github.com/ros-gbp/ros_comm-release/blob/a5cd5afe79e6bc23965817072e279f7b9dca2f88/melodic.ignored for an example.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't see a "dashing.ignored" file there, should I create a PR to create one? Also, does this mean for every release we have to go create a new one; "eloquent.ignored", etc?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't see a "dashing.ignored" file there, should I create a PR to create one?

Yes.

does this mean for every release we have to go create a new one; "eloquent.ignored", etc?

Yes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Alternatively, if the tests pass in the build farm (our goal), then we don't have to do either, we just don't include nav2_system_tests in the meta-package so it isn't installed by 'sudo apt install ros-dashing-navigation2'. That's the ideal solution IMO.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

But you don't want to produce a Debian package for it.

@mkhansenbot
mkhansenbot merged commit dcad656 into ros-navigation:master Aug 29, 2019
@mkhansenbot
mkhansenbot deleted the ctest_loop branch August 29, 2019 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 - Medium Medium Priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants