-
Notifications
You must be signed in to change notification settings - Fork 388
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
[bugfix] Include platform to ldlogger.so
path
#3976
Conversation
ldlogger.so
path
A previous improvement in commit db924b0 requires that ldlogger.so file is available in a directory named the current platform. When building a Python package from CodeChecker, this ldlogger.so is not placed in such a directory. This patch fixes this issue.
7b92aed
to
dd91755
Compare
Generally I'm okay with this. The usual question, however, is whether we could have at least a very simple test? Because supposedly for the failed release, we still tested the fact that logging works, so... how come those tests were passing and yet the release was bogus? |
This bug appeared only in the pypi package, because this package builder script placed the .so file to a different path. We don't have pypi package specific tests. If we want to do that properly then theoretically we should double the current tests so they run in a "pip install"-ed environment too. |
Understood.
Theoretically yes, but I do agree that would be overkill. Nevertheless, just to ensure this does not bite us in the backside down the line at some point, we should have at least a simple test: bake a PyPI-ish package, install it to a local virtualenv, and then inside that env, just log a There is this thing: http://github.com/Ericsson/codechecker/actions/workflows/pypi.yml But this keeps failing and it looks like it's only meant to trigger on releases? — which means we will never know this test case failing before we end up publishing yet another broken release. # Triggers the workflow on 'release' request events.
# The pypi package will be published only on the release event.
on:
release:
types: [published] |
hey, have the same problem, when do you think the fix will be merged into main? |
@whisperity So what do you suggest? Would it be fine if I replaced the current |
@bruntib Given the fact that the PyPI job kept failing for about the past 4 months now, I say we should merge this patch as-is, and have a follow-up patch which fixes the PyPI job and adds the testing necessary to catch mistakes that let this issue surface. |
A previous improvement in commit db924b0 requires that ldlogger.so file is available in a directory named the current platform. When building a Python package from CodeChecker, this ldlogger.so is not placed in such a directory.
This patch fixes this issue.