Repository navigation
fix: preserve obdiag command across RPM upgrades - #1265
Merged
hidb4ai merged 2 commits intoOct 15, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
RPM upgrades can finish successfully while leaving
obdiagunavailable in PATH. The new package creates/usr/bin/obdiagin%post, then the old package's unconditional%preundeletes it. This also affects merged-/usr systems where/binpoints to/usr/bin.Fixes #1264
Changes
removefrom the existingalien --scriptsconversion path.%posttrans, after old-package cleanup, so the first upgrade from an already released affected RPM works too.%postfor converted DEB packages, and add the subsequentobdiag --versionverification instruction at the end of the RPM transaction.Validation
python -m pytest test/common/test_rpm_lifecycle.py -v: 11 passed and 4 parameter subtests passed.python -m unittest discover -s test/common -p 'test_rpm_lifecycle.py' -v: 11 tests passed.black --check -S -l 256 .: passed (443 files unchanged).python3 workflow_data/check_py_files.py .: passed in a clean source-tree copy. The existing local ignoredbuild/directory contains generated copies without the expected headers, so the check in the original workspace reports those pre-existing artifacts.git diff --check: passed.Real RPM transaction validation passed in a disposable Oracle Linux 9 aarch64 container with RPM 4.16.1.3. Four minimal-payload RPM fixtures used the unmodified legacy and final current spec scriptlets:
--replacepkgsreinstall retained a working command.These fixtures exercise real
rpm -ivh,rpm -Uvh, andrpm -etransactions. Their payload uses a small executable and initialization/backup stubs; this does not substitute for a full production PyInstaller/RPM build. Full package builds are covered by the existing GitHub workflow.CI notes
On final revision
3443f80f6c7cd9bf94734b45b109a6d392a8507c, RPM lifecycle tests, common-module tests, SQL tests, formatting, header checks, CodeQL, and CLA passed. The package workflow has successfully built the CentOS 8 RPM, macOS ARM64 package, and native Ubuntu/Debian package; the DEB installation test also passed. See the workflow run for the remaining CentOS 7, converted-DEB, and OceanBase integration job results.The unrelated repository translator failed with
HTTPErrorfromlizheming/github-translate-action. One retry failed with the same result. The log also reports that the translated body is null or unchanged. This PR does not change the translator workflow.