Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Intermittently failing test

未关闭
#178 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
testing

调研方向

从 tests/test_autosave.py::test_context_manager_thread_safety 开始,复现链接运行中的 Windows CI 失败。将与 Autosave 相关的行为与 epicsdbbuilder issue #32 和 PR #177 进行比较;完成的标准是找出间歇性原因、确保测试在 CI 中可靠通过,并确认该失败不再发生。

由索引模型根据 Issue 内容生成。

描述

bug

There seems to be an intermittent failing test, introduced in the Autosave feature. Here's the failure stack from the last failed run:

   _____________________ test_context_manager_thread_safety ______________________
  Traceback (most recent call last):
    ...
    ...
    File "C:\Users\runneradmin\AppData\Local\Temp\cibw-run-4d5mbdhg\cp39-win_amd64\venv-test\lib\site-packages\_pytest\python.py", line 159, in pytest_pyfunc_call
      result = testfunction(**testargs)
    File "D:\a\pythonSoftIOC\pythonSoftIOC\tests\test_autosave.py", line 443, in test_context_manager_thread_safety
      builder.aOut("PV-FROM-CM")
    File "C:\Users\runneradmin\AppData\Local\Temp\cibw-run-4d5mbdhg\cp39-win_amd64\venv-test\lib\site-packages\softioc\builder.py", line 59, in aOut
      return PythonDevice.ao(name, EGU = EGU, PREC = PREC, **fields)
    File "C:\Users\runneradmin\AppData\Local\Temp\cibw-run-4d5mbdhg\cp39-win_amd64\venv-test\lib\site-packages\softioc\pythonSoftIoc.py", line 117, in __call__
      return RecordWrapper(
    File "C:\Users\runneradmin\AppData\Local\Temp\cibw-run-4d5mbdhg\cp39-win_amd64\venv-test\lib\site-packages\softioc\pythonSoftIoc.py", line 36, in __init__
      record.address = '@' + record.name
    File "C:\Users\runneradmin\AppData\Local\Temp\cibw-run-4d5mbdhg\cp39-win_amd64\venv-test\lib\site-packages\epicsdbbuilder\recordbase.py", line 216, in __setattr__
      self.__ValidateField(fieldname, value)
    File "C:\Users\runneradmin\AppData\Local\Temp\cibw-run-4d5mbdhg\cp39-win_amd64\venv-test\lib\site-packages\epicsdbbuilder\recordbase.py", line 227, in __ValidateField
      self._validate.ValidFieldValue(fieldname, str(value))
    File "C:\Users\runneradmin\AppData\Local\Temp\cibw-run-4d5mbdhg\cp39-win_amd64\venv-test\lib\site-packages\epicsdbbuilder\dbd.py", line 91, in ValidFieldValue
      assert message is None, \
  AssertionError: Can't write "@PV-FROM-CM" to field OUT: fldDes not found

The issue appears to be coming from epicsdbbuilder, which is why I've raised this issue there.

I've attempted to investigate this issue in CI in PR #177 , but have been unable to recreate it so far.

主要语言
Python
星标
47
派生
15
平均合并
1 天 18 小时
30 天内合并 PR
1

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DiamondLightSource/pythonSoftIOC 的其他 Issue

查看 DiamondLightSource/pythonSoftIOC 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。