-
Notifications
You must be signed in to change notification settings - Fork 129
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
[WIP] rerun_ci script #279
Conversation
If image in DOCKER_IMAGE has been created locally, docker pull would fail.
this enables the scripts to be exeuted multiple times
ef3477f
to
c47a88c
Compare
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 install rule for the script is missing.
Also, it would be nice to update the section on running industrial_ci on the local host with a brief description and usage example.
Other than that, it works like a charm!
c47a88c
to
3900789
Compare
Shame on me! I added the rule and some documentation. |
3900789
to
ccbd1a8
Compare
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.
Looks good to me 👍
fe4505b
to
dfb1172
Compare
dfb1172
to
5564aa8
Compare
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.
Looks pretty useful! Just spotted easy .rst formatting issues.
doc/index.rst
Outdated
|
||
As an alternative `rerun_ci` could be used. It take the same argument as `run_ci`, but will run the build incrementally and only download or compile after changes. | ||
This results in much faster execution for recurring runs, but has some disadvantages as well: | ||
* The user needs to clean-up manually, an instruction to do so is printed at the end of all runs. |
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.
Probably blank space is needed to enable bullet points in .rst.
doc/index.rst
Outdated
$ rosrun industrial_ci rerun_ci . ROS_DISTRO=melodic ROS_REPO=ros-shadow-fixed | ||
|
||
This will run the tests and commit the result to a Docker image `industrial-ci/rerun_ci/ros_canopen:$HASH`. | ||
The hash is unique for each argument list, so `rerun_ci . ROS_DISTRO=melodic` and `rerun_ci . ROS_DISTRO=kinetic` do not mix up. |
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.
so
rerun_ci . ROS_DISTRO=melodic
andrerun_ci . ROS_DISTRO=kinetic
do not mix up.
github.com does not render it nicely enough so that it's hard to tell apart the 2 sets of commands. Maybe separate lines makes it the most clear.
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.
Apparently, inline code has to be wrapped in double backticks.
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.
This one needs to be changed a little bit after #283 was merged.
In addition _COMMIT_IMAGE will become a public option (#286)
I assume those are future TODOs, not for this PR. Merging. -> Found some jobs failing #279 (comment)
Found a couple of CI jobs failed. They are restarted. Once they pass we can merge this. |
https://travis-ci.org/ros-industrial/industrial_ci/jobs/394076779#L554
I assume this is hitting #291? Is this ignorable or not, regarding PR merge? I'm inclined to ignore it for now. |
No, #283 is an extended version of 2b93722
Yes, all our builds will hit this.
Yes, but don't this PR merge now. ;) |
Just a comment; at my work, people have been frustrated with CI gitlab.com for a number of reasons (along with many advantages) and kept asking around more legit way to run CI locally. So this will be very useful. An inevitable downside (correct me if wrong) is that we won't be able to count the number of local runs as it won't clone |
@ipa-mdl Could you rebase to the latest? I think #292 is needed to pass Travis. |
I'm running rebased branch of yours @ipa-mdl on my fork. https://travis-ci.org/130s/industrial_ci/builds/414177337. If it runs fine then I'll go ahead merge this. |
Merging as https://travis-ci.org/130s/industrial_ci/builds/414177337 passed. |
This really was WIP! |
rerun_ci
runs local tests likerun_ci
, but speeds up recurring builds by reusing the image from the last run.Each run will commit the container to
industrial-ci/run_ci/$REPO_NAME:$CLI_HASH
. The latter hashes the command line arguments. Thee will added to the images as a comment as well.So each combination of (absolute) target path and enviromnent settings gets a dedicated image.
There are some differences between
run_ci
andrerun_ci
:Please give it a try.