Repository navigation
Install ibmmq from a wheel in IBM MQ lowest-dependency tests - #74132
Merged
Merged
Conversation
shahar1
requested review from
amoghrajesh,
ashb,
bugraoz93,
dabla,
gopidesupavan,
jason810496,
jscheffl and
potiuk
as code owners
October 3, 2026 06:36
Lowest-direct resolution picked ibmmq 2.0.6, which is sdist-only and needed the IBM MQ C client downloaded from public.dhe.ibm.com; the job failed whenever that host timed out. ibmmq 2.1.0 is the first release with a Linux x86_64 wheel, so raising the floor removes the download and its manifest. The tests fall back to the fake ibmmq module when the wheel is installed but the C client library is not available.
shahar1
force-pushed
the
fix-ibm-mq-lowest-deps-download
branch
from
October 3, 2026 06:42
4496bb2 to
ef81db0
Compare
dabla
approved these changes
Oct 3, 2026
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.
related: #71544
This PR solves the ibmmq flakiness in a more robust way - installing ibmmq from a wheel instead of downloading the redestributable.
AI Summary
The lowest-direct-dependency tests for the IBM MQ provider fail intermittently, for example:The
ibmmq>=2.0.6floor madeuv sync --resolution lowest-direct --all-extraspick ibmmq 2.0.6. On PyPI, 2.0.0–2.0.6 are sdist-only, and building them needs the IBM MQ C client. That is why the provider downloaded the IBM MQ redistributable frompublic.dhe.ibm.combefore syncing, and the job failed whenever that host did not answer from the runner. ibmmq 2.1.0 is the first release with amanylinux_2_28_x86_64wheel. Raising the floor to it removes the build, so it also removes the download, thepre_extras_install.yamlmanifest and the provider's pre-extras registration. The generic pre-extras mechanism stays in place for future providers.The wheel's extension still links
libmqm_r.soat runtime, soimport ibmmqraisesImportErrorwhen the client is not installed. The test conftest used to checkfind_spec, which passes once the wheel is installed. It now falls back to the fake module whenever the import fails.Tradeoff: before this change, the lowest-dependency job could run the tests against a real ibmmq built against the downloaded client. The regular CI image never installs the
ibmmqextra, so now every CI job runs these tests against the fake module. That seems the right trade for removing an unreliable external download from CI.related: #71544, which keeps the download but adds timeouts and retries. This change removes the need for the download.
Checks run:
MQ_FILE_PATHunset and no download, the lowest-direct sync installedibmmq==2.1.0from the wheel. Provider tests then passed, apart fromairflow_sharedimport errors caused by skipping the entrypoint'sreinstall_shared_distributionsstep in the ad-hoc run.prek run --stage pre-commitpasses.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5.5) following the guidelines
🤖 Generated with Claude Code