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

review: Use official qodana github action #4843

Merged
merged 22 commits into from
Nov 21, 2022

Conversation

MartinWitt
Copy link
Collaborator

@MartinWitt MartinWitt commented Aug 15, 2022

Like ever enterprise project, the developers make horrible decisions at someday and remove the usability.
The Qodana action no longer supports the options we gave it. We need to provide these options as a single string. This is a result of the change in the action using Qodana CLI. Qodana only gave a warning in the log for this behavior, and the last runs since this change could have produced wrong results.
Maybe someone with more advanced YAML skills has a solution for this hideous long string?

@MartinWitt MartinWitt changed the title change qodana options to match new style chore: change qodana options to match new style Aug 15, 2022
Comment on lines 168 to 164
- uses: github/codeql-action/upload-sarif@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 # tag=v2
- uses: github/codeql-action/upload-sarif@v2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't remove the commit pins. Pinning on tag is not safe as they can move. But most prominently it leads to unexpected failures when devs introduce breaking changes and move tags to those.

.github/workflows/tests.yml Outdated Show resolved Hide resolved
Comment on lines 42 to 44
if (false==true) {
String s = new String[0].toString();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Guessing this is just to trigger an error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes

@@ -49,6 +49,9 @@ public ZipFolder(File file) throws IOException {
}
this.file = file;
}
private Object deleteMe() {
Copy link
Contributor

Choose a reason for hiding this comment

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

UnusedMethod: Method 'deleteMe' is never used.


ℹ️ Learn about @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

@MartinWitt MartinWitt changed the title chore: change qodana options to match new style wip: chore: change qodana options to match new style Oct 30, 2022
- Remove deprecated cli options.
- set to strict mode failing if more then zero issues are found.
@MartinWitt MartinWitt changed the title wip: chore: change qodana options to match new style review: chore: change qodana options to match new style Oct 31, 2022
@MartinWitt
Copy link
Collaborator Author

This ports Qodana to the new style. We fail the CI if any problems are found. If we see this is too strict, we can disable it.

@I-Al-Istannen
Copy link
Collaborator

I'd be happy to merge if you could quickly test whether it really fails the check. There were significant changes since the last time this was tested in this PR, if I did not miss anything.

@slarse
Copy link
Collaborator

slarse commented Nov 18, 2022

@MartinWitt ☝️ conflict :o

I've been incredibly busy with other things for the past couple of weeks and feel a bit out of the loop, is there anything keeping us from merging this (except for the conflict)?

@I-Al-Istannen
Copy link
Collaborator

I've been incredibly busy with other things for the past couple of weeks and feel a bit out of the loop, is there anything keeping us from merging this (except for the conflict)?

Your guess is as good as mine, but I don't think so. I would really love to get this merged though, as the current pinned hash is now expired and qodana runs fail with:

This IDE build has expired. Please download a new build from JetBrains official site
✗  Qodana exited with code 7

See https://github.com/INRIA/spoon/actions/runs/3505578524/jobs/5871965639.

@MartinWitt
Copy link
Collaborator Author

I fixed the conflict. Shall I push some bad to showcase Qodana is working?

@I-Al-Istannen
Copy link
Collaborator

I fixed the conflict. Shall I push some bad to showcase Qodana is working?

I'd appreciate it :)

@MartinWitt
Copy link
Collaborator Author

@I-Al-Istannen CI is red as wanted.

@I-Al-Istannen
Copy link
Collaborator

Looks good to me :)

@slarse
Copy link
Collaborator

slarse commented Nov 20, 2022

Looks like CI extra checks are failing as snapshots can't be fetched from OW2 repository :/

@I-Al-Istannen
Copy link
Collaborator

@slarse Fixed now, I think you can review/merge it. Your negative review is greying out the merge button — though I might be able to overrule you.

@slarse
Copy link
Collaborator

slarse commented Nov 21, 2022

@I-Al-Istannen I'd be more comfortable if you merged as you were the last to look at it, I've approved so there shouldn't be any problems now.

@I-Al-Istannen I-Al-Istannen changed the title review: chore: change qodana options to match new style review: Use official qodana github action Nov 21, 2022
@I-Al-Istannen I-Al-Istannen merged commit d753cba into INRIA:master Nov 21, 2022
@I-Al-Istannen I-Al-Istannen deleted the changing-tarantula branch November 21, 2022 12:41
@I-Al-Istannen
Copy link
Collaborator

I-Al-Istannen commented Nov 21, 2022

I'd be more comfortable if you merged as you were the last to look at it, I've approved so there shouldn't be any problems now.

A wise decision, as qodana now failed on master :)

EDIT: Looking into github actions and the results here a bit more and checking with #4748, it seems to perform delta checks on PRs and full tests on master. So we probably just need to disable it on master and things should be alright. Neat.

@slarse
Copy link
Collaborator

slarse commented Nov 21, 2022

A wise decision, as qodana now failed on master :)

Jackpot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants