Skip to content

Conversation

@laminelam
Copy link
Contributor

Resolves #19323

The numerical comparison classes (gt, gte, lt and lte) share more than 90% of the code. Refactored the 4 classes by extracted the common code into a super class.

Updated the convertActualValue method to normalize mixed numeric types to a common upper type.

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@github-actions
Copy link
Contributor

❌ Gradle check result for e258963: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@laminelam
Copy link
Contributor Author

Hi @sandeshkr419
Can you, or somebody else look at this?

Copy link
Member

@sandeshkr419 sandeshkr419 left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this and refactoring the code. I do have some clarifying questions.

@sandeshkr419 sandeshkr419 added skip-changelog v3.4.0 Issues and PRs related to version 3.4.0 >test-failure Test failure from CI, local build, etc. labels Oct 13, 2025
@github-actions
Copy link
Contributor

❌ Gradle check result for 596a2b6: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@andrross
Copy link
Member

@sandeshkr419 Can you take another look at this?

@github-actions
Copy link
Contributor

❌ Gradle check result for 596a2b6: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Contributor

❌ Gradle check result for 596a2b6: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Lamine Idjeraoui added 3 commits October 21, 2025 15:28
…ls when comparing Integer vs Long (or Float vs Double)

Signed-off-by: Lamine Idjeraoui <[email protected]>
Signed-off-by: Lamine Idjeraoui <[email protected]>
@andrross andrross force-pushed the feature/yaml_rest_test_actual_vs_expected_type branch from 596a2b6 to 3ca23d2 Compare October 21, 2025 22:28
@github-actions
Copy link
Contributor

✅ Gradle check result for 3ca23d2: SUCCESS

@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.16%. Comparing base (3ffa49a) to head (3ca23d2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19376      +/-   ##
============================================
+ Coverage     73.07%   73.16%   +0.09%     
- Complexity    70741    70858     +117     
============================================
  Files          5732     5732              
  Lines        324140   324140              
  Branches      46922    46922              
============================================
+ Hits         236853   237169     +316     
+ Misses        68117    67858     -259     
+ Partials      19170    19113      -57     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Search Search query, autocomplete ...etc skip-changelog >test-failure Test failure from CI, local build, etc. v3.4.0 Issues and PRs related to version 3.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Assertion framework(Yaml Rest test): numeric comparison fails when comparing Integer vs Long (or Float vs Double)

3 participants