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

control-service: if a test is in a bad state it fails straight away #2098

Merged
merged 23 commits into from
May 29, 2023

Conversation

murphp15
Copy link
Collaborator

@murphp15 murphp15 commented May 21, 2023

Why

If a test goes into a final state that doesn't match the state we are looking for. we can spend a couple of minutes waiting and checking does it go to the state we want.

examples of this.
We want a job to end with platform error.
The job reports user error.
we will spend 5 minutes checking is it user error.

Total waste of time.

Also if the test fails we will give way more information back in the stacktrace because we are using a callable and an assertion.

so the stacktrace will include the result of the callable. which is very useful.

What

I have added in a fail fast clause that says if the job is not in a running state and not in the final state we want then fail fast.

How was this tested

Locally

murphp15 and others added 7 commits May 19, 2023 18:36
Signed-off-by: murphp15 <murphp15@tcd.ie>
Signed-off-by: murphp15 <murphp15@tcd.ie>
Signed-off-by: murphp15 <murphp15@tcd.ie>
Signed-off-by: murphp15 <murphp15@tcd.ie>
Signed-off-by: murphp15 <murphp15@tcd.ie>
Signed-off-by: murphp15 <murphp15@tcd.ie>
@murphp15 murphp15 marked this pull request as draft May 21, 2023 14:07
@murphp15 murphp15 changed the title Person/murphp15/faster handling of failed state [DRAFT] Person/murphp15/faster handling of failed state May 21, 2023
Signed-off-by: murphp15 <murphp15@tcd.ie>
Signed-off-by: murphp15 <murphp15@tcd.ie>
Signed-off-by: murphp15 <murphp15@tcd.ie>
@murphp15 murphp15 force-pushed the person/murphp15/faster_handling_of_failed_state branch from f1fc952 to 58ae4c1 Compare May 26, 2023 12:11
github-actions and others added 2 commits May 26, 2023 12:11
Signed-off-by: murphp15 <murphp15@tcd.ie>
@murphp15 murphp15 changed the title [DRAFT] Person/murphp15/faster handling of failed state control-service: if a test is in a bad state if fails straight away May 26, 2023
@murphp15 murphp15 marked this pull request as ready for review May 26, 2023 12:18
@murphp15 murphp15 enabled auto-merge (squash) May 26, 2023 12:18
@murphp15 murphp15 requested a review from mivanov1988 May 26, 2023 12:18
Signed-off-by: murphp15 <murphp15@tcd.ie>
github-actions and others added 3 commits May 29, 2023 08:10
@murphp15 murphp15 changed the title control-service: if a test is in a bad state if fails straight away control-service: if a test is in a bad state it fails straight away May 29, 2023
@murphp15 murphp15 merged commit e326757 into main May 29, 2023
5 checks passed
@murphp15 murphp15 deleted the person/murphp15/faster_handling_of_failed_state branch May 29, 2023 09:41
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.

None yet

4 participants