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 device test failures #1307

Merged
merged 3 commits into from
Jul 4, 2024
Merged

Conversation

amandalund
Copy link
Contributor

I'm seeing a few test failures after #1294 and #1303 (not sure why the CI didn't catch them). There's still one failure in the StatusChecker test I haven't looked into yet.

@amandalund amandalund added documentation Documentation, examples, tests, and CI minor Minor internal changes or fixes labels Jul 4, 2024
@amandalund amandalund requested a review from sethrj July 4, 2024 01:31
Copy link
Member

@sethrj sethrj left a comment

Choose a reason for hiding this comment

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

Sorry about that! We haven't had reliable "actually run the test on device" CI for so long (but it hasn't been an issue since we haven't run much low level stuff). I'll make sure to run future tests on wildstyle before pushing if we don't have CI.

Maybe you can also incorporate #1303 (comment) into this PR?

@@ -256,7 +256,7 @@ TEST_F(TestTrackPartitionEm3Stepper,
return std::is_partitioned(
span.begin(), span.end(), [&track_status](auto const track_slot) {
return track_status[TrackSlotId{track_slot}]
== TrackStatus::alive;
!= TrackStatus::inactive;
Copy link
Member

Choose a reason for hiding this comment

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

This is because I must not have run this test on device—sorry!

@@ -249,7 +249,7 @@ TEST_F(TestEm3DiagnosticTest, TEST_IF_CELER_DEVICE(device))
EXPECT_VEC_EQ(expected_steps, result.steps);

EXPECT_JSON_EQ(
R"json({"_category":"result","_index":["particle","action"],"_label":"action-diagnostic","actions":[[0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,9,0],[0,0,0,996,0,0,2,0,0,0,0,20,509,0,0,0,0,0,0,0,521,0],[0,0,0,902,0,0,10,0,0,0,9,20,577,0,0,0,0,0,0,0,518,0]]})json",
R"json({"_category":"result","_index":["particle","action"],"_label":"action-diagnostic","actions":[[0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0],[0,0,0,996,0,0,2,0,0,0,0,20,509,0,0,0,0,0,0,0,0,521,0],[0,0,0,902,0,0,10,0,0,0,9,20,577,0,0,0,0,0,0,0,0,518,0]]})json",
Copy link
Member

Choose a reason for hiding this comment

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

Same 😞

@sethrj sethrj changed the title Fix test failures Fix device test failures Jul 4, 2024
@sethrj sethrj merged commit c3bed8e into celeritas-project:develop Jul 4, 2024
29 checks passed
@amandalund amandalund deleted the fix-tests branch July 4, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation, examples, tests, and CI minor Minor internal changes or fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants