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

Add feature flag to drop dependencies from test execution #571

Merged
merged 4 commits into from
Jun 13, 2024

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Aug 8, 2023

The current model requires that packages have already finished building prior to invoking tests, meaning that there aren't any ordering constraints on test execution.

Before we can merge this PR, we have some work to do in the ROS 2 codebase, where there is global state among tests and possible collisions during execution. Once we've developed a cohesive plan for dealing with those collisions, we can consider increasing the parallelism here.

The current model requires that packages have already finished building
prior to invoking tests, meaning that there aren't any ordering
constraints on test execution.
@cottsay cottsay self-assigned this Aug 8, 2023
@cottsay
Copy link
Member Author

cottsay commented Aug 8, 2023

Prototype builds:

  • Linux Build Status Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.26%. Comparing base (0539c39) to head (7020b1d).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #571   +/-   ##
=======================================
  Coverage   87.26%   87.26%           
=======================================
  Files          67       67           
  Lines        3902     3904    +2     
  Branches      773      773           
=======================================
+ Hits         3405     3407    +2     
  Misses        391      391           
  Partials      106      106           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@nuclearsandwich nuclearsandwich left a comment

Choose a reason for hiding this comment

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

@cottsay and I had a good conversation about this change and the reasons we can't yet merge it. I'd really like to see the info in that discussion added to the PR body but I totally agree with the approach.

@scpeters
Copy link

I understand that this can't be merged in the nearer term, but would you accept an earlier merge of this functionality behind an --ignore-dependencies flag?

@cottsay cottsay changed the base branch from master to cottsay/verb-tests June 4, 2024 21:19
@cottsay cottsay marked this pull request as ready for review June 4, 2024 21:19
@scpeters
Copy link

scpeters commented Jun 7, 2024

I understand that this can't be merged in the nearer term, but would you accept an earlier merge of this functionality behind an --ignore-dependencies flag?

Ok, it looks like you have added a feature flag for this. I think I use this feature by setting the following environment variable:

export COLCON_FEATURE_FLAGS=drop_test_deps

Is that right?

@cottsay
Copy link
Member Author

cottsay commented Jun 8, 2024

Is that right?

That's correct. As soon as I get readthedocs deployments running again, I'll add information on the semantics of feature flags.

Base automatically changed from cottsay/verb-tests to master June 13, 2024 18:33
@cottsay cottsay merged commit cc1eadd into master Jun 13, 2024
36 checks passed
@cottsay cottsay deleted the cottsay/no-test-deps branch June 13, 2024 18:42
@cottsay cottsay added the enhancement New feature or request label Jun 13, 2024
@cottsay cottsay changed the title Drop dependencies from test execution Add feature flag to drop dependencies from test execution Jun 13, 2024
@cottsay cottsay added this to the 0.16.2 milestone Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants