跳至主要内容

ERP5相关工具。

项目描述

erp5.util

包含各种ERP5相关工具的包。

模块文档

erp5.util.taskdistribution

用于访问任务分配器的模块,用于在多台机器上运行测试并汇总结果。使用pydoc获取模块文档和用法示例。

API文档

您可以使用epydoc生成API文档。

$ epydoc src/erp5

testnode

能够调用wget和varnishlog提取头信息,并根据预期的缓存策略返回所有失败的实用工具。

此实用工具可通过以下配置文件进行配置:

[web_checker]
url = http://www.example.com/
working_directory = /home/me/tmp/crawled_content
varnishlog_binary_path = varnishlog
email_address = me@example.com
smtp_host = localhost
debug_level = debug

[header_list]
Last-Modified = True
Cache-Control = max-age=300
                max-age=3600
Vary = Accept-Language, Cookie, Accept-Encoding
       Accept-Language, Cookie
       Accept-Language,Cookie,Accept-Encoding
       Accept-Language,Cookie
Expires = True

[header url=.*/sitemap]
Last-Modified = True

[header content-type=.*/javascript]
Last-Modified = True
Cache-Control = max-age=3600
Expires = True

[no_header content-type=(image/.*|text/css)]
Vary = None

[erp5_extension_list]
prohibited_file_name_list = WebSection_viewAsWeb
                            Base_viewHistory
                            list
prohibited_folder_name_list = web_page_module
                              document_module

使用

url : website to check
working_directory : fetched data will be downloaded
varnishlog_binary_path :  path to varnishlog
email_address : email address to send result
smtp_host : smtp host to use
debug_level : log level of this utility (debug =>very verbose,
                                        info=>normal,
                                        warning=>nothing)

header_list : Key == Header id.
              value: if equals to True, it means that header needs to be present in RESPONSE
                     if it is a tuple, the Header value must sastify at least one of the proposed values

erp5_extension_list: Optional section.
  prohibited_file_name_list: which check that any links redirect to prohibited forms
    like WebSection_viewAsWeb, Base_viewHistory, list, ...
  prohibited_folder_name_list: usefull to detect that links does not redirect to
    specified modules like, web_page_module, document_module, ...

此实用工具需要wget => 1.12和一个可调用的varnishlog。实用工具必须在运行varnish的服务器上运行。

web_checker读取varnishlogs以检测查询是否发送到后端。

变更

0.4.76 (2024-05-07)

  • testnode: - 删除未使用的‘zip_binary’配置

0.4.75 (2023-11-15)

  • testnode: - 使killall支持更改标题的进程

0.4.74 (2022-05-13)

  • testnode: - 在运行测试之前重试slapos节点实例更多次数

0.4.73 (2022-04-22)

  • testnode: - 删除未使用的scalability_tester - 修复python3中的bug

0.4.72 (2021-10-01)

  • testnode: - 更新本地前端从属(如果已配置),以便测试使用快速且可靠的远程前端(在同一LAN上或/和同一机器上)

0.4.71 (2021-09-08)

  • testnode: - 与SlapOS集成可扩展性测试相关的各种更改

0.4.70 (2021-06-14)

  • testnode

    • 修复Python 3中的ResourceWarnings

    • 缩短实例分区路径

  • testsuite: 删除EggTestSuite

0.4.69 (2020-10-29)

  • erp5.util.testnode

    • 将test_node_title传播到runTestSuite

    • 作为环境变量传递参数

    • 使用log_frontend_url广告日志URL

0.4.68 (2020-05-22)

  • erp5.util.taskdistribution

    • 修复 DummyTaskDistributor API 以能够在本地运行测试

  • erp5.util.testnode

    • 修复当HEAD是合并提交时的升级器

    • 不要记录分销商的URL

0.4.67 (2020-04-27)

  • erp5.util

    • testnode:通过传递-log_directory参数来运行TestSuite

    • EggTestSuite:支持-log_directory

    • testnode:在日志查看器中包含快照目录的链接

    • testnode:不要在网络错误时崩溃日志查看器应用程序

    • testnode:使保留日志的天数可配置

0.4.66 (2020-01-30)

  • erp5.util

    • testnode:构建软件时使用共享部分

0.4.65 (2019-10-30)

  • erp5.util

    • testnode:允许针对已存在的实例运行可伸缩性测试

0.4.64 (2019-10-10)

  • erp5.util

    • testnode:修复Computer.updateConfiguration调用(与slapos.core 1.5.0的兼容性)

0.4.63 (2019-10-08)

  • erp5.util

    • testnode:避免在尝试杀死已死亡的进程时崩溃testnode

    • testnode:从新位置导入xml2dict(与slapos.core 1.5.0的兼容性)

0.4.62 (2019-10-01)

  • erp5.util

    • testnode:修复可伸缩性测试运行器导入测试套件类的逻辑

0.4.61 (2019-09-18)

  • erp5.util

    • testnode:修复可伸缩性测试运行器

0.4.60 (2019-09-01)

  • erp5.util

    • testnode:修复SlaOS API中的某些错别字

0.4.59.1 (2019-08-13)

  • erp5.util

    • 小修复:在setup.py中添加缺失的'six'依赖项

0.4.59 (2019-08-13)

  • erp5.util

    • testnode:更新SlapOS API

    • erp5.util:添加对Python 3的支持

    • testnode:处理更新git仓库时出现的错误情况

    • testnode:修复条件以避免构建如firefox之类的依赖项

    • testnode:杀死命令行中包含slapos_directory的进程

    • testnode:在ProcessManager中使用close_fds=True启动进程

0.4.58 (2019-03-05)

  • erp5.util

    • testnode:给supervisord更多时间来杀死子进程 [Sebastien Robin]

0.4.57 (2019-02-25)

  • erp5.util

    • testnode:允许传递max_quantity给runComputerPartition [Lukasz Nowak]

    • testnode:稍微减少CPU的使用积极性 [Jerome Perrin]

    • testnode:避免不断重建testnode依赖项(firefox)[Sebastien Robin]

    • testnode:更加积极地尝试杀死剩余的进程 [Sebastien Robin]

0.4.56 (2018-09-28)

  • erp5.util

    • testnode:给slapos代理启动更多时间

0.4.55 (2018-09-28)

  • erp5.util

    • testnode:正确支持删除chmod文件 [Jerome Perrin]

0.4.54 (2018-09-13)

  • erp5.util

    • testnode:更新firefox的路径

0.4.53 (2018-09-07)

  • erp5.util

    • testnode:给runTestSuite传递项目标题 [Sebastien Robin]

    • testnode:在目录清理期间支持chmod文件 [Jerome Perrin]

0.4.52 (2018-08-21)

  • erp5.util

    • 使可伸缩性测试框架更加稳定。停止使用虚拟前端主节点,转而使用具有有效SSL证书的host.vifib.net前端,始终使用https。[Yusei Tahara]

0.4.51 (2017-07-17)

  • erp5.util

    • 可伸缩性测试框架 [Roque Porchetto]

0.4.50 (2017-11-22)

  • erp5.util.testnode

    • 仅对Distributor调用方法 [Lukasz Nowak]

0.4.49 (2017-05-11)

  • erp5.util.taskdistribution

    • 如有必要,将其包装在xmlrpclib.Binary中

0.4.48 (2017-04-20)

  • erp5.util.testnode

    • 修复–firefox_bin和–xvfb_bin的值 [Julien Muchembled]

0.4.47 (2017-04-05)

  • erp5.util.testnode

    • 使它在偶尔出现故障的情况下更加健壮 [Sebastien Robin]

    • 外观修复:避免-repository后缀 [Julien Muchembled]

0.4.46 (2016-09-29)

  • erp5.util.testnode

    • 将js-logtail包含在MANIFEST.in中

0.4.45 (2016-08-05)

  • erp5.util.testnode

    • 如果其中一个测试套件定义了损坏的仓库,不要阻止所有测试套件 [Sebastien Robin]

    • 在启动新代理之前确保代理确实已死亡 [Sebastien Robin]

0.4.44 (2016-03-22)

  • erp5.util.testnode

    • 如果testnodes无法创建分区且无法找到runTestSuite命令,取消测试结果。

    • 设置特定的环境变量以并行构建NumPy/friends & Ruby gems。

    • 对于本地仓库,忽略软件版本中定义的修订版本。

    • 使能够在测试套件中定义slapos参数。

0.4.43 (2015-09-02)

  • erp5.util

    • 当服务器恢复正常时,使服务更加活跃 [Sebastien Robin]

  • erp5.util.testnode - 简单的日志查看器应用程序,不要下载整个suite.log [Jérôme Perrin] - 当检出git文件时使代码更加健壮 [Sebastien Robin]

0.4.42 (2014-12-02)

  • erp5.util.testnode

    • 错别字 [Jérôme Perrin]

    • 从最低匹配分区开始运行第一个找到的runTestSuite,而不是随机一个 [Cédric de Saint Martin]

  • erp5.util

    • 停止支持Python < 2.7 [Julien Muchembled]

0.4.41 (2014-08-07)

  • erp5.util.testnode

    • 修复运行测试位置 [Rafael Monnerat]

  • erp5.util

    • 将dealShebang移动到Utils [Rafael Monnerat]

0.4.40 (2014-07-30)

  • erp5.util.testnode

    • 修复erp5/util/testnode/__init__.py中的错误 [Rafael Monnerat]

0.4.39 (2014-07-30)

  • erp5.util.testnode

    • 更新SlapOSControler的命令调用 [Rafael Monnerat]

0.4.38 (2014-04-16)

  • erp5.util.testnode

    • 清理可伸缩性代码合并后的代码 [Cedric de Saint Martin]

0.4.37 (2014-01-21)

  • erp5.util.scalability

  • 新模块 [Benjamin Blanc]

  • erp5.util.testnode

  • 最小化存储MySQL数据库的写入操作。

0.4.36 (2013-06-30)

  • erp5.util.testsuite

  • 如果URL已更改,删除git仓库 [Sebastien Robin]

0.4.35 (2013-06-21)

  • erp5.util.testsuite

  • 将additional_bt5_repository_id修复到testnode.py [Benjamin Blanc]

0.4.34 (2013-04-11)

  • erp5.util.testsuite

  • 允许在测试中定义子结果,就像我们为selenium [Sebastien Robin]所做的那样

0.4.33 (2013-03-14)

  • erp5.util.zodbanalyze

  • ZODB的ZODB/scripts/analyze.py改进版本的初始版本 [Kazuhiko Shiozaki]

0.4.32 (2013-03-13)

  • erp5.util.testnode

  • 添加处理httplib.ResponseNotReady错误消息 [Sebastien Robin]

  • 当指定不同的测试套件仓库分支时,不要失败 [Sebastien Robin]

0.4.31 (2013-03-01)

  • erp5.util.testnode

  • 在重置软件后,retry_software_count没有正确重置 [Sebastien Robin]

0.4.30 (2013-02-20)

  • erp5.util.testnode

  • 几乎不保留临时文件,有时在一天后/tmp中会有很多Gb [Sebastien Robin]

0.4.29 (2013-02-20)

  • erp5.util.testnode

  • 使它能够抵抗在构建软件时slapos代理的问题 [Sebastien Robin]

0.4.28 (2013-02-19)

  • erp5.util.testnode

  • 使它能够抵抗slapos代理的问题 [Sebastien Robin]

0.4.27 (2013-02-15)

  • erp5.util.testnode

  • testnode有时仍然同时记录多个文件 [Sebastien Robin]

0.4.26 (2013-02-14)

  • erp5.util.testnode

  • 清理临时文件时不要重新抛出OSError

0.4.25 (2013-02-11)

  • erp5.util.testnode

  • 退出时关闭所有计时器,这使得停止erp5testnode变得更快 [Sebastien Robin]

  • 在修复slapos.cookbook后移除slapos/testnode上的hack [Sebastien Robin]

  • 移除buildout留下的旧临时文件(buildout也已经修复) [Sebastien Robin]

  • 移除不再需要的日志处理程序 [Sebastien Robin]

  • 修复了无法正确终止子进程的kill命令 [Sebastien Robin]

0.4.24 (2013-02-11)

  • erp5.util.testnode

  • 修复了测试套件软件构建位置错误 [Sebastien Robin]

0.4.23 (2013-02-11)

  • erp5.util.testnode

  • 使erp5testnode允许远程访问测试套件日志而不是上传到主节点 [Tatuya Kamada], [Sebastien Robin]

0.4.22 (2013-01-08)

  • erp5.util.taskdistribution

  • 修复了当使用Python < 2.7时的回归问题

0.4.21 (2013-01-07)

  • erp5.util.taskdistribution

  • 真正修复锁以避免并发RPC调用时的错误

  • erp5.util.testnode

  • 不要在已删除的分支上运行测试套件

0.4.20 (2012-12-19)

  • erp5.util.testnode

  • 确保在杀死进程时杀死孙子进程 [Sebastien Robin]

0.4.19 (2012-12-17)

  • erp5.util.testnode

  • 修复了未定义的变量 [Sebastien Robin]

0.4.18 (2012-12-14)

  • erp5.util.testnode

  • 解决删除软件时的ascii问题 [Sebastien Robin]

0.4.17 (2012-12-10)

  • erp5.util.testnode

  • 添加线程计时器以终止锁定进程 [Sebastien Robin]

  • 添加更多单元测试 [Pere Cortes]

0.4.16 (2012-11-14)

  • erp5.util.testnode

  • 改进Xvfb和firefox的处理 [Sebastien Robin]

  • 检查runTestSuite支持的参数 [Pere Cortes]

  • 为runTestSuite添加单元测试 [Pere Cortes]

0.4.15 (2012-11-07)

  • erp5.util.testnode

  • 修复了软件仓库未定义时生成的配置文件错误 [Sebastien Robin]

  • 更频繁地询问哪个测试对主节点有更高的优先级 [Sebastien Robin]

0.4.14 (2012-11-05)

  • erp5.util.testnode

  • 强制重新构建软件以避免使用旧的软件/代码 [Sebastien Robin]

  • erp5.util.taskdistribution

  • 处理与主节点相关的另一个可能的错误 [Sebastien Robin]

0.4.13 (2012-10-31)

  • erp5.util.testnode

  • 为erp5testnode添加单元测试(包含一些需要尽快修复的硬编码路径) [Sebastien Robin]

  • 将长函数拆分成几个更简单的函数以提高代码的简洁性和可读性 [Sebastien Robin]

0.4.12 (2012-10-25)

  • erp5.util.testnode

  • 修复了由主节点管理测试套件引入的几个问题 [Sebastien Robin]

0.4.11 (2012-10-22)

  • erp5.util.testnode

  • 从主节点获取测试套件参数,以允许主节点分配工作 [Pere Cortes], [Sebastien Robin]

0.4.10 (2012-10-01)

  • erp5.util.testnode

  • 允许使用由testnode构建的firefox进行功能测试 [Gabriel Monnerat]

0.4.9 (2012-10-01)

  • erp5.util.testnode

  • 在调用slapgrid-sr时移除–now参数,因为它尚未得到良好支持 [Sebastien Robin]

0.4.8 (2012-09-27)

  • erp5.util.testnode

  • 使用taskdistribution模块减少代码 [Vincent Pelletier], [Pere Cortes]

0.4.7 (2012-09-03)

  • erp5.util.taskdistribution

  • 解决当没有提供值时,测试行从父节点获取值的问题 [Vincent Pelletier]

  • 修复了0.4.6中引入的回归问题,该问题允许并行XMLRPC调用,这是不支持的。 [Rafael Monnerat]

  • erp5.util.benchmark

  • 在生成可扩展性报告时确保至少可以找到至少一个结果文件。 [Arnaud Fontaine]

  • 确保在可扩展性测试报告中,图表条形正确对齐。 [Arnaud Fontaine]

  • erp5.util.testsuite

  • 新模块 [Rafael Monnerat]

0.4.6 (2012-08-10)

  • erp5.util.taskdistribution

  • 为RPC调用设置套接字超时以防止死锁发生。 [Rafael Monnerat]

0.4.5 (2012-07-04)

  • erp5.util.taskdistribution

  • xmlrpclib不支持命名参数,使用位置参数 [Vincent Pelletier]

0.4.4 (2012-07-04)

  • erp5.util.taskdistribution

  • 新模块 [Vincent Pelletier]

0.4.3 (2012-04-24)

  • erp5.util.testnode

  • 改进主节点测试取消的检测

  • 更好地管理SIGTERM信号

  • 清理测试实例,确保之前测试运行中没有任何残留

0.4.2 (2012-04-11)

  • erp5.util.testnode

  • 改进testnode日志

  • 添加一个线程,定期将正在进行的日志上传到主节点

  • 如果软件版本在多次尝试后仍然无法成功构建,则完全删除软件。这有助于在构建更新软件失败时解锁。

  • 检查上次测试结果是否已取消,以便在不重启testnode的情况下重新启动测试

0.4.1 (2012-02-29)

  • erp5.util.testnode

  • 提高testnode在联系远程主节点时的可靠性

  • 在放弃之前尝试多次构建软件版本

0.3 (2011-12-23)

  • erp5.util.webchecker

  • erp5.util.testnode

    • 改进日志记录 [Sebastien Robin]

    • 修复传递bt5_path [Gabriel Monnerat]

    • 修复profile_path连接 [Nicolas Delaby]

    • 修复git更新和解析仓库路径 [Julien Muchembled]

  • erp5.util.benchmark

  • 新工具,正在开发中 [Arnaud Fontaine]

0.2 (2011-09-20)

0.1 (2011-08-08)

  • erp5.util.testnode从类似slapos.cookbook的配方中导入 [Łukasz Nowak]

项目详情


版本历史 版本通知 | RSS订阅

下载文件

下载您平台上的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

erp5.util-0.4.76.tar.gz (143.9 kB 查看哈希值)

上传于 来源

由以下支持