-
Notifications
You must be signed in to change notification settings - Fork 141
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
Attempts to update project failing #1096
Comments
How are you getting these errors (and what are they exactly)? I mean, how are you running SonarQube (with orchestrator from the integration tests? which version?) |
ok so on this, if I update the sonar artifacts (9/10) to the latest which are currently sitting in renovate dashboard as closed, the error pops up that it says it wants older version. I cannot see exactly where that was happening from. The message up there is what it states, switching it slightly back then it works fine. So using 10.14 for example, I'm struggling to see where 10.11 comes from. Yes there were many changes, renovate stopped working because there was account issues. I fixed those and builds started working so I launched all. Looks like still many more to go. nodejs section in this tends to be that way as it seems nodejs teams release constantly every time a file is touched. |
The sonar artifacts should stay on the version corresponding to the earliest SonarQube supported, which is 9.9 LTS. For a given SonarQube version there are several related dependencies (the plugin API, the java plugin, the java version) and they need to be on the right version. Now regarding the nodejs section, it is not functional in its current state and I could not find the time to look into it. |
Hey @hazendaz
I am all for automation but the way this is currently working is not right: the vast majority of the renovate commits are broken in some way |
On the second item, there is a way to add a script to run a post action. That could address items you are wanting updated at same time so that it is not a manual event. Can you outline or possibly point to a commit where that was done last and I'll see if I can get a script together that will address that. On the first, I agree they are not really tested but nearly every one was minor updates so they are probably right, just noisy. I can add an ignore I think to stop suggesting in that package since its non working anyways. If that part isn't really necessary, then maybe the right option is just deleting it as you note. In meantime, I stopped merging things until these concerns can be addressed. Thanks. |
Here are commits where renovate upgraded SpotBugs or a plugin: And the corresponding commits with all the changes needed: I have started working on simplifying the metadata build in the sq-10 branch but haven't touched it in a while due to time constraints on my part. |
Hello @hazendaz Any objection removing that build action creating these pull requests? At this point it is completely broken and isn't saving anyone's time. |
I"m super confused, I wondered why I got sent notices from them. How the heck is this opening pull requests from a fork I have that I haven't once updated. My fork is showing all kinds of updates on it. How is this job somehow doing that? I've only ever updated the files a few times and not once was it related to my account. Any idea? Whatever its doing, they were ok with it but stated it needed an update fix which was trivial, now they are complaining that I keep sending these but I haven't sent a single one. At least not as myself. |
Seems this started happening last month. I'm still very confused, only thing that happened last month was getting access to sonar dashboard for the project. The sonar credential looks updated a month back here but suspect that was you rather than me. |
But since it seems almost here and they asked to just fix the script, what would be downside of fixing it once understanding how its working as that seems the correct way to upload stuff and its barely off. |
@gtoison So your PR to them appears to have the same context in description but different data, are you doing that manually? I'm still struggling to understand how this branded under my name from my fork that doesn't make any sense to me. Also based on what you did with assumption that was manual, why would we not just get this working, its so utterly close to the same content with little effort to fix. The bigger thing is how is it happening. I don't see how the github action on one project is pulling stuff onto my fork then sending PR on my behalf. |
What do you really think isn't working there? Clearly its running the action and its actually working. So I'm a bit concerned on the comment renovate isn't working there. So the changes I've applied are in fact accurate with all the data I now have. I'm still at a loss right now as to why every run is updating my forked repo. I have some 500+ branches as a result but the point is that its clearly working so the renovate PRs were in fact valid and worked. That usually is the case with nodejs. Those libraries release far more frequently than any other platform I'm aware of an rarely do they cause issues. If the larger concern is the file structure is off, it looks to me a few lines and it would be working matching what you sent sonar. The key I think is figuring out how my fork started sending PRs to them in february when I would not have expected it to even know about my fork. Maybe its getting my user id from the merges but I didn't even merge days ago, you did though and it still wrote to me repo then sent a PR from my repo :( |
So to that I'm kind of saying I want to tackle and fix this so it works going forwards. I do a ton of dev ops at my work and run entire platform for renovate there over thousands of repos, its extremely rare that was ever an issue, I just went with what you were saying and dropped out of the items in that area but again, its clearly working or it would have failed. |
Yes, I did the PR in sonar-update-center-properties manually, it just takes a minute or two. It's great that it works again, but would it be possible to tone down the renovate PR? Maybe group the version upgrades together, or reduce the frequency so it does not pick up every minor upgrade. The builds for the action are still failing apparently, I'm not sure why: |
For the failure, its 2 tests using nock that are failing mocking. Those tests only run on github. So if running locally it works fine. I'm looking into those as I'm not familiar with the library and the first test was initially failing as it wanted discovered max sonar version 25.3.x. After fixing that the next statement is to do the assertion from nock and it seems to not think it was mocked, probably because it was a real call I suspect that worked but I need to understand better on what that is and do some 101 learning on it. The only other two outstanding items currently on the nodejs part is eslint needs upgraded in a one shot deal, I've got that locally but it required migration and the migration guide I don't fully understand as it pertains to it stating it found the typescript files to lint but refuses to do so as it says configuration is missing but the migration created the configuration which more or less matches the original. That will clear bulk of what is not updated there by renovate. The second issue is with promises library and that requires some code changes that I initially tried to update back in November and left as WIP when I got stuck. Once I get those, at least from a current status, renovate would have nothing to do. Now from a configuration for renovate, it may be a tricky trick to make things work. I think we both agree nodejs in general is far too noisy. Not only is it fixing the pinned dependencies in package.json, its also updating the lock file every time something vulnerable is patched. With nodejs that is constant daily churn. Now I personally don't mind the churn given workloads I already see on github and at work where I'm merging typically 100s of PRs a day for same reason. So I'm thinking, I split that out with an ignores against the master branch and I use a separate branch on my fork that collects those up and I bring over in a far smaller rate. That would possible make that work so you only see what is necessary. Other considerations I have at the moment
My plan is to spend some cycles on this for next week or so to try to hammer that out aspects of this. But for our general sake of churn here, if I don't have it figured out in all ways mentioned, I'll at least turn off renovate from suggesting in that area, I can look those up given that process isn't fully functional yet. I'll try to get that on there in next day or two so you just stop seeing those. I'll also look to put a timer on it so its not running every time something in the world changes but rather maybe once a week instead. |
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27-org.sonar.server.plugins.ServerPluginManager': Initialization of bean failed; nested exception is Plugin Findbugs [findbugs] requires at least Sonar Plugin API version 10.14.0.2599 (current: 10.11.0.2468)
Getting issues like this and not sure how its getting downgraded as dependency tree does not show that. Happens with 9.x as well.
Additionally if I try latest sonar version it fails with non descriptive error.
Not sure what is causing the issues but would like to get fixed as project was considerably out of date.
The text was updated successfully, but these errors were encountered: