rtems-proxy 0.6.1__tar.gz → 0.6.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/PKG-INFO +1 -1
  2. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy/_version.py +2 -2
  3. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy/copy.py +5 -5
  4. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy/rsync.sh.jinja +10 -2
  5. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy/telnet.py +0 -2
  6. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy.egg-info/PKG-INFO +1 -1
  7. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.copier-answers.yml +0 -0
  8. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.devcontainer/devcontainer.json +0 -0
  9. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/CONTRIBUTING.md +0 -0
  10. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  11. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/ISSUE_TEMPLATE/issue.md +0 -0
  12. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +0 -0
  13. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/actions/install_requirements/action.yml +0 -0
  14. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/dependabot.yml +0 -0
  15. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/pages/index.html +0 -0
  16. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/pages/make_switcher.py +0 -0
  17. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/workflows/_check.yml +0 -0
  18. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/workflows/_dist.yml +0 -0
  19. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/workflows/_pypi.yml +0 -0
  20. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/workflows/_release.yml +0 -0
  21. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/workflows/_test.yml +0 -0
  22. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/workflows/_tox.yml +0 -0
  23. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.github/workflows/ci.yml +0 -0
  24. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.gitignore +0 -0
  25. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.pre-commit-config.yaml +0 -0
  26. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.vscode/extensions.json +0 -0
  27. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.vscode/launch.json +0 -0
  28. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.vscode/settings.json +0 -0
  29. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/.vscode/tasks.json +0 -0
  30. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/Dockerfile +0 -0
  31. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/LICENSE +0 -0
  32. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/README.md +0 -0
  33. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/proxy-start.sh +0 -0
  34. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/pyproject.toml +0 -0
  35. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/requirements.txt +0 -0
  36. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/setup.cfg +0 -0
  37. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy/__init__.py +0 -0
  38. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy/__main__.py +0 -0
  39. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy/globals.py +0 -0
  40. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy/utils.py +0 -0
  41. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy.egg-info/SOURCES.txt +0 -0
  42. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy.egg-info/dependency_links.txt +0 -0
  43. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy.egg-info/entry_points.txt +0 -0
  44. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy.egg-info/requires.txt +0 -0
  45. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/src/rtems_proxy.egg-info/top_level.txt +0 -0
  46. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/tests/conftest.py +0 -0
  47. {rtems_proxy-0.6.1 → rtems_proxy-0.6.3}/tests/test_cli.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rtems-proxy
3
- Version: 0.6.1
3
+ Version: 0.6.3
4
4
  Summary: Support for a K8S proxy container in controlling and monitoring RTEMS EPICS IOCs
5
5
  Author-email: Giles Knap <giles.knap@diamond.ac.uk>
6
6
  License: Apache License
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.6.1'
16
- __version_tuple__ = version_tuple = (0, 6, 1)
15
+ __version__ = version = '0.6.3'
16
+ __version_tuple__ = version_tuple = (0, 6, 3)
@@ -41,6 +41,11 @@ def copy_rtems():
41
41
  dest = protocol_folder / proto_file.name
42
42
  shutil.copy(proto_file, dest)
43
43
 
44
+ # make sure all files are writable - by default some products are read-only
45
+ for folder in [dest_ioc, dest_runtime]:
46
+ for file in folder.glob("**/*"):
47
+ file.chmod(0o666)
48
+
44
49
  # copy all the files needed for runtime into the PVC that is being shared
45
50
  # over nfs/tftp by the nfsv2-tftp service
46
51
  for folder in ["bin", "dbd"]:
@@ -53,9 +58,4 @@ def copy_rtems():
53
58
  startup = dest_runtime / "st.cmd"
54
59
  cmd_txt = startup.read_text()
55
60
  cmd_txt = re.sub("/epics/", f"{str(nfs_root)}/", cmd_txt)
56
- # also fix up the protocol path to point to protocol_folder
57
- cmd_txt = (
58
- cmd_txt
59
- + f'\nepicsEnvSet("STREAM_PROTOCOL_PATH", "{str(nfs_root / "runtime" / "protocol")}")\n'
60
- )
61
61
  startup.write_text(cmd_txt)
@@ -43,8 +43,16 @@ echo "
43
43
 
44
44
  while true; do
45
45
  inotifywait -e modify,create,delete,move -r $RTEMS_TFTP_PATH
46
- rsync -rt --delete /$RTEMS_TFTP_PATH/ \
47
- "rsync://$RTEMS_TFTP_IP:12002/files/$IOC_NAME/"
46
+ echo 'rsyncing files to server'
47
+ date
48
+ for i in 1 2 3 ; do
49
+ # repeat because inotify fires on the first change of several
50
+ # don't copy the huge ioc binary file with symbols
51
+ rsync -rim --exclude bin/RTEMS-beatnik/ioc --delete /$RTEMS_TFTP_PATH/ \
52
+ "rsync://$RTEMS_TFTP_IP:12002/files/$IOC_NAME/"
53
+ sleep 1
54
+ done
55
+ echo 'rsync complete'
48
56
  done
49
57
  " > /tmp/rsync-background.sh
50
58
  chmod +x /tmp/rsync-background.sh
@@ -156,8 +156,6 @@ class TelnetRTEMS:
156
156
  self.reboot(RtemsState.IOC)
157
157
  self._child.expect(self.IOC_STARTED, timeout=50)
158
158
 
159
- report("press enter for IOC shell prompt")
160
-
161
159
  def get_boot_prompt(self):
162
160
  """
163
161
  Get to the bootloader prompt, if the IOC shell is running then exit
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rtems-proxy
3
- Version: 0.6.1
3
+ Version: 0.6.3
4
4
  Summary: Support for a K8S proxy container in controlling and monitoring RTEMS EPICS IOCs
5
5
  Author-email: Giles Knap <giles.knap@diamond.ac.uk>
6
6
  License: Apache License
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes