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

CI: Test also without OpenMP and pthreads #2245

Merged
merged 2 commits into from
Mar 9, 2022

Conversation

wenzeslaus
Copy link
Member

This adds an additional build configuration to the Ubuntu workflow which builds code without OpenMP and pthreads and runs tests.
Notably, modules using nprocs parameter should accept nprocs > 1 even when they are not able to parallelize due to a missing dependency.
This check tests that behavior.

Other selected optional dependencies can be added in the future. The current goal is to test code without dependencies which don't influence the primary actions the code performs.

@ninsbl
Copy link
Member

ninsbl commented Mar 3, 2022

Would that be needed for MSWindows / OSGeo4W as well?

@wenzeslaus
Copy link
Member Author

Would that be needed for MSWindows / OSGeo4W as well?

Possibly, optionally, ... but in terms the checking that the module accepts the parameters and still passes the tests even without OpenMP, testing on one platform only is enough.

Windows check needs to switch to a more exact test than the percentage passing threshold. I added --config parameter recently so that Windows can have its own gunittest config file with more (or less) excluded files (exclude) and a higher timeout if that's needed.

@wenzeslaus wenzeslaus added C Related code is in C CI Continuous integration labels Mar 3, 2022
@wenzeslaus wenzeslaus marked this pull request as ready for review March 4, 2022 01:59
This adds an additional build configuration to the Ubuntu workflow which builds code without OpenMP and pthreads and runs tests.
Notably, modules using nprocs parameter should accept nprocs > 1 even when they are not able to parallelize due to a missing dependency.
This check tests that behavior.

Other selected optional dependencies can be added in the future. The current goal is to test code without dependencies which don't influence the primary actions the code performs.
@wenzeslaus wenzeslaus added this to the 8.2.0 milestone Mar 4, 2022
@wenzeslaus wenzeslaus merged commit a693eae into OSGeo:main Mar 9, 2022
@wenzeslaus wenzeslaus deleted the add-no-openmp-test branch March 9, 2022 18:20
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
This adds an additional build configuration to the Ubuntu workflow which builds code without OpenMP and pthreads and runs tests. Notably, modules using nprocs parameter should accept nprocs > 1 even when they are not able to parallelize due to a missing dependency. This check tests that behavior.

Other selected optional dependencies can be added in the future. The current goal is to test code without dependencies which don't influence the primary actions the code performs.
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
This adds an additional build configuration to the Ubuntu workflow which builds code without OpenMP and pthreads and runs tests. Notably, modules using nprocs parameter should accept nprocs > 1 even when they are not able to parallelize due to a missing dependency. This check tests that behavior.

Other selected optional dependencies can be added in the future. The current goal is to test code without dependencies which don't influence the primary actions the code performs.
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
This adds an additional build configuration to the Ubuntu workflow which builds code without OpenMP and pthreads and runs tests. Notably, modules using nprocs parameter should accept nprocs > 1 even when they are not able to parallelize due to a missing dependency. This check tests that behavior.

Other selected optional dependencies can be added in the future. The current goal is to test code without dependencies which don't influence the primary actions the code performs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C CI Continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants