[Bug] glm-4v-9b在昇腾卡推理报错

Checklist

[ ] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.
[ ] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug
/usr/local/python3.10.5/lib/python3.10/site-packages/torch_npu/utils/storage.py:38: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
if self.device.type != 'cpu':
/opt/lmdeploy/lmdeploy/pytorch/models/chatglm2.py:40: UserWarning: AutoNonVariableTypeMode is deprecated and will be removed in 1.10 release. For kernel implementations please use AutoDispatchBelowADInplaceOrView instead, If you are looking for a user facing API to enable running your inference-only workload, please use c10::InferenceMode. Using AutoDispatchBelowADInplaceOrView in user code is under risk of producing silent wrong result in some edge cases. See Note [AutoDispatchBelowAutograd] for more details. (Triggered internally at build/CMakeFiles/torch_npu.dir/compiler_depend.ts:74.)
tmp[is_boi_eoi] = LANGUAGE_TOKEN_TYPE
2024-11-26 17:25:31,408 - lmdeploy - ERROR - request.py:21 - Engine loop failed with error: backend='atbgraph' raised:
RuntimeError: val
While executing %apply_rotary_pos_emb_default : [num_users=2] = call_function[target=torch.ops.lmdeploy.apply_rotary_pos_emb.default](args = (%_unsafe_view_default, %_unsafe_view_default_1, %view_default_1, %view_default_2, None, None), kwargs = {})
Original traceback:
File "/opt/lmdeploy/lmdeploy/pytorch/models/chatglm2.py", line 504, in forward
hidden_states = self.transformer(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/models/chatglm2.py", line 466, in forward
hidden_states = self.encoder(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/models/chatglm2.py", line 375, in forward
hidden_states, residual = layer(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/models/chatglm2.py", line 317, in forward
layernorm_input = self.self_attention(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/models/chatglm2.py", line 186, in forward
q_rope, k_rope = self.apply_rotary_pos_emb(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/nn/rotary_embedding.py", line 127, in forward
return self.impl.forward(query, key, cos, sin, inplace)
File "/opt/lmdeploy/lmdeploy/pytorch/backends/dlinfer/apply_rotary_emb.py", line 26, in forward
return apply_rotary_pos_emb(query, key, cos, sin, q_embed, k_embed)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/dlinfer/graph/custom_op.py", line 72, in patched_func
return torch_ops_func_with_default(*args, **kwargs)
Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information
You can suppress this exception and fall back to eager by setting:
import torch._dynamo
torch._dynamo.config.suppress_errors = True
Traceback (most recent call last):
File "/opt/lmdeploy/lmdeploy/pytorch/engine/request.py", line 17, in _raise_exception_on_finish
task.result()
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 963, in async_loop
await self._async_loop()
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 957, in _async_loop
await __step()
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 945, in __step
raise e
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 939, in __step
raise out
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 873, in _async_loop_background
await self._async_step_background(
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 755, in _async_step_background
output = await self._async_model_forward(
File "/opt/lmdeploy/lmdeploy/utils.py", line 241, in __tmp
return (await func(*args, **kwargs))
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 646, in _async_model_forward
ret = await __forward(inputs)
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 624, in __forward
return await self.model_agent.async_forward(
File "/opt/lmdeploy/lmdeploy/pytorch/engine/model_agent.py", line 303, in async_forward
output = self._forward_impl(inputs,
File "/opt/lmdeploy/lmdeploy/pytorch/engine/model_agent.py", line 270, in _forward_impl
output = model_forward(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/engine/model_agent.py", line 153, in model_forward
output = model(**input_dict)
File "/opt/lmdeploy/lmdeploy/pytorch/backends/graph_runner.py", line 25, in call
return self.model(**kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 451, in _fn
return fn(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 921, in catch_errors
return callback(frame, cache_entry, hooks, frame_state, skip=1)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 400, in _convert_frame_assert
return _compile(
File "/usr/local/python3.10.5/lib/python3.10/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 676, in _compile
guarded_code = compile_inner(code, one_graph, hooks, transform)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/utils.py", line 262, in time_wrapper
r = func(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 535, in compile_inner
out_code = transform_code_object(code, transform)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/bytecode_transformation.py", line 1036, in transform_code_object
transformations(instructions, code_options)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 165, in _fn
return fn(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 500, in transform
tracer.run()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 2149, in run
super().run()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 810, in run
and self.step()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 773, in step
getattr(self, inst.opname)(inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 2268, in RETURN_VALUE
self.output.compile_subgraph(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/output_graph.py", line 981, in compile_subgraph
self.compile_and_call_fx_graph(tx, list(reversed(stack_values)), root)
File "/usr/local/python3.10.5/lib/python3.10/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/output_graph.py", line 1178, in compile_and_call_fx_graph
compiled_fn = self.call_user_compiler(gm)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/utils.py", line 262, in time_wrapper
r = func(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/output_graph.py", line 1251, in call_user_compiler
raise BackendCompilerFailed(self.compiler_fn, e).with_traceback(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/output_graph.py", line 1232, in call_user_compiler
compiled_fn = compiler_fn(gm, self.example_inputs())
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/repro/after_dynamo.py", line 117, in debug_wrapper
compiled_gm = compiler_fn(gm, example_inputs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/repro/after_dynamo.py", line 117, in debug_wrapper
compiled_gm = compiler_fn(gm, example_inputs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/init.py", line 1770, in call
return self.compiler_fn(model, inputs, **self.kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/dlinfer/graph/dicp/vendor/AtbGraph/init.py", line 7, in atbgraph
return compile_fx(gm, fake_input_tensor, "atbgraph")
File "/usr/local/python3.10.5/lib/python3.10/site-packages/dlinfer/graph/dicp/dynamo_bridge/compile_fx.py", line 103, in compile_fx
return compile_fx_210(model, example_inputs, backend, inner_compile)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/dlinfer/graph/dicp/dynamo_bridge/compile_fx.py", line 255, in compile_fx_210
return aot_autograd(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/backends/common.py", line 58, in compiler_fn
cg = aot_module_simplified(gm, example_inputs, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_functorch/aot_autograd.py", line 903, in aot_module_simplified
compiled_fn = create_aot_dispatcher_function(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/utils.py", line 262, in time_wrapper
r = func(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_functorch/aot_autograd.py", line 628, in create_aot_dispatcher_function
compiled_fn = compiler_fn(flat_fn, fake_flat_args, aot_config, fw_metadata=fw_metadata)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 443, in aot_wrapper_dedupe
return compiler_fn(flat_fn, leaf_flat_args, aot_config, fw_metadata=fw_metadata)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 648, in aot_wrapper_synthetic_base
return compiler_fn(flat_fn, flat_args, aot_config, fw_metadata=fw_metadata)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/jit_compile_runtime_wrappers.py", line 119, in aot_dispatch_base
compiled_fw = compiler(fw_module, updated_flat_args)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/utils.py", line 262, in time_wrapper
r = func(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/dlinfer/graph/dicp/dynamo_bridge/compile_fx.py", line 217, in fw_compiler_base
return inner_compile(
File "/usr/local/python3.10.5/lib/python3.10/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/dlinfer/graph/dicp/dynamo_bridge/compile_fx.py", line 82, in compile_fx_inner
gt.transform()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/dlinfer/graph/dicp/dynamo_bridge/graph.py", line 58, in transform
self.gm = self.backend_opset_transform(self.gm)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/dlinfer/graph/dicp/vendor/AtbGraph/opset_convert.py", line 65, in atbgraph_opset_convert
gm = AtenToAtbTransformer(gm).transform()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/fx/interpreter.py", line 507, in transform
result = super().run(enable_io_processing=False)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/fx/interpreter.py", line 153, in run
raise RuntimeError(*e.args) from e
torch._dynamo.exc.BackendCompilerFailed: backend='atbgraph' raised:
RuntimeError: val
While executing %apply_rotary_pos_emb_default : [num_users=2] = call_function[target=torch.ops.lmdeploy.apply_rotary_pos_emb.default](args = (%_unsafe_view_default, %_unsafe_view_default_1, %view_default_1, %view_default_2, None, None), kwargs = {})
Original traceback:
File "/opt/lmdeploy/lmdeploy/pytorch/models/chatglm2.py", line 504, in forward
hidden_states = self.transformer(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/models/chatglm2.py", line 466, in forward
hidden_states = self.encoder(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/models/chatglm2.py", line 375, in forward
hidden_states, residual = layer(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/models/chatglm2.py", line 317, in forward
layernorm_input = self.self_attention(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/models/chatglm2.py", line 186, in forward
q_rope, k_rope = self.apply_rotary_pos_emb(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/nn/rotary_embedding.py", line 127, in forward
return self.impl.forward(query, key, cos, sin, inplace)
File "/opt/lmdeploy/lmdeploy/pytorch/backends/dlinfer/apply_rotary_emb.py", line 26, in forward
return apply_rotary_pos_emb(query, key, cos, sin, q_embed, k_embed)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/dlinfer/graph/custom_op.py", line 72, in patched_func
return torch_ops_func_with_default(*args, **kwargs)
Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information
You can suppress this exception and fall back to eager by setting:
import torch._dynamo
torch._dynamo.config.suppress_errors = True
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/python3.10.5/lib/python3.10/asyncio/queues.py", line 159, in get
await getter
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3.10.5/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/lmdeploy/lmdeploy/pytorch/engine/request.py", line 171, in __no_threadsafe_get
return await asyncio.wait_for(self.resp_que.get(), timeout)
File "/usr/local/python3.10.5/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3.10.5/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/usr/local/python3.10.5/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in call
await self.app(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/routing.py", line 715, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/routing.py", line 735, in app
await route.handle(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
File "/opt/lmdeploy/lmdeploy/serve/openai/api_server.py", line 483, in chat_completions_v1
async for res in result_generator:
File "/opt/lmdeploy/lmdeploy/serve/async_engine.py", line 576, in generate
async for outputs in generator.async_stream_infer(
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine_instance.py", line 178, in async_stream_infer
resp = await self.req_sender.async_recv(req_id)
File "/opt/lmdeploy/lmdeploy/pytorch/engine/request.py", line 312, in async_recv
resp: Response = await self._async_resp_get()
File "/opt/lmdeploy/lmdeploy/pytorch/engine/request.py", line 187, in _async_resp_get
return await __no_threadsafe_get()
File "/opt/lmdeploy/lmdeploy/pytorch/engine/request.py", line 175, in __no_threadsafe_get
exit(1)
File "/usr/local/python3.10.5/lib/python3.10/_sitebuiltins.py", line 26, in call
raise SystemExit(code)
SystemExit: 1
INFO:     <IP_ADDRESS>:40718 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
Reproduction
ASCEND_RT_VISIBLE_DEVICES=2 lmdeploy serve api_server
/home/nfs/appnfs/xxx/pre_models/ZhipuAI/glm-4v-9b
--backend pytorch
--chat-template /opt/lmdeploy/chat_template/glm-4v-9b.json
--model-name glm-4v-9b
--device ascend
--server-name <IP_ADDRESS>
--server-port 50055
curl "http://<IP_ADDRESS>:50055/v1/chat/completions"
-H "Content-Type: application/json"
-d '{
"model": "glm-4v-9b",
"messages": [
{
"role": "user",
"content": [
{ "type": "text", "text": "描述这张图片"},
{ "type": "image_url", "image_url": { "url": "/home/nfs/appnfs/xxx/img-test/cat.png"}}
]
}
],
"max_tokens": 128
}'
Environment
[W compiler_depend.ts:615] Warning: expandable_segments currently defaults to false. You can enable this feature by `export PYTORCH_NPU_ALLOC_CONF = expandable_segments:True`. (function operator())
sys.platform: linux
Python: 3.10.5 (main, Sep 24 2024, 03:43:49) [GCC 9.4.0]
CUDA available: False
MUSA available: False
numpy_random_seed:<PHONE_NUMBER>
GCC: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
PyTorch: 2.3.1
PyTorch compiling details: PyTorch built with:
  - GCC 10.2
  - C++ Version: 201703
  - Intel(R) MKL-DNN v3.3.6 (Git Hash 86e6af5974177e513fd3fee58425e1063e7f1361)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - LAPACK is enabled (usually provided by MKL)
  - NNPACK is enabled
  - CPU capability usage: NO AVX
  - Build settings: BLAS_INFO=open, BUILD_TYPE=Release, CXX_COMPILER=/opt/rh/devtoolset-10/root/usr/bin/c++, CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 -fabi-version=11 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DLIBKINETO_NOROCTRACER -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=pedantic -Wno-error=old-style-cast -Wno-missing-braces -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=open, TORCH_VERSION=2.3.1, USE_CUDA=OFF, USE_CUDNN=OFF, USE_CUSPARSELT=OFF, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_GLOO=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF,

TorchVision: 0.18.1
LMDeploy: 0.6.3+
transformers: 4.46.3
gradio: Not Found
fastapi: 0.115.5
pydantic: 2.10.0
triton: Not Found

Error traceback
No response

Graph mode does not support glm-4v-9b for now. Please use eager-mode instead.
We are working on supporting more models on graph mode.


Snyk Container scan import

I would like to be able to import snyk container scan results.

Any help writing this parser welcome :-)

@ealkalai could you provide a report of this scanner?

@damiencarol, at the moment it is supported only the dependency scan feature of snyk.
Snyk offers, additionally, container scanning, which is not accepted by the Snyk Scan Scan Type. (defect dojo version 1.65)
I looked at your edited comments and here is a json report from snyk container test
snyk-container.zip

so the container scans is different file, or are they both in the same report file?

Snyk exports these files via different processes. So I assume they are not compatible. If they were I could have uploaded via the existing functionality of defect dojo.

From: valentijnscholten<EMAIL_ADDRESS>Sent: Wednesday, December 16, 2020 4:02:08 PM
To: DefectDojo/django-DefectDojo<EMAIL_ADDRESS>Cc: Erikos Alkalai<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [DefectDojo/django-DefectDojo] Snyk Container scan import (#3310)
so the container scans is different file, or are they both in the same report file?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/DefectDojo/django-DefectDojo/issues/3310#issuecomment-746431882, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAGDO3BVD4WFF77SPZYKU4TSVDDXBANCNFSM4T3E545A.

It doesn't always work like that. There are scanners who put multiple sections in a report depending on chosen scan or export settings. For example twistlock and I believe qualys also does it.

I will compare both reports and try some unit tests. Thanks for providing the data @ealkalai it helps a lot!

Just to note this seems to be still an issue on 2.8.0.

You can close this @mtesauro. I also advanced Snyk to support container scan:
https://github.com/DefectDojo/django-DefectDojo/pull/9289


Dynamic Client Registration

Description
Extending on #109, the receiving UniCore instance ("client") should be able to register itself with the issuing UniCore ("provider") to receive credential offers. A connection between two UniCore instances can either be initiated by the issuer who needs to know about the holder's offer URL or by the holder who needs to know which issuer it would like to receive offers from. Supporting Dynamic Client Registration allows clients to register themselves at trusted providers to make the offer process a lot smoother.
Motivation
Enhance credential distribution between UniCore instances
Resources

#109

To-do List
n/a

 Dynamic Client Registration


Update schedule for 2022

Adds a new schedule. Also adds some logic to automatically show the correct day of schedule (in the past, we pushed a commit after day 1 commenting it out and uncommenting out a previously-written day 2 schedule)

lol I screwed up git bad.

Ugh, this accidentally added an empty RateTalkView.tsx file. Don't think there's any harm in it, will wait to delete it until it's clear whether we'll actually get that feature in or not.


Modify mysql query before execution

Feature request
We are using langchain create_sql_agent to build a chat engine with database.
generation and execution of query will be handled by create_sql_agent.
I want to modify the query before execution.
Please find below example:
original query : select * from transaction where type = IPC
modified query : select * from (select * from transaction where account_id = 123) where type = IPC
Can you please provide me way forward to achieve this ?
Motivation
To protect some data from client, need this functionality
Your contribution
I'm not familiar with the internal code, but I can help if guided.

Hello @dosu-bot,
Do I need to update sql_chain in the langchain codebase ?
Or Is there any way I can pass this sql_chain through create_sql_agent

How can we make sure that this custom tool will get executed just before query execution ?

@dosu-bot How can we make sure that this custom tool will get executed just before query execution ?

@dosu-bot
As suggested by you I added this cutom_tool in extra_tools but it never got executed.

@dosu-bot
I tried below codebase from official documentation:
agent_executor = create_sql_agent(         llm=llm,         toolkit=toolkit,         verbose=True,         agent_type=AgentType.OPENAI_FUNCTIONS ) agent_executor.run(question)
Even this is not executing tool "sql_db_query_checker".
I am using latest langchain version 0.0.333
Can you please help ?

@dosu-bot
Please note that this is an existing tool "sql_db_query_checker" within langchain.
It is supposed to be executed by default.
official documentation URL: https://python.langchain.com/docs/use_cases/qa_structured/sql
This documentation shows the execution of ""sql_db_query_checker" tool before "sql_db_query" tool.
But the same case is not working for me for langchain version "0.0.333
"

this still doesnt answer the initial query . How to modify the sql query when I have other utility tools to generate the complex sql queries

@dosubot i have 50 extra tools to query the db


Error while setting up myQ in 0.96.5

Home Assistant release with the issue:

0.96.5
Last working Home Assistant release (if known):
0.96.5
Operating environment (Hass.io/Docker/Windows/etc.):

Docker on Ubuntu 18.04
Component/platform:

MyQ
Description of problem:
I haven't updated or made any changes since yesterday, and it began to stop working this morning. I can't connect to the garage door through HA, but I'm able to connect to it via the myQ app. Could it be a change in their API?
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
platform: myq
username: !secret myq_username
password: !secret myq_password
type: chamberlain

Traceback (if applicable):
Error while setting up platform myq
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/src/app/homeassistant/components/myq/cover.py", line 43, in async_setup_platform
    myq = await login(username, password, brand, websession)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 293, in login
    await api.authenticate(username, password)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 228, in authenticate
    await self._get_security_token()
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 244, in _get_security_token
    login_request=True,
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 153, in _request
    return await resp.json(content_type=None)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1036, in json
    return loads(stripped.decode(encoding))
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Additional information:

I have the same issue.
2019-08-06 09:17:41 ERROR (MainThread) [homeassistant.components.cover] Error while setting up platform myq
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/myq/cover.py", line 43, in async_setup_platform
myq = await login(username, password, brand, websession)
File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 293, in login
await api.authenticate(username, password)
File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 228, in authenticate
await self._get_security_token()
File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 244, in _get_security_token
login_request=True,
File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 153, in _request
return await resp.json(content_type=None)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1036, in json
return loads(stripped.decode(encoding))
File "/usr/local/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I am also having the same issue... must have been a change on MyQ side again :(
Traceback (most recent call last):   File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform     SLOW_SETUP_MAX_WAIT)   File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for     return fut.result()   File "/usr/src/app/homeassistant/components/myq/cover.py", line 43, in async_setup_platform     myq = await login(username, password, brand, websession)   File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 293, in login     await api.authenticate(username, password)   File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 228, in authenticate     await self._get_security_token()   File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 244, in _get_security_token     login_request=True,   File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 153, in _request     return await resp.json(content_type=None)   File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1036, in json     return loads(stripped.decode(encoding))   File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads     return _default_decoder.decode(s)   File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode     obj, end = self.raw_decode(s, idx=_w(s, 0).end())   File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode     raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Also running into this as well.  Anyone running into this that isn't using the myQ platform specifically?  For instance, is Chamberlain and Liftmaster still working properly?

Error while setting up platform myq
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/app/homeassistant/components/myq/cover.py", line 43, in async_setup_platform
myq = await login(username, password, brand, websession)
File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 293, in login
await api.authenticate(username, password)
File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 228, in authenticate
await self._get_security_token()
File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 244, in _get_security_token
login_request=True,
File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 153, in _request
return await resp.json(content_type=None)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1036, in json
return loads(stripped.decode(encoding))
File "/usr/local/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Myq app works fine.

mine isn't working on HA:
I'm on 0.96.5:
Mine stopped working this morning too.....

Same issue here as well.
I am using version 0.96.2.
I am using the type: chamberlain
The official app still functions, They must have updated their API again.

There are issues open now, both here and in "pymyq" which handles the API login for the MyQ devices.  It looks like Chamberlain has changed there webservice call that the API was using, and until someone in pymyq is able to update to the latest call (depending on the change) the integration with HomeAssistant will remain broken. Through some love their way, as they keep this integration running.
P.s. I am considering ditching MyQ in favour of a DIY solution that does not change its API every three months.
Thanks to everyone on the dev team here and on pymyq!
Brian C.

I have the same problem this morning.  :(
Type is "liftmaster" for me and usingHA 0.96.5.
Paul

I have same problem since 11 hrs ago and have not updated or anything,pretty sure it is on myq side. The component has always had errors about timing out but always worked fine for over a year now through several releases. I am on 0.95.0 Hassio. I also use the myq app and it works fine. Bet they shut down there api like harmony did. Hope not! I will wait patiently for someone way smarter than me to figure it out.

I have the same issue

For reference and linking, here is the open issue with pymyq: https://github.com/arraylabs/pymyq/issues/22

Update for everyone: I've submitted a PR to pymyq that updates it to work with the new API. Once it's done, I'll submit a HASS PR.

This appears to have fixed itself. I guess it was a server outage or someone at Chamberlain decided to undo some changes.

Agreed with @Villhellm – everyone seems to be back online. Going to close this as an active bug; we're still working to have https://github.com/arraylabs/pymyq/pull/23 incorporated to future-proof things a tad.


Lag spike when switching Animations in a Animator component

I have verified that this problem is caused by this mod by removing all other mods. The lag spike does not happen without this mod installed.
When switching Animations in a Animator component which is driving a lot of fields, there will be a lag spike proportional to the number of fields driven by the Animator. In this case I am animating the transforms of bones of a SkinnedMeshRenderer.
Example object is in this public folder: resrec:///U-Nytra/R-C3B2A0F614BAD990CD52D40125811BEB12FB308A6465BAD37A87C503F79D2077
To reproduce:

Spawn the item in the public folder
Find the unpacked ProtoFlux
Click the Call button and observe a lag spike each time you click. This button switches the Animation. The lag spike does not happen if you uninstall CherryPick.

Log file: DESKTOP-H976HO2 - 2<IP_ADDRESS>1 - 2023-11-13 01_49_24.log

I took a look and narrowed it down as far as "GetNiceName" from the ReflectionExtensions class in FrooxEngine.
When I disable cherrypick but otherwise call "GetNiceName" for all workers, the issue manifests. This might be highlighting an issue that exists in how the Animator works rather than CherryPick.
There must be some caching going on somewhere on the FrooxEngine side whenever GetNiceName is called. This would explain the hitch whenever the Clip is changed if the Animator is calling something that iterates or otherwise has to touch that cache.
I don't have any more specific leads than that I'm afraid. It's starting to look like this is something outside of my control to fix.

Thanks for looking into it. So it seems like it is not a problem with the mod, but rather the mod is bringing to light a problem that already exists in the base game.

I just wanted to add that is also happening to me and it makes the game unplayable. So I've removed the mod for now to avoid the lag spikes until this is fixed.

Hey fellas, I've made a supplementary mod that fixes this issue. If you wanna go grab Effortless Efficiency, feel free to give it a shot.
The reason for it being a separate mod is that the issue that CherryPick exacerbates is not actually the fault of CherryPick, but of the runtime itself. These issues could be coaxed into existence by any heavy usage of certain types of reflection, so I felt it prudent to not clutter CherryPick with specific fixes.

Interestingly this issue just got created in the main resonite repo https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/2699


Update randexp.min.js

Current coverage is 100% (diff: 100%)

Merging #28 into master will not change coverage

@@           master   #28   diff @@
===================================
  Files           1     1
  Lines         101   101
  Methods        12    12
  Messages        0     0
  Branches       32    32
===================================
  Hits          101   101
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update bfa6855...9c7d46c

Thanks! Looks like the timing for my build script is wrong in package.json, I'll fix that too.


feat: Adding Key Service Principals

Description
Adding Key Service Principals For AWS So this module can be used for things like AWS Logs.
@antonbabenko
Motivation and Context
This fixes issue https://github.com/terraform-aws-modules/terraform-aws-kms/issues/5 and others
Breaking Changes
None
How Has This Been Tested?

[x] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[x] I have tested and validated these changes using one or more of the provided examples/* projects

[x] I have executed pre-commit run -a on my pull request

@bryantbiggs Thank you for that feedback! I think I have implemented what you were mentioning if you can please take another look 🙏

This PR is included in version 1.2.0 :tada:


No holder!

Signed-off-by: kuba--<EMAIL_ADDRESS>Closes: https://github.com/src-d/go-mysql-server/issues/472

@kuba-- can you add a test reproducing the bug?

@ajnavarro - I've added more tests (with multiple drivers and DeleteAndLoadAll)


?!Merge pull request #1 from github/master!?

ฉันได้ฉันได้!
Thank you for contributing! Please confirm this pull request meets the following requirements:

[x] I followed the contributing guidelines: https://github.com/github/explore/blob/master/CONTRIBUTING.md
[x] I have no affiliation with the project I am suggesting (as a maintainer, creator, contractor, or employee).

Which change are you proposing?

[x] Suggesting edits to an existing topic or collection
[x] Curating a new topic or collection

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[x] Image (and my file is *.png, square, dimensions 288x288)
[x] Content (and my changes are in index.md)

Please replace this line with an explanation of why you think these changes should be made.

Curating a new topic or collection

[x] I've formatted my changes as a new folder directory, named for the topic or collection as it appears in the URL on GitHub (e.g. https://github.com/topics/[NAME] or https://github.com/collections/[NAME])
[x] My folder contains a *.png image (if applicable) and index.md
[x] All required fields in my index.md conform to the Style Guide and API docs: https://github.com/github/explore/tree/master/docs

Please replace this line with an explanation of why you think this topic or collection should be curated.

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

?!&!?

คำทราบคำ


cleanup: re-organize repo structure

The anthos service mesh samples repo should be cleaned up to better separate workshop content, demos, samples, and building blocks.
Currently our docs folder is a 'catch all' for all our samples that are not a workshop.
We also need to better have kustomize be able to create the k8 resources for tutorials. online-boutique-asm-manifests is a good start, I would like to move it out to better showcase it as a building block where users get started before venturing into the demo folder.
Things to do before merging

check if region tags are affected
check acm/asm resources aren't going to be affecting the config sync flow

@xtineskim is this issue intended to be closed once #77 gets merged?

To answer Olivier's question:

is this issue intended to be closed once https://github.com/GoogleCloudPlatform/anthos-service-mesh-samples/pull/77 gets merged?

Yes.

Good question. This is an important piece of work for this repo.
But since it's a large effort and in light of other new priorities on our team, this is not something we will be able to compete this year.


ENH: DPCTL native support

/intelci: run

/intelci: run

@samir-nasibli, @KulikovNikita , my comments were not addressed, please, create PR to fix them.

@samir-nasibli, @KulikovNikita , my comments were not addressed, please, create PR to fix them.

Thank you for the comments! #1200


Reified optics for Projection Expressions

This PR introduces reified optics for projection expressions. This enables type safe queries and updates and deletes, plugging the type safety gaps that were previously there.

closes https://github.com/zio/zio-dynamodb/issues/86


After compiling, on starting my application I am getting error in DragDropContext import

Uncaught TypeError: s.createContext is not a function
at Object. (DragDropContext.js:31)
at n (bootstrap 15cb5cb1b59d9b83b567:19)
at Object. (index.js:3)
at n (bootstrap 15cb5cb1b59d9b83b567:19)
at Object. (index.jsx:22)
at n (bootstrap 15cb5cb1b59d9b83b567:19)
at Object. (index.jsx:8)
at n (bootstrap 15cb5cb1b59d9b83b567:19)
at Object. (button-direction.css:6)
at n (bootstrap 15cb5cb1b59d9b83b567:19)
I am not getting any error on compilation. I am getting this error after starting the application.
Please help me with this case.

Are you on the correct React version?


add relative standard deviation to aggregated test execution metrics

Description
Adds relative standard deviation to aggregated test result metrics. Users can now see the spread of their OSB test results. (RSD is currently only calculated for the mean)
Example:
   {
    "task": "wait-until-merges-finish",
    "operation": "wait-until-merges-finish",
    "throughput": {
     "min": 74.41136845553248,
     "mean": 74.41136845553248,
     "median": 74.41136845553248,
     "max": 74.41136845553248,
     "unit": "ops/s",
     "mean_rsd": 5.7260883182218825
    },
    "latency": {
     "100_0": 12.996128527447581,
     "mean": 12.996128527447581,
     "unit": "ms",
     "mean_rsd": 5.875897232448762
    },
    "service_time": {
     "100_0": 12.996128527447581,
     "mean": 12.996128527447581,
     "unit": "ms",
     "mean_rsd": 5.875897232448762
    },
    "client_processing_time": {
     "100_0": 0.6900834268890321,
     "mean": 0.6900834268890321,
     "unit": "ms",
     "mean_rsd": 1.172341871616217
    },
    "processing_time": {
     "100_0": 13.791589008178562,
     "mean": 13.791589008178562,
     "unit": "ms",
     "mean_rsd": 5.595395107897675
    },
    "error_rate": 0.0,
    "error_rate_rsd": 0,
    "duration": 3.3562859753146768,
    "duration_rsd": 1.6848600926145232
   },

Issues Resolved
#662
Testing

[x] New functionality includes testing

make test

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

You may want to change the 100_0 to max in the results summary, either in this or a future check-in.

Should this be done for regular test executions as well? 100_0 is used across regular test executions as well. Example:
    "latency": {
     "50_0":<PHONE_NUMBER>8115234,
     "100_0":<PHONE_NUMBER>0683594,
     "mean":<PHONE_NUMBER>067627,
     "unit": "ms"
    },


.finally not a function, but .then still works in its place

Please answer the questions the best you can:

What version of bluebird is the issue happening on?
3.4.0

What platform and version? (For example Node.js 0.12 or Google Chrome 32)
windows 10 x64 , node 4.4.5

Did this issue happen with earlier version of bluebird?
never used an earlier version

(Write description of your issue here, stack traces from errors and code that reproduces the issue are helpful)
c:\Users\1mike12\WebStormProjects\myproject\modules\exception-handler.js:15
        .finally(function(){
                ^

TypeError: Logger.errorP(...).then(...).catch(...).finally is not a function
    at process.<anonymous> (c:\Users\1mike12\WebStormProjects\myproject\modules\exception-handler.js:15:17)
    at emitOne (events.js:77:13)
    at process.emit (events.js:169:7)
    at process._fatalException (node.js:224:26)

Process finished with exit code 7

I have a chain of promises that seem to be working fine except for finally.
Logger.errorP(...).then(...).catch(...).finally()
but if I use a then() at the end, it still works
Logger.errorP(...).then(...).catch(...).then()
What the chain looks like. .Basically I have a text sent to me, and a log made in the winston module, before exiting. I'm throwing a test error
//logger
var Logger = new (winston.Logger)({
    transports: [
        new winston.transports.BookshelfTransport({
            model: Log,
            timestamp: timestampFunction,
        }),

        new winston.transports.File({
            filename:"_logs/main.log",
            json: false,
            timestamp: timestampFunction
        }),

        new winston.transports.Console({
            timestamp: timestampFunction,
            colorize: true
        })
    ],
});

Logger.logP = function(level, message, meta){
    return new Promise(function(resolve, reject){
        Logger.log(level, message, meta, function(e, lvl, msg, mta){
            if (e){
                return reject(e);
            }
            resolve();
        })
    })
};

Logger.errorP = function(message, meta){
    return Logger.logP("error", message, meta);
};

//alert
module.exports = new function(){
    var self = this;

    self.alert = function(message){
        var emailAddress = myPhoneNumber +<EMAIL_ADDRESS>        var subject = "ebay bot";

        return self.sendEmail(emailAddress, subject, message)
    };

//actual usage
process.on('uncaughtException', function (er) {
    Logger.errorP(er.message, {stack: er.stack})
        .then(function(){
            return AlertService.alert(er.message)
        })
        .catch(function(e){
            console.log("something went wrong in the exception handler" + e);
            return AlertService.alert(e.message)
        })
        .finally(function(){
            process.exit(1);
        })
});

That's a native promise - when you do new Promise be sure to do var Promise = require("bluebird") at the top

ah... thanks @benjamingr


Get GitHub Issue templates for people to report issues

@alexanderepstein Something like this : https://github.com/atom/atom/blob/master/ISSUE_TEMPLATE.md
And when people find errors they should be able to land on the Issue Report web page directly from the App with a click, just an easy way for them to reach the page if they aren't coders or techy people.

I definitely agree I should link to report a bug in my code but i am skeptical of adding an issue template. The only reason being i think it detracts some users from submitting a bug because they dont want to take the time to meet the standards of the template

I added a report a bug menu item in the insomnia application.

I get it that many users may not want to submit bugs if the issue template is big and stuff.
But I think you could have a simple issue template, like asking these details :
Description of bug or feature enhancement :
OS and OS version :
Version of Insomnia Application :
These are basic details that you will however need, which you will ask in comments if you don't get it from user through the template. And trust me, it gets harder to reply to comments when many people start putting up bugs or feature enhancements, though this is just a small application with less use cases

I see what you mean and its a fair point you've convinced me to implement a very loose ruled template

@karuppiah7890 I implemented a very loose version, thanks for the tip


docinfo support?

I found out about docinfo in the asciidoctor manual:
http://asciidoctor.org/docs/user-manual/#docinfo-file
So I tried adding a docinfo.html to get something inserted in the <head> of a file. But it didn't work. Is this supported in jeyll-asciidoc?

I don't think docinfo really makes sense in the context of Jekyll AsciiDoc (unless you're producing standalone files generated by Asciidoctor). The typical use of Asciidoctor inside of Jekyll is to produce embeddedable HTML (basically the article part of the page). You then use Jekyll to apply a layout to that HTML. And that's where all the framing / shell material goes.
In other words, you don't need docinfo in Jekyll because you have layouts.
If you happen to be using Jekyll to manage calling Asciidoctor on a handful of pages, and those are produced as standalone pages by Asciidoctor, then you might need docinfo. In that case, it will work, but you do have to set the base_dir to docdir as explained in https://github.com/asciidoctor/jekyll-asciidoc#specifying-the-base-directory. That way, Asciidoctor can find the docinfo file.

I just realized something. It's not that docinfo doesn't make sense. It's that it just needs to be called at a different time.
What we could do is add a liquid tag called asciidoc_docinfo that invokes the Document#docinfo method. You'd use this tag in your liquid template, but it would tie back into the docinfo functionality of the processor. It's very similar to what tocify_asciidoc is doing.

I implemented this.
The simplest implementation allows you to specify any location you want, and include suitably named content from docinfo files, anywhere you want.
Should this be restricted so the only accepted locations are (nil), 'head', and 'footer'?

I implemented this.
The simplest implementation allows you to specify any location you want, and include suitably named content from docinfo files, anywhere you want.
Should this be restricted so the only accepted locations are (nil), 'head', and 'footer'?

I think it should at least be head, header, and footer. If more locations are supported, it should be clearly documented that these are non-standard, so they will likely only work with this converter.

I think it should at least be head, header, and footer. If more locations are supported, it should be clearly documented that these are non-standard, so they will likely only work with this converter.

Thanks!
Does jekyll convert to docbook?  If not, does 'header' make sense as standard?
I like the idea of allowing anything and clearly documenting that only head, footer, and possibly header will work outside jekyll.

Thanks!
Does jekyll convert to docbook?  If not, does 'header' make sense as standard?
I like the idea of allowing anything and clearly documenting that only head, footer, and possibly header will work outside jekyll.

The official locations are head, header, and footer, which are all supported by the built-in HTML converter.

Does jekyll convert to docbook?

Not currently, though if there's a compelling case for it, it would certainly be possible.

If not, does 'header' make sense as standard?

Yes, I believe it does.

The official locations are head, header, and footer, which are all supported by the built-in HTML converter.

Does jekyll convert to docbook?

Not currently, though if there's a compelling case for it, it would certainly be possible.

If not, does 'header' make sense as standard?

Yes, I believe it does.

Ah, I missed the call with :header in the html5 converter.  I had thought html used head and footer, and docbook header and footer.

Ah, I missed the call with :header in the html5 converter.  I had thought html used head and footer, and docbook header and footer.

There used to be only two locations (header and footer), but we expanded it since there are really 3 logical locations at a minimum.

There used to be only two locations (header and footer), but we expanded it since there are really 3 logical locations at a minimum.

This is open for review, I'm happy with the implementation.

This is open for review, I'm happy with the implementation.


Make title of Propulsion section consistent

Some Propulsion sections have a leading <h1> with PROPULSION, others have PROPULSION SYSTEM.  Make them consistently the first one.

Done.


Document inf prod, chi, t, f

Added documentation on infinite products of probability spaces as well as chi-square, t, F distributions.

I haven't reviewed this carefully, but one quick comment. Before you submit a Jupyter notebook, you should always "Restart and Run All" cells, starting from the top. That is, you should see the cells numbered in order, starting from [1], [2], [3], ....
Could you please go through your notebooks and "Restart and Run All"?

Thanks, Jack.  Please revise based on the following.

Jupyter notebook only displays the output of the last line (aside from plots).  So note that in your Chi-square example the mean and sd aren't displayed.
To be consistent with the other distributions, define each distribution first by the density.  It is fine to only specify the functional form without the normalizing constants.  Like in the other examples, be sure to specify the parameters when you define e.g. "A (Student's) t distribution with m degrees of freedom" rather just "a t distribution".
After the density definition show an example simulating directly from the distribution for different parameter values, like for Normal.
Then you can say something like "A (Student's) t distribution is more conveniently defined via the following..." and give the alternate (usual) definition.
Then you can do an example comparing simulating directly from the distribution versus the alternative definition, e.g.
(Z / (sqrt(Y / m))).sim(10000).plot(bins = 30)
RV(StudentT(df = m).sim(10000).plot(bins = 30)
For Chi-square, before the density definition say "A Gamma distribution with shape parameter m/2 and rate parameter 1/2 is also known as a chi-square distribution with m degrees of freedom."
You can remove the chi-square is additive example (it would be better in the Gamma section anyway).
Note for the textbook: We will add the means and variances for all the distributions.  T and F are first examples for which it is possible that mean or variance is not defined, so we will need to add notes about that.
This section is getting long, so please add "Back to contents" cells after each distribution (including the ones that were already  there.)
Always use capital letters for RV and small letter for simulated values, T vs t.
Put commands for plots on separate lines
You don't have to save the results and then plot, you can do X.sim(10000).plot()
Revise for grammar.  Read out loud and make sure it reads smoothly (e.g. be sure to include articles a, the, etc).

I need to think of a better example for infinite product spaces.  But please go ahead and make the changes in my other comment.

I updated common.ipynb for Chi-square, t, and f to address the changes above. This included adding densities, as well as changed the cells from saving the values to directly plotting them. I added the "back to contents tab" at the end of each distribution and used the restart and run all command on both of the notebooks (probspace and common).

Move Beta section until after F, so that Chi-square comes right after Gamma.
Use \left( and \right) instead of ( and ), e.g. when \frac is inside (); the height of the parentheses will adjust to fit whatever is inside.
Plots: use bins = 30 to get smoother shapes.
Chi-square: Try m=2 instead of m=1 since m=1 throws off the scale.
t density: you don't need the \cdot after the constant (also in F).  Change t to x.  Use a negative exponent instead of 1/.
t plot: use more bins.  m = 3 is throwing off scale.  Try different values to get a nice looking plot.
I don't think we have used the shorthand Z ~ N(0,1) anywhere on the page (and maybe not in the whole doc).  So write out in words: "If Z has a Normal(0,1) distribution"
t and F: change "said to have" to "has"
Use spaces after commas, in Normal part of t example and in general
Use smaller df for the second t example
F: "degrees of freedom in the numerator" instead of "numerator degrees of freedom"
F examples: change bins and experiment with different parameter values to get nicer looking plots
remove "denoted F_{m,n}".
Put \quad between densities and x>0 to create some space.

Made the changes listed above. Currently adding .cdf() and .pdf*() to common.ipynb.

Please double check that you have made all the changes above.  I caught a few that had not been made.
In probspace, delete your example for infinite product space and replace with the following.  Example. Infinitely many independent Normal(0, 1) values.
P = Normal(mean = 0, var =1) ** inf
P.draw()
Chi-square density: exponent on x is (m/2 - 1)
Denominator of constant in t dist: use , after \sqrt{} to create a little space before \Gamma.
t plot still not great: use m = [3, 20] so they don't overlap so much.
Remove the \chi^2 notation and replace with words from the second t definition
F: "degrees of freedom in the numerator" instead of "numerator degrees of freedom"
F second def, replace \chi^2 notation with words
Put the anchors and Back to contents links in the same cell e.g.

Back to contents

I haven't review yet, but there were a few more changes I meant to add to intro.ipynb.

Change "Formatting..." to "Displaying output"
Follow the first sentence ("Jupyter notebooks only..." with a cell like
1 + 2
2 / 3
"To display the output of multiple commands, place the commands in separate cells.  (Cells can be added using the + button on the toolbar.)"

"Output can be formatted and displayed using print statements (add a link to a site like this one.")
print('{:.3f}'.format(4/6))

Common.ipynb

Remove the parentheses from exponent of x in chisquare (this was my mistake)
The anchor to Joint distributions is with Beta; move it back to right before Joint distributions.

Probspace

Replace text before inf prob example with: Infinite independent copies of a probability space can be created using ** inf.
Add a space before and after ** in the code

Intro

Add back the line "Jupyter notebooks only display the output of the last line of code in a cell (aside from code which produces a plot)."
Separate is with an a in the middle, not e.
Remove the prob anchor before Displaying output

Make those changes, change any .ipynb links to .html, then download and in Jupyter save each file as .html.  Check that all the links work in the .html files, especially ones you added or changed.  After you are satisfied that everything works, upload everything to Github, then I will merge.


RSDK-7769, RSDK-7770 Add AppRobotClient and LogOutput dial option

RSDK-7769
RSDK-7770
Adds a wrapper for app's robot service and implements only the log method. Adds a logOutput option to dial options to allow specifying a custom log output.
To be used in PR-LINK-TODO to allow the mobile app the send connection establishment logs to app.viam.com.

@njooma not sure who's a required review on this; will wait for you and @clintpurser 🫡 .


Can't use with Docker

Hello @morozov, how are you doing?
I've tried to use this package with a project build on top of Docker, but I couldn't make it run.
PS: I have a custom phpcs.xml in the root of the project.
After mv the .phar to my Git hook, it didn't detect some standards. Here are some outputs:
docker-compose run --rm web vendor/bin/phpcs -i:
The installed coding standards are PSR12, Zend, PSR2, PSR1, PEAR, MySource, Squiz and SlevomatCodingStandard

git commit -m "Remove unnecessary comma":
ERROR: Referenced sniff "Generic.Arrays.ArrayIndent" does not exist

Run "phpcs --help" for usage information

docker-compose run --rm web vendor/bin/phpcs:
............................................E 45 / 45 (100%)

FILE: Files/Product/Product.php
--------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------
 68 | ERROR | [x] Multiline arrays must have a trailing comma after the last element.
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------

Time: 22.4 secs; Memory: 234.23Mb

Can you help me? :smile:

Hi @carusogabriel! As far as I understand, according to the output of docker-compose run --rm web vendor/bin/phpcs -i, PHP_CodeSniffer can see the Slevomat coding standard but the hook can't. Is that right?
There's some magic and trickery involved in implementing support of phpcs.xml which I'm not proud of, so there definitely may be something wrong.
I never used this hook with Docker, so to make sure I'm reproducing the same case as yours, could you provide some more details on how you run in? Particularly,

Which PHP image are you using?
Are your project files copied to the container or you map them as a volume?

Basically, how do I reproduce your case?

Hi @morozov.
I've solved the issue. Was a miss configured docker think + not updating my composer.lock :smile:
Thank you for this amazing package :heart:

Phew… thank you for the feedback. Now I know it also can work with Docker :-)


RisingBrowser extension in Chrome app store

It will be hold on for now. Move to backlog.
Cc: @neptune-web


The rank funtion takes over 1 min to execute

I am trying to use this library for a real time prediction. But it is taking more than 1 min even on GPU to predict. Here is a colab link.
Here is a screenshot showing the execution time:

What could be the possible reason for this latency? Is it pertaining to the library or BERT itself?
Thanks

that is strange, it didn't used to. I wonder if this has to do with framework choice? Also in that link, I see:

Since I can't reproduce, I am closing this


feature: /cloud/ 接口 proxies 新增 IPv6 及 AgentID 字段 (closed #1448)

Codecov Report

Merging #1449 (ca0bd9d) into v2.3.1-dev (a6e95f4) will decrease coverage by 0.02%.
The diff coverage is 50.00%.

@@              Coverage Diff               @@
##           v2.3.1-dev    #1449      +/-   ##
==============================================
- Coverage       73.83%   73.82%   -0.02%
==============================================
  Files             369      369
  Lines           25104    25104
==============================================
- Hits            18536    18533       -3
- Misses           6568     6571       +3

Impacted Files
Coverage Δ

apps/node_man/handlers/cloud.py
93.04% <50.00%> (ø)

apps/backend/subscription/steps/plugin.py
54.45% <0.00%> (-0.63%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


ldap-checker.py false positive fixed

run_ldap return code changed from False to None when errors are found to avoid false positives such as when connection fails.

Thanks for the PR!
Wondering if it wouldn't also make sense to change line 145


LUIS AddAppAzureAccount inline alternative

Fixes #1036

Pull Request Test Coverage Report for Build 2558

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.07%) to 67.435%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

packages/LUIS/bin/luis.js
0
3
0.0%

Totals

Change from base Build 2556:
-0.07%

Covered Lines:
4199

Relevant Lines:
5896

💛  - Coveralls

Note: BUild failed as the Coveralls code check metric decreased. Please add a relevant test.

Note: BUild failed as the Coveralls code check metric decreased. Please add a relevant test.

As agreed in the email thread, investment in testing will be done post-BUILD.


Consider verifying channel_type to default to zero when not used

As pointed out in https://github.com/openxla/stablehlo/pull/1731#discussion_r1293885176, the channel_type value is lost when roundtripping to MHLO.

channel_type is intentionally not part of the StableHLO spec for collective ops, because it is ignored by XlaBuilder. Here's an example from XlaBuilder::ReduceScatter (link). This is working as intended.


Goal Creation Page - Keep Specific Suggestion etc. button - after pressed - suggestion greyed out

After the end user decides they like a suggestion and wants to keep it then after the Keep Specific Suggestion is pressed then, anytime the Generate button is pressed, only the unsaved SMART elements will regenerate. The end user can double click or long press to unsave the suggestion and edit manually if wanted.

Way to designate that button has been clicked (toggles true false)


Add Brewery Search component

Feature request
Overview
The previous Open Brewery DB website had a simple react component which would use the API to search for a brewery. It can be imported but probably needs some revisions since it was utilizing TailwindCSS utility classes before.
Additional context

https://openbrewerydb.netlify.com/
https://github.com/chrisjm/openbrewerydb-website

Tasks

[ ] Add Brewery Search component

Screenshots

Implementation notes
This section will be used by the assigned developer for any additional notes.

I'm taking a look at this just now. 🍺

Closing this because we're moving the official website to Svelte/SvelteKit. Will create a similar ticket in the new repo, though I'll probably build it in.


chore(experiment): Adding target details inside chaosresult for the experiments which doesn't contain helper pod

Signed-off-by: shubhamchaudhary<EMAIL_ADDRESS>
Adding target details inside chaosresult for the experiments which doesn't contain helper pod
It will add three attributes:

target: name of pod/node
kind: kind of application i.e pod,node
chaosStatus: status of chaos[injected, reverted, n/a]

Tested for:

ebs-loss :heavy_check_mark:
ec2-terminate-by-id
ec2-terminate-by-tag  :heavy_check_mark:
kafka-pod-delete  :heavy_check_mark:
node-drain  :heavy_check_mark:
node-taint
pod-cpu-hog :heavy_check_mark:
pod-memory-hog  :heavy_check_mark:
kubelet-service-kill  :heavy_check_mark:
node-cpu-hog
node-memory-hog  :heavy_check_mark:
node-io-stress  :heavy_check_mark:
node-restart :heavy_check_mark:
pumba lib

pod-cpu-hog
Name:         helloservice-pod-delete1-pod-cpu-hog
Namespace:    shubham
Labels:       name=helloservice-pod-delete1-pod-cpu-hog
Annotations:  <none>
API Version:  litmuschaos.io/v1alpha1
Kind:         ChaosResult
Metadata:
  Creation Timestamp:  2021-04-28T19:21:06Z
  Generation:          5
  Resource Version:    346241
  Self Link:           /apis/litmuschaos.io/v1alpha1/namespaces/shubham/chaosresults/helloservice-pod-delete1-pod-cpu-hog
  UID:                 f88bb56a-f170-44c8-a9a5-b37945d2d0df
Spec:
  Engine:      helloservice-pod-delete1
  Experiment:  pod-cpu-hog
Status:
  Experiment Status:
    Fail Step:                 Chaos injection stopped!
    Phase:                     Completed
    Probe Success Percentage:  0
    Verdict:                   Stopped
  History:
    Failed Runs:   0
    Passed Runs:   1
    Stopped Runs:  2
    Targets:
      Chaos Status:  recovered
      Kind:          pod
      Target:        nginx1-78cb94bbd5-qz5xm
      Chaos Status:  recovered
      Kind:          pod
      Target:        nginx1-78cb94bbd5-7g4bc
Events:
  Type     Reason   Age    From                      Message
  ----     ------   ----   ----                      -------
  Normal   Awaited  5m38s  pod-cpu-hog-xej9d5-q2fs7  experiment: pod-cpu-hog, Result: Awaited
  Normal   Pass     4m29s  pod-cpu-hog-xej9d5-q2fs7  experiment: pod-cpu-hog, Result: Pass
  Normal   Awaited  41s    pod-cpu-hog-wpsbmv-g9fjh  experiment: pod-cpu-hog, Result: Awaited
  Warning  Summary  14s    pod-cpu-hog-wpsbmv-g9fjh  pod-cpu-hog experiment has been aborted

node taint
Name:         helloservice-pod-delete1-node-taint
Namespace:    shubham
Labels:       app.kubernetes.io/part-of=litmus
              chaosUID=d175f365-ea58-4252-a9c5-4f4111241b99
              controller-uid=ae006fdb-27c9-4dad-ad13-eaed4cf54df0
              job-name=node-taint-8dcwui
              name=helloservice-pod-delete1-node-taint
Annotations:  <none>
API Version:  litmuschaos.io/v1alpha1
Kind:         ChaosResult
Metadata:
  Creation Timestamp:  2021-04-28T19:29:50Z
  Generation:          2
  Resource Version:    346959
  Self Link:           /apis/litmuschaos.io/v1alpha1/namespaces/shubham/chaosresults/helloservice-pod-delete1-node-taint
  UID:                 f40cc911-7661-48e3-854b-e511b4967a55
Spec:
  Engine:      helloservice-pod-delete1
  Experiment:  node-taint
Status:
  Experiment Status:
    Fail Step:                 N/A
    Phase:                     Completed
    Probe Success Percentage:  100
    Verdict:                   Pass
  History:
    Failed Runs:   0
    Passed Runs:   1
    Stopped Runs:  0
    Targets:
      Chaos Status:  recovered
      Kind:          node
      Target:        ip-192-168-1-160.ec2.internal
Events:
  Type    Reason   Age   From                     Message
  ----    ------   ----  ----                     -------
  Normal  Awaited  59s   node-taint-8dcwui-rzbrw  experiment: node-taint, Result: Awaited
  Normal  Pass     28s   node-taint-8dcwui-rzbrw  experiment: node-taint, Result: Pass

pumba network-loss
Name:         helloservice-pod-delete1-pod-network-loss
Namespace:    shubham
Labels:       name=helloservice-pod-delete1-pod-network-loss
Annotations:  <none>
API Version:  litmuschaos.io/v1alpha1
Kind:         ChaosResult
Metadata:
  Creation Timestamp:  2021-04-28T20:16:41Z
  Generation:          4
  Resource Version:    355891
  Self Link:           /apis/litmuschaos.io/v1alpha1/namespaces/shubham/chaosresults/helloservice-pod-delete1-pod-network-loss
  UID:                 6d8d9821-ed20-4fa1-9005-78febb178107
Spec:
  Engine:      helloservice-pod-delete1
  Experiment:  pod-network-loss
Status:
  Experiment Status:
    Fail Step:                 Chaos injection stopped!
    Phase:                     Completed
    Probe Success Percentage:  0
    Verdict:                   Stopped
  History:
    Failed Runs:   0
    Passed Runs:   1
    Stopped Runs:  1
    Targets:
      Chaos Status:  targeted
      Kind:          pod
      Target:        nginx1-78cb94bbd5-7g4bc
Events:
  Type     Reason   Age    From                           Message
  ----     ------   ----   ----                           -------
  Normal   Awaited  2m27s  pod-network-loss-mdpm3s-pdrlw  experiment: pod-network-loss, Result: Awaited
  Normal   Pass     79s    pod-network-loss-mdpm3s-pdrlw  experiment: pod-network-loss, Result: Pass
  Normal   Awaited  44s    pod-network-loss-u48dna-98grm  experiment: pod-network-loss, Result: Awaited
  Warning  Summary  26s    pod-network-loss-u48dna-98grm  pod-network-loss experiment has been aborted

Looks Good. Needs a pipeline run!


GC overhead limit exceeded while run a hive task with parquet format hdfs file

Reporter: hadu
Note: This issue was originally created as PARQUET-1066. Please see the migration documentation for further details.

Fokko Driesprong / @Fokko:
We need more info to properly check if it is an issue with Parquet


Gitdoc is polluting every opened project

Whenever I open any project (even if I haven't enabled GitDoc in it) it auto adds "gitdoc.enabled": false to .vscode/settings.json. This pollutes every repo I open in VS Code.

My temporary workaround is to disable the extension per workspace basis.

Thanks for sending this feedback! That's an unexpected behavior, and so I'll fix it today.

This has been fixed in the latest extension version. Let me know if you run into any other issues. Thanks!


Setup Jenkins server for performance test

All paths can be passed in as program arguments when users run WriteIndex or RunPerftests.
exec-maven-plugin is added to ./textdb/pom.xml and ./textdb/textdb-perfteset/pom.xml.

Fix minor issues in the comments
Create a private google doc with the setup instructions
Create a "textdb" account for the Jenkins server.

LGTM. Please do the merge!


Read-only styles missing for toggle-button

Compare the icons in date picker and time picker in this image.

When time picker has readonly the icon should use a lighter color (like in date picker above) and it should not have a hover style in that case. Now it also gets darker when hovered even when readonly is set.

Actually this issue only seems to affect the time picker in <vaadin-date-time-picker> but not a plain <vaadin-time-picker> by itself.

Looked into this a bit more and it seems to be a problem in <vaadin-time-picker> not propagating readonly property to attribute so if you set $0.readonly = true on a vaadin-time-picker the style is wrong because readonly attribute is missing.


query STAC extension support

Hi,
Would it be possible to add query support to your STAC endpoints?
As your team noted here, the pystac-client is a little slow when instantiating many items. The query extension would enable some pre-filtering (e.g., based on cloud cover) to help reduce the instantiation of unnecessary items.
For example, a search with the query command below:
api = pystac_client.Client.open(
    "https://planetarycomputer-staging.microsoft.com/api/stac/v1/"
)
s2_search = api.search(
    datetime="2017-09-01/2017-09-05",
    limit=500,
    collections=["sentinel-2-l2a"],
    query=['eo:cloud_cover<5']
)

Currently fails with the following error:
APIError: The 'query' STAC API extension is not yet implemented. You may perform queries against collection IDs, geometry (intersects or bbox), and datetime only. Stay tuned!

Yes, we plan to support querying on extension attributes. Anything else to do here, or can this be closed?

Thanks!


Automated cherry pick of #8920: fix(monitor): modify notify alertInfo and alertOk detach resource

Cherry pick of #8920 on release/3.5.
#8920: fix(monitor):fix notify alertInfo and alertOk detach resource

/lgtm
/approve


Translations for multi-line examples parsed incorrectly

E.g.
https://github.com/langsci/283/blob/8e4ed786627c6efa285ba1377edf12952dad5ac3/chapters/schiattarella.tex#L246-L253
The translation for all lines of the example is given in the last \glt line.
The first line ends up getting parsed as
    {
        "ID": "schiattarella--76587",
        "bookID": 283,
        "book_title": "Nominal anchoring",
        ...
        "imtwordsbare": [
            "girl.{PL.F}",
            "{3SG.F}-cover.{PFV-PRAGM}",
            "/"
        ],
        "srcwordsbare": [
            "{təččíwen}",
            "tə-ṛṭá-ya",
            "/"
        ],
        "trs": "\\exi",
        "wlength": 3
    },

This seems to be garbage-in garbage out. The tex file asserts that there is a translation via \glt, but then only white space follows.
\gll	baʕdén	yə-ʕṃṛ-ín-a	/	albáb	/ \\
	then	3-do.{\textsc{pfv-pl-pragm}}	/	door.{\textsc{sg.m}}	/ \\
\glt

It does have this \exi{} marker:
\ex\label{5ex:16}
\gll	{\textbf{təččíwen}} tə-ṛṭá-ya / \\
	girl.{\textsc{pl.f}} {\textsc{3sg.f}}-cover.{\textsc{pfv-pragm}} /  \\
\glt
\exi{}
\gll	{\textbf{təltáwen}} tə-ṛṭá-ya. / \\
	woman.{\textsc{pl.f}} {\textsc{3sg.f}}-cover.{\textsc{pfv-pragm}} / \\
\glt	`Girls are covered, women are covered.'

Don't know if that's supposed to mean "example continued" or similar.

it means "add an example with a custom identifier". In this case, the custom identifier is ''. The semantically correct code would be
\gll	{\textbf{təččíwen}} tə-ṛṭá-ya / {\textbf{təltáwen}} tə-ṛṭá-ya. / \\
	girl.{\textsc{pl.f}} {\textsc{3sg.f}}-cover.{\textsc{pfv-pragm}} /  woman.{\textsc{pl.f}} {\textsc{3sg.f}}-cover.{\textsc{pfv-pragm}} / \\
\glt	`Girls are covered, women are covered.'

Ok, I guess ~200 "bad" examples are acceptable:
  6. "Translated_Text"

	Type of data:          Text
	Contains null values:  True (excluded from calculations)
	Unique values:         37004
	Longest value:         1.927 characters
	Most common values:    \exi (66x)
	                       None (64x)
	                       } (23x)
	                       \z (16x)
	                       Mary is taller than Peter. (14x)


Add ability to use action-destinations from NPM

This pull request is the other half of https://github.com/segmentio/action-destinations/pull/1276.
This patch just adds the necessary moving parts that will let users bring in action-destinations from NPM.

@neek Looks good, but CI is failing =)


Upgrade velero to v1.12.0

Description
Upgrade Velero to version 1.12.0, which includes:

Upgrade Velero images to v1.12.0
Upgrade Velero modules to v1.8.0, according to the Velero's compatibility matrix
Set Restic as the default uploader type

Notable changes

Velero 1.12.0 uses Kopia as the default uploader type, but the module configures Velero to use Restic. There are rumors online of a possible future deprecation of Restic as a backup tool.

Roadmap

[x] Upgrade Velero to v1.12.0
[x] Upgrade Velero submodules
[x] Upgrade documentation files
[x] Prepare release

Local upgrade tests passed. Awaiting for integration and e2e test results.


Remove the need to nohoist

Summary
Due to a few assumptions made within solid-start - usage within a monorepo with hoisting (npm or yarn) enabled can lead to a few things breaking, which is why nohoist is the recommended approach.
This PR attempts at removing the need for nohoist by handling the following issues I could find.
(There may be more I'm not aware of, these are just the instances I could find)
Automatic adapter detection
Previously, we searched for all solid-start-* packages with { solid: { type: 'adapter' } }  in node_modules.
This can lead to undesired inclusion of adapters in bigger monorepo situations.
This PR changes said behavior to instead only look for known adapter packages in the user's package.json deps and devDeps, and later resolve them from his own CWD, which should resolve successfully regardless of hoisting conditions.
Running or referencing vite
Previously, we assumed vite always lives in node_modules/vite.
This PR adjusts this to either require('vite') or require.resolve('vite') from user's CWD.
Running wrangler in solid-start-cloudflare-workers and solid-start-cloudflare-pages
Similarly, wrangler was also assumed to live in node_modules/wrangler.

I needed to remove this to a branch as it broke the repos doc site. You can find it on the no-hoist branch. Can you help me fix this up so the docs site still works?

Sure! Will ping when I get it going again

Finally got around to it - #676


JuiceFS doesn't support kerberos hadoop ecosystem

We have faced the problem that JuiceFS doesn't support kerberized hadoop environment.

Currently, JuiceFS does not support kerberos authentication

Does the community have plans to support this?

JuiceFS can use the authenticated user by keberos (for example, kinit). What's the exact problem you have faced

@qq619618919 As @tangyoupeng said, JuiceFS can be used in kerberized Hadoop environment, but does not have strong protection comparing to HDFS. What's the problem you are facing?


Improve deleting a src file UX

Fixes #22

TODO: add fix invocation to CI

@googleson78, are there any other changes that you would like to have related to this PR?


Add Data Integration tab documenation

Please add some documentation for the Data Integration tab (page) that is shown in the screen shot above.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 6ab497f2-57e7-2992-7286-d8032b6308ea
Version Independent ID: 276b8930-20f7-8157-a983-5d0bfb6c302b
Content: What is Common Data Service for Apps? - PowerApps
Content Source: powerapps-docs/maker/common-data-service/data-platform-intro.md
Service: powerapps
GitHub Login: @clwesene
Microsoft Alias: matp

Added link to topic that covers a data integration scenario and placed same topic in TOC. https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/data-platform-intro#integrating-data-into-the-common-data-service


Problem running the game with wine.

Describe your bug here.
This error appears in wine, I use the Windows version, as the Linux version does not work in Arch Linux.

Crash Log or logcat logs (if existing)
Invalid char 34 at position 5461.

Are you modding a build from source or with Lua?
I am not modding
Have you open preload state?
Yes
What is your build target?
Desktop (Linux, Windows or Mac)
The version number of your mobile system
x86_64
Did you edit anything in this build? If so, mention or summarize your changes.
Nop

#78

Whether you want to compile the source code or just want to open the game?

Our engine is available in a Linux version, so it's unlikely that you'll need to use wine, and the problem with wine is so specific that we can't figure out why it's reporting an error at the moment.

We can't be sure of the problem with wine, but I can safely say that running nf doesn't require any dependencies to be downloaded

But you can provide you with the problems that arise when running Arch Linux


Bugfix/platfowner/whitelist in genesis

Let me try to merge it to develop (instead of master).

@liayoo , now it's ready. Please resume the review.


Nested Routing

I am opening this PR to add nested route support within the route configuration and matcher. It is not complete and certainly requires some discussion as currently it's a breaking change in as far as what the route configuration object must look like. There would definitely be ways to make it compatible though. It also differs in what is delivered to the Fragment as the result. Instead of the single matching routes details, it's an array of all the details from the route components that constitute the current route.
I added some test cases to demonstrate.
Basically it works like this though:

Define routes from nested route components. I am hoping to improve on the readability of this:

const root = { routeComponent: '/', name:'root' };
const home = { routeComponent:'home', name:'home' };
const messages = { routeComponent:'messages', name:'messages' };
const team = { routeComponent:':team', name:'team' };
const channel = { routeComponent:':channel', name:'channel' };
const spookyparam = { routeComponent:':spookyparam', name:'3spooky5me' };

const routes = Object.assign(root, {
  children: [Object.assign(home, {
    children: [Object.assign(messages, {
      children: [Object.assign(team, {
        children: [Object.assign(channel, {})]
      })]
    }), Object.assign(spookyparam, {})]
  })]
});

When matching a route. This route component tree is traversed as a depth first search. There are other ways to do this, but this was the simplest to implement as a first pass. When a route is matched, it returns the standard structure of:

{
  route: The route which has actually been matched,
  params: Any parameters (or empty object) that have been matched,
  result: The tree components involved in this route
}

but where the result is now an array of the route components in order, so metadata supplied in any of them could be used in the Fragment.

The Fragment now has a new property inRoute that matches any of the route components in the result (potentially this should not be in result). This can be ambiguous (if two route components had the same pattern), so it could be switched to use the route component names instead.

There's still work to be done, but it doesn't seem too difficult and I really think that nested routes are an essential feature.

I have made the route composition a bit tidier:
const root = { routeComponent: '/', name:'root' };
const home = { routeComponent:'home', name:'home' };
const messages = { routeComponent:'messages', name:'messages' };
const team = { routeComponent:':team', name:'team' };
const channel = { routeComponent:':channel', name:'channel' };
const spookyparam = { routeComponent:':spookyparam', name:'3spooky5me' };
const global = { routeComponent:'global', name:'global' };

// Attmempt 7 (Improvement on attempt 6. Seems the simplest)
function makeRoute(details, ...children) {
  return Object.assign({}, details, children ? { children } : {});
}

const routes =
makeRoute(root,
  makeRoute(home,
    makeRoute(messages,
      makeRoute(team,
        makeRoute(channel)
      )
    ),
    makeRoute(global,
      makeRoute(channel)
    ),
    makeRoute(spookyparam)
  )
);

It is also possible to specify the individual route component details inline, but I prefer this as it allows me to reuse components (In this example channel is reused under a global path. Ultimately that's upto the individual developer though, but the mkRoute could be provided as a utility.

I have also added a test case with absolute routing to demonstrate that the existing system of providing full paths to routes needn't go away.
const root = { routeComponent: '/', name:'root' };
const home = { routeComponent:'home', name:'home' };
const messages = { routeComponent:'messages', name:'messages' };
const team = { routeComponent:':team', name:'team' };
const channel = { routeComponent:':channel', name:'channel' };
const spookyparam = { routeComponent:':spookyparam', name:'3spooky5me' };
const global = { routeComponent:'global', name:'global' };
const absolute = { routeComponent:'a/b/c/:d', name:'absolute' }

const routes =
makeRoute(root,
  makeRoute(home,
    makeRoute(messages,
      makeRoute(team,
        makeRoute(channel)
      )
    ),
    makeRoute(global,
      makeRoute(channel)
    ),
    makeRoute(spookyparam)
  ),
  makeRoute(absolute)
);

This will match /a/b/c/whatever and return an array of two items as the results, root (as there can only be one) and the absolute component.

Hey @dpwrussell,
Sorry I didn't get to this sooner, and thanks for all the work you've put into this PR! However, I think it's important that the nested route API remains backwards-compatible for at least a few major releases, given that this library's been though significant churn. I have some ideas on how to make that happen that I'll outline in #53 today.


SEAB-5122: added notebook tab on my starred page

Description
This PR adds a tab for notebooks in the user's My Starred page.
Before:

After:

Review Instructions
Verify that the notebook tab is correctly implemented and the new tests pass.
Issue
https://ucsc-cgl.atlassian.net/browse/SEAB-5122
Security
If there are any concerns that require extra attention from the security team, highlight them here.
Please make sure that you've checked the following before submitting your pull request. Thanks!

[x] Check that your code compiles by running npm run build
[x] Ensure that the PR targets the correct branch. Check the milestone or fix version of the ticket.
[x] If this is the first time you're submitting a PR or even if you just need a refresher, consider reviewing our style guide
[x] Do not bypass Angular sanitization (bypassSecurityTrustHtml, etc.), or justify why you need to do so
[x] If displaying markdown, use the markdown-wrapper component, which does extra sanitization
[x] Do not use cookies, although this may change in the future
[x] Run npm audit and ensure you are not introducing new vulnerabilities
[x] Do due diligence on new 3rd party libraries, checking for CVEs
[x] Don't allow user-uploaded images to be served from the Dockstore domain
[x] If this PR is for a user-facing feature, create and link a documentation ticket for this feature (usually in the same milestone as the linked issue). Style points if you create a documentation PR directly and link that instead.
[x] Check whether this PR disables tests. If it legitimately needs to disable a test, create a new ticket to re-enable it in a specific milestone.

Will need https://github.com/dockstore/dockstore/pull/5406 to be merged for this PR to pass tests

Will need dockstore/dockstore#5406 to be merged for this PR to pass tests

You can update the package.json here to use the artifacts from your webservice branch if you want to run the tests before your webservice PR is merged. If you do that, remember to switch it back to use develop artifacts before you merge this UI PR.


Refactor random number functions

Move some of the functions from bigtable/benchmarks to bigtable/testing.  I am planning to generate random names for instances and clusters, so we need less coordination in the continuous builds that run the integration tests.

@coryan — note that by adding [skip ci] to one of the commits, the entire PR appears to have skipped Travis CI testing — if you look at "All checks passed", it only shows the CLA passed.
Please consider either squashing the PR into a single commit, or at least removing the [skip ci] from the 3rd commit to force Travis CI to test this PR.

@mbrukman Well, that was silly.  Fixed with an empty commit.

@hemant-qlogic @manish-qlogic @roopak-qlogic: this is blocking the remaining fixes for #418, which would help with the integration tests and examples.  Please review when you get a chance.

@coryan — I was thinking more like git commit --amend, edit the last commit's description to remove [skip ci], and git push -f, but whatever works for you. :-)
You can now squash the last 2 commits and remove the [skip ci] so that the history is cleaner, if you'd like.


README: Update 'Usage' to include new commands

New commands are init and help.
The Usage section should match the output of pick help.


iotedge offline questions.

I'm sorry. I closed it by mistake.
https://github.com/MicrosoftDocs/azure-docs/issues/28693
↑ this is my last questions.

Closing this. Will continue the discussion on https://github.com/MicrosoftDocs/azure-docs/issues/28693.


add taskId as logs request criterion

For ui, we need to be able to filter logs by task id and so add it in the api verb Logs.Get

fixed in portal branch


Set and Unordered_set

Description
Description

Hey! I am Tridib Bag , GSSoC'22 Contributor want to add code, algo regarding Sets and unordered_set into LearnCPP/H-HashMap folder in the form of documentation  as there is nothing about it.

Domain
CPP
Type of Contribution
Addition
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of LearnCPP.

/assign

/assign


Passing a Tuple of Numpy arrays to cfunc (scipy.integrate.quad)

The question is related to this one on stackoverflow.
The calling syntax of the cfunc has to be as follows:
double func(double x, void *user_data)

where a Tuple of numpy arrays have to be passed through void *user_data. There should be an easy way to pass numpy-arrays as a Tuple/CStruct to the cfunc. (Changing the interface isn't possible in this case.
I thought that this would be straigth forward, by passing a C_struct containing
int arr_1_ndims
int* arr_1_shape
double* arr_1_data
int arr_2_ndims
int* arr_2_shape
double* arr_2_data
....

but this isn't possible because Numba doesn't seem to support pointers in a C_struct. I learned from issue3220 that Tuples are actually represented as a C_struct in LLVM, so it should be possible to do it somehow.
I found a workaround (shown beyond) using a numpy structured array, but this has the big disadvantage that the cfunc has to be recompiled if the array shapes are changing.
Pure Python Example
def function_using_arrays(x1, x2, array1, array2):
    res1 = np.interp(x1, array1[0], array1[1])
    res2 = np.interp(x2, array2[0], array2[1])

    return res1 + res2

def do_integrate_w_arrays(a, lolim=0, hilim=1):
    foo = np.arange(20, dtype=np.float).reshape(2, -1)
    bar = np.arange(60, dtype=np.float).reshape(2, -1)

    return integrate.quad(function_using_arrays, 0, 1, (a, foo, bar))

Workaround

import numpy as np
import numba as nb
from numba import types
from scipy import integrate, LowLevelCallable
import ctypes

def create_jit_integrand_function(integrand_function,args,args_dtype):
    jitted_function = nb.njit(integrand_function)

    @nb.cfunc(types.float64(types.float64,types.CPointer(args_dtype)))
    def wrapped(x1,user_data_p):
        #Array of structs
        user_data = nb.carray(user_data_p, 1)

        #Extract the data
        x2=user_data[0].a
        array1=user_data[0].foo
        array2=user_data[0].bar

        return jitted_function(x1, x2, array1, array2)
    return wrapped

def function_using_arrays(x1, x2, array1, array2):
    res1 = np.interp(x1, array1[0], array1[1])
    res2 = np.interp(x2, array2[0], array2[1])

    return res1 + res2

def jit_with_dummy_data(args,args_dtype):
    func=create_jit_integrand_function(function_using_arrays,args,args_dtype)
    return func

def do_integrate_w_arrays(func,args,lolim=0, hilim=1):
    integrand_func=LowLevelCallable(func.ctypes,user_data=args.ctypes.data_as(ctypes.c_void_p))
    return integrate.quad(integrand_func, lolim, hilim)

Usage
#creating some sample data
a=3
foo = np.arange(200, dtype=np.float64).reshape(2, -1)
bar = np.arange(600, dtype=np.float64).reshape(2, -1)

args_dtype = types.Record.make_c_struct([
    ('a', types.float64),
    ('foo', types.NestedArray(dtype=types.float64, shape=foo.shape)),
    ('bar', types.NestedArray(dtype=types.float64, shape=bar.shape)),])

args=np.array((a,foo,bar),dtype=args_dtype)

#compile the integration function (array-shapes are fixed)
#There is only a structured array like args allowed
func=jit_with_dummy_data(args,args_dtype)

print(do_integrate_w_arrays(func,args, lolim=0, hilim=1))

Thanks for writing this up @max9111, much appreciated. Someone will take a look.

I think reading a cstruct from void* is possible by writing some intrinsic that reinterpret the void* into what you need.  It's a matter of designing an API to do it for generic C-struct.
There are some example in: https://github.com/numba/numba/blob/3e1d89cb500e84c26fec3810164fbaf07003f991/numba/unsafe/bytes.py#L25-L33

Closing this issue as no new information has been provided. It is assumed that the above resolved the reported issue, if this is not the case please reopen the issue with new information. Many thanks.


feat: set str to use name and id for Dataset and Model

Description
Define __str__ for the Dataset and Model classes for more user friendly prints and reports
Related Issue
Original discussion
Type of Change

[ ] 📚 Examples / docs / tutorials / dependencies update
[ ] 🔧 Bug fix (non-breaking change which fixes an issue)
[x] 🥂 Improvement (non-breaking change which improves an existing feature)
[ ] 🚀 New feature (non-breaking change which adds functionality)
[ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🔐 Security fix

Checklist

[x] I've read the CODE_OF_CONDUCT.md document.
[x] I've read the CONTRIBUTING.md guide.
[x] I've updated the code style using make codestyle.
[x] I've written tests for all new methods and classes that I created.
[x] I've written the docstring in Google format for all the methods and classes that I used.

Thanks for the work, I only have one remark is that the type of object is not visible: test-b55675f8-2ffd-4d7e-92b8-945e40be5b68 can be either a Model or a Dataset.
I believe something like that would be better: <giskard.Model name="test" uuid=b55675f8-2ffd-4d7e-92b8-945e40be5b68>

I overloaded the __str__ method for the moment. I can also add a __repr__ method that with the details you are requesting. I found example like this telling but I am happy to change my implementation if it's more relevant

@kevinmessiaen I have added utest for __repr__ to show that we have richer string vs the naming with __str__. But if you thing that it is better to also include the class name in __str__, I can add it

I don't have a strong opinion on it so we can go without it. But I'm not convinced by having  name-uuid, something like name (uuid) might be easier to read IMO

@kevinmessiaen I have added utest for __repr__ to show that we have richer string vs the naming with __str__. But if you thing that it is better to also include the class name in __str__, I can add it

I don't have a strong opinion on it so we can go without it. But I'm not convinced by having name-uuid, something like name (uuid) might be easier to read IMO

Very good point let me update this request


🕺 FIX - broken link in the md file 🕺

What is this PR About?
Dead link in the testing instructions.  Fixed it.
How do we test this?
Have you followed the TESTING.md doc? If not, please provide commands/steps to test this PR.
^ That's how I got here .... 😋
cc: @redhat-cop/rego-policies

/approve
/lgtm


Knowledge panel lite: Retrieve information in more granular form.  Explore more configurable options for displaying/hiding information

Influence relationships in the knowledge panel seem to already be limited to 3.
With a controller and view for the knowledge panel which retrieves info from the browse Solr indices for authors and subjects, we can control which fields are to be displayed and how many values per field.  For broader and narrower, the view only shows up to 3,