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

resolve prefix bugs around job scaling policies #8753

Merged
merged 2 commits into from
Aug 27, 2020

Conversation

cgbaker
Copy link
Contributor

@cgbaker cgbaker commented Aug 27, 2020

There are numerous places where scaling policies had incorrect prefix searches:

  • looking up policies by job
  • looking up policies by namespace
  • deleting policies when the job is stopped/deleted

This PR addresses these. The first commit (1a9318a) shows the failures of the new documenting tests: https://app.circleci.com/pipelines/github/hashicorp/nomad/11402/workflows/0ff139bb-1268-4ae8-abae-ff5f77082459/jobs/95138

The second commit (1ea550d) fixes the issues and tests clean:
https://app.circleci.com/pipelines/github/hashicorp/nomad/11404/workflows/4a1e0402-8b00-4423-8089-2f1ca3cbb0b5

@cgbaker cgbaker force-pushed the b-scaling-policy-delete-job-prefix branch from 78e1add to 1ea550d Compare August 27, 2020 04:25
@cgbaker cgbaker requested a review from notnoop August 27, 2020 04:55
@cgbaker cgbaker marked this pull request as ready for review August 27, 2020 04:55
@cgbaker cgbaker requested a review from jrasell August 27, 2020 04:55
Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

LGTM

Super useful to be able to see the failing tests in the commit before the fix. Noted for how I work!

@cgbaker cgbaker added this to the 0.12.4 milestone Aug 27, 2020
@cgbaker cgbaker merged commit 2d04019 into master Aug 27, 2020
@cgbaker cgbaker deleted the b-scaling-policy-delete-job-prefix branch August 27, 2020 15:04
@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 Dec 20, 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.

2 participants