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

Ignore transmitting results if testflinger.json is missing #234

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

plars
Copy link
Collaborator

@plars plars commented Mar 22, 2024

Description

Kevin pointed out a case today where the testflinger agent had died. There's a corner case where the results have already been transmitted so we remove testflinger.json to ensure it doesn't get transmitted again. But if the dir was unable to be removed, then it might still try again. If it fails to find testflinger.json then it can't get the job id and fails, but it should do so more gracefully in this case.

Tests

Added a unit test for this situation, and also added some other unit tests around this method that we were missing to increase coverage.

@plars plars requested a review from a team March 22, 2024 20:55
@plars plars merged commit 9faa0df into main Mar 23, 2024
2 checks passed
@plars plars deleted the fix-missing-testflinger-json branch March 23, 2024 18:40
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.

2 participants