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

structs: Fix job canonicalization for array type fields #20522

Merged
merged 4 commits into from May 16, 2024

Conversation

myszon
Copy link
Contributor

@myszon myszon commented May 3, 2024

Fixes #20497

Copy link
Contributor

@pkazmierczak pkazmierczak left a comment

Choose a reason for hiding this comment

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

Hey @myszon, thanks for the contribution! I think it makes sense. Like you mention in #20497 it's a bit of an edge case, but a bug nonetheless and we appreciate the fix.

I only had some minor wording comments, feel free to accept or reject them. Could you add a changelog entry, though? A textfile inside the .changelog directory with the PR number as the filename and a short description of the fix, have a look at an example. Body of the changelog can be something like:

structs: Fixed job canonicalization for array type fields

and you can also use the make cl command to generate the file. Thanks again!

nomad/structs/structs_test.go Outdated Show resolved Hide resolved
nomad/structs/structs_test.go Outdated Show resolved Hide resolved
nomad/structs/structs_test.go Outdated Show resolved Hide resolved
@pkazmierczak pkazmierczak self-assigned this May 15, 2024
@pkazmierczak pkazmierczak added backport/1.5.x backport to 1.5.x release line backport/1.6.x backport to 1.6.x release line backport/1.7.x backport to 1.7.x release line labels May 15, 2024
@pkazmierczak pkazmierczak changed the title Fix canonicalize bug structs: Fix job canonicalization for array type fields May 15, 2024
myszon and others added 4 commits May 16, 2024 10:30
…sks copying returns a value which is equivalent to the canonicalized one.
Co-authored-by: Piotr Kazmierczak <470696+pkazmierczak@users.noreply.github.com>
@myszon
Copy link
Contributor Author

myszon commented May 16, 2024

Thanks for the comments, accepted suggestions and added the changelog entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.5.x backport to 1.5.x release line backport/1.6.x backport to 1.6.x release line backport/1.7.x backport to 1.7.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Job versions with empty diffs being created when updating a job before it becomes stable in some circumstances
2 participants