Skip to content

[ML] Job updates in tests should not update blocked on deleting jobs#78169

Merged
dimitris-athanasiou merged 2 commits intoelastic:masterfrom
dimitris-athanasiou:ensure-job-updates-do-not-update-blocked-on-deleting-jobs-in-tests
Sep 22, 2021
Merged

[ML] Job updates in tests should not update blocked on deleting jobs#78169
dimitris-athanasiou merged 2 commits intoelastic:masterfrom
dimitris-athanasiou:ensure-job-updates-do-not-update-blocked-on-deleting-jobs-in-tests

Conversation

@dimitris-athanasiou
Copy link
Copy Markdown
Contributor

Deleting jobs do not allow for their blocked field to be changed
from delete. Tests were creating job updates that ignored that
leading to a test failure when a non-noop update made no change to
a job. This commit ensures random job updates do not have a change
to the blocked field for deleting jobs.

Closes #78160

Deleting jobs do not allow for their `blocked` field to be changed
from `delete`. Tests were creating job updates that ignored that
leading to a test failure when a non-noop update made no change to
a job. This commit ensures random job updates do not have a change
to the `blocked` field for deleting jobs.

Closes elastic#78160
@dimitris-athanasiou dimitris-athanasiou added >test Issues or PRs that are addressing/adding tests :ml Machine learning v8.0.0 v7.16.0 v7.15.1 auto-backport-and-merge v7.14.3 labels Sep 22, 2021
@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Sep 22, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/ml-core (Team:ML)

Copy link
Copy Markdown

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM

@dimitris-athanasiou dimitris-athanasiou merged commit b9325b8 into elastic:master Sep 22, 2021
dimitris-athanasiou added a commit to dimitris-athanasiou/elasticsearch that referenced this pull request Sep 22, 2021
…lastic#78169)

Deleting jobs do not allow for their `blocked` field to be changed
from `delete`. Tests were creating job updates that ignored that
leading to a test failure when a non-noop update made no change to
a job. This commit ensures random job updates do not have a change
to the `blocked` field for deleting jobs.

Closes elastic#78160
dimitris-athanasiou added a commit to dimitris-athanasiou/elasticsearch that referenced this pull request Sep 22, 2021
…lastic#78169)

Deleting jobs do not allow for their `blocked` field to be changed
from `delete`. Tests were creating job updates that ignored that
leading to a test failure when a non-noop update made no change to
a job. This commit ensures random job updates do not have a change
to the `blocked` field for deleting jobs.

Closes elastic#78160
dimitris-athanasiou added a commit to dimitris-athanasiou/elasticsearch that referenced this pull request Sep 22, 2021
…lastic#78169)

Deleting jobs do not allow for their `blocked` field to be changed
from `delete`. Tests were creating job updates that ignored that
leading to a test failure when a non-noop update made no change to
a job. This commit ensures random job updates do not have a change
to the `blocked` field for deleting jobs.

Closes elastic#78160
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💚 Backport successful

Status Branch Result
7.x
7.15
7.14

elasticsearchmachine pushed a commit that referenced this pull request Sep 22, 2021
…78169) (#78174)

Deleting jobs do not allow for their `blocked` field to be changed
from `delete`. Tests were creating job updates that ignored that
leading to a test failure when a non-noop update made no change to
a job. This commit ensures random job updates do not have a change
to the `blocked` field for deleting jobs.

Closes #78160
elasticsearchmachine pushed a commit that referenced this pull request Sep 22, 2021
…78169) (#78173)

Deleting jobs do not allow for their `blocked` field to be changed
from `delete`. Tests were creating job updates that ignored that
leading to a test failure when a non-noop update made no change to
a job. This commit ensures random job updates do not have a change
to the `blocked` field for deleting jobs.

Closes #78160
elasticsearchmachine pushed a commit that referenced this pull request Sep 22, 2021
…78169) (#78172)

Deleting jobs do not allow for their `blocked` field to be changed
from `delete`. Tests were creating job updates that ignored that
leading to a test failure when a non-noop update made no change to
a job. This commit ensures random job updates do not have a change
to the `blocked` field for deleting jobs.

Closes #78160
@dimitris-athanasiou dimitris-athanasiou deleted the ensure-job-updates-do-not-update-blocked-on-deleting-jobs-in-tests branch September 22, 2021 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning Team:ML Meta label for the ML team >test Issues or PRs that are addressing/adding tests v7.14.3 v7.15.1 v7.16.0 v8.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] JobUpdateTests testMergeWithJob_GivenRandomUpdates_AssertImmutability failing

5 participants