-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Upgrade forbiddenapis to 3.5.1 #6840
Upgrade forbiddenapis to 3.5.1 #6840
Conversation
No idea why the checks failed. Please merge if you like, it is up to you. I won't add any more fixes to the PR. This PR is of informational "theres something to upgrade after new release" purpose only. Do whatever you think is right. Thanks. |
Gradle Check (Jenkins) Run Completed with:
|
@uschindler most of the Gradle tasks are failing with
I am wondering have you run the precommit check locally ( |
I only tried:
Passed. I did not try precommit but it fails for whatever reason. I assume it is because of the new version changes some logging messages and the CLI parser falls on this. I have no time to look into this, as this third party audit task is some hack by @rmuir. |
At moment Github is completely down, no merging of PRs works not adding comments. See Twitter... |
This is caused by thirdPartyAudit: "Unnecessary exclusions, following classes are not missing" This no longer works that way as the forbiddenapis checker has toned down warning messages, so the check may need to be disabled. I have no idea where it can be found... |
Thanks @uschindler |
1 similar comment
Thanks @uschindler |
I think you cant do it like that anymore. The thirdPartyAuditChecker relies on regular expressions to find some missing classes. This does not work anymore, sorry. Maybe scan those thirs party audits with the old CLI version. I do not even understand what the code is doing... @rmuir ? |
This is caused by this change: policeman-tools/forbidden-apis#210 There's no workaround as all class names missing are no longer listed, so maybe the code is too strict, but I have no idea how to fix it - because I don't know why it complains at all. |
767ea05
to
48041e5
Compare
Gradle Check (Jenkins) Run Completed with:
|
@uschindler mind if I move this one under #6792 umbrella? will work on it as part of JDK-20 support story ... ty! |
Ok. I the meantime I understood what the code wants to do. |
This is great, thank you! |
Hi, |
@uschindler do you intend to make the change in this pull request or I could accommodate the update in Gradle 8.1 migration pull request? thank you! |
running tests.... Will soon update. |
I pushed my changes. I also removed the dependency in the testKit. I have no idea how to test this... It would be good to verify if this works as expected. |
Gradle Check (Jenkins) Run Completed with:
|
@uschindler could you please rebase against latest |
Signed-off-by: Uwe Schindler <uwe@thetaphi.de>
Signed-off-by: Uwe Schindler <uwe@thetaphi.de>
b7dbef2
to
772e9b8
Compare
Gradle Check (Jenkins) Run Completed with:
|
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-6840-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 37b37c5b518c5bdb2dfdc5250117cfd39394edeb
# Push it to GitHub
git push --set-upstream origin backport/backport-6840-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
* Upgrade forbiddenapis to 3.5 Signed-off-by: Uwe Schindler <uwe@thetaphi.de> * Update to forbiddenapis 3.5.1 and change regex for missing classes Signed-off-by: Uwe Schindler <uwe@thetaphi.de> --------- Signed-off-by: Uwe Schindler <uwe@thetaphi.de> (cherry picked from commit 37b37c5)
* Upgrade forbiddenapis to 3.5 Signed-off-by: Uwe Schindler <uwe@thetaphi.de> * Update to forbiddenapis 3.5.1 and change regex for missing classes Signed-off-by: Uwe Schindler <uwe@thetaphi.de> --------- Signed-off-by: Uwe Schindler <uwe@thetaphi.de> (cherry picked from commit 37b37c5) Co-authored-by: Uwe Schindler <uwe@thetaphi.de>
* Upgrade forbiddenapis to 3.5 Signed-off-by: Uwe Schindler <uwe@thetaphi.de> * Update to forbiddenapis 3.5.1 and change regex for missing classes Signed-off-by: Uwe Schindler <uwe@thetaphi.de> --------- Signed-off-by: Uwe Schindler <uwe@thetaphi.de> Signed-off-by: Valentin Mitrofanov <mitrofmep@gmail.com>
Description
The new version was released a minute ago: https://github.com/policeman-tools/forbidden-apis/wiki/Changes#version-35-released-2023-03-27
Summary of relevant changes for Opensearch: