-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Removed suspicious call of getClass() on instance of Class, which erased type info #16002
Conversation
❌ Gradle check result for 10a87e2: 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? |
|
❌ Gradle check result for 10a87e2: 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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding test-case as well for these changes. LGTM!
❌ Gradle check result for 10a87e2: 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? |
Odd failure
Rebase? |
❌ Gradle check result for f7b722f: null 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? |
❌ Gradle check result for f7b722f: 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? |
I am not sure what's going on, but the license header check doesn't happen elsewhere, so something is off in this PR. Rebase it instead of merging from main and force push an update? |
I rebased |
❌ Gradle check result for f3a4ea4: 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? |
❌ Gradle check result for f3a4ea4: 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? |
Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
f3a4ea4
to
f4786bf
Compare
❌ Gradle check result for f4786bf: 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? |
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Checked out the PR, rebased and still failing precommit. Ran locally to generate that log. The new test class had no license headers. |
❌ Gradle check result for 4142a28: 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? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16002 +/- ##
============================================
+ Coverage 71.96% 72.06% +0.10%
- Complexity 64791 64849 +58
============================================
Files 5307 5307
Lines 302714 302725 +11
Branches 43733 43734 +1
============================================
+ Hits 217836 218172 +336
+ Misses 67013 66689 -324
+ Partials 17865 17864 -1 ☔ View full report in Codecov by Sentry. |
…sed type info (#16002) * Removed suspicious getClass() call on Class Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Changed the exception's message. Added unit test. Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Run spotless, add license header Signed-off-by: Daniel Widdis <widdis@gmail.com> --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> Signed-off-by: Daniel Widdis <widdis@gmail.com> Co-authored-by: Daniel Widdis <widdis@gmail.com> (cherry picked from commit 4456d55) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…sed type info (#16002) (#16371) * Removed suspicious getClass() call on Class * Changed the exception's message. Added unit test. * Run spotless, add license header --------- (cherry picked from commit 4456d55) Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> Signed-off-by: Daniel Widdis <widdis@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Daniel Widdis <widdis@gmail.com>
…sed type info (opensearch-project#16002) * Removed suspicious getClass() call on Class Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Changed the exception's message. Added unit test. Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Run spotless, add license header Signed-off-by: Daniel Widdis <widdis@gmail.com> --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> Signed-off-by: Daniel Widdis <widdis@gmail.com> Co-authored-by: Daniel Widdis <widdis@gmail.com>
Added unit test.
Previous PR was prematurely closed #15367 without letting me react upon the comment.