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: account for new job stop CLI exit behaviour. #11968

Merged
merged 1 commit into from
Feb 1, 2022
Merged

e2e: account for new job stop CLI exit behaviour. #11968

merged 1 commit into from
Feb 1, 2022

Conversation

jrasell
Copy link
Member

@jrasell jrasell commented Feb 1, 2022

PR #11550 changed the job stop exit behaviour when monitoring the
deployment. When stopping a job, the deployment becomes cancelled
and therefore the CLI now exits with status code 1 as it see this
as an error.

This change adds a new utility e2e function that accounts for this
behaviour.

Closes #11950

@jrasell jrasell self-assigned this Feb 1, 2022
Copy link
Contributor

@DerekStrickland DerekStrickland left a comment

Choose a reason for hiding this comment

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

Nice catch! :shipit:

PR #11550 changed the job stop exit behaviour when monitoring the
deployment. When stopping a job, the deployment becomes cancelled
and therefore the CLI now exits with status code 1 as it see this
as an error.

This change adds a new utility e2e function that accounts for this
behaviour.
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! I like the approach you're taking here.

That being said, I'm not sure we shouldn't fix this by changing the exit code on nomad job stop so that it's not picking up that deployment cancel as an error. But I think it's more important to get E2E working first and then we can come back and fix that later.

@jrasell
Copy link
Member Author

jrasell commented Feb 1, 2022

LGTM! I like the approach you're taking here.

That being said, I'm not sure we shouldn't fix this by changing the exit code on nomad job stop so that it's not picking up that deployment cancel as an error. But I think it's more important to get E2E working first and then we can come back and fix that later.

yeah completely agree; i'll get this fix in and then raise a follow up to look into the plan exit code.

@jrasell jrasell merged commit dd51dc4 into main Feb 1, 2022
@jrasell jrasell deleted the b-gh-11950 branch February 1, 2022 14:56
@github-actions
Copy link

github-actions bot commented Nov 1, 2022

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 1, 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: nightly test suite currently failing due to infra build problem
3 participants