-
Notifications
You must be signed in to change notification settings - Fork 75
v13: use cleaner sentry install #848
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
base: master
Are you sure you want to change the base?
Conversation
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.
To be honest I am with you on that one, and made the same comment here #841 (comment) . I don't quite understand the reason given, but at the time we were just trying to get the docs out of the door for the release, and it had been validated by someone else, so I merged it in.
Maybe @ntarocco can provide more details when he is back (or someone else).
Yup, I'm happy to have this sit till there is a discussion. My assumption was that pipenv would pick up the logging pin where it's defined elsewhere in Invenio.....but I haven't actually tested that. I also think telling people to update an invenio-logging version is easier than trying to get them to manage a sentry-sdk version. And in any event we should make the instructions consistent across the documentation. |
The reason was explained in the previous PR: we should not add invenio dependencies with versions ranges in the Pipfile (or in any user dependencies file), because we lose control of upgrades/changes. Given that the user still need to add a dependency with an extra, I don't see any diifference between writing |
Ah I see, Tom and I were more focused on the This now seems resolved @tmorrell and your changes good to go if you've tested them out somewhat. |
I apologize if my previous message wasn't clear. I still believe that we shouldn't hardcode For these reasons, I don't see a clear benefit to this proposed change. |
Oh, I guess I didn't see in the end hahaha! ... and I still don't fully get it 😵💫 . I've investigated some more and here is what I have so far (let me know what is missing!):
My take: That makes sense to me if I understood correctly, and I agree with that recommendation.
My take: a) b) The sentry logging capabilities of an instance are provided via The dependency resolution with optional dependencies is perhaps the crux of the problem though. As in, it wouldn't even work properly anyway which is why recommending to put c) There is indeed something up with the dependency tooling: With pipenv, version 2024.4.1 and a Pipfile as follows:
The locking result is invenio-logging 2.1.5 That is unexpected. I would have expected : invenio-logging 2.1.4 It's the same thing for uv 0.7.19 actually. In both cases, only a warning is issued when locking, and installing is let through. So perhaps there are more issues with dependency resolution that explains the recommendation. I already went over my timebox for this, so I will stop there and only pick it up after Nico's holidays 😆. |
❤️ Thank you for your contribution!
Description
This changes the upgrade instructions to follow the sentry configuration instructions https://inveniordm.docs.cern.ch/operate/ops/logging/#configuring-sentry. I think it does exactly the same thing, just cleaner.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
master
branch.production
branch following approval or indicate to a maintainer that it should be backported.Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: