Skip to content

Conversation

@thopkins32
Copy link
Contributor

@thopkins32 thopkins32 commented Dec 16, 2025

  • Added proper substitution handling for asyn_motor
  • Added verification (skips compilation currently, is it broken?)

@thopkins32 thopkins32 marked this pull request as ready for review December 22, 2025 14:14
Copilot AI review requested due to automatic review settings December 22, 2025 14:14
@thopkins32 thopkins32 changed the title [DRAFT] Fix pi e621 role Fix pi e621 role Dec 22, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the pi_e621 role to fix configuration issues and add proper motor substitution handling. The role is being migrated from the hyphenated naming (pi-e621) to underscore naming (pi_e621).

Key changes:

  • Restructured motor configuration to use a list-based schema instead of hardcoded environment variables
  • Added verification configuration for automated testing
  • Separated HOST and HOST_PORT in schema for better validation

Reviewed changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
roles/device_roles/pi_e621/templates/base.cmd.j2 New template for IOC startup commands with updated variable references
roles/device_roles/pi_e621/templates/asyn_motor.substitutions.j2 Modified to use motor list iteration instead of hardcoded values
roles/device_roles/pi_e621/tasks/main.yml New Ansible tasks for deploying templates
roles/device_roles/pi_e621/schema.yml Updated schema with motor list support and improved HOST validation
roles/device_roles/pi_e621/examples/pi-e621-test/verify.yml New verification configuration with skip_compilation flag
roles/device_roles/pi_e621/examples/pi-e621-test/config.yml Example configuration demonstrating motor list usage
roles/device_roles/pi_e621/README.md Added basic documentation
roles/device_roles/pi-e621/* Removed old hyphenated directory files
roles/deploy_ioc/vars/pi_e621.yml New deployment variables for the role
.github/workflows/test-roles.yml Comment clarification about excluding deleted roles
Comments suppressed due to low confidence (1)

roles/device_roles/pi_e621/schema.yml:49

  • The motor schema defines fields (egu, twv, velo, vbas, accl, bdst, bvel, bacc, mres, prec, dhlm, dllm, init) that are not referenced in the asyn_motor.substitutions.j2 template. The template uses hardcoded environment variable references like "$(EGU)", "$(TWV)", etc. instead of motor.egu, motor.twv, etc. Either remove these unused schema fields or update the template to use per-motor values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@thopkins32 thopkins32 requested a review from jwlodek December 22, 2025 15:51
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.

3 participants