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

Consistency fixes for test_executor_sequential #566

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Aug 2, 2023

A few things here:

  1. Use a real Job object like the other test. The sequential executor doesn't seem to need it to have a 'identifier' property, but other executors do and we should be consistent.
  2. Move stuff out of the try/finally block for the os.kill thread to reduce the likelihood of secondary exceptions.
  3. Clear the global job accumulation variable even though we don't check it (which is another conversation entirely).

Motivation behind this change is to port this test to colcon-parallel-executor.

A things things here:
1. Use a real Job object like the other test. The sequential executor
   doesn't seem to need it to have a 'identifier' property, but other
   executors do and we should be consistent.
2. Move stuff out of the try/finally block for the os.kill thread to
   reduce the likelihood of secondary exceptions.
3. Clear the global job accumulation variable even though we don't use
   check it (which is another conversation entirely).
@cottsay cottsay added the enhancement New feature or request label Aug 2, 2023
@cottsay cottsay self-assigned this Aug 2, 2023
@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (7b70e61) 81.88% compared to head (0cd49e7) 81.88%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #566   +/-   ##
=======================================
  Coverage   81.88%   81.88%           
=======================================
  Files          62       62           
  Lines        3648     3648           
  Branches      705      705           
=======================================
  Hits         2987     2987           
  Misses        609      609           
  Partials       52       52           

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

@cottsay cottsay merged commit 18ac286 into master Aug 17, 2023
35 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cottsay/executor-test-cleanup branch August 17, 2023 22:26
@cottsay cottsay added this to the 0.13.0 milestone Sep 22, 2023
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.

2 participants