Repository navigation
Add dt4acc EPICS twin integration tests on the FODO lattice - #528
Merged
gupichon-soleil merged 1 commit intoNov 27, 2026
Conversation
2 tasks
start_dt4acc_twin.sh gains --mode epics/--prefix, a new epics-smoke CI job runs the tests through pyaml-cs-oa. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gupichon-soleil
force-pushed
the
520-feature-dt4acc-integration-tests-for-the-epics-twin-on-the-fodo-lattice
branch
from
November 26, 2026 10:46
7344e1a to
6807f2c
Compare
gupichon-soleil
requested review from
GamelinAl,
TeresiaOlsson and
gubaidulinvadim
November 26, 2026 16:49
gupichon-soleil
marked this pull request as ready for review
November 26, 2026 16:49
GamelinAl
approved these changes
Nov 27, 2026
GamelinAl
left a comment
Member
There was a problem hiding this comment.
It looks ok ... (probably) ... from far far away as I am not at all familiar with this ;)
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.
Description
The
dt4acc integrationworkflow only exercised the Tango twin. Thedt4acc-soleil-twinimage also ships an EPICS soft-IOC twin, andpyaml-test-lattice0.4.0 provides the matching FODO 1 GeV 6D fixtures (dt4acc/fodo_1gev_6d_dt4acc_epics.jsonfor the twin,pyaml/epics/pyaml-cs-oa/fodo_1gev_6d_pyaml-epics.yamlfor pyAML). This PR runs smoke checks against the EPICS twin throughpyaml-cs-oa, in CI and locally.Related Issue
Features/issues described there are:
start_dt4acc_twin.shcan start the twin in EPICS mode (--mode epics --prefix <prefix>), waiting for theEPICS IOC ready:line instead of the Tango heartbeat.epics-smokejob indt4acc-integration.ymlstarts the EPICS twin with the prefixpyaml-it, restricts Channel Access and PVA to127.0.0.1, and runs the EPICS smoke tests.Changes to existing functionality
start_dt4acc_twin.sh:--modedefaults totango, so existing calls behave as before.--prefixis rejected in Tango mode, and--tango-host/--tango-portare rejected in EPICS mode.test_dt4acc_twin_smoke.pytotests/integration/fodo_fixtures.py, shared by both test files. It accepts control-system overrides, used to inject the EPICS PV prefix (prefix: "pyaml-it:").smokejob is unchanged, so its check name stays the same.pyproject.toml: thetestextra requirespyaml-test-lattice>=0.4.0.Testing
The following tests (compatible with pytest) were added in
tests/integration/test_dt4acc_epics_twin_smoke.py, markedintegrationand read through pyAML objects only:test_epics_twin_accelerator_instantiates_and_reads_live_values: RF frequency and QF_001 strength are finite and positive.test_epics_twin_reads_all_declared_magnetic_strengths: every magnet and combined function magnet strength is finite.test_epics_twin_reads_bpm_positions: every BPM position is finite.The PV prefix is read from
PYAML_DT4ACC_EPICS_PREFIX(defaultpyaml-it).Verified locally in WSL with the published image (after the
softiocdependency fix in the image): 3/3 EPICS tests and 6/6 Tango tests pass. A wrong prefix makes the EPICS tests fail withNotConnectedError, so they really read from the twin.Verify that your checklist complies with the project
🤖 Generated with Claude Code