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

test: adapt e2e compatibility tests #2247

Merged
merged 3 commits into from
Sep 11, 2024
Merged

test: adapt e2e compatibility tests #2247

merged 3 commits into from
Sep 11, 2024

Conversation

bermuell
Copy link
Contributor

@bermuell bermuell commented Sep 10, 2024

Description

Closes: #XXXX

Adapt e2e compatibility tests to permissionless changes on ICS


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • Included the correct type prefix in the PR title
  • Targeted the correct branch (see PR Targeting)
  • Provided a link to the relevant issue or specification
  • Reviewed "Files changed" and left comments if necessary
  • Confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • Confirmed the correct type prefix in the PR title
  • Confirmed all author checklist items have been addressed
  • Confirmed that this PR does not change production code

@github-actions github-actions bot added C:Testing Assigned automatically by the PR labeler C:Build Assigned automatically by the PR labeler C:CI Assigned automatically by the PR labeler labels Sep 10, 2024
@bermuell bermuell self-assigned this Sep 10, 2024
Comment on lines +191 to +193
for id := range *modelState.ClientsFrozenHeights {
chainClientsFrozenHeights[id] = providerDriver.GetClientFrozenHeight(chain, id)
}

Check warning

Code scanning / CodeQL

Iteration over map Warning test

Iteration over map may be a possible source of non-determinism
Comment on lines +199 to +201
for validatorId := range *modelState.HasToValidate {
hasToValidate[validatorId] = providerDriver.target.GetHasToValidate(validatorId)
}

Check warning

Code scanning / CodeQL

Iteration over map Warning test

Iteration over map may be a possible source of non-determinism
inflationRateAfter := chainDriver.target.GetInflationRate(chain)

// calculate the change
inflationRateChange := inflationRateAfter - inflationRateNow

Check notice

Code scanning / CodeQL

Floating point arithmetic Note test

Floating point arithmetic operations are not associative and a possible source of non-determinism
@bermuell bermuell marked this pull request as ready for review September 10, 2024 15:18
@bermuell bermuell requested a review from a team as a code owner September 10, 2024 15:18
Copy link
Contributor

@MSalopek MSalopek left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@insumity insumity left a comment

Choose a reason for hiding this comment

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

LGTM, albeit I'm not that familiar with compatibility tests but did not notice anything peculiar.

Thanks Bernd!

@bermuell bermuell added this pull request to the merge queue Sep 11, 2024
@bermuell bermuell removed this pull request from the merge queue due to a manual request Sep 11, 2024
@bermuell bermuell added this pull request to the merge queue Sep 11, 2024
Merged via the queue into main with commit 3df7b71 Sep 11, 2024
14 of 17 checks passed
@bermuell bermuell deleted the bernd/e2e-compatibility branch September 11, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:Build Assigned automatically by the PR labeler C:CI Assigned automatically by the PR labeler C:Testing Assigned automatically by the PR labeler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants