Skip to content

Conversation

@a-hilaly
Copy link
Member

@a-hilaly a-hilaly commented Feb 8, 2023

This patch addresses the issue of non-deterministic result order in the
GetImmutableFieldPath function.

In Go, maps and hashmaps access their elements randomly, which resulted
in non-deterministic return arrays from GetImmutableFieldPaths. This
patch leverages sort.Strings to ensure deterministic result order,
ensuring deterministic behaviour in generated code.
Signed-off-by: Amine Hilaly hilalyamine@gmail.com

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This patch addresses the issue of non-deterministic result order in the
`GetImmutableFieldPath` function.

In Go, maps and hashmaps accesss their elements randomly, which resulted
in non-deterministic return arrays from `GetImmutableFieldPaths`. This
patch leverages `sort.Strings` to ensure deterministic result order,
ensuring deterministic behaviour in generated code.

Signed-off-by: Amine Hilaly <hilalyamine@gmail.com>
@embano1
Copy link
Member

embano1 commented Feb 8, 2023

/lgtm

@ack-prow
Copy link

ack-prow bot commented Feb 8, 2023

@embano1: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

👍 much needed, thank you @a-hilaly!

@a-hilaly
Copy link
Member Author

a-hilaly commented Feb 8, 2023

e2e tests will continue to fail until we make a new runtime release

@ack-prow
Copy link

ack-prow bot commented Feb 8, 2023

@a-hilaly: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
dynamodb-controller-test 8880f8d link false /test dynamodb-controller-test
ecr-controller-test 8880f8d link false /test ecr-controller-test
s3-controller-test 8880f8d link false /test s3-controller-test

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@RedbackThomson
Copy link
Contributor

/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 9, 2023
@RedbackThomson
Copy link
Contributor

/lgtm

@ack-prow
Copy link

ack-prow bot commented Feb 9, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly, embano1, jaypipes, RedbackThomson

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [A-Hilaly,RedbackThomson]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow bot merged commit 0ad46fd into aws-controllers-k8s:main Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants