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

e2e: fix a couple recent e2e bugs #10784

Merged
merged 2 commits into from
Jun 18, 2021
Merged

e2e: fix a couple recent e2e bugs #10784

merged 2 commits into from
Jun 18, 2021

Conversation

shoenig
Copy link
Member

@shoenig shoenig commented Jun 18, 2021

15d39f0 - use -detatch mode when registering jobs with the CLI

57fdb81 - only set task name for group service checks (broke in refactoring)

No CL or BP needed, these happened after 1.1.1

Fixes #10781

shoenig added 2 commits June 18, 2021 12:16
This PR fixes a bug introduced in a refactoring

https://github.com/hashicorp/nomad/pull/10764/files#diff-56b3c82fcbc857f8fb93a903f1610f6e6859b3610a4eddf92bad9ea27fdc85ec

where task level service checks would inherent the task name
field, when they shouldn't.

Fixes #10781
This PR changes the e2e helper thingy to set -detach option
when registering a job with the CLI instead of the API. This is
necessary for jobs which never become healthy, as the deployment
never finishes for failing jobs and the command never returns,
causing the test to timeout after 10 minutes.
@shoenig shoenig requested review from tgross and isabeldepapel June 18, 2021 18:12
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM

if group {
// only copy over task name for group level checks
out[i].Checks[j].TaskName = check.TaskName
}
Copy link
Member

Choose a reason for hiding this comment

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

🤦 Missing this in review of that refactoring was almost inevitable for me. Good catch on this fix.

@shoenig shoenig merged commit 6dcada4 into main Jun 18, 2021
@shoenig shoenig deleted the b-dlskf branch June 18, 2021 18:17
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

e2e: broken test TestTaskScriptCheck
2 participants