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

CI: Update path to repositories when using actions/checkout action #263

Open
Tracked by #268
francocipollone opened this issue Jun 1, 2022 · 6 comments
Open
Tracked by #268

Comments

@francocipollone
Copy link
Collaborator

francocipollone commented Jun 1, 2022

This targets all the repos in the maliput ecosystem

Summary

We are using

    - uses: actions/checkout@v2
      with:
        repository: ToyotaResearchInstitute/maliput
        fetch-depth: 0
        path: ${{ env.ROS_WS }}/src/maliput
        token: ${{ secrets.MALIPUT_TOKEN }}

for each dependency.

Let's use maliput/maliput instead of ToyotaResearchInstitute/maliput

Alternative

We could directly handle it via dependencies.repos file and remove all the actions/checkout actions making the workflow a bit simpler.

@francocipollone
Copy link
Collaborator Author

We could directly handle it via dependencies.repos file and remove all the actions/checkout actions making the workflow a bit simpler.

Wdyt? @agalbachicar

@agalbachicar
Copy link
Collaborator

Is this OK?

Let's use ToyotaResearchInstitute/maliput instead of maliput/maliput

I think you wanted to say the other way around, right?

@agalbachicar
Copy link
Collaborator

I would like us to explore https://github.com/ros-tooling/action-ros-ci for this. It is the standard way AFAIK. We can shrink considerably our action files and avoid duplication. The only problem I see with it is that the branching scheme is not possible with a repos file.

@agalbachicar
Copy link
Collaborator

@francocipollone what do you think about suggesting to merge the try_vcs_checkout flow within action-ros-ci in a ticket?

@francocipollone
Copy link
Collaborator Author

francocipollone commented Jun 1, 2022

The only problem I see with it is that the branching scheme is not possible with a repos file.

And skipping keys for the rosdep install (We are using it for pybind11) ros-tooling/action-ros-ci#276

what do you think about suggesting to merge the try_vcs_checkout flow within action-ros-ci in a ticket?

There is a similar request here ros-tooling/action-ros-ci#157
And they are already providing some kind of support for multi-repo development:

Therefore, I don't think that this script would be accepted as they are already providing something similar using a different "API".


Once skip-keys is added, ros-action-ci could be used for at least one of the workflows we have. Not for the sanitizers and scan-build related workflows.

@agalbachicar
Copy link
Collaborator

Probably, it is worth another ticket, we should look into colcon mixins for sanitizers.

I think we will simplify workflows and standardize behavior to what other packages are doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants