Commit Graph
42 Commits
Author SHA1 Message Date
Benjamin LabrecqueandClaude Opus 5 ee5f331f4c feat: render qt/ at deploy time and enforce the suffix (step 4)
qt/ was declared a render path in step 1 but nothing rendered it: the Qt
deploy step was a plain rsync, so the UI files shipped with literal
placeholders in every PV name.

  * deploy.yml renders the deployed qt/ directory with render_subs.py
    after the rsync. No --service is needed; qt holds no per-service
    token, and a file that acquired one would fail the step rather than
    ship the placeholder.
  * bin/sls_hla_launch_gui.sh no longer passes an AGEBD_ENV_SUFFIX macro.
    No .ui file has referenced $(AGEBD_ENV_SUFFIX) since a06fded, and the
    suffix is now baked in at deploy time. This removes the last
    hardcoded '-DEV' outside config/environments.yml.

check_ui_files.py is rewritten for the chosen convention. It asserted the
old caQtDM macro, and its regex had stopped matching anything at all once
placeholders appeared in device names -- against the pre-fix Service
Manager it inspected 0 names, where the new check finds 16 violations.
The new rule: every AGEBD- device name carries the suffix token, except
systemd unit names, which are the same in both environments. The token
name is read from the central config so a rename cannot leave this check
enforcing a stale one.

Fixing what that check surfaced, all in A_BD_ServiceManager.ui:

  * 16 'IOC=AGEBD-CPCL-<NAME>' caInclude macro values had no suffix. The
    included UI uses them as PV prefixes ($(IOC):STATUS, $(IOC):RESTART),
    so the dev Service Manager was reading status from, and sending
    restarts to, production IOCs.
  * Two ssh commands hardcoded sls-vserv-bd-hla01, so the dev GUI's
    restart button targeted the production HLA host.
  * cli generates those macro values, so the generator emits the token
    too and new services are no longer born with the bug.

These were latent while qt/ shipped unrendered placeholders; turning
rendering on would have made them live.

Verified: dev renders -DEV device names and the -dev host, prod renders
byte-identical to the currently deployed prod files, no placeholder
survives in either, and all 24 UI files stay well-formed XML.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 12:12:11 +02:00
Benjamin Labrecque 701625d158 test: cicd
Deploy / deploy (push) Successful in 51s
2026-08-05 15:54:59 +02:00
Benjamin Labrecque bf354e3ea8 test: cicd
Deploy / deploy (push) Successful in 48s
2026-08-05 14:23:11 +02:00
Benjamin Labrecque 492ad7c1fd test: cicd
Deploy / deploy (push) Successful in 44s
2026-08-05 11:25:38 +02:00
Benjamin Labrecque fc46d1a48b chore: use /var/cache/uv
Deploy / deploy (push) Successful in 7s
2026-08-03 16:00:30 +02:00
labrec_bandBenjamin Labrecque dabcf8a407 Feature/gui startup script (#13)
Build and Publish Site / docker (push) Successful in 5s
Deploy / deploy (push) Successful in 8s
Add GUI startup script
---------

Co-authored-by: Benjamin Labrecque <labrecque.benji@gmail.com>
Reviewed-on: #13
2026-08-03 14:38:27 +02:00
Benjamin Labrecque 24a27c7be3 fix EPICS_CA_ADDR_LIST for dev
Deploy / deploy (push) Successful in 12s
2026-08-03 12:41:32 +02:00
labrec_bandBenjamin Labrecque 7c86ddd3a3 Feature/add services tests cicd (#48)
Build and Publish Site / docker (push) Successful in 6s
Deploy / deploy (push) Successful in 41s
Closes:
- uv caching #51
- act runner cache #49
- services tests #20

---------

Co-authored-by: Benjamin Labrecque <labrecque.benji@gmail.com>
Reviewed-on: #48
2026-07-31 11:34:42 +02:00
labrec_bandBenjamin Labrecque ab5534f974 Chore/migrate ansible logic to workflow steps (#44)
Deploy / deploy (push) Successful in 14s
- Move logic from ansible to bash / gitea workflow
- **TODO:** test `add-new-service` deployment logic

---------

Co-authored-by: Benjamin Labrecque <labrecque.benji@gmail.com>
Reviewed-on: #44
2026-07-30 13:34:53 +02:00
Benjamin Labrecque fa7d8a08da fix: uv in startup script
Deploy / deploy (push) Successful in 1s
2026-07-24 16:01:22 +02:00
Benjamin Labrecque 498d6a44b1 test: cicd
Deploy / deploy (push) Successful in 1s
2026-07-24 10:31:34 +02:00
Benjamin Labrecque 2edaaca8a1 test: cicd
Deploy / deploy (push) Failing after 0s
2026-07-24 10:28:17 +02:00
Benjamin Labrecque 537fc042c8 chore: cicd - test
Deploy / deploy (push) Canceled after 0s
2026-07-17 15:53:24 +02:00
Benjamin Labrecque cb85b0af0c feat: actions filter cicd - test
Deploy / deploy (push) Successful in 3s
2026-07-17 12:56:22 +02:00
Benjamin Labrecque 7027d13dda feat: actions filter cicd - test
Deploy / deploy (push) Successful in 5s
2026-07-17 12:50:22 +02:00
Benjamin Labrecque a3619c2d6d feat: actions filter cicd - test
Deploy / deploy (push) Failing after 1s
2026-07-17 12:48:26 +02:00
Benjamin Labrecque 7880f53d8b chore: don't recreate env if it already exists
Deploy / deploy (push) Successful in 2s
2026-07-17 12:39:50 +02:00
Benjamin Labrecque fe75a14fc6 chore: change uv cache location
Deploy / deploy (push) Successful in 1s
2026-07-17 12:33:54 +02:00
Benjamin Labrecque b4226897df test: cicd
Deploy / deploy (push) Successful in 25s
2026-07-15 16:10:51 +02:00
Benjamin Labrecque 137bdab752 test: cicd
Deploy / deploy (push) Failing after 6s
2026-07-15 16:03:27 +02:00
Benjamin Labrecque c1250639e4 fix: cicd
Deploy / deploy (push) Successful in 27s
2026-07-15 15:29:05 +02:00
Benjamin Labrecque 72f2a68b00 fix: cicd
Deploy / deploy (push) Successful in 12s
2026-07-15 15:24:16 +02:00
Benjamin Labrecque f11a47dabb fix: cicd
Deploy / deploy (push) Failing after 0s
Deploy / deploy (push) Successful in 1s
2026-07-15 15:19:17 +02:00
Benjamin Labrecque 7ef3b172ab fix: cicd
Deploy / deploy (push) Failing after 1s
2026-07-15 15:03:40 +02:00
Benjamin Labrecque ff6cede146 fix: python apps
Deploy and restart modified services / deploy (push) Successful in 23s
Deploy bin / deploy (push) Successful in 1s
2026-07-15 14:13:50 +02:00
Benjamin Labrecque 34d304854a fix: startup script
Deploy bin / deploy (push) Successful in 3s
2026-07-15 12:23:46 +02:00
Benjamin Labrecque e1964c1d70 feat: restructure python app and add option to add tests for apps
Deploy and restart modified services / deploy (push) Successful in 12s
Deploy bin / deploy (push) Successful in 2s
2026-07-15 12:18:53 +02:00
Benjamin Labrecque c5467dfa47 cicd: add deploying and restarting services on change
Deploy bin / deploy (push) Successful in 2s
2026-07-14 12:27:24 +02:00
Benjamin Labrecque d252258469 docs: add python/pixi/epics docs
Deploy bin / deploy (push) Canceled after 0s
2026-07-10 17:21:19 +02:00
Benjamin Labrecque debac0cf5e refactor: remove service id altogether
Deploy bin / deploy (push) Successful in 2s
Deploy agebd python package / deploy (push) Successful in 4s
2026-07-08 16:47:42 +02:00
Benjamin Labrecque 6b61b52c27 chore: deploy script for all services
Deploy bin / deploy (push) Successful in 3s
Deploy, build and restart MASTER / deploy (push) Successful in 1s
Deploy agebd python package / deploy (push) Successful in 4s
2026-07-07 09:00:51 +02:00
Benjamin Labrecque 8f467267d7 chore: deploy script for all services
Deploy bin / deploy (push) Successful in 2s
Deploy, build and restart MASTER / deploy (push) Successful in 3s
Deploy agebd python package / deploy (push) Successful in 2s
2026-07-07 08:53:06 +02:00
Benjamin Labrecque fcee7b91c4 fix: recreate venv if already exist
Deploy bin / deploy (push) Successful in 3s
Deploy service MASTER / deploy (push) Successful in 5s
2026-07-06 15:37:13 +02:00
Benjamin Labrecque f9de788baf chore: change deploy paths to move prod/dev at top level -- /sls/bd/hla/dev/...
Deploy bin / deploy (push) Canceled after 0s
Deploy service MASTER / deploy (push) Canceled after 0s
2026-07-03 16:26:46 +02:00
Benjamin Labrecque e858bc25be fix: cicd test
Deploy bin / deploy (push) Successful in 2s
Deploy service MASTER / deploy (push) Successful in 3s
2026-07-02 16:12:26 +02:00
Benjamin Labrecque cfaad329ea fix: cicd test
Deploy bin / deploy (push) Successful in 4s
Deploy service MASTER / deploy (push) Successful in 2s
2026-07-02 16:05:42 +02:00
Benjamin Labrecque 5a5ca55a0e fix: cicd test
Deploy bin / deploy (push) Successful in 5s
Deploy service MASTER / deploy (push) Successful in 2s
2026-07-02 15:54:29 +02:00
Benjamin Labrecque 2db2d419d4 fix: cicd test
Deploy bin / deploy (push) Successful in 2s
Deploy service MASTER / deploy (push) Successful in 2s
2026-07-02 15:53:05 +02:00
Benjamin Labrecque 3a9042115b fix: cicd test
Deploy bin / deploy (push) Successful in 2s
Deploy service MASTER / deploy (push) Successful in 3s
2026-07-02 15:51:40 +02:00
Benjamin Labrecque ff6d306c1a fix: cicd test
Deploy service MASTER / deploy (push) Successful in 3s
2026-07-02 15:39:39 +02:00
Benjamin Labrecque 1161382c44 chore: update start service script and systemd for master
Create a new service / deploy (push) Successful in 2s
2026-07-02 08:28:06 +02:00
Benjamin Labrecque 752802e88b chore: add start_service bash script, add dev and prod envs for systemd
Create a new service / deploy (push) Successful in 2s
2026-07-01 16:48:27 +02:00