CDRIVER-5497 implement downstream RPM spec check #1551
Merged
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.
This change implements a check whereby if the RPM spec file we are shipping in the C driver repository differs from the downstream RPM spec file (e.g., because downstream has updated and we have not yet synced it to obtain that update), then the
rpm-package-build
task will fail. This is implemented so that it will only run on waterfall builds (so that patch builds are not unnecessarily cluttered by a most likely unrelated failure of this task).Patch build: https://spruce.mongodb.com/task/mongo_c_driver_packaging_rpm_package_build_patch_bef6e2d37436fd465f165d7062af9fe2262d6738_65e76bd77742aeab743dd2c9_24_03_05_19_00_42/logs?execution=0
Simulated waterfall build (failure): https://spruce.mongodb.com/task/mongo_c_driver_packaging_rpm_package_build_patch_bef6e2d37436fd465f165d7062af9fe2262d6738_65e76a571e2d17ab5ad0ee45_24_03_05_18_54_19/logs?execution=0
Simulated waterfall build (success, produces no output): https://spruce.mongodb.com/task/mongo_c_driver_packaging_rpm_package_build_patch_bef6e2d37436fd465f165d7062af9fe2262d6738_65e76a2ae3c331b0aa3b7297_24_03_05_18_53_34/logs?execution=0
I will also cherry-pick this to r1.26 after merging.