Skip to content

Add tests that Distributed.context is used in all main files using fme#882

Merged
mcgibbon merged 3 commits intomainfrom
fix/benchmark_context
Feb 27, 2026
Merged

Add tests that Distributed.context is used in all main files using fme#882
mcgibbon merged 3 commits intomainfrom
fix/benchmark_context

Conversation

@mcgibbon
Copy link
Contributor

Changes:

  • Updated many entrypoints to call Distributed.context for proper Distributed cleanup

  • Added tests that ensure files with main guards contain Distributed.context() call

  • Tests added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is mostly duplicated from the test in fme/, but I felt like it's important that fme as a package have this test, and I also felt like it's important fme tests don't access scripts. The logic needs are also slightly different because it isn't a given that the scripts here use fme, most don't.

Copy link
Contributor

@Arcomano1234 Arcomano1234 left a comment

Choose a reason for hiding this comment

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

LGTM, did a quick check to make sure there were not any other fme files that needed to be excluded what you have seems to be good. Also the tests should find everything.

@mcgibbon mcgibbon merged commit dad4537 into main Feb 27, 2026
7 checks passed
@mcgibbon mcgibbon deleted the fix/benchmark_context branch February 27, 2026 20:50
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