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

[core] test environment's FSM, handling hooks and fix discovered issues #583

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

knopers8
Copy link
Collaborator

No description provided.

@knopers8 knopers8 changed the title test FSM and calling hooks [WIP] test FSM and calling hooks Jun 27, 2024
Expect(v).To(Equal("true"))
})

It("should return an error if a critical hook times out", func(ctx SpecContext) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@teo could please cross-check this case and tell me if I am missing something here? It fails for some reason - the call hangs infinitely and the timeout mechanism does not kick in (I added a SpecTimeout to avoid having CI hang).

core/environment/fsm_test.go Outdated Show resolved Hide resolved
core/environment/fsm_test.go Outdated Show resolved Hide resolved
The fixes being:
- set run_end_completion_time_ms also at the end of GO_ERROR transition
- document that the ECS does not abort the call execution upon timeout, merely passes the parameter to the call
- avoid a crash if the FSM.Event() is called without providing a Transition
@knopers8 knopers8 changed the title [WIP] test FSM and calling hooks [core] test environment's FSM, handling hooks and fix discovered issues Jul 1, 2024
@knopers8 knopers8 requested a review from teo July 1, 2024 09:07
@teo teo merged commit e556b5a into AliceO2Group:master Jul 3, 2024
2 checks passed
@knopers8 knopers8 deleted the test-fsm branch July 3, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants