Skip to content

Pass shared_cache_key to MockConfig for shared yum cache builds#221

Open
andrewlukoshko wants to merge 1 commit intomasterfrom
feat-use_shared_yum_cache
Open

Pass shared_cache_key to MockConfig for shared yum cache builds#221
andrewlukoshko wants to merge 1 commit intomasterfrom
feat-use_shared_yum_cache

Conversation

@andrewlukoshko
Copy link
Copy Markdown
Member

@andrewlukoshko andrewlukoshko commented Apr 8, 2026

Summary

  • When a platform sets use_shared_yum_cache: true, pass shared_cache_key (platform name + target arch, e.g. almalinux-kitten-10-x86_64) to MockConfig constructor
  • Skip use_shared_yum_cache from generic mock kwargs processing

Depends on: AlmaLinux/albs-build-lib#5 (shared_cache_key parameter in MockConfig)

Fixes AlmaLinux/build-system#527

Test plan

  • Verify mock.cfg contains config_opts["plugin_conf"]["yum_cache_opts"]["cache_key"] for platforms with use_shared_yum_cache: true
  • Verify platforms without the flag are unaffected

When a platform sets use_shared_yum_cache in mock config, pass a
shared_cache_key (platform name + target arch) to MockConfig so builds
of the same platform/arch share the yum package cache.
@andrewlukoshko andrewlukoshko force-pushed the feat-use_shared_yum_cache branch from 3b0535d to 4fb790f Compare April 8, 2026 13:21
@andrewlukoshko andrewlukoshko changed the title Add shared yum cache support for mock builds Pass shared_cache_key to MockConfig for shared yum cache builds Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable shared yum cache for mock builds

1 participant