-
Notifications
You must be signed in to change notification settings - Fork 30
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
do not run linters on repeated nightly #9
Conversation
@@ -172,7 +172,7 @@ def main(argv=None): | |||
job_name = job_name[0:-5] | |||
job_data['time_trigger_spec'] = '0 12 * * *' | |||
job_data['cmake_build_type'] = 'None' | |||
job_data['ament_test_args_default'] = '--retest-until-fail 20' | |||
job_data['ament_test_args_default'] = '--retest-until-fail 20 -LE lint' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The label is linter
(e.g. see https://github.com/ament/ament_lint/blob/27b56bf60ff1b7bc039cd8403b28373a50449a3f/ament_cmake_pep8/cmake/ament_pep8.cmake#L57).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad, works locally with lint
for some reason. Updated in 78211f1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did you test this locally? Currently the patch passes -LE
to ament
but it needs to pass it to ctest
.
@@ -172,7 +172,7 @@ def main(argv=None): | |||
job_name = job_name[0:-5] | |||
job_data['time_trigger_spec'] = '0 12 * * *' | |||
job_data['cmake_build_type'] = 'None' | |||
job_data['ament_test_args_default'] = '--retest-until-fail 20' | |||
job_data['ament_test_args_default'] = '--retest-until-fail 20 -LE linter' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be changed to --retest-until-fail 20 --ctest-args -LE linter --
because it's not an ament-specific test argument
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry local aliases took care the ctest-args
for me. Will update it, test it on the farm and resubmitted for review once it's actually ready
@@ -172,7 +172,7 @@ def main(argv=None): | |||
job_name = job_name[0:-5] | |||
job_data['time_trigger_spec'] = '0 12 * * *' | |||
job_data['cmake_build_type'] = 'None' | |||
job_data['ament_test_args_default'] = '--retest-until-fail 20 -LE linter' | |||
job_data['ament_test_args_default'] = '--retest-until-fail 20 --ctest-args -LE linter --' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what's happening here is that the --ctest-args
(greedy) are being nested within another greedy argument --ament-test-args
that gets the delimeter appended here. Really these two lists should have different variables.
As you mentioned offline, this will work as-is for now, so we can apply it to the farm, but let's not merge it until it's implemented in a way that's more future-proof
Tested this on the fastest nightly (windows) it looks like we can divide the time of the repeated nightlies by 2 (tested only on windows the fastest one): |
I compared the list of tests with and without this change. As expected the diff only shows the linter tests (test lists for reference) If there is no objections I will reconfigure manually all the repeated jobs and merge ros2/common_interfaces#23 tonight |
@mikaelarguedas when you say manually reconfiguring them, you mean through the Jenkins web interface? Or do you mean: merge this and apply the changes using the script in this repository? |
@wjwwood I mean through the jenkins web interface for the time being. And not merge this until we have the adequate fixes to the argument parsing mentionned in #9 (comment) |
Ah, sorry misread that comment. 👍 |
I would highly recommend to not let the current master diverge from what is being deployed on Jenkins. Simply because it makes deploying any kind of changes much more effort (with a high chance of loosing previously made changes). You can make whatever changes you want to apply manually in a separate PR and that can be merged and then deployed through the script. |
The changes I made manually are exactly the same as the ones in this PR. You advise to merge this one and deploy the change. Then open a follow up PR to deal with the nested argument parsing + various patches, is that right ? |
I though this one shouldn't be merged since it already deals with it but incompletely. Yes, then this can be merged and deployed and the remaining problem ticketed. I recently worked with |
I didn't realise that This issue that needs to be ticketed, as I understand it, is to better handle multiple |
Yes that's what I understood too, if we decide not to make the tool robust to double delimiters as stated in ament/ament_tools#111 I'd lean toward just making sure the command doesn't end with |
the fix suggested in #9 (comment) to append the delimiters at the end of the line only if needed has been implemented in #15. |
No description provided.