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

Implement test fixture for faking the rosdistro repo #949

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Apr 10, 2024

This test was previously silently skipped when there wasn't an initialized and updated rosdep database present on the host. This change creates a 'fake' rosdep database locally and uses that to run the test. This decoupling also means that the test can run offline.

@cottsay cottsay self-assigned this Apr 10, 2024
This test was previously silently skipped when there wasn't an
initialized and updated rosdep database present on the host. This change
creates a 'fake' rosdep database locally and uses that to run the test.
This decoupling also means that the test can run offline.
@cottsay
Copy link
Member Author

cottsay commented Apr 10, 2024

Alternatively, if we want to keep this test as a sort of "outer loop integration test", I can update these changes to use the live rosdep database but redirect only the sources list and cache to a temporary directory to isolate the test from the host.

If we do that, we'll need to continue to ensure that the live rosdep data is compatible with the test.

@cottsay cottsay requested a review from tfoote April 10, 2024 19:59
Copy link
Member

@tfoote tfoote left a comment

Choose a reason for hiding this comment

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

Testing based on the mocked data makes more sense and is much better to have to make it repeatable.

Maybe a method or comment how to update the content. Aka # This content is mocking https://github.com/ros/rosdistro/rosindex-v4.yaml periodically this should be updated to a more recent snapshot.

@cottsay cottsay merged commit 736f15f into master Apr 16, 2024
15 checks passed
@cottsay cottsay deleted the cottsay/fake-rosdep branch April 16, 2024 19:00
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.

2 participants