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

switch off tests that are flaky under simulation #46

Merged
merged 1 commit into from
Aug 23, 2021
Merged

Conversation

lsf37
Copy link
Member

@lsf37 lsf37 commented Aug 21, 2021

These are currently BREAKPOINT_002 and SCHED0021. The corresponding issues #43 and #42 remain open, and when resolved positively, these tests should be enabled again for simulation runs.

@lsf37 lsf37 requested review from kent-mcleod and axel-h August 21, 2021 01:50
@lsf37 lsf37 force-pushed the flaky-tests branch 2 times, most recently from ad4695f to e9cd00b Compare August 21, 2021 01:53
test_debug_set_data_breakpoint, config_set(CONFIG_HARDWARE_DEBUG_API))
test_debug_set_data_breakpoint,
config_set(CONFIG_HARDWARE_DEBUG_API) &&
!config_set(CONFIG_SIMULATION))
Copy link
Member

@axel-h axel-h Aug 22, 2021

Choose a reason for hiding this comment

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

Can you add a comment here why this test does not work ion the simulation? If this mainly due to #43 then we should just mention this. But then it is not just an issue for the simulation.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, will add a comment. I've only observed the problem in #43 under simulation so far. If it really is a race condition, it seems to be only triggered under simulation conditions.

If we see it elsewhere as well then we should definitely change the flag, but I haven't yet so far. In fact, the only flaky test I've seen so far on hardware is MULTICORE0004, which does say (flaky) in its description.

What is flaky in the hardware tests is mostly boards not coming up for boot or not recognising correctly that they have booted and then timing out on the boot process. Problems ranging from "network cable fell out", to dodgy earth connection messing up serial, to old cable etc. Will hopefully become stable again over time.

@@ -1625,7 +1625,7 @@ static int test_simple_preempt(struct env *env)
return sel4test_get_result();
}
DEFINE_TEST(SCHED0021, "Test for pre-emption during running of many threads with equal prio", test_simple_preempt,
true);
!config_set(CONFIG_SIMULATION));
Copy link
Member

Choose a reason for hiding this comment

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

Same here, should have a comment why this does not work in the simulation. We could mention #42 here.

These are currently BREAKPOINT_002 and SCHED0021. The corresponding
issues #43 and #42 remain open, and when resolved positively, these
tests should be enabled again for simulation runs.

Signed-off-by: Gerwin Klein <[email protected]>
@lsf37 lsf37 merged commit a9d3d68 into master Aug 23, 2021
@lsf37 lsf37 deleted the flaky-tests branch August 23, 2021 07:41
@@ -263,8 +264,11 @@ test_debug_set_data_breakpoint(struct env *env)
}
return sel4test_get_result();
}
/* This test is flaky under simulation. See also #43 */
Copy link
Member

@axel-h axel-h Aug 23, 2021

Choose a reason for hiding this comment

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

should better day "GitHub Issue #43" to give a bit more context that this number refers to.

@@ -1624,8 +1624,10 @@ static int test_simple_preempt(struct env *env)

return sel4test_get_result();
}
/* This test is flaky under simulation. Probably a race condition that only
comes out under simulator timing conditions. See also #42 */
Copy link
Member

Choose a reason for hiding this comment

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

Same here, better say "GitHub Issue #42" to give a bit more context that this number refers to.

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.

3 participants