Skip to content

scheduler: basic cluster reconciler safety properties for service jobs #26167

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

Merged
merged 8 commits into from
Jul 9, 2025

Conversation

pkazmierczak
Copy link
Contributor

@pkazmierczak pkazmierczak commented Jun 30, 2025

@pkazmierczak pkazmierczak changed the title scheduler: basic safety properties for cluster reconciler scheduler: basic cluster reconciler safety properties for service jobs Jun 30, 2025
tgross added a commit that referenced this pull request Jun 30, 2025
Property test assertions for the core safety proprerties of the cluster
reconciler, for batch jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jun 30, 2025
Property test assertions for the core safety proprerties of the cluster
reconciler, for batch jobs. The changeset includes fixes for any bugs found
during work-in-progress, which will get pulled out to their own PRs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
@pkazmierczak pkazmierczak added this to the 1.11.0 milestone Jul 1, 2025
@pkazmierczak pkazmierczak self-assigned this Jul 1, 2025
@pkazmierczak pkazmierczak marked this pull request as ready for review July 1, 2025 16:09
@pkazmierczak pkazmierczak requested review from a team as code owners July 1, 2025 16:09
@pkazmierczak pkazmierczak requested a review from tgross July 1, 2025 16:09
tgross added a commit that referenced this pull request Jul 1, 2025
Property test assertions for the core safety proprerties of the cluster
reconciler, for batch jobs. The changeset includes fixes for any bugs found
during work-in-progress, which will get pulled out to their own PRs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 1, 2025
Property test assertions for the core safety proprerties of the cluster
reconciler, for batch jobs. The changeset includes fixes for any bugs found
during work-in-progress, which will get pulled out to their own PRs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 1, 2025
Property test assertions for the core safety proprerties of the cluster
reconciler, for batch jobs. The changeset includes fixes for any bugs found
during work-in-progress, which will get pulled out to their own PRs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 1, 2025
Property test assertions for the core safety proprerties of the cluster
reconciler, for batch jobs. The changeset includes fixes for any bugs found
during work-in-progress, which will get pulled out to their own PRs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 1, 2025
Property test assertions for the core safety proprerties of the cluster
reconciler, for batch jobs. The changeset includes fixes for any bugs found
during work-in-progress, which will get pulled out to their own PRs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 1, 2025
Property test assertions for the core safety proprerties of the cluster
reconciler, for batch jobs. The changeset includes fixes for any bugs found
during work-in-progress, which will get pulled out to their own PRs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 1, 2025
To help break down the larger property tests we're doing in #26167 and #26172
into more manageable chunks, pull out a property test for just the
`reconcileReconnecting` method. This method helpfully already defines its
important properties, so we can implement those as test assertions.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
Ref: #26172
tgross added a commit that referenced this pull request Jul 2, 2025
To help break down the larger property tests we're doing in #26167 and #26172
into more manageable chunks, pull out a property test for just the
`reconcileReconnecting` method. This method helpfully already defines its
important properties, so we can implement those as test assertions.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
Ref: #26172
@pkazmierczak pkazmierczak force-pushed the f-prop-testing-reconciler-safety branch from 718a1fb to da09f1a Compare July 3, 2025 14:35
tgross added a commit that referenced this pull request Jul 7, 2025
To help break down the larger property tests we're doing in #26167 and #26172
into more manageable chunks, pull out a property test for just the
`reconcileReconnecting` method. This method helpfully already defines its
important properties, so we can implement those as test assertions.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
Ref: #26172
tgross added a commit that referenced this pull request Jul 7, 2025
Property test assertions for the core safety properties of the node reconciler,
for system jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 7, 2025
Property test assertions for the core safety properties of the node reconciler,
for system jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 8, 2025
Property test assertions for the core safety properties of the node reconciler,
for system jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 8, 2025
Property test assertions for the core safety properties of the node reconciler,
for system jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 8, 2025
Property test assertions for the core safety properties of the node reconciler,
for system jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 8, 2025
Property test assertions for the core safety properties of the node reconciler,
for system jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 8, 2025
Property test assertions for the core safety properties of the node reconciler,
for system jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 8, 2025
Property test assertions for the core safety properties of the node reconciler,
for system jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross
tgross previously approved these changes Jul 9, 2025
for _, tg := range ar.jobState.Job.TaskGroups {
count += tg.Count
}
if len(results.Place) > count {
Copy link
Member

Choose a reason for hiding this comment

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

In my PR I've got the same property but it doesn't really matter whether there's a deployment or existing allocs or not.

@pkazmierczak pkazmierczak merged commit 8bc6abc into main Jul 9, 2025
38 checks passed
@pkazmierczak pkazmierczak deleted the f-prop-testing-reconciler-safety branch July 9, 2025 15:30
tgross added a commit that referenced this pull request Jul 9, 2025
Property test assertions for the core safety properties of the node reconciler,
for system jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 9, 2025
Property test assertions for the core safety properties of the node reconciler,
for system jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 9, 2025
Property test assertions for the core safety proprerties of the cluster
reconciler, for batch jobs. The changeset includes fixes for any bugs found
during work-in-progress, which will get pulled out to their own PRs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 9, 2025
…26172)

Property test assertions for the core safety proprerties of the cluster
reconciler, for batch jobs. The changeset includes fixes for any bugs found
during work-in-progress, which will get pulled out to their own PRs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
tgross added a commit that referenced this pull request Jul 9, 2025
…26216)

Property test assertions for the core safety properties of the node reconciler,
for system jobs.

Ref: https://hashicorp.atlassian.net/browse/NMD-814
Ref: #26167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants