vntrader 2.1.9 参数优化有bug 超过5个以上条件的参数优化会报错而停下来 剩下的python会一直挂起

环境

操作系统: 如Windows 10 内存16g
数据库为;mongoDB
Python版本: 如VNStudio-2.1.9
vn.py版本: VNStudio-2.1.9集成安装版本

Issue类型
三选一：Bug/
预期程序行为
多进程参数优化
实际程序行为
多进程参数优化被中止 出现bug
重现步骤
参数优化时 选择10个以上的参数以上的参数优化
比如 优化____均线周期.  起始 10 步长 1 终止 20,会报错
优化____均线周期.  起始 15 步长 1 终止 20, 则不会报错 会顺利运行
针对Bug类型Issue，请提供具体重现步骤以及报错截图
Process SpawnPoolWorker-16:
Process SpawnPoolWorker-18:
Process SpawnPoolWorker-22:
Process SpawnPoolWorker-20:
Process SpawnPoolWorker-19:
Process SpawnPoolWorker-14:
Traceback (most recent call last):
File "G:\vnstudio\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
Process SpawnPoolWorker-13:
File "G:\vnstudio\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self._kwargs)
Traceback (most recent call last):
File "G:\vnstudio\lib\multiprocessing\pool.py", line 110, in worker
task = get()
File "G:\vnstudio\lib\multiprocessing\queues.py", line 354, in get
return _ForkingPickler.loads(res)
File "G:\vnstudio\lib\multiprocessing\process.py", line 297, in bootstrap
self.run()
Process SpawnPoolWorker-23:
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy_init.py", line 9, in
from .engine import CtaEngine
File "G:\vnstudio\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self.kwargs)
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 10, in
from concurrent.futures import ThreadPoolExecutor
Traceback (most recent call last):
File "G:\vnstudio\lib\multiprocessing\pool.py", line 110, in worker
task = get()
File "G:\vnstudio\lib\concurrent\futures_init.py", line 8, in
from concurrent.futures._base import (FIRST_COMPLETED,
Process SpawnPoolWorker-17:
File "G:\vnstudio\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "G:\vnstudio\lib\multiprocessing\queues.py", line 354, in get
return _ForkingPickler.loads(res)
File "", line 983, in _find_and_load
File "G:\vnstudio\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self.kwargs)
Process SpawnPoolWorker-21:
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy_init.py", line 9, in
from .engine import CtaEngine
Traceback (most recent call last):
File "", line 967, in _find_and_load_unlocked
File "G:\vnstudio\lib\multiprocessing\pool.py", line 110, in worker
task = get()
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 40, in
from vnpy.trader.rqdata import rqdata_client
File "G:\vnstudio\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "", line 677, in _load_unlocked
File "G:\vnstudio\lib\multiprocessing\queues.py", line 354, in get
return _ForkingPickler.loads(res)
File "G:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 6, in
from rqdatac import init as rqdata_init
File "G:\vnstudio\lib\multiprocessing\process.py", line 99, in run
self._target(*self.args, **self.kwargs)
Traceback (most recent call last):
File "", line 724, in exec_module
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy_init.py", line 9, in
from .engine import CtaEngine
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 21, in
__go()
File "G:\vnstudio\lib\multiprocessing\pool.py", line 110, in worker
task = get()
Traceback (most recent call last):
File "G:\vnstudio\lib\multiprocessing\process.py", line 297, in bootstrap
self.run()
File "", line 818, in get_code
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 40, in
Traceback (most recent call last):
Traceback (most recent call last):
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 18, in __go
importlib.import_module(module_name)
File "G:\vnstudio\lib\multiprocessing\queues.py", line 354, in get
return _ForkingPickler.loads(res)
File "G:\vnstudio\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "G:\vnstudio\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "", line 917, in get_data
File "G:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 6, in
from rqdatac import init as rqdata_init
File "G:\vnstudio\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
Traceback (most recent call last):
File "G:\vnstudio\lib\multiprocessing\process.py", line 297, in bootstrap
self.run()
File "G:\vnstudio\lib\importlib_init.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy_init.py", line 9, in
from .engine import CtaEngine
File "G:\vnstudio\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self.kwargs)
File "G:\vnstudio\lib\multiprocessing\pool.py", line 110, in worker
task = get()
MemoryError
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 21, in
__go()
File "G:\vnstudio\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "G:\vnstudio\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "G:\vnstudio\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "", line 1006, in _gcd_import
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 40, in
from vnpy.trader.rqdata import rqdata_client
File "G:\vnstudio\lib\multiprocessing\pool.py", line 110, in worker
task = get()
Traceback (most recent call last):
File "G:\vnstudio\lib\multiprocessing\queues.py", line 354, in get
return ForkingPickler.loads(res)
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 18, in __go
importlib.import_module(module_name)
File "G:\vnstudio\lib\multiprocessing\pool.py", line 110, in worker
task = get()
File "G:\vnstudio\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "G:\vnstudio\lib\multiprocessing\pool.py", line 110, in worker
task = get()
File "", line 983, in _find_and_load
File "G:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 6, in
from rqdatac import init as rqdata_init
File "G:\vnstudio\lib\multiprocessing\queues.py", line 354, in get
return ForkingPickler.loads(res)
File "G:\vnstudio\lib\multiprocessing\process.py", line 297, in bootstrap
self.run()
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy_init.py", line 9, in
from .engine import CtaEngine
File "G:\vnstudio\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "G:\vnstudio\lib\multiprocessing\queues.py", line 354, in get
return _ForkingPickler.loads(res)
Process SpawnPoolWorker-15:
File "G:\vnstudio\lib\multiprocessing\pool.py", line 110, in worker
File "G:\vnstudio\lib\multiprocessing\queues.py", line 354, in get
File "", line 967, in find_and_load_unlocked
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 21, in
_go()
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy_init.py", line 9, in
from .engine import CtaEngine
File "G:\vnstudio\lib\multiprocessing\process.py", line 99, in run
self._target(*self.args, **self.kwargs)
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 40, in
from vnpy.trader.rqdata import rqdata_client
File "G:\vnstudio\lib\site-packages\rqdatac\services\financial.py", line 12, in
from sqlalchemy import Column
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy_init.py", line 9, in
from .engine import CtaEngine
File "G:\vnstudio\lib\multiprocessing\queues.py", line 354, in get
return ForkingPickler.loads(res)
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy_init.py", line 6, in
from vnpy.trader.utility import BarGenerator, ArrayManager
File "", line 677, in load_unlocked
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 18, in go
importlib.import_module(module_name)
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 40, in
from vnpy.trader.rqdata import rqdata_client
File "G:\vnstudio\lib\multiprocessing\pool.py", line 110, in worker
task = get()
File "G:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 6, in
from rqdatac import init as rqdata_init
File "G:\vnstudio\lib\site-packages\sqlalchemy_init.py", line 10, in
from .schema import BLANK_SCHEMA  # noqa
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 40, in
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy_init.py", line 9, in
from .engine import CtaEngine
File "G:\vnstudio\lib\site-packages\vnpy\trader\utility.py", line 14, in
import talib
File "", line 724, in exec_module
File "G:\vnstudio\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "G:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 6, in
from rqdatac import init as rqdata_init
File "G:\vnstudio\lib\multiprocessing\queues.py", line 354, in get
return ForkingPickler.loads(res)
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 21, in
_go()
File "G:\vnstudio\lib\site-packages\sqlalchemy\schema.py", line 12, in
from .sql.base import SchemaVisitor  # noqa
File "G:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 6, in
from rqdatac import init as rqdata_init
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 40, in
from vnpy.trader.rqdata import rqdata_client
File "G:\vnstudio\lib\site-packages\talib_init.py", line 43, in
from .ta_lib import (
File "", line 818, in get_code
File "G:\vnstudio\lib\site-packages\rqdatac\services\financial.py", line 12, in
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 21, in
go()
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy_init.py", line 9, in
from .engine import CtaEngine
Traceback (most recent call last):
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 18, in go
importlib.import_module(module_name)
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql_init.py", line 8, in
from .expression import Alias  # noqa
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 21, in
go()
File "G:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 6, in
from rqdatac import init as rqdata_init
ImportError: DLL load failed: 页面文件太小，无法完成操作。
File "", line 917, in get_data
File "G:\vnstudio\lib\site-packages\sqlalchemy_init.py", line 10, in
from .schema import BLANK_SCHEMA  # noqa
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 18, in __go
importlib.import_module(module_name)
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 40, in
File "G:\vnstudio\lib\multiprocessing\process.py", line 297, in bootstrap
File "G:\vnstudio\lib\importlib_init.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\expression.py", line 90, in
from .dml import Delete  # noqa
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 18, in _go
importlib.import_module(module_name)
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 21, in
_go()
MemoryError
File "G:\vnstudio\lib\site-packages\sqlalchemy\schema.py", line 12, in
from .sql.base import SchemaVisitor  # noqa
File "G:\vnstudio\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "G:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 6, in
from rqdatac import init as rqdata_init
File "G:\vnstudio\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self.kwargs)
File "G:\vnstudio\lib\site-packages\rqdatac\services\financial.py", line 12, in
from sqlalchemy import Column
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\dml.py", line 12, in
from . import util as sql_util
File "G:\vnstudio\lib\importlib_init.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 18, in _go
importlib.import_module(module_name)
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql_init.py", line 106, in
_go(locals())
File "G:\vnstudio\lib\site-packages\rqdatac\services\financial.py", line 12, in
from sqlalchemy import Column
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 21, in
go()
File "G:\vnstudio\lib\multiprocessing\pool.py", line 110, in worker
task = get()
File "G:\vnstudio\lib\site-packages\sqlalchemy_init.py", line 10, in
from .schema import BLANK_SCHEMA  # noqa
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\util.py", line 15, in
from . import operators
File "G:\vnstudio\lib\site-packages\rqdatac\services\financial.py", line 12, in
from sqlalchemy import Column
File "G:\vnstudio\lib\importlib_init.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql_init.py", line 103, in go
from . import naming  # noqa
File "G:\vnstudio\lib\site-packages\sqlalchemy_init.py", line 10, in
from .schema import BLANK_SCHEMA  # noqa
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 18, in __go
importlib.import_module(module_name)
File "G:\vnstudio\lib\multiprocessing\queues.py", line 354, in get
return _ForkingPickler.loads(res)
File "G:\vnstudio\lib\site-packages\sqlalchemy\schema.py", line 12, in
from .sql.base import SchemaVisitor  # noqa
File "", line 983, in find_and_load
File "G:\vnstudio\lib\site-packages\sqlalchemy_init.py", line 10, in
from .schema import BLANK_SCHEMA  # noqa
File "", line 1006, in gcd_import
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\naming.py", line 27, in
from .. import events  # noqa
File "G:\vnstudio\lib\site-packages\sqlalchemy\schema.py", line 12, in
from .sql.base import SchemaVisitor  # noqa
File "G:\vnstudio\lib\importlib_init.py", line 127, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy_init.py", line 9, in
from .engine import CtaEngine
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql_init.py", line 8, in
from .expression import Alias  # noqa
File "", line 967, in _find_and_load_unlocked
File "G:\vnstudio\lib\site-packages\sqlalchemy\schema.py", line 12, in
from .sql.base import SchemaVisitor  # noqa
File "", line 983, in _find_and_load
File "", line 983, in find_and_load
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql_init.py", line 8, in
from .expression import Alias  # noqa
File "G:\vnstudio\lib\site-packages\rqdatac\services\financial.py", line 12, in
from sqlalchemy import Column
File "G:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 40, in
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\expression.py", line 90, in
from .dml import Delete  # noqa
File "", line 671, in load_unlocked
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql_init.py", line 8, in
from .expression import Alias  # noqa
File "", line 967, in _find_and_load_unlocked
File "", line 967, in find_and_load_unlocked
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\expression.py", line 90, in
from .dml import Delete  # noqa
File "G:\vnstudio\lib\site-packages\sqlalchemy_init.py", line 10, in
from .schema import BLANK_SCHEMA  # noqa
File "G:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 6, in
from rqdatac import init as rqdata_init
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\dml.py", line 12, in
from . import util as sql_util
File "", line 316, in enter
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\expression.py", line 90, in
from .dml import Delete  # noqa
File "", line 677, in _load_unlocked
File "", line 677, in load_unlocked
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\dml.py", line 12, in
from . import util as sql_util
File "G:\vnstudio\lib\site-packages\sqlalchemy\schema.py", line 12, in
from .sql.base import SchemaVisitor  # noqa
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 21, in
go()
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\util.py", line 34, in
MemoryError
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\dml.py", line 12, in
from . import util as sql_util
File "", line 724, in exec_module
File "", line 724, in exec_module
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\util.py", line 22, in
from .ddl import sort_tables  # noqa
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql_init.py", line 8, in
from .expression import Alias  # noqa
File "G:\vnstudio\lib\site-packages\rqdatac_init.py", line 18, in __go
importlib.import_module(module_name)
File "", line 983, in find_and_load
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\util.py", line 34, in
from .schema import Column
File "", line 818, in get_code
File "", line 818, in get_code
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\ddl.py", line 17, in
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\expression.py", line 90, in
from .dml import Delete  # noqa
File "G:\vnstudio\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 967, in _find_and_load_unlocked
File "", line 983, in _find_and_load
File "", line 917, in get_data
File "", line 917, in get_data
File "", line 983, in _find_and_load
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\dml.py", line 12, in
from . import util as sql_util
File "G:\vnstudio\lib\site-packages\rqdatac\services\financial.py", line 12, in
from sqlalchemy import Column
File "", line 677, in _load_unlocked
File "", line 967, in _find_and_load_unlocked
MemoryError
MemoryError
File "", line 967, in find_and_load_unlocked
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\util.py", line 34, in
from .schema import Column
File "G:\vnstudio\lib\site-packages\sqlalchemy_init.py", line 10, in
from .schema import BLANK_SCHEMA  # noqa
File "", line 724, in exec_module
File "", line 677, in _load_unlocked
File "", line 677, in _load_unlocked
File "", line 983, in _find_and_load
File "G:\vnstudio\lib\site-packages\sqlalchemy\schema.py", line 12, in
from .sql.base import SchemaVisitor  # noqa
File "", line 818, in get_code
File "", line 724, in exec_module
File "", line 724, in exec_module
File "", line 967, in find_and_load_unlocked
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql_init.py", line 8, in
from .expression import Alias  # noqa
File "", line 917, in get_data
File "", line 818, in get_code
File "", line 818, in get_code
File "", line 677, in _load_unlocked
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\expression.py", line 90, in
from .dml import Delete  # noqa
MemoryError
File "", line 917, in get_data
File "", line 917, in get_data
File "", line 724, in exec_module
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\dml.py", line 12, in
MemoryError
MemoryError
File "", line 818, in get_code
File "", line 917, in get_data
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\util.py", line 22, in
from .ddl import sort_tables  # noqa
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\ddl.py", line 32, in
File "G:\vnstudio\lib\site-packages\sqlalchemy\sql\ddl.py", line 106, in DDLElement
"The :meth:.DDLElement.execute_at method is deprecated and will "
File "G:\vnstudio\lib\site-packages\sqlalchemy\util\deprecations.py", line 85, in decorate
header,
MemoryError
File "G:\vnstudio\lib\site-packages\sqlalchemy\util\deprecations.py", line 256, in _decorate_with_warning
decorated = warned(func)
File "G:\vnstudio\lib\site-packages\sqlalchemy\util\langhelpers.py", line 152, in decorate
File "G:\vnstudio\lib\site-packages\sqlalchemy\util\langhelpers.py", line 162, in _exec_code_in_env
exec(code, env)
MemoryError

使用VNStudio 2.1.2安装的话 多进程参数优化就没有这个问题了.   测试了VNStudio 2.1.5安装的版本一样会出现这个问题 不过这个版本只运行前面 5个python程序 就停止挂起了 也不报错 后面的python优化程序都在挂起 cpu也没动用

MemoryError是指内存不足程序挂了，请提高系统硬件配置，或者缩短优化的时间周期吧


Optimize signum function (3-25x faster)

Which issue does this PR close?

Didn't create an issue beforehand.
Rationale for this change

Same idea as https://github.com/apache/datafusion/pull/12881. Using the unary functions allow faster processing (most likely auto-vectorized code) by avoiding branching on nulls.
What changes are included in this PR?

Add bench
Apply unary

Are these changes tested?

Yes, with existing tests.
Are there any user-facing changes?
Yes, faster signum:
signum f32 array: 1024  time:   [419.68 ns 420.68 ns 421.84 ns]
                        change: [-93.679% -93.655% -93.628%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 7 outliers among 100 measurements (7.00%)
  3 (3.00%) high mild
  4 (4.00%) high severe

signum f64 array: 1024  time:   [1.1809 µs 1.1822 µs 1.1835 µs]
                        change: [-81.672% -81.630% -81.593%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 5 outliers among 100 measurements (5.00%)
  4 (4.00%) high mild
  1 (1.00%) high severe

signum f32 array: 4096  time:   [1.1124 µs 1.1137 µs 1.1153 µs]
                        change: [-96.060% -96.049% -96.039%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 8 outliers among 100 measurements (8.00%)
  6 (6.00%) high mild
  2 (2.00%) high severe

signum f64 array: 4096  time:   [5.4527 µs 5.4624 µs 5.4725 µs]
                        change: [-80.223% -80.176% -80.125%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 4 outliers among 100 measurements (4.00%)
  4 (4.00%) high mild

signum f32 array: 8192  time:   [2.2937 µs 2.2959 µs 2.2983 µs]
                        change: [-96.218% -96.199% -96.181%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) high mild
  1 (1.00%) high severe

signum f64 array: 8192  time:   [15.455 µs 15.534 µs 15.630 µs]
                        change: [-75.051% -74.722% -74.440%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 5 outliers among 100 measurements (5.00%)
  4 (4.00%) high mild
  1 (1.00%) high severe

Are we going to remove all usages of make_function_scalar_inputs_return_type?

Are we going to remove all usages of make_function_scalar_inputs_return_type?

If the replacement always has same or better performance, I don't see why not

Makes sense to me!
If this is an already established knowledge that replacing make_function_scalar_inputs_return_type with unary is an improvement, I don't see a need to benchmark this every time separately. IMO we could just do this change everywhere where the code pattern is same.

I don't mind adding the benchmarks, since they

are easy to add
will benefit the next contributor wanting to try some optimizations
motivate me by quantifying performance of the changes I make

Are we going to remove all usages of make_function_scalar_inputs_return_type?

Perhaps it could be a nice ticket to file / project ti organize

Are we going to remove all usages of make_function_scalar_inputs_return_type?

Perhaps it could be a nice ticket to file / project ti organize

filed https://github.com/apache/datafusion/issues/12923


Fix tcnative with tomcat container issue

Use OpenSsl's classloader to resolve class load issue under tomcat container.

@TimYi thanks!
Could you please squash the commits and update the commit message to match our template:
http://netty.io/wiki/writing-a-commit-message.html
Also please sign the ICLA:
http://netty.io/s/icla
Once done please ping me...

I tried to change the classloader, bug within tomcat container, it seemes all classes in package org.tomcat are loaded by UrlResourceLoader and will not use tcnative lib under webapp folder.
It seems only change the base package name of tanative can solve this safely.

change the base package name of tanative

AFAIK this is our plan

Yep

Am 17.06.2016 um 17:52 schrieb Scott Mitchell<EMAIL_ADDRESS>change the base package name of tanative
AFAIK this is our plan
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


set tab based on state

What does this PR do and why?
Provide a description of what this PR does. Link to any relevant GitHub issues, Notion tasks or Discord discussions.
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] (if relevant) I have tested this PR in all supported browsers.
[ ] (if relevant) I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #3700

PR #3701

PR #3702

PR #3703   👈

This comment was auto-generated by Graphite.

@wraeth-eth started a stack merge that includes this pull request via Graphite.


[REFRACTOR] Remove Backend.CUDA and Backend.CUDA_OLD

Both cuda/cuda-old have no good working case in July 2024. They perform much worse than exllama and exllama v2 kernels. The only saving grace is more bits supported but 99.9% of the cases will be using 4bit. We will not spend the time to support compat for 4 kernels when we can just pick the fastest 2.


Exception has occurred: InvalidStatusCode X

Whenever i run the script ProbabilityBased.py I get the error

This error is also at Callstack MainThread "server rejected WebSocket connection: HTTP 403"

Yup sadly bloxflip has blocked the program from connecting to their websockets. 403 means that the server blocked the request. I am not sure how to fix this as of now so for now the program is not functional

Oh okay

Yup sadly bloxflip has blocked the program from connecting to their websockets. 403 means that the server blocked the request. I am not sure how to fix this as of now so for now the program is not functional

it's the ddos mitigation ruleset that is blocking your program

I have fixed with with the use of selenium now


remove fps limit

This will not be a problem anymore after setting up the OpenGL Library, therefore is this issue finished.


Expose default fetcher

This is useful for those who want to use the default fetcher but modify some attributes
The file itself could be moved to tuf/ngclient/ but this is not done yet as sigstore-python is using this internal module. Move can be done once sigstore-python 1.0 is no longer relevant.
Fixes #2268
Signed-off-by: Jussi Kukkonen<EMAIL_ADDRESS>Please verify and check that the pull request fulfills the following
requirements:

[x] The code follows the Code Style Guidelines
[ ] Tests have been added for the bug fix or new feature
[x] Docs have been added for the bug fix or new feature

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.001%) to 98.139%

Totals

Change from base Build<PHONE_NUMBER>:
0.001%

Covered Lines:
1344

Relevant Lines:
1361

💛  - Coveralls

docs


tokenizer = Tokenizer.from_file(str(tokenizer_path)) Exception: data did not match any variant of untagged enum PyNormalizerTypeWrapper at line 49 column 3

tokenizer = Tokenizer.from_file(str(tokenizer_path))
Exception: data did not match any variant of untagged enum PyNormalizerTypeWrapper at line 49 column 3

win 10

I believe that you're encountering an issue with the tokenizers library. Eg.
https://stackoverflow.com/questions/77027040/running-llama-2-on-mac-using-huggingface
What version of tokenizers are you using? I might need to require a newer version.


Unwanted pop-up when editing element's label in simulator

While testing simulator I came across popup that showed while editing diode label that prompted to insert label but inserting it and accepting pop-up didn't changed the label
This issue is a part of my Usability Test
Are you working on this issue? (Yes/No)
No

@MrBartusek I would like to work on this but first please change/update the example screenshot (It is not visible).

Working on it.

@MrBartusek Should I remove the Label prompt or should I link the Prompt with Label Updation. According to me Removing the prompt is much better because we can change the Label from the Sidebar.


Improve byte buffer iteration speed by 90%

Overview
Improves the speed of comparing memory buffers by using an alternative to for in which is significantly slower when compiler optimizations are disabled - such as most unit test scenarios. SR-6983

Related Issues:

This PR adds a similar speedup as https://github.com/pointfreeco/swift-snapshot-testing/pull/628 but for the non-perceptual image comparison case
Closes https://github.com/pointfreeco/swift-snapshot-testing/issues/573 for the non-perceptual image comparison case

This seems to be a long time opened PR. We're in a bit of a situation right now where CI is executed on Intel, but local devices are Apple Silicon. The performance gain in this change is invaluable cost/time wise. Is there any reason this hasn't been merged in yet?

@Kaspik I wish I could help, but I'm not a maintainer on this repo. I wrote https://github.com/doordash-oss/swiftui-preview-snapshots which is a "plugin" for this repo, but it's purely a third party contribution.

Just a +1 from me. I‘ve been suffering from the slowness of the non-perceptual UIImage snapshot tests byte buffer comparison, and identified that it is exactly this loop causing the slowness. And I can confirm that the fix in this PR does work for me as expected, making the comparison massively faster. I may have to fork the repo and include this fix until this gets resolved.

Actually going to close this and re-open a PR with some small fixes and re-based on top of main.

We just released this in 1.15.1.


add option to disable session cache

Adds an option to disable the internal ssl session cache. This might help with memory utilization.

How does turning off the server-side session cache affect performance (memory vs. CPU + latency tradeoff)? The worst case might be if a Nifty server has a lot of clients which don't support session resumption via client tickets and the server-side session cache is turned off.
Should we also support configuring the size of server session cache? Netty-tcnative also has a SSLContext.setSessionCacheSize function.

The default is on, the server can choose to server  to disable it depending on what it knows about its clients. We already have a configuration option for cache size as well in OpensslServerConfiguration.
This option prevents any of the lookup or storage codepaths from being invoked as well which is more comprehensive than the cache size option.

LGTM

This was merged


Upgrade Newtonsoft Due to CVE in below 13.x versions

This repo is a clone and is not maintained. Is the original repo no longer available?

This repo is a clone and is not maintained. Is the original repo no longer available?

What is the original repo then?

I don't see the original repo public any more, so it may have been removed. It looks like there is another fork that is more active and ahead of this one: https://github.com/edgenuity/API-ClientLibrary-DotNet

I don't see the original repo public any more, so it may have been removed. It looks like there is another fork that is more active and ahead of this one: https://github.com/edgenuity/API-ClientLibrary-DotNet

Regardless, the security hole should still be fixed.


Can i download the images as per the categories?

I want dataset of images with Cars, Traffic signals, and pedestrian signals,
Is there any options to download images dataset of only this class?

I did a small script using the bbox_hierarchy.json file from dendrogram
You can download the file from here
`import json
class_hierarchy_path = './data/classes/bbox_hierarchy.json'
with open(class_hierarchy_path, 'r') as file:
class_hierarchy = json.load(file)
def find_children(json_input, keyword):
if isinstance(json_input, dict):
    for k, v in json_input.items():
        if  k =='name' and v == keyword:
            print('search in children of', v)
            keywords.update([keyword])
            if 'children' in json_input:
                find_children(json_input['children'], keyword=next(studied_class))
        elif k =='name' and keyword == '*':
                keywords.update([v])
                if 'children' in json_input:
                    find_children(json_input['children'], keyword=keyword)

elif isinstance(json_input, list):
    for json_item in  json_input:
        find_children(json_item, keyword)

`
Then you can write some paths from the dendrogram. Examples:
`categories = ['Entity.Food.',
'Entity.Drink.',
'Entity.Equipment.Tool.Kitchen utensil.',
'Entity.Indoor.Kitchenware.' ]
keywords = set()
for category in categories:
studied_class = iter(category.split('.'))
find_children(class_hierarchy, next(studied_class))
print('Found keywords are : ', keywords)`
Those keywords can be replaces with  trainable_classes_path in code of deepdive5 which I used to download images.

Any Solution to download only needed classes ?

https://github.com/EscVM/OIDv4_ToolKit

how can i use data augmentation on open images v4 for some classes ?

@cyrineee I guess you should search StackOverflow for the answer & replies to this thread shouldn't be derailed. Besides, I guess the thread should be closed as @keldrom's reply appears to work perfectly.


[super] Signup Flow

[x] Sign up button in frontend - main page and navbar
[x] Register basic identity - external: auth0

[ ] Verify identity - external: auth0

[x] Complete profile: username, full name (external: auth0)
[ ] Local "on new user" actions: Handle callback from external auth provider and perform "on new user" actions #9

[x] Create user object in local DB
[ ] Create secret key (for command line tools etc)
[ ] Create publisher and associate user as owner
[x] Issue them a token so they are signed in

[x] Redirect to dashboard (perhaps special flash message for new users!)
[ ] Send welcome email in background #10
[ ] Test "end to end" (mocking out external stuff) #11

What do we do if successful external auth signup but failure locally so no local user - i.e. we are in inconsistent state?
Diagrams
Key Steps and Implementors

### Technical Flow

Summarizing everything a learned about jwt so far - is is a terrible idea to use it for front-end app sessions. Most points are captured in the blogpost: https://www.reddit.com/r/node/comments/4nwmv1/stop_using_jwt_for_sessions/
I would recomment using flask sessions for frontend and jwt only for api.

FIXED. All sub-items now done.


Change dependency to use https://github.com/poise/application_javascript

Right now pm2 cookbook uses https://github.com/redguide/nodejs/ as a dependency.
For later versions of node and chef, this doesn't work out that well. Can the dependency be https://github.com/poise/application_javascript instead? Even Amazon is using that as the boilerplate for chef 12 and nodejs:
https://github.com/awslabs/opsworks-linux-demo-cookbook-nodejs

+1 I'm trying to use the pm2_cookbook with Opsworks and currently getting nowhere

Hi all, sorry for not getting back at this earlier but I've been busy in another world. Let me try and give it some time this week.

I didn't use application_javascript as that's intended to run node applications via npm start scripts.
I've updated it to use poise-javascript instead of nodejs instead, which allows us to install the node runtime and noe packages as we wish - I did have to link executable into the system path in order to maintain retrocompatibility.
@Dynamo6 @jonricaurte can you give the usePoiseJavascript branch a go?

Released version 0.7.0 to supermarket which should fix this.
Re-open if you still think this needs more work.

@miguelcnf awesome thanks!


Asyncify the handling of more requests

We can now harvest the benefits of migrating things to Swift concurrency and change the handling of all requests to asynchronously return the response instead of taking the implicit completion handler via the Request.
All changes are very straightforward. Again, this is probably best reviewed with whitespace changes hidden.

@swift-ci Please test

@swift-ci Please test

@swift-ci Please test Windows

@swift-ci Please test

@swift-ci Please test Windows


✨[Feature] Collection IO end to end support for TRT engine

Is your feature request related to a problem? Please describe.
Currently Torch-TensorRT is relying on Partitioning to support Tuple/List grouped inputs, which means for some models with Tuple/List input/output, they are not supported end to end. This could also affect performance. So, we should try to implement a change where when we go to construct the inputs to the engine we on the fly group them to be in the form of the graph input so that conversion can work end to end.

Pending PR #1599 .

@gs-olive Can we close this?

@narendasan I think we should get #1656 merged first - I can set that PR to auto-close this issue.


Missing: Overview in GetCollection

Hi
please add "Overview" to Collection class.
I think it's not described in the documentation but it works like Overview in GetMovie class.

https://github.com/LordMike/TMDbLib/commit/cc2b72411fbbe5ed511ac3fa27092c324a2d188c
Good spotting it's not in the apiary


Moar ports (and airbases)

Any nation with access to a sea should have at least a port. Same for airbases

https://forum.paradoxplaza.com/forum/threads/vic3-to-hoi4-converter-thread.1475076/post-29301717

In addition to the above, it is beneficial, particularly for the AI, that:

Each state has an airbase
Each coastal state has a naval base
Each state that isn't a 1-province island has a supply hub. (Naval bases act as supply hubs so a 1-province island has its supply needs covered by its naval base).


Implement tooltip

Open questions

[x] Can we remove the Figma requirement to truncate the tooltip text after 3 rows?: Yes, don't truncate after 3 lines

Why?
Tooltips in ui design and web development offer contextual information or additional details to a parent element.
Design
Figma link
Acceptance criteria

a tooltip can be shown with one of the following colors

[x] default
[x] danger

[x] an optional icon can be shown on the left side of the label
[x] the text is truncated with mutliline
[x] a the wedge is displayed and can be positioned manually via a property
the tooltip can be triggered via:

[x] hover
[x] click
[x] manually set boolean

Out of scope:

#730

Definition of Done

[ ] example usage added to alpha-test-app
[x] covered by component tests
[x] screenshot tests are updated
[x] follow-up tickets were created if necessary
[x] updated version + documentation is deployed
[x] Storybook can show the feature
[x] Set task to In Approval

Review

Storybook link
[ ] approved by designer @jannick-ux
[ ] approved by dev add dev tag

Implementation details

Use type OnyxColor for color property
Use class onyx-truncation-multiline for the truncation
Use z-index var(--onyx-z-index-flyout)

Applicable ARIA Pattern
Tooltip pattern

Question: should the tooltip be auto-applied to all components where a "title" property is set for consistency?

Question: should the tooltip be auto-applied to all components where a "title" property is set for consistency?

We currently have no components with a title property, right?

Question: should the tooltip be auto-applied to all components where a "title" property is set for consistency?

We currently don't have any components with a title property, right?

As Jonathan said, title can be set on every component and it will trigger the auto-tooltip of the browser on hover. If we set it explicitly as new property I think it would disable the browser auto-tooltip so we could place our own.. maybe we can discuss this in the next dev exchange :)
Btw, is the OnyxTooltip supposed to trigger on hover in the future?

If we set it explicitly as new property I think it would disable the browser auto-tooltip so we could place our own

I'd say you can just wrap the component inside the OnyxTooltip and not set the title then so its more flexible and we don't have to implement it for every component.

Btw, is the OnyxTooltip supposed to trigger on hover in the future?

Yes you can decide between hover and click, I am working on this

Notes from the call with Jannick: In the future, we should use our internal OnyxTooltip for the title use case, but for now, we can stick with the title property.

looks very nice. But 2 questions here:
Ist the icon optional or mandatory?
Have you considered the defined shadow?

Ist the icon optional or mandatory?
Its optional, I just added it per default to the example. Should I add an example without icon?

Have you considered the defined shadow?
Yes there is no shadow in dark mode. I also added a new onyx-box-shadow variable/token that we can also use in other components (e.g. the flyout/listbox) so we don't have to copy it everywhere.

Okay, so I approved this component.
Although we should have a little technical talk about the usage of shadows. I want to understand how the implementation and flexibility works in detail here.
But no hurry on that.
Good work!

Add example without icon

Check how click is working on mobile


server: fix scale for dummy template ingested vm

Description
For vm import, dummy template can be used - https://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines.html#dummy-template
Named as system-default-vm-import-dummy-template.iso, the template is marked as removed in the CloudStack DB.
For scale operation while trying to find vm template, server needs to find in all templates including removed.
Fixes #5096

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[ ] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

@blueorangutan package

@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: centos7 :heavy_check_mark: centos8 :heavy_check_mark: debian. SL-JID 198

@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: centos7 :heavy_check_mark: centos8 :heavy_check_mark: debian. SL-JID 199

Fix added in #5095


Avoid changing global context cache behavior on modules imports

Description
We are now avoiding changing the global context cache behavior when importing/using modules.
Motivation and context
Resolves #968
How has this been tested?
Tested manually with snippet found in #968
Change log

Global context cache behavior is now unchanged when importing modules.

There are a few other commented-out appearances in the codebase we can remove as well:

feptasks.py:27
tests/test_relative.py:28-31, since we don't need to use the Reference platform here
dispersed/smc.py:25
samplers/samplers.py:24

@jchodera Oh yeah, good catch, somehow I missed the last two when looking for matches. Thanks!

Is this okay? (it won't let me make a comment on it)
https://github.com/choderalab/perses/pull/977/files#diff-88ae267cea8ae4381fe65491208bff038f987c5ac99031e3ce9d44c375abac9eL109

This too:
https://github.com/choderalab/perses/pull/977/files#diff-09a4eea0080619a2bd6101be97e93a97d8f0c248d25cefc79e84b7df2a55506dR140

@mikemhenry : I can't tell which lines you're pointing to.

@mikemhenry : I can't tell which lines you're pointing to.

Sorry I didn't realize those links didn't keep what I had highlighted -- but they were the same as the cache import which you pointed out here https://github.com/choderalab/perses/pull/977#discussion_r844686290


[SPARK-3928][SQL] Support wildcard matches on Parquet files.

...arquetFile accept hadoop glob pattern in path.

@tkyaw - People are reporting issues with this patch on Spark 1.3.1 in the JIRA issue. You might want to take a look.


Distributed tracing not monitoring Service Bus

Hi,
I'm using the following libs:

applicationinsights: 2.1.4

@azure/service-bus: 7.3.0

I also have many micro-services, some of them pass events via service bus topic.
When I'm searching for transaction in azure appInsight console, the transaction cut when we publish message to topic.
It doesn't do the distributed tracing and continue the flow in the consumers.
I thought this is done behind the scene automatically.
If there was any option to get the operationID manually, I could implement it by myself, by passing it throw applicationSetting and run context with CorrelationContextManager.runWithContext method, but I didn't find any way to get it.
Any solution to support distributed tracing?
Thanks

Updates:
After installing manually the following libs:
https://www.npmjs.com/package/@opentelemetry/api
now I can see the publish message to service bus, image below:

This send event, return 1 (not success) even the request was succeed.
The issue is that it's not connected to no operation.
Beside that the subscription of the service bus, that processed the messages, doesn't connected to same operation, I even try to use same logic as this example (with diagnosic-id as parent operation ID):
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-end-to-end-tracing?tabs=net-standard-sdk-2
But the processed message was not connected to no operation.

@sigmaadam regarding second issue with wrong status, that must be resolved in next release as it was fixed in this PR, we still need to investigate about distributed tracing issue, we will add updates here.

@hectorhdzg
appinsights: 2.1.5
@azure/service-bus: 7.3.0
I still do not see the dependency call success or distributed tracing being solved.

core tracing enabled

thanks @vinutha93bnvs we use OpenTelemetry internal implementation in Azure SDK to auto generate telemetry in Application Insights, apparently @azure/service-bus is not setting the state of their spans, in the meantime @xiao-lix updated our logic to consider successful anything that was not marked as failure even if the status is never set, this must take care of wrong status in Application Insights.

@hectorhdzg
When can we expect this change release

@vinutha93bnvs we have monthly releases for this SDK, you can expect a new version at the end of the month.

In version applicationinsights: 2.1.5 it stopped sending the "send" events of service bus.
In version applicationinsights: 2.1.4 it worked (with response of 1)  but it did see the send event in application insight.

Hi,
This time it return 409 error:

@sigmaadam this issue is definitely different, is possible you are getting a real 409 error in your service? I cannot think of any scenario we add random response codes to the telemetry

All of my calls are getting 409, even I'm not getting any error or exception in my code
I'm using the following service bus library:
"@azure/service-bus": "^7.3.0",
Their signature is as follow:
sendMessages(messages: ServiceBusMessage | ServiceBusMessage[] | ServiceBusMessageBatch | AmqpAnnotatedMessage | AmqpAnnotatedMessage[], options?: OperationOptionsBase): Promise
In caes of an error they are sending exception,
I'm not getting any exception, I'm getting success.
So the 409 is not real.

This sound like an issue on how Service Bus package creates OpenTelemetry Spans we use to generate the telemetry in this SDK, I'm not able to repro with same versions, I'm getting resultCode=1 that means they are not adding correct attributes to the Span to include information like the HTTP result code, it will be good to track on their side so they can investigate further


Correct handling of tms scheme

Add tms to tile layer so leaflet displays tms maps correctly.

Thanks!


added documentation url

added documentation url for  String.fromCharCode() method

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


add option to always show day of week

When you're on vacation or retired it's easy to forget what day it is.

This is very much like in recent #216


Install broken, source missing

It seems the Wekan install in Yunohost is broken. From the logs I understand that the source can't be downloaded from 'https://releases.wekan.team' any more. It looks like it was pushed out of the page since the app moved on to newer versions.
2018-04-18 20:57:33,196 INFO     yunohost.hook <lambda> - [568.88] + src_format=tar.gz
2018-04-18 20:57:33,196 INFO     yunohost.hook <lambda> - [568.88] + '[' wekan-0.77.tar.gz = '' ']'
2018-04-18 20:57:33,196 INFO     yunohost.hook <lambda> - [568.88] + local local_src=/opt/yunohost-apps-src/wekan/wekan-0.77.tar.gz
2018-04-18 20:57:33,196 INFO     yunohost.hook <lambda> - [568.88] + test -e /opt/yunohost-apps-src/wekan/wekan-0.77.tar.gz
2018-04-18 20:57:33,196 INFO     yunohost.hook <lambda> - [568.88] + wget -nv -O wekan-0.77.tar.gz https://releases.wekan.team/wekan-0.77.tar.gz
2018-04-18 20:57:33,399 WARNING  yunohost.hook <lambda> - [568.88] https://releases.wekan.team/wekan-0.77.tar.gz:
2018-04-18 20:57:33,399 WARNING  yunohost.hook <lambda> - [568.88] 2018-04-18 20:57:33 Fout 404: Not Found.
2018-04-18 20:57:33,400 INFO     yunohost.hook <lambda> - [568.88] + ynh_exit_properly
2018-04-18 20:57:33,401 INFO     yunohost.hook <lambda> - [568.88] + local exit_code=8

I tried placing a download from Github local as /opt/yunohost-apps-src/wekan/wekan-0.77.tar.gz but then the checksum fails, so I must have the wrong file:
2018-04-18 21:06:36,457 INFO     yunohost.hook <lambda> - [568.102] + local local_src=/opt/yunohost-apps-src/wekan/wekan-0.77.tar.gz
2018-04-18 21:06:36,457 INFO     yunohost.hook <lambda> - [568.102] + test -e /opt/yunohost-apps-src/wekan/wekan-0.77.tar.gz
2018-04-18 21:06:36,457 INFO     yunohost.hook <lambda> - [568.102] + cp /opt/yunohost-apps-src/wekan/wekan-0.77.tar.gz wekan-0.77.tar.gz
2018-04-18 21:06:36,457 INFO     yunohost.hook <lambda> - [568.102] + echo '4d911547504fd6388779faf9f79cc4e527c2f2b4f40b8b7b82ad05783e2cd0a3 wekan-0.77.tar.gz'
2018-04-18 21:06:36,457 INFO     yunohost.hook <lambda> - [568.102] + sha256sum -c --status
2018-04-18 21:06:36,458 INFO     yunohost.hook <lambda> - [568.102] + ynh_die 'Corrupt source'
2018-04-18 21:06:36,458 WARNING  yunohost.hook <lambda> - [568.102] Corrupt source
2018-04-18 21:06:36,458 INFO     yunohost.hook <lambda> - [568.102] + echo 'Corrupt source'
2018-04-18 21:06:36,458 INFO     yunohost.hook <lambda> - [568.102] + exit 1
2018-04-18 21:06:36,458 WARNING  yunohost.hook <lambda> - [568.102] !!
2018-04-18 21:06:36,458 INFO     yunohost.hook <lambda> - [568.102] + ynh_exit_properly
2018-04-18 21:06:36,458 WARNING  yunohost.hook <lambda> - [568.102]   wekan's script has encountered an error. Its execution was cancelled.

Ah, thanks for the feedback. That's a bit annoying that those archive suddenly disappear :/
Yesterday, anmol opened a pull request to update the source file, but it didnt get tested so far.
If you want, you can try it. It should be as easy as running :
yunohost app install https://github.com/anmol26s/wekan_ynh

Yea I noticed the same problem. Was able to install it through anmol's link.

Should be fixed now that #12 is merged :wink:

This issue has started again. Isn't it better to use github release https://github.com/wekan/wekan/releases ?


Adds QCUSellinMay.py

Adds Python version of QuantConnect University Sell in May

This is great Alex! Please submit a new PR with the SellInMay algorithm and the build script updates separated. This helps other users who may have modified the build scripts apply the updates incrementally.


1.12.0: pytest is failin with sphinx 4.0.3

Describe the bug
Looks like pytest is failing when sphinx 4.0.3 is used
To Reproduce
Just normal build, install and test cycle used on building package from non-root account:

"setup.py build"
"setup.py install --root </install/prefix>"
"pytest with PYTHONPATH pointing to setearch and sitelib inside </install/prefix>

Expected behavior
No errors or warnings.
Additional context
Otput of the pytest
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-autodoc-typehints-1.12.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-autodoc-typehints-1.12.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.11, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tkloczko/rpmbuild/BUILD/sphinx-autodoc-typehints-1.12.0, configfile: pyproject.toml, testpaths: tests
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, flaky-3.7.0, hypothesis-6.14.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, cases-3.6.3, Faker-8.10.0
collected 89 items

tests/test_sphinx_autodoc_typehints.py .......................................................................................FF                                     [100%]

================================================================================= FAILURES =================================================================================
_________________________________________________________________________ test_sphinx_output[True] _________________________________________________________________________
tests/test_sphinx_autodoc_typehints.py:528: in test_sphinx_output
    assert text_contents == expected_contents
E   AssertionError: assert 'Dummy Module...-- function\n' == 'Dummy Module...-- function\n'
E     Skipping 1457 identical leading characters in diff, use -v to show
E     - a_property
E     + a_property: str
E     ?           +++++
E
E             Property docstring
E       ...
E
E     ...Full output truncated (177 lines hidden), use '-vv' to show
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: text
# srcdir: /tmp/pytest-of-tkloczko/pytest-78/dummy
# outdir: /tmp/pytest-of-tkloczko/pytest-78/dummy/_build/text
# status:
Running Sphinx v4.0.3
building [mo]: targets for 0 po files that are out of date
building [text]: targets for 1 source files that are out of date
updating environment: [new config] 1 added, 0 changed, 0 removed
reading sources... [100%] index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index
build succeeded, 2 warnings.

The text files are in ../../../../../tmp/pytest-of-tkloczko/pytest-78/dummy/_build/text.

# warning:
WARNING: Cannot treat a function defined as a local function: "dummy_module.Class.locally_defined_callable_field"  (use @functools.wraps)
WARNING: Cannot resolve forward reference in type annotations of "dummy_module.function_with_unresolvable_annotation": name 'a' is not defined

________________________________________________________________________ test_sphinx_output[False] _________________________________________________________________________
tests/test_sphinx_autodoc_typehints.py:528: in test_sphinx_output
    assert text_contents == expected_contents
E   AssertionError: assert 'Dummy Module...-- function\n' == 'Dummy Module...-- function\n'
E     Skipping 1457 identical leading characters in diff, use -v to show
E     - a_property
E     + a_property: str
E     ?           +++++
E
E             Property docstring
E       ...
E
E     ...Full output truncated (168 lines hidden), use '-vv' to show
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: text
# srcdir: /tmp/pytest-of-tkloczko/pytest-78/dummy
# outdir: /tmp/pytest-of-tkloczko/pytest-78/dummy/_build/text
# status:
Running Sphinx v4.0.3
building [mo]: targets for 0 po files that are out of date
building [text]: targets for 1 source files that are out of date
updating environment: [new config] 1 added, 0 changed, 0 removed
reading sources... [100%] index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index
build succeeded, 2 warnings.

The text files are in ../../../../../tmp/pytest-of-tkloczko/pytest-78/dummy/_build/text.

# warning:
WARNING: Cannot treat a function defined as a local function: "dummy_module.Class.locally_defined_callable_field"  (use @functools.wraps)
WARNING: Cannot resolve forward reference in type annotations of "dummy_module.function_with_unresolvable_annotation": name 'a' is not defined

========================================================================= short test summary info ==========================================================================
FAILED tests/test_sphinx_autodoc_typehints.py::test_sphinx_output[True] - AssertionError: assert 'Dummy Module...-- function\n' == 'Dummy Module...-- function\n'
FAILED tests/test_sphinx_autodoc_typehints.py::test_sphinx_output[False] - AssertionError: assert 'Dummy Module...-- function\n' == 'Dummy Module...-- function\n'
======================================================================= 2 failed, 87 passed in 1.73s =======================================================================

ping ..

I am so thoroughly swamped with my other work that I cannot currently take care of this project, hence my plea for help (#146). Two people have volunteered but the other one gave up after a month or two without getting any work done, and the other one just ghosted me soon after.

I understand ..

Fixed by https://github.com/agronholm/sphinx-autodoc-typehints/pull/188

That commit does not apply on top of last release.
Will retest that on next release :)
Do you have maybe some plans to make new release soon? :P
Thx

It does, and is already out.

Just tested and all look clean now.
Thank you :)


Look into the cleanest way to concat files - getting a lot of requests now!

BOOM New architecture


where-is-what script missing out on some SLD etched cards

a bug for @ZeldaZach, the script that builds the map for what card is in which product seems to ignore eteched cards, in particular from SLD - if you look for the Secret Lair Drop Crocodile Jacksons Monstrous Menagerie Etched cards, none have the right source product id mapped
im not sure if this is tied to #33 or if it's different

it seems like commander cards from decklists are being missed too

also tokens are skipped/ignored


Update github package webhook trigger with sample output

Update the docs in catalog
To add a sample JSON object what the trigger emits like
{
    "repository": {
        "tags_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/tags",
        "statuses_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/statuses/{sha}",
        "has_downloads": true,
        "blobs_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/git/blobs{/sha}",
        "git_refs_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/git/refs{/sha}",
        "issue_events_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/issues/events{/number}",
        "name": "openwhisk-github-integration",
        "has_issues": true,
        "watchers_count": 0,
        "forks": 0,
        "private": false,
        "size": 5,
        "open_issues_count": 0,
        "open_issues": 0,
        "subscribers_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/subscribers",
        "stargazers_count": 0,
        "url": "https://github.com/csantanapr/openwhisk-github-integration",
        "full_name": "csantanapr/openwhisk-github-integration",
        "releases_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/releases{/id}",
        "description": "Repository to demo openwhisk triggers and actions",
        "trees_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/git/trees{/sha}",
        "branches_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/branches{/branch}",
        "pushed_at":<PHONE_NUMBER>,
        "git_url": "git://github.com/csantanapr/openwhisk-github-integration.git",
        "collaborators_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/collaborators{/collaborator}",
        "subscription_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/subscription",
        "languages_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/languages",
        "has_wiki": true,
        "commits_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/commits{/sha}",
        "contents_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/contents/{+path}",
        "fork": false,
        "git_tags_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/git/tags{/sha}",
        "downloads_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/downloads",
        "svn_url": "https://github.com/csantanapr/openwhisk-github-integration",
        "milestones_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/milestones{/number}",
        "id": 56718386,
        "compare_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/compare/{base}...{head}",
        "notifications_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/notifications{?since,all,participating}",
        "comments_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/comments{/number}",
        "pulls_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/pulls{/number}",
        "teams_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/teams",
        "forks_count": 0,
        "merges_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/merges",
        "stargazers": 0,
        "keys_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/keys{/key_id}",
        "deployments_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/deployments",
        "master_branch": "master",
        "contributors_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/contributors",
        "forks_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/forks",
        "clone_url": "https://github.com/csantanapr/openwhisk-github-integration.git",
        "created_at":<PHONE_NUMBER>,
        "hooks_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/hooks",
        "ssh_url": "git@github.com:csantanapr/openwhisk-github-integration.git",
        "owner": {
            "email"<EMAIL_ADDRESS>            "name": "csantanapr"
        },
        "html_url": "https://github.com/csantanapr/openwhisk-github-integration",
        "archive_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/{archive_format}{/ref}",
        "default_branch": "master",
        "updated_at": "2016-04-20T20:20:54Z",
        "issues_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/issues{/number}",
        "assignees_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/assignees{/user}",
        "events_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/events",
        "watchers": 0,
        "issue_comment_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/issues/comments{/number}",
        "labels_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/labels{/name}",
        "has_pages": false,
        "git_commits_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/git/commits{/sha}",
        "stargazers_url": "https://api.github.com/repos/csantanapr/openwhisk-github-integration/stargazers"
    },
    "before": "cd9acb00210e7badf191bf7243d6572259d972f5",
    "pusher": {
        "email"<EMAIL_ADDRESS>        "name": "csantanapr"
    },
    "ref": "refs/heads/master",
    "commits": [
        {
            "author": {
                "username": "csantanapr",
                "email"<EMAIL_ADDRESS>                "name": "Carlos Santana"
            },
            "timestamp": "2016-04-20T17:12:42-04:00",
            "url": "https://github.com/csantanapr/openwhisk-github-integration/commit/b8a6922f88d1a83999a02f083de0674ba9183141",
            "tree_id": "01f437c196b3c7561c49d30a7856cecdf399d2e9",
            "removed": [],
            "modified": [
                "README.md"
            ],
            "added": [],
            "id": "b8a6922f88d1a83999a02f083de0674ba9183141",
            "distinct": true,
            "message": "update readme to trigger event",
            "committer": {
                "username": "csantanapr",
                "email"<EMAIL_ADDRESS>                "name": "Carlos Santana"
            }
        }
    ],
    "after": "b8a6922f88d1a83999a02f083de0674ba9183141",
    "forced": false,
    "sender": {
        "gists_url": "https://api.github.com/users/csantanapr/gists{/gist_id}",
        "organizations_url": "https://api.github.com/users/csantanapr/orgs",
        "gravatar_id": "",
        "url": "https://api.github.com/users/csantanapr",
        "repos_url": "https://api.github.com/users/csantanapr/repos",
        "received_events_url": "https://api.github.com/users/csantanapr/received_events",
        "id": 1094878,
        "following_url": "https://api.github.com/users/csantanapr/following{/other_user}",
        "site_admin": false,
        "subscriptions_url": "https://api.github.com/users/csantanapr/subscriptions",
        "starred_url": "https://api.github.com/users/csantanapr/starred{/owner}{/repo}",
        "html_url": "https://github.com/csantanapr",
        "login": "csantanapr",
        "type": "User",
        "events_url": "https://api.github.com/users/csantanapr/events{/privacy}",
        "avatar_url": "https://avatars.githubusercontent.com/u/1094878?v=3",
        "followers_url": "https://api.github.com/users/csantanapr/followers"
    },
    "head_commit": {
        "author": {
            "username": "csantanapr",
            "email"<EMAIL_ADDRESS>            "name": "Carlos Santana"
        },
        "timestamp": "2016-04-20T17:12:42-04:00",
        "url": "https://github.com/csantanapr/openwhisk-github-integration/commit/b8a6922f88d1a83999a02f083de0674ba9183141",
        "tree_id": "01f437c196b3c7561c49d30a7856cecdf399d2e9",
        "removed": [],
        "modified": [
            "README.md"
        ],
        "added": [],
        "id": "b8a6922f88d1a83999a02f083de0674ba9183141",
        "distinct": true,
        "message": "update readme to trigger event",
        "committer": {
            "username": "csantanapr",
            "email"<EMAIL_ADDRESS>            "name": "Carlos Santana"
        }
    },
    "compare": "https://github.com/csantanapr/openwhisk-github-integration/compare/cd9acb00210e...b8a6922f88d1",
    "deleted": false,
    "created": false
}

Actually it's better to point to the Github docs on what the payload of the webhook looks like


[MISC] Split hpp/cpp

In general, you have now added a hpp for every cpp right? I guess we could spare some of the hpps because we don't need to expose most stuff do we?

It could be a follow up. Since this is an application and not a library per se, it's not too important. But "exported" headers could be in include, "internal" headers in src.


bump(kafka-setup): client version bump

Missing previous version on source
Checklist

[ ] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[ ] Links to related issues (if applicable)
[ ] Tests for the changes have been added/updated (if applicable)
[ ] Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
[ ] For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

Please wait on green ci


Universal sentence encoder unsupervised resume training

Hi,
I would like to resume training of the USE in order to better fit my domain specific text (cryptocurrency related tweets) in order to cluster together tweets about the same subject.
I have looked at issues #46 #36 #110 but the thing is that I do not have any labels for the tweets.
Can I resume training with no labels?
Does it make sense to use random labels?
Do I have to try and collect labels even though it's a pure unsupervised problem?
Thanks,
Yoav

Not tensorflow hub googler. You could use a loss function that computes the semantic similarity of the tweets as the optimization objective. This model uses cosine similarity between a source and target and seems like it might fit your problem space.

This is generic ML question not related with hub. Closing.


Fine_tune_PaliGemma.ipynb: The notebook's comments claim that "we will set the pad tokens and image tokens to -100" but the code doesn't seem to do this

Hi, I looked it up and I can't find any setting-tokens-to--100 code in that notebook...

@joris-sense I have developed that notebook as we developed transformers integration, back then the processor didn't handle it on it's own (here with masked_fill) now it does so there's no need. I will change my comment, thanks for flagging I missed it!


Adding support for reCAPTCHA V3

Adding support for reCAPTCHA V3 including extra fields in the VerifyResponse model that are used in reCAPTCHA V3

Adding nullable Score and Action properties to VerifyResponse should do what is needed without duplicating methods


Using dict or string to set browser location to any arbitrary location

I did two things in the PR. Let me know if this makes sense for you.

I went through and reformatted some things to make everything PEP8 compliant.
I changed the API for eel.start to accept arguments either in string or dict fashion.

eel.start('/mypage.html', options=options)

Or
mypage = {
    'scheme': 'https',
    'host': 'myhost',
    'port': 8888,
    'page': 'mypage.html'
}
eel.start(mypage, options=options)

This would open the browser to https://myhost:8888/page.html.
If opting for using the dict the defaults for each are as follows:
dict(
    scheme='http',
    host='localhost',
    port=8000,
    page=''
)

The goal of this was to allow for the browser session to render a page NOT served by the bottle server. This is accomplished by allowing the user to specify any arbitrary location. The effect of this is to allow applications to be built using webpack (example, react or vue).
However, in order to accomplish this on the frontend, I needed to add a method to the JS.
Therefore, if the browser is to render a page not server by bottle, then the user needs to explicitly call
eel.set_host('ws://localhost:8080')

See #30. This solves half the problem.

@ahopkins Thanks for the pull request, I will review it today. Sorry for inactivity, I've been on holiday for a few weeks

No worries! I'm on a little break myself now. And I'll probably pick back up my project using Eel next week.


Add startdate

Adds a startdate option to the args in qqa monitor
Addresses issue #86

adds if startdate blocks to both find_unprocessed_expdir and find_latest_expdir functions in run.py
then uses np.searchsorted to determine the index of a sorted nights list where startdate would be placed
limits the dates to consider processing with this index

TODO: somehow alert the user that nights are being skipped before startdate

Looks good, thanks.  I think it's ok to not alert the user about nights that are being skipped.  We can add that later if we find that we really want it.  Merging now so that I can start using this feature.


MM-20339 add E2E for "Can change Enable Custom Branding setting"

Summary
Test the ability to change "Custom Branding setting" setting
Test steps:
Login as a sysadmin and visit the page "/admin_console/site_config/customization" directly
Verify that setting is visible and matches text content
Verify that help setting is visible and matches text content
Set EnableCustomBrand checkbox to true
Verify that the value is saved, directly via REST API
Ticket Link
Jira ticket MM-20339
closes https://github.com/mattermost/mattermost-server/issues/13169
Related Pull Requests
Related PR - #4210

@saturninoabril hi. its ready

/update-branch

Error trying to update the PR.
Please do it manually.

@nadalfederer Please update and fix merge conflicts.
@jespino Ready for review.

/check-cla

@saturninoabril is this review from the QA perspective?

@jespino It's on dev review but I get what you mean. I'll improve review request for Cypress.


Support for django.models.JSONField

Hi
As I am using the last Django version which has JSONField integrated, and it will be great if we add the support for it to prevent adding external library.
I will suggest the following change on jsonfield.py file :
if USE_JSONFIELD:
    try:
        from models import JSONField

        DataField = JSONField
    except ImportError as err:
        try:
            from jsonfield_compat import JSONField, register_app

            DataField = JSONField
        except ImportError as err:
            try:
                from django_mysql.models import JSONField

                DataField = JSONField

            except ImportError:
                raise ImproperlyConfigured(
                    "You must either install django-jsonfield + "
                    "django-jsonfield-compat, or django-mysql as an "
                    "alternative, if you wish to use a JSONField on your "
                    "actions"
                )

please provide a full PR

This has been resolved in the now merged #474

This has been resolved in the now merged #474


seems method ‘renderFixedHeader’ doesn't work

Views return by method ‘renderFixedHeader’ can't be seen ,I can't find the reason..

Right now fixed headers only renders if sticky header renders. This can be fixed.
In the meantime, a workaround is to provide an empty sticky header.

@coolneka This is now fixed in 0.17.3.


Introduce upgrade tests

This PR introduces a new CI job to the live tests which first performs an install using the current preview build, performs an upgrade to the new built that triggered the CI, and then runs the tests.
Doing so will help us catch regressions that a change may cause in older versions of FOSSBilling.
Caveat: if the preview download server goes down, the tests will fail.
I would also rather perform these tests using the last release of FOSSBilling, but that would incorrectly inflate the download count which is why I haven't done it here.

This seems like the ideal situation to use the tagged Docker containers, imo.


experiment: rewrite page ID as list of child indices

This currently doesn't make much impact, but it's based off of the observation that the warmup worker
spends a lot of its time comparing PageIDs and we might be able to optimize by speeding up eq.
That said, we could also use this to optimize by partitioning the page cache based off of page depth,
and other such things, as the new structure gives more semantic information than the old one.
For now, I don't recommend merging.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#111  👈
#110
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rphmeier and the rest of your teammates on  Graphite


Kill the data bag!!

The logic in samba::server should be pulled out into a lwrp. Then I can use this cookbook in my environment cookbook with out having to manage more data bags (pain in the back).
The example in the readme would become something like
samba_share 'export' do
  comment 'Exported Share'
  path '/srv/export'
  guest_ok false
  printable false
  write_list ['jtimberman']
  create_mask 0664
  directory_mask 0775
end

See #35 and #36.


PushMetricExporter forceFlush behavior

I'm building a Metrics Exporter for Azure Monitor and noticed some weird behavior in PushMetricExporter interface, this one is exposing forceFlush, I would expect the MetricReader to be the one having a reference to the actual metrics to export and just send them to the exporter whenever forceFlush is executed, currently PeriodicExportingMetricReader is just calling forceFlush in the exporter, instead of collecting the metrics and pass them to the exporter, is it expected for the Exporter to also collect the metrics whenever is a forceFlush executed?, how exactly forceFlush will work in the Exporter?

Same for selectAggregationTemporality this should be part of MetricReader and not Exporter, unless I'm missing how the PushMetric Exporter should work

forceFlush stands for ensuring that the export of any Metrics the exporter has received and its returned promise indicates that the export is completed. Might be related: https://github.com/open-telemetry/opentelemetry-js/pull/3039#discussion_r904463781.
selectAggregationTemporality is needed to satisfy the requirements that a push metric exporter registered with a  PeriodicExportingMetricReader can determine their preferred aggregation temporality as PeriodicExportingMetricReader doesn't have its own preference.

After checking with the spec, I found that for a metric reader if the preferred aggregation temporality is not specified, AggregationTemporality.Cumulative should be used instead of consulting the underlying metric exporter:

https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#metricreader
To construct a MetricReader when setting up an SDK, the caller SHOULD provide at least the following:

...
The default output temporality (optional), a function of instrument kind. If not configured, the Cumulative temporality SHOULD be used.

/cc @seemk


hub site docs

This is the hub site documentation. Please review before going live.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/features/REST-cancreate-method.md
:white_check_mark:Succeeded

docs/features/REST-getbyid-method.md
:white_check_mark:Succeeded

docs/features/REST-hubsitedata-method.md
:white_check_mark:Succeeded

docs/features/REST-hubsites-method.md
:white_check_mark:Succeeded

docs/features/REST-joinhubsite-method.md
:white_check_mark:Succeeded

docs/features/REST-registerhubsite.method.md
:white_check_mark:Succeeded

docs/features/REST-sphubsite-type.md
:white_check_mark:Succeeded

docs/features/REST-sphubsitedata-type.md
:white_check_mark:Succeeded

docs/features/REST-synchubsitetheme-method.md
:white_check_mark:Succeeded

docs/features/REST-unregisterhubsite-method.md
:white_check_mark:Succeeded

docs/features/create-hub-site-with-powershell.md
:white_check_mark:Succeeded

docs/features/hub-site-overview.md
:white_check_mark:Succeeded

docs/features/hub-site-powershell.md
:white_check_mark:Succeeded

docs/features/hub-site-rest-api.md
:white_check_mark:Succeeded

docs/toc.yml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/features/REST-cancreate-method.md
:white_check_mark:Succeeded

docs/features/REST-getbyid-method.md
:white_check_mark:Succeeded

docs/features/REST-hubsitedata-method.md
:white_check_mark:Succeeded

docs/features/REST-hubsites-method.md
:white_check_mark:Succeeded

docs/features/REST-joinhubsite-method.md
:white_check_mark:Succeeded

docs/features/REST-registerhubsite.method.md
:white_check_mark:Succeeded

docs/features/REST-sphubsite-type.md
:white_check_mark:Succeeded

docs/features/REST-sphubsitedata-type.md
:white_check_mark:Succeeded

docs/features/REST-synchubsitetheme-method.md
:white_check_mark:Succeeded

docs/features/REST-unregisterhubsite-method.md
:white_check_mark:Succeeded

docs/features/create-hub-site-with-powershell.md
:white_check_mark:Succeeded

docs/features/hub-site-overview.md
:white_check_mark:Succeeded

docs/features/hub-site-powershell.md
:white_check_mark:Succeeded

docs/features/hub-site-rest-api.md
:white_check_mark:Succeeded

docs/toc.yml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/features/REST-cancreate-method.md
:white_check_mark:Succeeded

docs/features/REST-getbyid-method.md
:white_check_mark:Succeeded

docs/features/REST-hubsitedata-method.md
:white_check_mark:Succeeded

docs/features/REST-hubsites-method.md
:white_check_mark:Succeeded

docs/features/REST-joinhubsite-method.md
:white_check_mark:Succeeded

docs/features/REST-registerhubsite.method.md
:white_check_mark:Succeeded

docs/features/REST-sphubsite-type.md
:white_check_mark:Succeeded

docs/features/REST-sphubsitedata-type.md
:white_check_mark:Succeeded

docs/features/REST-synchubsitetheme-method.md
:white_check_mark:Succeeded

docs/features/REST-unregisterhubsite-method.md
:white_check_mark:Succeeded

docs/features/create-hub-site-with-powershell.md
:white_check_mark:Succeeded

docs/features/hub-site-overview.md
:white_check_mark:Succeeded

docs/features/hub-site-powershell.md
:white_check_mark:Succeeded

docs/features/hub-site-rest-api.md
:white_check_mark:Succeeded

docs/toc.yml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

I've completed integrating feedback. @VesaJuvonen  can you please merge and publish this live? Thanks!

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/features/REST-cancreate-method.md
:white_check_mark:Succeeded

docs/features/REST-getbyid-method.md
:white_check_mark:Succeeded

docs/features/REST-hubsitedata-method.md
:white_check_mark:Succeeded

docs/features/REST-hubsites-method.md
:white_check_mark:Succeeded

docs/features/REST-joinhubsite-method.md
:white_check_mark:Succeeded

docs/features/REST-registerhubsite.method.md
:white_check_mark:Succeeded

docs/features/REST-sphubsite-type.md
:white_check_mark:Succeeded

docs/features/REST-sphubsitedata-type.md
:white_check_mark:Succeeded

docs/features/REST-synchubsitetheme-method.md
:white_check_mark:Succeeded

docs/features/REST-unregisterhubsite-method.md
:white_check_mark:Succeeded

docs/features/create-hub-site-with-powershell.md
:white_check_mark:Succeeded

docs/features/hub-site-overview.md
:white_check_mark:Succeeded

docs/features/hub-site-powershell.md
:white_check_mark:Succeeded

docs/features/hub-site-rest-api.md
:white_check_mark:Succeeded

docs/toc.yml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

thx David, will slightly adjust the structure to locate the hub documents under "hubsites" folder - so that we get the logical feature docs under specific folders - this will reduce the future overhead on doc maintenance.


Pull the latest version of a letter template

User story: letters are updating by campaigns depending on which stage an action is in the middle of. Today we call in the letter template but if there is a new version

it isn’t updated and the old template shows up.

Starting point
Call either an 'active' version from lob or storing the version in the campaign model

Hi @paramsiddharth may I work on this?

@nancy-luu realized that we will be updating CampaignID within letterversion.js and that will be called in lob.js in createLetter - updated instructions to reflect this

Hi @manishapriya94 and @Alex-is-Gonzalez , please see my notes below for this issue.
When trying to implement the suggested solution above, there are a few points that I feel needs clarity.

[ ]  Line 5: Modify router method to retrieve the latest version of the letter from the Lob API:
Assuming this step should be implemented in the letter_version.js file, the suggested solution above is not clear on how the latestVersion would be sent to the lob.js or LetterLoad.vue.
Currently in letter_version.js, we find letterVersions by querying with campaign_id. (see code below)
In the code snippet provided above,  is const letterId = this.$route.params.id the same as what is happening in our current code below using campaignId? Also, in the current code we send the response as letterVersions. In the suggested solution, there is no way for the response to be sent.

router.get('/:campaignId', async (req, res) => {
  const campaignId = req.params.campaignId
  try {
    const letterVersions = await LetterVersion.query().where(
      'campaign_id',
      campaignId
    )
    res.send(letterVersions)
  } catch (error) {
    console.log(error)
    res.status(500).send({ error: 'Whoops' })
  }
})

[ ] Modify the campaignId after try in line 6 action to retrieve the latest version of the letter from the Lob API and nest in the try from earlier :
[ ] Line 235: Modify the server-side route handler for the /api/letters/:id/versions/latest endpoint to retrieve the latest version of the letter from the Lob API:
In a previous meeting we had discussed that the getLatestVersion function could be implemented inside the /createLetter route in Lob.js but the solution above also suggests that another route needs to be defined for this function to get the latest letter version.
Does is make more sense to abstract the getLatestVersion function outside of the /createLetter route?
In a broader perspective, how do letter_versions.js, LetterLoad.vue, and lob.js work together to ensure the latest letter template is effectively accessed? What is the source of the data, which file initiates its transmission, and is there a need to declare any specific action or method within the Vue component?

For reference from Devs + QA
Data Structures
Campaigns
This is the major data table we use to onboard every advocacy

id is the key identifier as there can be multiple orgs to one campaign
organization is an array of strings of the orgs behind a particular advocacy
name the name of the advocacy
cause the area the cause focuses on
page_url refers to the main site hosting the information to learn more about said cause
letters_counter how many letters have been sent to date

[ ] need to add a picture_url for campaign card
[ ] a description column
[ ] letters_goal column

letter_versions
This data is sent to Lob, primarily template_id which is specific to each campaign by office division.
This data structure triages the letter object that's being displayed and sent, specific to the template_id of the region that's being picked by the office.

keyID: use to create join or belong relationships for Users, Campaigns, and Letters sent
template_id: lob html template
office_division: each campaign has a different letter dependent on filter. Federal is the default.
state: Custom versions per state
county: Custom versions per county
CampaignID: maps to campaigns table


Fix panic that occurred when "insecure-skip-verify" was not set.

Previously an "empty" function was passed to credhub.New() which promptly panicked.
Change error handling to fail fast if an error is returned.

Abandoning in favour of https://github.com/concourse/atc/pull/213


msftbot locks unresolved issues

Hello everyone, I stumbled upon these three issues and I've noticed all three of them have been locked as resolved by msftbot even though they were not actually resolved nor assigned to a milestone.
https://github.com/aspnet/AspNetCore/issues/8071
https://github.com/aspnet/AspNetCore/issues/10657
https://github.com/aspnet/AspNetCore/issues/11745
Maybe this is the intended behavior but... isn't it a bit too harsh to prevent users from adding their feedback to an ongoing conversation like that?

@anurse

See https://github.com/aspnet/AspNetCore/blob/master/docs/IssueManagementPolicies.md (specifically the sections on commenting on closed issues and locking closed issues).  The reason to do this is not to stifle feedback, but rather to make sure that it's going to an issue someone will actually look at.

Yep, @Pilchie is correct here. It's actually done to make feedback on closed issues more visible. Comments on a closed issue are often lost, since they only notify other participants (who may not be able to handle them right away) and then because they are closed they don't show up in our normal triage process.
The bot locks the issue precisely to encourage what you just did @BrightSoul :). Posting a new issue to propose revisiting a discussion that was previously closed.
Note that the use of "Resolution" labels you may have seen elsewhere is a newer practice and many closed issues may pre-date them, so just because an issue doesn't have one doesn't mean the discussion wasn't resolved.
Looking at https://github.com/aspnet/AspNetCore/issues/8071 it looks like it was resolved by @SteveSandersonMS 's comments describing our current planning for Blazor recompilation.
https://github.com/aspnet/AspNetCore/issues/10657 was closed because we believed it to be fixed. If that's not the case, please feel free to file a new bug! In fact, it looks like someone did indicate that the bug may not be fixed but that question was lost and not followed up on (exactly why we discourage commenting on closed issues!).
https://github.com/aspnet/AspNetCore/issues/11745 was closed because the question was answered. Further discussions indicated a request for a feature but no issue was filed to track that.

Thank you @anurse and @Pilchie for your detailed replies. I think I understand your point of view on this matter, even though I don't completely agree. Let me clarify, then we can consider this issue closed.

Looking at #8071 it looks like it was resolved by @SteveSandersonMS 's comments describing our current planning for Blazor recompilation.
Ok, but is this really enough to consider an issue resolved? I think an issue like that, which is clearly a feature request (even if submitted in the shape of a question) should stay open and then marked as resolved only when said feature has been merged to a release branch (or rejected). If anything, it would help us developers/writers/trainers have some visibility into your backlog.

our current planning for Blazor recompilation.
I admit I couldn't understand what your current plans are for this feature.

@SteveSandersonMS said it would be restored in the "longer term";
Then @danroth27 said it would be done for .NET Core 3.0 (which was not);
No further update was given and no milestone was set.

I think I should just assume it's not been triaged yet or that it won't be released for .NET 5 either. How should people express their interest in this issue now, by opening many other duplicated issues?
I thought I would share my reasoning here since other developers could be puzzled like I was. I mean, @los93sol asked "Did the fix make it in?" and no proper response was given before the issue was locked like that.
Again, thanks for your attention.
Moreno

Fair questions, I was just clarifying how our process treats things. Things do sometimes get closed before everyone has reached consensus, which is why the bot has a lag of 30 days of inactivity before locking. Sometimes due to a mistake, different plans for tracking work, etc. If an issue is locked and there are still open questions, it's totally reasonable to open a new one referencing the old one and asking for further clarification. Perhaps it was a mistake or the additional questions were missed? Or perhaps there were other reasons the issue wasn't reopened that could have been made clear. The bot doesn't know why the issue went dormant, it just knows that the issue is closed and dormant and thus further replies are likely to be lost. So it locks the issue in order to encourage further responses via a more visible mechanism (a new issue).
It's up to the Blazor team how they want to handle specific feature requests like this, so I'll leave it to them to discuss the future of this specific issue.

Thanks for clarification @anurse 👍


Typo

Your search was running too long. Please review your search criteria. Advise is contained in the Help pages.
correct to 'advice'

Another potential task for our new Ruby dev.

Typo no longer there- must have already been fixed in Reg before we merged.

verified already fixed in Reg. This is deployed on test2.


Apostrophes in indented code blocks are double-encoded and then highlighted

Here's a quick repro of the problem. Ran into this while trying to use FsReveal to create a presentation in which I show examples in both F#, C# and JS. I can work around it for many things, but chars in C# are hard to do without apostrophes :).
#I "../packages/FSharp.Formatting.2.4.30/lib/net40"
#I "../packages/RazorEngine.3.3.0/lib/net40"
#I "../packages/FSharp.Compiler.Service.0.0.62/lib/net40"
#r "FSharp.Markdown.dll"
#r "FSharp.Literate.dll"
#r "FSharp.CodeFormat.dll"

open FSharp.Literate

Literate.ParseScriptString """
(**
Look ma', I'm good.

    [lang=js]
    var but = 'I\'m not so good...';
*)
"""
|> Literate.WriteHtml

(*

Look ma', I'm good.

var but = &#39;I\&#39;m not so good...&#39;;

*)

Seems to be the same issue as #249

this also creeps into FsReveal and makes F# presentations which show generics parameters a mess.
@tpetricek could you please take a look.

did you try to save your index.md in UTF-8?


API Decomissioned?

"We would like to inform you that as of April 29th, 2022, the MVP Portal API will be decommissioned due to technical support limitations and incompatibility with Microsoft
accessibility guidelines. If you would like to add contributions to your profile, you can access the
MVP Private page and
perform this task directly."

Thanks @JustinGrote
Yeah :disappointed: ... i saw that yesterday.
I guess this is the end of the road for this module.
We could probably do things around the browser but not sure we want to that route.

This module from @ZanattaMichael is leveraging Selenium to do the same thing via a browser: https://github.com/ZanattaMichael/SelMVP
Could be an alternative...

Hi everyone,
Module still works however the MVP website is not great and can throw 500s when loading the contributions page.
Make sure you update the web driver.
Email me if you have issues.
Cheers,
Michael.
Sent from my iPhone

On 30 Apr 2022, at 10:25 am, François-Xavier Cat @.***> wrote:

This module from @ZanattaMichael is leveraging Selenium to do the same thing via a browser: https://github.com/ZanattaMichael/SelMVP
Could be an alternative...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.


Calling mock_add_spec on a mock created with create_autospec results in an error

Demonstrated by the following session for asynctest 0.12.2:
>>> import asynctest
>>> o = object()
>>> am = asynctest.create_autospec(o)
>>> am.mock_add_spec(["c"])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/mnt/dane/common-home/Pobrane/faf/replayserver-venv/lib/python3.6/site-packages/asynctest/mock.py", line 244, in mock_add_spec
    self._mock_set_async_magics()
  File "/mnt/dane/common-home/Pobrane/faf/replayserver-venv/lib/python3.6/site-packages/asynctest/mock.py", line 233, in _mock_set_async_magics
    delattr(self, entry)
  File "/usr/lib64/python3.6/unittest/mock.py", line 728, in __delattr__
    raise AttributeError(name)
AttributeError: __aiter__

Occasionally AttributeError: __aexit__ is thrown in the same place instead. Equivalent unittest.mock session:
>>> from unittest import mock
>>> o = object()
>>> m = mock.create_autospec(o)
>>> m.mock_add_spec(["c"])
>>> m.c
<MagicMock name='mock.c' id='139969003892632'>

Quick pdb session shows that the attributes are defined in self._mock_children. I'm not familiar with mock internals, it's probably used for autospec to work? The value of self._mock_children is:
{'__aexit__': sentinel.DELETED, '__aenter__': sentinel.DELETED, '__anext__': sentinel.DELETED, '__aiter__': sentinel.DELETED}
I guess that we should either catch the AttributeError and proceed as normal or check self._mock_children ourselves. The earlier option sounds more reasonable to me.

What is the behavior of unittest.Mock?

I listed it in the original comment.

Thanks for the report, I'll try to look at it today or tomorrow.

Bump, still happens on 0.12.3, I'd love to be able to run the few tests I have that use this on travis instead of just locally :)

Sorry for the long delay, the bug is fixed and merged.
I prepared a new release (0.12.4) that will be processed by the CI soon.


Changed PdfImageConverter to ImageConverter (Fixed #3263).

I'll merge it directly because it's a blocker for current master (which I need for customer).

Ok.


Support for single HTTPS certificate across all tenants (at least in a given pod)

Support for single HTTPS certificate across all tenants (at least in a given pod)
Review purpose, no merge please.

One idea is: add one customize http header in the nginx configuration for url like intalio.local/admin and intalio.local/sec
So in the router, we can save some logic to check the admin or sec path.