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

Fix rosdep install execution #115

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Fix rosdep install execution #115

wants to merge 11 commits into from

Conversation

marcoshuck
Copy link
Member

Proposed changes

Running rosdep update and rosdep install returns a permission denied error as described in #114. This prevented the release target to be executed.

Adding a rosdep fix-permissions instruction to be run in sudo mode fixes the issue.

Type of change

  • 🐛 Bugfix (change which fixes an issue)
  • 🚀 Feature (change which adds functionality)
  • 📚 Documentation (change which fixes or extends documentation)

💥 Breaking change! Explain why a non-backwards compatible change is necessary or remove this line entirely if not applicable.

Checklist

Put an x in the boxes that apply. This is simply a reminder of what we will require before merging your code.

  • Lint and unit tests (if any) pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Additional comments

Fix #114

Running rosdep update and rosdep install returns a permission denied error as described in #114. This prevented the release target to be executed.

Adding a `rosdep fix-permissions` instruction to be run in sudo mode fixes the issue.

Signed-off-by: Marcos Huck <[email protected]>
src/benchmarks/beluga_vs_nav2/Earthfile Outdated Show resolved Hide resolved
@marcoshuck marcoshuck requested a review from hidmic December 8, 2024 20:13
FUNCTION
ARG user
ARG workdir=/home/${user}
RUN rosdep fix-permissions
Copy link
Collaborator

Choose a reason for hiding this comment

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

@marcoshuck have you tried this out? Where is a workdir used? I would've expected rosdep to require sudo

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, missing EOF newline.

Copy link
Member Author

@marcoshuck marcoshuck Dec 9, 2024

Choose a reason for hiding this comment

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

I ended up rewriting the code in this function and forgot to remove the workspace, I ran the whole build and it seemed to have worked as intended, can try running it again from scratch to double check (but it would be nice if we have CI at some point)

Copy link
Collaborator

@hidmic hidmic Dec 10, 2024

Choose a reason for hiding this comment

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

+1 to adding CI in a follow-up, never got around to do it.

Copy link
Member Author

@marcoshuck marcoshuck Dec 21, 2024

Choose a reason for hiding this comment

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

I re-ran the whole build without the layer cache and without sudo, it built the image as intended.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if it's worth removing rosdep fix-permissions, since we changed the base, the issue was probably fixed somewhere else.

Signed-off-by: Marcos Huck <[email protected]>
@marcoshuck marcoshuck requested a review from hidmic December 21, 2024 17:08
src/benchmarks/beluga_vs_nav2/Earthfile Outdated Show resolved Hide resolved
src/external/os/Earthfile Outdated Show resolved Hide resolved
@marcoshuck marcoshuck requested a review from hidmic December 30, 2024 15:24
Co-authored-by: Michel Hidalgo <[email protected]>
Signed-off-by: Marcos Huck <[email protected]>
@marcoshuck marcoshuck force-pushed the marcoshuck/fix_ros_dep branch from 36a00b7 to 8a27cbe Compare December 31, 2024 04:34
@marcoshuck marcoshuck requested a review from hidmic December 31, 2024 04:35
Copy link
Collaborator

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

Looks about right.

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.

Failed to build beluga vs nav2 benchmark image for release target
2 participants