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

[BUG] MPS tests fail when running the full suite #56

Closed
1 task
spernsteiner opened this issue May 30, 2024 · 4 comments · Fixed by #69
Closed
1 task

[BUG] MPS tests fail when running the full suite #56

spernsteiner opened this issue May 30, 2024 · 4 comments · Fixed by #69
Assignees
Labels
application software application software components bug Something isn't working SoW TA2.1.1.A Develop the Open SUT primarily using existing components and specifications.

Comments

@spernsteiner
Copy link
Contributor

I built the MPS locally using the same build process as in CI and ran the full test suite without QUICK=1. Two of the test cases fail partway through:

scenarios/normal_4 (../src/rts.no_self_test)
Opening scenarios/normal_4.cases...
<...>
Running case 272
SENDING:
CHECKING: #A 0 \[0 0\]
CHECKING: #A 0 \[0 0\] succeeded
CHECKING: #A 1 \[0 0\]
CHECKING: #A 1 \[0 0\] succeeded
SENDING:
SENDING: B 0 0 0
SENDING: B 1 0 0
SENDING: B 2 0 0
SENDING: B 3 0 2
SENDING: B 0 1 0
SENDING: B 1 1 0
SENDING: B 2 1 0
SENDING: B 3 1 2
SENDING: B 0 2 0
SENDING: B 1 2 0
SENDING: B 2 2 0
SENDING: B 3 2 0
SENDING:
CHECKING: #A 0 \[1 0\]
CHECKING: #A 0 \[1 0\] failed
Test 273 failed
scenarios/normal_5a (../src/rts.no_self_test)
Opening scenarios/normal_5a.cases...
<...>
Running case 272
SENDING: 
CHECKING: HW ACTUATORS OFF OFF
CHECKING: HW ACTUATORS OFF OFF succeeded
SENDING: 
SENDING: B 0 0 0
SENDING: B 1 0 0
SENDING: B 2 0 0
SENDING: B 3 0 2
SENDING: B 0 1 0
SENDING: B 1 1 0
SENDING: B 2 1 0
SENDING: B 3 1 2
SENDING: B 0 2 0
SENDING: B 1 2 0
SENDING: B 2 2 0
SENDING: B 3 2 0
SENDING: 
CHECKING: HW ACTUATORS ON *OFF *
CHECKING: HW ACTUATORS ON *OFF * failed
Test 273 failed

The current CI doesn't detect these errors because it runs the test suite with QUICK=1, which causes it to run only the first 3 cases in scenarios normal_4 and normal_5a.

Acceptance criteria

  • MPS tests pass when running python3 run_all.py without QUICK=1
@spernsteiner spernsteiner added bug Something isn't working application software application software components SoW TA2.1.1.A Develop the Open SUT primarily using existing components and specifications. labels May 30, 2024
@podhrmic
Copy link
Collaborator

podhrmic commented Jun 2, 2024

Good find. I can indeed replicate the issue. I will look at it.

@podhrmic podhrmic self-assigned this Jun 2, 2024
@kiniry
Copy link
Member

kiniry commented Jun 3, 2024 via email

@podhrmic
Copy link
Collaborator

podhrmic commented Jun 4, 2024

The generated scenario has a bug (see the updated HARDENS ticket).

@podhrmic
Copy link
Collaborator

podhrmic commented Jun 4, 2024

Given the issue seem to be with the test infrastructure (the generated test cases) rather than with the code itself, I suggest we either run the tests with QUICK=1 or delete the offending cases (maybe cap at 272 cases for each scenario).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
application software application software components bug Something isn't working SoW TA2.1.1.A Develop the Open SUT primarily using existing components and specifications.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants