Repository navigation
Refactor roles that build EPICS Modules - #74
Merged
ralphlange merged 5 commits intoFeb 21, 2026
Merged
Conversation
- Create internal generic role 'epics-module' for building EPICS modules - Document 'epics-module' usage - Create high-level roles with proper dependencies: m-base, m-p4p, m-pvaPy, m-seq, m-asyn, m-autosave, m-areadetector, m-opcua, m-stream - Move all module configuration and hooks to their respective high-level roles - Fix 'p4p', 'adcore', 'base', 'stream' and 'opcua' prep hooks to ensure destination directories exist - Add retries to 'get_url' in 'epics-module' to handle network hickups - Add 'set_fact' guards to all high-level roles to prevent multiple executions - Use 'regexp' instead of 'search_string' in lineinfile (compatibility with older Ansible versions) - Ensure all prep hooks create necessary directories before use - Make 'epics-module' respect 'skip' attribute in module configurations - Add distribution-specific skip logic for incompatible modules (ADCore, pvaPy) on modern OS releases (Fedora, Rocky 9, Ubuntu 24.04) Co-authored-by: google-labs-jules[bot]
- use fact as 'rebuild all modules' flag - use block around compiling from sources
- avoids deprecation warnings
- also remove autosave and asyn from top-level roles
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.
This splits up the single
epics-modulesrole (that had a single configuration file for all modules) into a generic role to install EPICS C/C++ modules and separate roles for the actual modules that call the generic role with their configuration. (I used 'm-' prefixes for all roles that install EPICS modules.)Advantages:
@gilesknap, @simon-ess: Rebasing #71 on this will allow fine-tuned runs of CI jobs depending on which modules were changed and also eventually allow to only recreate the container images when actually required.
Disclaimer: The first step (splitting the role into per-module roles) was the result of a 2.5-hour session with Jules (Google's coding agent). Not bad, but needed quite a bit of fine-tuning.