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

Fix Ubuntu-System-CI #357

Merged
merged 4 commits into from
Feb 6, 2024
Merged

Fix Ubuntu-System-CI #357

merged 4 commits into from
Feb 6, 2024

Conversation

ryan-bournes
Copy link
Contributor

Change number of diffusion iterations, boundary sizes and resolution of EulerDirichletBoundaries.
Changed number of diffusion iterations for EulerNeumannZeroBoundaries.
Changed number of diffusion iterations for EulerNeumannNonZeroBoundaries.

Change number of diffusion iterations, boundary sizes and resolution of EulerDirichletBoundaries.
Changed number of diffusion iterations for EulerNeumannZeroBoundaries.
Changed number of diffusion iterations for EulerNeumannNonZeroBoundaries.
@TobiasDuswald
Copy link
Contributor

Hey @ryan-bournes ,

I saw you assigned me and @nicogno as reviewers. The PR is supposed to fix the Ubuntu System CI, however, it still fails. Please take a look at the log. You'll probably have to add to biodynamo/util/valgrind-bdm.supp to fix it. See previous changes to this file for reference.

Adding suppression to fix memory leak during ubuntu 20.04 unit tests.
@TobiasDuswald
Copy link
Contributor

Ping us when you're ready here @ryan-bournes .

@TobiasDuswald TobiasDuswald changed the title Update diffusion_test.cc Fix Ubuntu-System-CI Feb 5, 2024
@ryan-bournes
Copy link
Contributor Author

Hi @TobiasDuswald , the changes seem to have passed the ubuntu checks but has failed the macOS and Centos checks, will this be an issue?

Copy link
Contributor

@TobiasDuswald TobiasDuswald left a comment

Choose a reason for hiding this comment

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

Thanks @ryan-bournes . Can you double check that the one unit test still does what it is supposed to do (see review comment). Issues on CentOS / macOS can be ignored for now (except if they result from the unit test changes of course).

test/unit/core/diffusion_test.cc Show resolved Hide resolved
@@ -1045,7 +1045,7 @@ TEST(DiffusionTest, EulerNeumannZeroBoundaries) {
rm->AddContinuum(dgrid);

// Simulate diffusion / exponential decay for `tot` timesteps
int tot = 10000;
int tot = 1000;
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you checked if the concentration still reaches the boundary @ryan-bournes ? This test is supposed to verify that nothing escapes with homogeneous Neumann conditions, the test is only meaningful if the concentration reaches the boundaries. Possibly a good idea to lower int tot but add a source close to each of the six boundaries.

test/unit/core/diffusion_test.cc Show resolved Hide resolved
util/valgrind-bdm.supp Show resolved Hide resolved
@TobiasDuswald TobiasDuswald added the ready-for-review PR is ready for review label Feb 6, 2024
@TobiasDuswald
Copy link
Contributor

@nicogno if you found time to check this PR that would be great, it affects the unit tests you designed in the scope of the boundary conditions :)

Reduced simulation size and moved sources to edges of simulation space.
@ryan-bournes
Copy link
Contributor Author

@TobiasDuswald I expect this test to pass regardless but I have modified it so the sources are right next to the boundaries.

Copy link

sonarqubecloud bot commented Feb 6, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@nicogno
Copy link
Contributor

nicogno commented Feb 6, 2024

Hi @ryan-bournes, I agree with @TobiasDuswald on the comments about the changes! Everything looks good to me, as long as you double check that the concentration reaches the boundaries in the Neumann Zero Boundaries test

@nicogno
Copy link
Contributor

nicogno commented Feb 6, 2024

Hi @TobiasDuswald , the changes seem to have passed the ubuntu checks but has failed the macOS and Centos checks, will this be an issue?

It looks like they're affected by some missing dependency.

@TobiasDuswald
Copy link
Contributor

Hi @TobiasDuswald , the changes seem to have passed the ubuntu checks but has failed the macOS and Centos checks, will this be an issue?

It looks like they're affected by some missing dependency.

yes, none of the concerns for this PR. See also development branch related to #356 .

Copy link
Contributor

@TobiasDuswald TobiasDuswald left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @ryan-bournes ! 🚀

Copy link
Contributor

@nicogno nicogno left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thank you @ryan-bournes

@TobiasDuswald TobiasDuswald merged commit 5bd40af into master Feb 6, 2024
14 of 19 checks passed
@TobiasDuswald TobiasDuswald deleted the rb-fix-ubuntu-ci branch February 6, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants