[Bug]: ngram Speculation for LlamaForCausalLM Models Fails due to Sampler

Your current environment

The output of `python collect_env.py`
Collecting environment information...
PyTorch version: 2.4.0+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.6 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Clang version: Could not collect
CMake version: version 3.30.5
Libc version: glibc-2.31

Python version: 3.12.0 (main, Dec  5 2024, 19:27:36) [GCC 9.4.0] (64-bit runtime)
Python platform: Linux-5.15.0-1073-azure-x86_64-with-glibc2.31
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration:
GPU 0: NVIDIA A100 80GB PCIe
GPU 1: NVIDIA A100 80GB PCIe
GPU 2: NVIDIA A100 80GB PCIe
GPU 3: NVIDIA A100 80GB PCIe

Nvidia driver version: 550.90.07
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.9.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.9.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.9.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.9.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.9.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.9.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.9.0
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture:                         x86_64
CPU op-mode(s):                       32-bit, 64-bit
Byte Order:                           Little Endian
Address sizes:                        48 bits physical, 48 bits virtual
CPU(s):                               96
On-line CPU(s) list:                  0-95
Thread(s) per core:                   1
Core(s) per socket:                   48
Socket(s):                            2
NUMA node(s):                         4
Vendor ID:                            AuthenticAMD
CPU family:                           25
Model:                                1
Model name:                           AMD EPYC 7V13 64-Core Processor
Stepping:                             1
CPU MHz:                              2985.906
BogoMIPS:                             4890.87
Hypervisor vendor:                    Microsoft
Virtualization type:                  full
L1d cache:                            3 MiB
L1i cache:                            3 MiB
L2 cache:                             48 MiB
L3 cache:                             384 MiB
NUMA node0 CPU(s):                    0-23
NUMA node1 CPU(s):                    24-47
NUMA node2 CPU(s):                    48-71
NUMA node3 CPU(s):                    72-95
Vulnerability Gather data sampling:   Not affected
Vulnerability Itlb multihit:          Not affected
Vulnerability L1tf:                   Not affected
Vulnerability Mds:                    Not affected
Vulnerability Meltdown:               Not affected
Vulnerability Mmio stale data:        Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed:               Not affected
Vulnerability Spec rstack overflow:   Mitigation; safe RET, no microcode
Vulnerability Spec store bypass:      Vulnerable
Vulnerability Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:             Mitigation; Retpolines; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Vulnerability Srbds:                  Not affected
Vulnerability Tsx async abort:        Not affected
Flags:                                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core invpcid_single vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr rdpru arat umip vaes vpclmulqdq rdpid fsrm

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] nvidia-cublas-cu12==<IP_ADDRESS>
[pip3] nvidia-cuda-cupti-cu12==12.1.105
[pip3] nvidia-cuda-nvrtc-cu12==12.1.105
[pip3] nvidia-cuda-runtime-cu12==12.1.105
[pip3] nvidia-cudnn-cu12==<IP_ADDRESS>
[pip3] nvidia-cufft-cu12==<IP_ADDRESS>
[pip3] nvidia-curand-cu12==<IP_ADDRESS>
[pip3] nvidia-cusolver-cu12==<IP_ADDRESS>
[pip3] nvidia-cusparse-cu12==<IP_ADDRESS>
[pip3] nvidia-ml-py==12.535.161
[pip3] nvidia-nccl-cu12==2.20.5
[pip3] nvidia-nvjitlink-cu12==12.6.77
[pip3] nvidia-nvtx-cu12==12.1.105
[pip3] pynvml==11.5.3
[pip3] pyzmq==26.2.0
[pip3] sentence-transformers==3.2.1
[pip3] torch==2.4.0
[pip3] torchvision==0.19.0
[pip3] transformers==4.46.1
[pip3] triton==3.0.0
[conda] Could not collect
ROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: 0.6.3.post1
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0    GPU1    GPU2    GPU3    NIC0    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      NV12    SYS     SYS     NODE    0-23    0               N/A
GPU1    NV12     X      SYS     SYS     SYS     24-47   1               N/A
GPU2    SYS     SYS      X      NV12    SYS     48-71   2               N/A
GPU3    SYS     SYS     NV12     X      SYS     72-95   3               N/A
NIC0    NODE    SYS     SYS     SYS      X

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

NIC Legend:

  NIC0: mlx5_0

NVIDIA_VISIBLE_DEVICES=all
CUDA_0_OVERRIDE=false
NVIDIA_REQUIRE_CUDA=cuda>=12.1 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471 brand=tesla,driver>=525,driver<526 brand=unknown,driver>=525,driver<526 brand=nvidia,driver>=525,driver<526 brand=nvidiartx,driver>=525,driver<526 brand=geforce,driver>=525,driver<526 brand=geforcertx,driver>=525,driver<526 brand=quadro,driver>=525,driver<526 brand=quadrortx,driver>=525,driver<526 brand=titan,driver>=525,driver<526 brand=titanrtx,driver>=525,driver<526
NCCL_MIN_NCHANNELS=8
NCCL_VERSION=2.17.1-1
NVIDIA_DRIVER_CAPABILITIES=compute,utility
NVIDIA_PRODUCT_NAME=CUDA
CUDA_VERSION=12.1.1
CUDA_GRAPH=false
MAX_JOBS=6
LD_LIBRARY_PATH=/usr/local/lib/python3.12/site-packages/cv2/../../lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64
CUDA_MODULE_LOADING=LAZY

Model Input Dumps
No response
🐛 Describe the bug
When using ngram speculation with Llama-70B-Instruct, vLLM fails due to the LlamaForCausalLM object missing the sampler attribute. I serve the model with the following command:
vllm serve {model_path} \
--served-model-name Llama-70B-Instruct \
--host <IP_ADDRESS> \
--port worker_port \
--device cuda \
--block-size 32 \
--gpu-memory-utilization 0.9 \
--enable-prefix-caching \
--guided-decoding-backend outlines \
--cpu-offload-gb 0 \
--tensor-parallel-size 1 \
--pipeline-parallel-size 3 \
--distributed-executor-backend ray \
--speculative_model [ngram] \
--num_speculative_tokens 10

This is the traceback:
[rank0]: Traceback (most recent call last):
[rank0]:   File "/usr/local/bin/vllm", line 8, in <module>
[rank0]:     sys.exit(main())
[rank0]:              ^^^^^^
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/scripts.py", line 195, in main
[rank0]:     args.dispatch_function(args)
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/scripts.py", line 41, in serve
[rank0]:     uvloop.run(run_server(args))
[rank0]:   File "/usr/local/lib/python3.12/site-packages/uvloop/__init__.py", line 109, in run
[rank0]:     return __asyncio.run(
[rank0]:            ^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
[rank0]:     return runner.run(main)
[rank0]:            ^^^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
[rank0]:     return self._loop.run_until_complete(task)
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
[rank0]:   File "/usr/local/lib/python3.12/site-packages/uvloop/__init__.py", line 61, in wrapper
[rank0]:     return await main
[rank0]:            ^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 552, in run_server
[rank0]:     async with build_async_engine_client(args) as engine_client:
[rank0]:   File "/usr/local/lib/python3.12/contextlib.py", line 204, in __aenter__
[rank0]:     return await anext(self.gen)
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 107, in build_async_engine_client
[rank0]:     async with build_async_engine_client_from_engine_args(
[rank0]:   File "/usr/local/lib/python3.12/contextlib.py", line 204, in __aenter__
[rank0]:     return await anext(self.gen)
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 139, in build_async_engine_client_from_engine_args
[rank0]:     engine_client = build_engine()
[rank0]:                     ^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/engine/async_llm_engine.py", line 672, in from_engine_args
[rank0]:     engine = cls(
[rank0]:              ^^^^
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/engine/async_llm_engine.py", line 567, in __init__
[rank0]:     self.engine = self._engine_class(*args, **kwargs)
[rank0]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/engine/async_llm_engine.py", line 263, in __init__
[rank0]:     super().__init__(*args, **kwargs)
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/engine/llm_engine.py", line 334, in __init__
[rank0]:     self.model_executor = executor_class(
[rank0]:                           ^^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/executor/ray_gpu_executor.py", line 512, in __init__
[rank0]:     super().__init__(*args, **kwargs)
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/executor/distributed_gpu_executor.py", line 26, in __init__
[rank0]:     super().__init__(*args, **kwargs)
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/executor/executor_base.py", line 47, in __init__
[rank0]:     self._init_executor()
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/executor/ray_gpu_executor.py", line 65, in _init_executor
[rank0]:     self._init_workers_ray(placement_group)
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/executor/ray_gpu_executor.py", line 279, in _init_workers_ray
[rank0]:     self._run_workers("init_device")
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/executor/ray_gpu_executor.py", line 411, in _run_workers
[rank0]:     self.driver_worker.execute_method(method, *driver_args,
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/worker/worker_base.py", line 465, in execute_method
[rank0]:     raise e
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/worker/worker_base.py", line 456, in execute_method
[rank0]:     return executor(*args, **kwargs)
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/spec_decode/spec_decode_worker.py", line 321, in init_device
[rank0]:     self._configure_model_sampler_for_spec_decode()
[rank0]:   File "/usr/local/lib/python3.12/site-packages/vllm/spec_decode/spec_decode_worker.py", line 345, in _configure_model_sampler_for_spec_decode
[rank0]:     (self.scorer_worker.model_runner.model.sampler.include_gpu_probs_tensor
[rank0]:      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1729, in __getattr__
[rank0]:     raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
[rank0]: AttributeError: 'LlamaForCausalLM' object has no attribute 'sampler'. Did you mean: 'sample'?

Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Thanks for reporting! I have opened #10975 to fix it, please try it out.

Sorry, it appears that speculative decoding isn't supported with PP yet.

@DarkLight1337 Thank you for looking into this. I'm interested in contributing to this issue! Please let me know how I can help to support Spec Decoding with PP.

@comaniac are you able to help with this?

Will take a look later. @avnukala feel free to open a PR and tag me if you have resolved it.


[codelab] 404 error for favicon URL in mdc-101 starter

These URLs return a 404 error:
https://material.io/static/images/simple-lp/favicons/components-192x192.png https://material.io/static/images/simple-lp/favicons/components-72x72.png

Thanks for pointing this out.
We should probably update to use https://material.io/favicon.ico.


Cancel open order on spot doesnt work

Cancel order doesnt work response is order not found. But the orderId is correct

I have realized that, somehow the orderId is being changed after serializing it to the frontend. The last three digits are changing.
Now i am trying to find a solution to that. But be aware that, when we fetch open orders and lets say the orderId is:
588591686646136846
After serialization to the frontend, it is becoming to:
588591686646136800
Somehow it is rounding but i dont know why. Thats why, the cancel order response was 'Order not found'.
Note: This stuation is not related to this library.

I'll inspect deeply

Which library do you use?

It is related to javascript. Even in Swagger, it is changing. Javascript cannot handle such big numbers.
I have converted it into string and problem fixed

I'm happy for you. Have a nice day.


BREAKING: Remove EXTRA_LANGUAGES, now using cucumber Examples

Closes #444, closes #337, closes #59 (EXTRA_LANGUAGES issues)

Closed by #735


Error: Error creating S3 bucket: BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.

Describe the Bug
Getting an error Error: Error creating S3 bucket: BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again. when running terraform apply -auto-approve.
Also, it asks to Enter the value of a region for S3, however, it's already in vars. World be nice to automate this step as well :)
Environment:

OS version: [macOS: Big Sur]
Terraform version [Terraform v0.12.28
+provider.aws v2.70.0
+provider.local v1.4.0
+provider.null v2.1.2
+provider.template v2.1.2]

Steps to Reproduce
terraform apply -auto-approve

var.region
  AWS Region the S3 bucket should reside in

  Enter a value: us-west-2

provider.aws.region
  The region where AWS operations will take place. Examples
  are us-east-1, us-west-2, etc.

  Enter a value: us-west-2

aws_dynamodb_table.with_server_side_encryption[0]: Refreshing state... [id=terraform-state-lock]
module.terraform_state_backend.aws_dynamodb_table.with_server_side_encryption[0]: Refreshing state... [id=eg-test-terraform-state-lock]
data.aws_iam_policy_document.prevent_unencrypted_uploads[0]: Refreshing state...
module.terraform_state_backend.data.aws_iam_policy_document.prevent_unencrypted_uploads[0]: Refreshing state...
aws_s3_bucket.default: Creating...
module.terraform_state_backend.aws_s3_bucket.default: Creating...

Error: Error creating S3 bucket: BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
        status code: 409, request id: DAE8503E57F632E7, host id: LLcTL4YZN1mIOL8mJzBL9y5d4YJKs/tt7CHh5Ks63naqarYBD/RC8Nnqzs7FQ9mRaRMsdQUhmgs=

  on main.tf line 145, in resource "aws_s3_bucket" "default":
 145: resource "aws_s3_bucket" "default" {

Error: Error creating S3 bucket: BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
        status code: 409, request id: 6DF9DDE094778C9C, host id: 2m8a4gn4qbQ4xwZpNaU1/vmCQuHFM+pV1EQA58+45JSmJ7FVxixXIoFigKhg5KXIrOCVqb7L8+4=

  on .terraform/modules/terraform_state_backend/main.tf line 124, in resource "aws_s3_bucket" "default":
 124: resource "aws_s3_bucket" "default" {

@organicnz is you did not destroy the bucket before creating this is going to happen.
this is not a bug AFAIK

@organicnz is you did not destroy the bucket before creating this is going to happen.
this is not a bug AFAIK

Just tried it again and it spews the same error :)
terraform destroy -refresh=false
var.region
  AWS Region the S3 bucket should reside in

  Enter a value: us-west-2

provider.aws.region
  The region where AWS operations will take place.
  Terraform will destroy all your managed infrastructure, as shown above.
  There is no undo. Only 'yes' will be accepted to confirm.

  Enter a value: yes

Destroy complete! Resources: 0 destroyed.
 organic@Organic  ~/CloudMail/IT/Development/devops/terraform/terraform-aws-tfstate-backend   master ●  terraform apply -auto-approve
var.region
  AWS Region the S3 bucket should reside in

  Enter a value: us-west-2

provider.aws.region
  The region where AWS operations will take place. Examples
  are us-east-1, us-west-2, etc.

  Enter a value: us-west-2

data.aws_iam_policy_document.prevent_unencrypted_uploads[0]: Refreshing state...
module.terraform_state_backend.data.aws_iam_policy_document.prevent_unencrypted_uploads[0]: Refreshing state...
module.terraform_state_backend.aws_dynamodb_table.with_server_side_encryption[0]: Creating...
aws_dynamodb_table.with_server_side_encryption[0]: Creating...
module.terraform_state_backend.aws_s3_bucket.default: Creating...
aws_s3_bucket.default: Creating...
module.terraform_state_backend.aws_dynamodb_table.with_server_side_encryption[0]: Still creating... [10s elapsed]
aws_dynamodb_table.with_server_side_encryption[0]: Still creating... [10s elapsed]
module.terraform_state_backend.aws_dynamodb_table.with_server_side_encryption[0]: Creation complete after 10s [id=eg-test-terraform-state-lock]
aws_dynamodb_table.with_server_side_encryption[0]: Creation complete after 12s [id=terraform-state-lock]

Error: Error creating S3 bucket: BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
        status code: 409, request id: 4A229001A6A1EA6C, host id: LlszF09zWpcTVFKP0IEWt52qEFMjHbFSwtfU8W0S7scUK53fjrG2ACyY7QDwGgFkvmMh6t9uuj8=

  on main.tf line 145, in resource "aws_s3_bucket" "default":
 145: resource "aws_s3_bucket" "default" {

Error: Error creating S3 bucket: BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
        status code: 409, request id: 59E964BDAA48DCDD, host id: aKpwR55Nh0aRFwAIv6Y8QQkMcnmZWSUFOLuvL5nmO4Bh+eOSAayCmXE1zrIHT66Faah1/VfglMA=

  on .terraform/modules/terraform_state_backend/main.tf line 124, in resource "aws_s3_bucket" "default":
 124: resource "aws_s3_bucket" "default" {

Hi @organicnz This is normal behavior with S3 buckets, when buckets have deleted the names takes some time to be released so that it can be reused, this is not a bug on the module or terraform, this is how the AWS api works

Hi @organicnz This is normal behavior with S3 buckets, when buckets have deleted the names takes some time to be released so that it can be reused, this is not a bug on the module or terraform, this is how the AWS S3 api works

Yeah, looks like it is, still cleaning up S3 buckets in region us-west-2, but when it passed that step in us-west-1 or us-east-1 it drops another error with coalescelist. Someone mentioned that it should rely on the conditional operator on a thread.
terraform apply -auto-approve

var.region
  AWS Region the S3 bucket should reside in

  Enter a value: us-west-1

provider.aws.region
  The region where AWS operations will take place. Examples
  are us-east-1, us-west-2, etc.

  Enter a value: us-west-1

module.terraform_state_backend.data.aws_iam_policy_document.prevent_unencrypted_uploads[0]: Refreshing state...
data.aws_iam_policy_document.prevent_unencrypted_uploads[0]: Refreshing state...
aws_dynamodb_table.with_server_side_encryption[0]: Refreshing state... [id=terraform-state-lock]
module.terraform_state_backend.aws_dynamodb_table.with_server_side_encryption[0]: Refreshing state... [id=eg-test-terraform-state-lock]

Error: Error in function call

  on main.tf line 255, in data "template_file" "terraform_backend_config":
 255:       coalescelist(
 256:
 257:
 258:
    |----------------
    | aws_dynamodb_table.with_server_side_encryption is empty tuple
    | aws_dynamodb_table.without_server_side_encryption is empty tuple

Call to function "coalescelist" failed: no non-null arguments.

Error: Error in function call

  on .terraform/modules/terraform_state_backend/main.tf line 234, in data "template_file" "terraform_backend_config":
 234:       coalescelist(
 235:
 236:
 237:
    |----------------
    | aws_dynamodb_table.with_server_side_encryption is empty tuple
    | aws_dynamodb_table.without_server_side_encryption is empty tuple

Call to function "coalescelist" failed: no non-null arguments.

are you cleaning the .terraform dir and such when switching to another region? this is to create the bucket for the state to be stored so it should not exist in the state until is created.
I will assume you switched to another region because you do not have a state so in that case, you reinitialized the project which can be done by rm -rf .terraform and then terraform init and then apply or plan

are you cleaning the .terraform dir and such when switching to another region? this is to create the bucket for the state to be stored so it should not exist in the state until is created.
I will assume you switched to another region because you do not have a state so in that case, you need to reinitialize the project which can be done by rm -rf .terraform and then terraform init and then apply or plan

Thank you, I haven't cleaned it up before you mentioned and my deep apologies that it's not a bug as it was labelled initially.
That's so weird it shows empty S3 storage, but the issue doesn't disappear anywhere. Should it be rather addressed to AWS? :)
#Error: Error creating S3 bucket: BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
        status code: 409, request id: C83D6B33B66E5AD0, host id: nsXFCzCdd2+HJUyPrrHIQokq735AEYzTntQPdNUY7OOBF+GSd5WrljJKto7LyyThoCsBCIt3LIQ=

  on .terraform/modules/terraform_state_backend/main.tf line 124, in resource "aws_s3_bucket" "default":
 124: resource "aws_s3_bucket" "default" {

Any conclusion ? I got same weird BucketAlreadyExists error

Any conclusion ? I got same weird BucketAlreadyExists error

Hi mate, have you tried to create a new unique S3 bucket?

I have same issue - I'm creating bucket that never existed before with just random name but receive Error creating S3 bucket: BucketAlreadyExists

@sev3ryn Note that S3 bucket names must be globally unique amongst all AWS customers.

yes, thanks, thats was it. Interesting what is aws reasoning behind that if bucket is not even public :)

To make your bucket name unique, you can add random string after attributes. In my case, i define it like this
resource "random_string" "random" {
  length  = 12
  upper   = false
  number  = false
  lower   = true
  special = false
}

module "terraform_state_backend" {
  source = "cloudposse/tfstate-backend/aws"
  # Cloud Posse recommends pinning every module to a specific version
  version    = "0.33.1"
  namespace  = "eg"
  stage      = "test"
  name       = "terraform"
  attributes = ["state-${random_string.random.result}"]

  terraform_backend_config_file_path = "."
  terraform_backend_config_file_name = "backend.tf"
  force_destroy                      = false
}

This is more easier than searching new unique name since S3 bucket name is globally unique.

This doesn't seem like an issue with this module as this module cannot ensure that the bucket name is unique globally

@sev3ryn Note that S3 bucket names must be globally unique amongst all AWS customers.

thanks for reminding, it helped :)
cheers!

Error: creating S3 Bucket (swethabuckets7128834): operation error S3: CreateBucket, https response error StatusCode: 409, RequestID: 08J2B14W7G3ZB0D0, HostID: CegKwKnfuzghXHKd7N0RI7VlOVzYUVNErrFDzhtg/+hzWMs8KUF3Jeq1m9PEydPJMx6nuSzQZsFYEjICOjWsJw==, BucketAlreadyOwnedByYou:
Getting above error while changing tfstate file to remote.


[BUG]: No refresh button in the Developer Compliance Center

Describe the bug
In the Developer Compliance Center App overview page, the prompt text in the description field does not go away after inputting a description and it also refers to a Refresh button below that does not exist
Component (please tell us which flow or app you are experiencing issues with):

Solution: Governance
Version: 1.17
App: Developer Compliance Center

To Reproduce
Steps to reproduce the behavior:

when a user responds to a request to provide app detail they are presented with the App overview form

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Additional context
Add any other context about the problem here.

Hello this was fixed via #704
Thanks for using CoE


docs: update keyvault command for managed identity in quickstart

This PR fixes the instructions in step 4 of the quick start guide when using user-assigned managed identities. Specifically, the change is to use the managed identity's principalId instead of clientId for the --object-id parameter when creating the Key Vault security policy.
Reason for Change:
The quick start guide didn't work when using user-assigned managed identities. Specifically, I saw
{"error":{"code":"Forbidden","message":"The user, group or application 'appid=REDACTED-CLIENT_ID;oid=REDACTED-PRINCIPAL_ID;iss=https://sts.windows.net/REDACTED/' does not have secrets
get permission on key vault 'REDACTED;location=eastus'. For help resolving this issue, please see https://go.microsoft.com/fwlink/?linkid=2125287","innererror":{"code":"AccessDenied"}}}

Is this a deployment yaml update?
No
Are you making changes to the Helm chart?
No
Requirements

[X] squashed commits
[X] included documentation
[ ] added unit tests and e2e tests (if applicable). N/A

Issue Fixed:
N/A
Please answer the following questions with yes/no:
Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?

[ ] yes
[x] no

Notes for Reviewers:

/azp run Azure Workload Identity CI


Can you make tsp ignore TS packets with wrong sync word?

First of all, sorry for asking this question about the issues.
I built a simple radio transmission system with GNU Radio. The data is not protected with an FEC error protection.
I want to transmit a transport stream with embedded UDP segments. The TS data is evaluated on the receiving side with the following tsp command:
/home/delport/.blocksat/src/tsduck/bin/release-x86_64-ftkt-nb04/tsp --realtime --buffer-size-mb 1.0 --max-flushed-packets 10 --max-input-packets 10 -P bitrate_monitor -p 1 --min 0 -I file ts_input_fifo -P mpe --pid 32-33 --udp-forward --local-address <IP_ADDRESS> -O drop
If I simulate the radio transmission system (no noise), everything goes well. When I work with SDR devices and antennas, i.e. with a disturbed radio channel, tsp stops because the synchronization word was not found.

Error: file: synchronization lost after 1,045 packets, got 0x20 instead of 0x47

Is there an option for tsp that tsp simply ignores TS packets for which it has not found a synchronization word?

This is the role of a demodulator to check errors and verify TS sync bytes. In case of error detection and partial recovery, the transport_error_indicator bit shall be set in the TS header.
This what a physical tuner does. This is why the input plugin dvb always receives correct TS packets. If the signal is noisy, packets are dropped or corrected by the tuner / demodulator.
An SDR-based software demod shall do the same.

Ok, thank you for your answer.


Create Nova flavors for Octavia

Add support for system-scope Compute client.
Ensure that 2 nova flavors are created:

octavia-amphora: 1 vCPU, 1GB RAM, 3GB disk
octavia-amphora-4vcpus: 4 vCPU, 4GB RAM, 3GB disk

Flavors in previous releases used non-UUIDs as ID (octavia_65, etc...) and didn't have a clear naming convention (amphora*, octavia*). Don't force the ID of the new flavors, let Nova generates them.
octavia-amphora is the default flavor in Octavia

/lgtm


Class PagesController does not exist

Class PagesController does not exist. I've created this into an existing site and I get this error on some pages including home page, and trying to view live page after creating one.
PagesController looks to sit under app/Http/Controllers/Quarx. I've also set the Quarx namespace in the composer.json under psr-4 as instructions.
Any ideas what I'm doing wrong?
ReflectionException in Container.php line 719:
Class Quarx\PagesController does not exist
in Container.php line 719
at ReflectionClass->__construct('Quarx\\PagesController') in Container.php line 719
at Container->build('Quarx\\PagesController') in Container.php line 598
at Container->resolve('Quarx\\PagesController') in Container.php line 567
at Container->make('Quarx\\PagesController') in Application.php line 702
at Application->make('Quarx\\PagesController') in Route.php line 217
at Route->getController() in Route.php line 736
at Route->controllerMiddleware() in Route.php line 697
at Route->gatherMiddleware() in Router.php line 572
at Router->gatherRouteMiddleware(object(Route)) in Router.php line 552
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 520
at Router->dispatchToRoute(object(Request)) in Router.php line 498
at Router->dispatch(object(Request)) in Kernel.php line 174
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 30
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Debugbar.php line 51
at Debugbar->handle(object(Request), object(Closure)) in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in Kernel.php line 149
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116
at Kernel->handle(object(Request)) in index.php line 53

What does the route provider look like?

See below
<?php

namespace App\Providers;

use App\Models\Access\User\User;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;

/**
 * Class RouteServiceProvider
 * @package App\Providers
 */
class RouteServiceProvider extends ServiceProvider
{
    /**
     * This namespace is applied to your controller routes.
     *
     * In addition, it is set as the URL generator's root namespace.
     *
     * @var string
     */
    protected $namespace = 'App\Http\Controllers';

    /**
     * Define your route model bindings, pattern filters, etc.
     *
     * @return void
     */
    public function boot()
    {
		/**
		 * Register route model bindings
		 */

		/**
		 * This allows us to use the Route Model Binding with SoftDeletes on
		 * On a model by model basis
		 */
		$this->bind('deletedUser', function($value) {
			$user = new User;
			return User::withTrashed()->where($user->getRouteKeyName(), $value)->first();
		});

        parent::boot();
    }

    /**
     * Define the routes for the application.
     *
     * @return void
     */
    public function map()
    {
        $this->mapWebRoutes();

        $this->mapApiRoutes();

        // Quarx CMS Routes
        require base_path('routes/quarx.php');
    }

    /**
     * Define the "web" routes for the application.
     *
     * These routes all receive session state, CSRF protection, etc.
     *
     * @return void
     */
    protected function mapWebRoutes()
    {
        Route::group([
            'middleware' => 'web',
            'namespace' => $this->namespace,
        ], function ($router) {
            require base_path('routes/web.php');
        });
    }

    /**
     * Define the "api" routes for the application.
     *
     * These routes are typically stateless.
     *
     * @return void
     */
    protected function mapApiRoutes()
    {
        Route::group([
            'middleware' => 'api',
            'namespace' => $this->namespace,
            'prefix' => 'api',
        ], function ($router) {
            require base_path('routes/api.php');
        });
    }
}

require base_path('routes/quarx.php'); needs to go in mapWebRoutes under require base_path('routes/web.php');

Otherwise the namespace reference is off

Ah yes just played with that as you commented. Thanks. Now I'll just have to figure out how to stop Quarx changing my home page over at "/"
Thanks mate

No problem, Route::get('', 'PagesController@home'); comment that out and you should be clear on the homepage

Touchè.
The pages always 404 still when I publish one. (/page/test). Nothing special I have to do to get them working? Should just route through PagesController

Published date seems to be the cause, should be right from here :)
->where('published_at', '<=', Carbon::now()->format('Y-m-d h:i:s')) works when I take it out
Thanks

Just an FYI @jonathan-bird if you want to, you can comment out the forms.pages.published_at config in the config/quarx.php file and then you can ignore the published at all together. All you'd have to do is then make a new Repo class which extends the existing and tweak that method to ignore the published_at field


Who is Beyond Activismo?

The README is a nice introduction to the project, but I don't get any sense of who the people behind the project are, and why they are motivated to work on it...
I think that your video will help to address this, which is great.
But I wanted to share one more easy idea which you could think about implementing in addition: an introductions thread.
The other project I'm mentoring is We Are All Connected, and they have added an introductions issue for project participants and new contributors to say hi. If you wanted to set up a similar issue, I think the best way to do it would be to call the issue something like Introductions: Welcome to Beyond Activismo! with a short introduction, like the WAC issue:
If you are interested in this project, even if you're not sure how to contribute, please say "Hi" and tell us a bit about yourself, and why you're interested in the topic of activism.
Then each of you can comment on the issue:
Hi, I'm Josefina... this is my background... this is why I'm interested in working on Beyond Activismo... this is how I contribute...

Hey Sam,
We were trying to do something like that here: #46 I really like the Idea of posting ourself a little presentation.

@cameralibre This is the Pad were we are working on the topics of what? how? and why?:  Yo can have a look. I guess all of us have different motivations to participate in the project wich ist actually something we shouldn't hide, as it gives a more personal touch to people who are learning about the project for the first time. We are also working on a projectwide why? at the same time to include it in the video and in future presentations of the project, though.

ah, great to see that you're already doing this! sorry, I had missed #46.

We could also do it as a comment instead of putting it in the issues desvription, maybe we'll help to break the ice by doing so.

yes, @denefi I think this is a great idea to help welcome participants in, because it does not create a barrier between the 'team members' (who are in the description) and the 'other contributors' who are in the thread. If you each individually add a comment in the thread, it is more of a conversation, and it creates a rhythm and a space for others to follow your lead and introduce themselves too.

Issue solved by creating #46


C++: Cardinality violations should use error code “unimplemented”

The gRPC docs for error codes state that both client and server should use the unimplemented code for cardinality violations. See table at the bottom of this doc (you can search for “cardinality violation” in the doc): https://grpc.github.io/grpc/core/md_doc_statuscodes.html.
A cardinality violation is when a stream contains an incorrect number of messages. Specifically, when a response stream for a unary or client-stream RPC contains zero messages with an OK status or more than one message; or when a request stream for a unary or server-stream RPC contains zero or more than one messages.
The C++ client and server in this repo do not report unimplemented errors for these cases.
Client

For unary RPCs, if no response messages are present in the response, only an “OK” status, the client behaves correctly: an unimplemented status is reported.
For client-stream RPCs, if no response messages are present in the response, only an “OK” status, there is no error at all. The response message provided when the stream is created/started is not populated and left empty/unchanged.
For both unary and client-stream RPCs, if a second response message is erroneously sent by the server before the trailers/status, the operation appears to hang indefinitely (!!). The invocation of a unary RPC hangs; for client-stream RPCs, the call to writer->Finish() hangs. This unbounded blocking can be interrupted by cancelling the ClientContext used to initiate the RPC, which (as expected) causes the RPC to report a canceled status.

Server

For both unary and server-stream RPCs, if no request message is sent and then the request stream half-closed, the server sends an internal status (instead of unimplemented) with a somewhat cryptic error message of “Couldn't initialize byte buffer reader”.
For both unary and server-stream RPCs, if a subsequent request message is sent before the request stream is half-closed, it is ignored. The operation proceeds without error as if it only received the first request message.

For the Java issue I mentioned this change to the spec was made without any real notification/discussion. So we may want to re-consider the spec in this case. https://github.com/grpc/grpc-java/issues/11247#issuecomment-2140803584

To be clear: we should definitely fix the hang, and we don't need agreement on the status code before doing so. The cases that ignore cardinality, especially the case on client-side, should be looked in to. Acting as if there was a message when there wasn't one seems clearly wrong and would confuse applications. The server-side behavior of only using the first is at least a semantic that could reasonably be used, although if we mirrored protobuf we'd have chosen the last to win. It is still worrisome that both don't produce errors, and other languages are producing errors in these cases.


No function clause matching in Moebius.Extensions.DateExtension.decode/4

Getting an issue when the %Postgrex.TypeInfo{type: "timestamp"}. There isn't a match on that. I can add the fix but wanted to check with @xivSolutions first.
** (FunctionClauseError) no function clause matching in Moebius.Extensions.DateExtension.decode/4
           (moebius) lib/moebius/extensions/date_extension.ex:47: Moebius.Extensions.DateExtension.decode(%Postgrex.TypeInfo{array_elem: 0, base_type: 0, comp_elems: [], input: "timestamp_in", oid: 1114, output: "timestamp_out", receive: "timestamp_recv", send: "timestamp_send", type: "timestamp"}, <<0, 1, 215, 143, 95, 251, 70, 53>>, 172079, nil)
          (postgrex) lib/postgrex/query.ex:118: DBConnection.Query.Postgrex.Query.decode_row/4
          (postgrex) lib/postgrex/query.ex:109: DBConnection.Query.Postgrex.Query.do_decode/5
          (postgrex) lib/postgrex/query.ex:74: DBConnection.Query.Postgrex.Query.decode/3
     (db_connection) lib/db_connection.ex:423: DBConnection.query/4
          (postgrex) lib/postgrex.ex:111: Postgrex.query/4
           (moebius) lib/moebius/database.ex:236: Moebius.Database.execute/1
    (authentication) lib/moebius/database.ex:38: Authentication.Database.run/1

I find it odd this hasn't created trouble before now... @nurugger07 I won't be able to look at this until at least tonight. If you have the fix, and want to get it up there, do so. I can then try to break it ;-)
Otherwise I'll see what I can figure out. My only concern I guess is that this was something intentional, which has somehow become broken, or just an oversight back when @robconery was experimenting putting together the custom date extensions.

@nurugger07  - I think your suggested fix of modifying the function signature is the simplest, most sensible fix. My understanding is that the use of timestamp is less then ideal in the majority of use cases, but we should probably cover it.
It would surprise me not at all to learn that @robconery made a tactical decision not to handle that type specifically, given his convictions about dates and timezones (which I share). :trollface:
I believe the decoding itself is valid in either case, so doing:
def decode(%Postgrex.TypeInfo{type: timestamp},<<microsecs :: int64>>, _, _) when timestamp in ["timestamptz", "timestamp"] do

should do it. I Think. I did it locally, and added a test that passes.

This can be closed now. I fixed it with https://github.com/robconery/moebius/pull/62


How to get the confidence of my prediction?

For example in python I do:
prediction = mNet.predict([image])
print prediction
And the output is:
[[ 0.32693869  0.20242123  0.26447725  0.20616281]]
How do I get it on caffe-mobile?
Thanks, you are doing a great work!!

I added to caffe_jni.cpp the following lines:
JNIEXPORT jfloatArray JNICALL
Java_com_sh1r0_caffe_1android_1lib_CaffeMobile_getConfidence(JNIEnv *env,
jobject thiz,
jstring imgPath) {
CaffeMobile *caffe_mobile = CaffeMobile::Get();
vector confidence = caffe_mobile->GetConfidence(jstring2string(env, imgPath));
jfloatArray result;
result = env->NewFloatArray(4);
if (result == NULL) {
return NULL; /* out of memory error thrown */
}
// move from the temp structure to the java structure
env->SetFloatArrayRegion(result, 0, 4, &confidence[0]);
return result;
}
Then added to caffe_mobile.cpp
vector CaffeMobile::GetConfidence(const string &img_path) {
const vector probs = Forward(img_path);
return probs;
}
And created a native method on android. But it returns the following code ( I have 4 classes):
label 0 = 0.0
label 1 = 1.0
label 2 = 0.0
label 3 = 0.0
Another prediction:
label 0 = 0.0
label 0 = 0.0
label 0 = 0.0
label 0 = 1.0
So, it gives not gives to me the confidence that I want. Am I doing something wrong? Or is not possible?

Hi,
We are trying to build an app which requires to classify objects based on whether the confidence value is higher than a threshold. This work of yours looks really promising and we would like to go forward with using it. Problem is that we really need the individual confidence values. Please see if this functionality can be added asap.
Else, it seems that only the .so is accessible in the recent commits and not the .cpp code which we can ourselves modify. See if you can re-add in the upcoming commits.

I have updated the dev branch with GetConfidenceScore function in caffe_mobile module. The source files are right here.
Please have a try and kindly let me know if there is any problem. Thanks.

I can see the changes in the .cpp files. But, how to get them reflected in the java class?
Please update the caffe-android-demo project with these changes. Also, please add some documentation on how to get the functionality from .cpp to .java.


[New] Show device location using indoor positioning

Description
This PR implements Show device location using indoor positioning in Map category.

swift/issues/5653 (internal test data in the issue)
common-samples/pull/3939

How To Test
Load map and wait for campus to load. You should see your location relative to the layout of the office.
Please note:

The sample data doesn't work in Building M due to no pathway table was surveyed, and not in Building L either maybe due to dead batteries. To see it in action, use the internal data in the issue linked above.
Both the indoorPositioningDefinition and the manual ips_positioning creation of the LDS should work, so make sure you test both condition branches

Screenshots

updated UI

@philium should be ready for you to look at when you get the chance.

Thank you for making those changes. Just a couple more, as far as I can see. Getting close!

Glad to make the changes, I appreciate all your feedback!

😁

Thank you all for the feedback. Chris, great job for pulling all the pieces together!

Thank you guys for getting it across the finish line!


node-runner /tmp permissions and Docker

Hey, thanks for the nice gem!
I'm using node-runner to run @mozilla/readability in the backend. Right now I'm trying to deploy my Rails app with Docker, and am running into an issue when trying to run JS with NodeRunner:
Errno::EACCES (Permission denied - /tmp/node_runner20240606-306-k7aaz5js):
I've already tried changing the permissions on /tmp in my Dockerfile, but to no help:
RUN chmod -R 777 tmp
I realize it's not necessarily a node-runner specific issue, but maybe you have some insight as to what might be happening?

ok, I figured it out: I had to install nodejs and npm packages, and the node packages later in the Dockerfile


 Change it to: "Gibbix"

And set the password to: "gibbix12345"

Add a password


subscribeOnScope promise does not return subscription

https://github.com/voryx/angular-wamp/blob/master/src/angular-wamp.js#L399-L401
Suggesting to add:
return subscription;

Currently promise returns undefined.  I worked around this with an extension of that method.
Patched:
subscribeOnScope: function (scope, channel, callback) {
    return this.subscribe(channel, callback).then(function (subscription) {
        scope.$on('$destroy', function () {
            return subscription.unsubscribe();
        });
        return subscription;
    });
},

@davidwdan Thanks!
@kryo2k Tested and works. Can you verify?

Fixed https://github.com/voryx/angular-wamp/pull/51


IPAMBlock works only with 1 host at affinity and not more

I have 3 node cluster[theseus0,theseus1,theseus2] with rke2 and calico installed.  When pods are up it's only possible for them to run at only one node [theseus2].
READY   STATUS     RESTARTS   AGE   IP              NODE
1/1     Running    0          39s   <IP_ADDRESS>   theseus2
1/1     Running    0          41s   <IP_ADDRESS>   theseus2
1/1     Running    0          41s   <IP_ADDRESS>   theseus2
0/1     Init:0/1      0          39s               theseus1
1/1     Running    0          38s   <IP_ADDRESS>   theseus2
1/1     Running    0          37s   <IP_ADDRESS>   theseus2
1/1     Running    0          37s   <IP_ADDRESS>   theseus2
0/1     Init:0/1      0          36s               theseus1
1/1     Running    0          40s   <IP_ADDRESS>   theseus2
An IPAMBlock created by default which is (the first one):
kubectl get ipamblock
NAME               AGE
10-11-247-128-26   3m7s
10-42-117-0-26     34d
10-42-254-0-26     34d
10-42-96-0-26      34d
kubectl get ipamblock 10-11-247-128-26 -oyaml
apiVersion: crd.projectcalico.org/v1
kind: IPAMBlock
metadata:
annotations:
projectcalico.org/metadata: '{"creationTimestamp":null}'
creationTimestamp: "2024-01-23T14:20:26Z"
generation: 8
name: 10-11-247-128-26
resourceVersion: "11790279"
uid: 69fb8c84-6f45-4581-baff-a2a3b79f6d1f
spec:
affinity: host:theseus2
allocations:

null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
1
null
0
3
4
5
6
null
2
null
null
null
attributes:
handle_id: k8s-pod-network.77037d70c0dc6ab5e5f9edb494d1b73725e9f2c65d867b786136e6701e77df37
secondary:
namespace: default
node: theseus2
pod: uclwfe-5f88d494f7-55jxs
timestamp: 2024-01-23 14:20:25.147886498 +0000 UTC
handle_id: k8s-pod-network.c88c6eb007c18d234a5badc996c2308109367e8585022b389d937086fc5ded9a
secondary:
namespace: default
node: theseus2
pod: ucbe-56cc6fff54-f8sbz
timestamp: 2024-01-23 14:20:25.84876941 +0000 UTC
handle_id: k8s-pod-network.00c456b883132b706628ddfb0659f50b596b53cd375dc4c13588205c3bc831b7
secondary:
namespace: default
node: theseus2
pod: ucowcbe-5c89b89f7c-88k7t
timestamp: 2024-01-23 14:20:29.54455912 +0000 UTC
handle_id: k8s-pod-network.171a188b2d6b11fd3ff492e95bbba04c05ec579f5747bfdf6bbde6adac32ffb8
secondary:
namespace: default
node: theseus2
pod: ucamq-6fcd897dd-gx656
timestamp: 2024-01-23 14:20:29.977772098 +0000 UTC
handle_id: k8s-pod-network.7ddce677554e316e414aef8e23f315062c470b721da911cdf2efaa84b58a0568
secondary:
namespace: default
node: theseus2
pod: ucmysql-5f4d97b746-xf98d
timestamp: 2024-01-23 14:20:30.694290833 +0000 UTC
handle_id: k8s-pod-network.331f6b1459815e812b571027bdcd10c22fec09e9f185fa9bb6864ddc8c12c96f
secondary:
namespace: default
node: theseus2
pod: ucof-56c84b9b47-4qhxs
timestamp: 2024-01-23 14:20:31.886646797 +0000 UTC
handle_id: k8s-pod-network.8d14406cb6b1728f7a891e631c141444963d004429f98a7a259634f06c2672ad
secondary:
namespace: default
node: theseus2
pod: ucoffs-55fcdf4796-lc7m8
timestamp: 2024-01-23 14:20:33.201483122 +0000 UTC
cidr: <IP_ADDRESS>/26
deleted: false
sequenceNumber:<PHONE_NUMBER>405020063
sequenceNumberForAllocation:
"52":<PHONE_NUMBER>405020057
"54":<PHONE_NUMBER>405020056
"55":<PHONE_NUMBER>405020059
"56":<PHONE_NUMBER>405020060
"57":<PHONE_NUMBER>405020061
"58":<PHONE_NUMBER>405020062
"60":<PHONE_NUMBER>405020058
strictAffinity: false
unallocated:
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
53
59
61
62
63

Check at spec: affinity is has only 1 host ----> theseus2.
I tried a lot so I can add also another one so there 2 hosts but it's not possible.
Do you have any ideas? I think that the IPAMBlock should carry on more than one host right?
EVN:
calicoctl version
Client Version:    v3.26.3
Git commit:        bdb7878af
Cluster Version:   v3.26.3
Cluster Type:      k8s,operator,kdd,typha
kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.11+rke2r1", GitCommit:"3cd242c51317aed8858119529ccab22079f523b1", GitTreeState:"clean", BuildDate:"2023-11-15T21:08:55Z", GoVersion:"go1.20.11 X:boringcrypto", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.11+rke2r1", GitCommit:"3cd242c51317aed8858119529ccab22079f523b1", GitTreeState:"clean", BuildDate:"2023-11-15T21:08:55Z", GoVersion:"go1.20.11 X:boringcrypto", Compiler:"gc", Platform:"linux/amd64"}
cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.5"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.5"
PRETTY_NAME="openSUSE Leap 15.5"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.5"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"
kubectl get node -owide
NAME       STATUS   ROLES                       AGE   VERSION           INTERNAL-IP    EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION              CONTAINER-RUNTIME
theseus0   Ready    control-plane,etcd,master   34d   v1.26.11+rke2r1   <IP_ADDRESS>           openSUSE Leap 15.5   5.14.21-150500.53-default   containerd://1.7.7-k3s1
theseus1   Ready    control-plane,etcd,master   34d   v1.26.11+rke2r1   <IP_ADDRESS>           openSUSE Leap 15.5   5.14.21-150500.53-default   containerd://1.7.7-k3s1
theseus2   Ready    control-plane,etcd,master   34d   v1.26.11+rke2r1   <IP_ADDRESS>           openSUSE Leap 15.5   5.14.21-150500.53-default   containerd://1.7.7-k3s1

@Barlojohn you are not supposed to work with v1 resources directly. Those are used internally by Calico, and users should not touch them. Instead you should work with v3 resources. For example, in this case, you can use ippool resource.

Closing this one, but feel free to re-open if you have more question about this.

Check at spec: affinity is has only 1 host ----> theseus2.

This is intentional. Blocks can only be affine to a single host. An IP pool like mentioned above can span multiple hosts.

Thank you for the fast response! Since there's something I don't understand I will provide more info about it.
In the same example I already has an ippool :
calicoctl get ippool -owide
NAME                  CIDR             NAT    IPIPMODE   VXLANMODE   DISABLED   DISABLEBGPEXPORT   SELECTOR
default-ipv4-ippool   <IP_ADDRESS>/16     true   Never      Always      false      false              all()
pool4                 <IP_ADDRESS>/24   true   Never      Never       false      false              all()
calicoctl get ippool pool4 -oyaml
apiVersion: projectcalico.org/v3
kind: IPPool
metadata:
creationTimestamp: "2024-01-22T14:26:54Z"
name: pool4
resourceVersion: "11351034"
uid: f9fdec13-5179-4f57-a847-e48209886089
spec:
allowedUses:

Workload
Tunnel
blockSize: 26
cidr: <IP_ADDRESS>/24
ipipMode: Never
natOutgoing: true
nodeSelector: all()
vxlanMode: Never

uclwfe-5f88d494f7-8762q      1/1     Running    0          20h   <IP_ADDRESS>   theseus2
This is pod running fine at theseus2 (node)
ucms-55566f49c6-6nt24        0/1     Init:0/1   0          20h             theseus1
This is a pod that cannot start at theseus1(node)
kubectl describe pod/ucms-55566f49c6-6nt24
Warning  FailedCreatePodSandBox  1s (x17 over 3m43s)  kubelet            (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "c135097f0536efb3f61e70134893538c63a6bee1da70d54e55ffd2331770322d": plugin type="calico" failed (add): error getting IP from IPAM: Block host affinity does not match
calicoctl ipam check
Checking IPAM for inconsistencies...
Loading all IPAM blocks...
Found 4 IPAM blocks.
IPAM block <IP_ADDRESS>/26 affinity=host:theseus2:
IPAM block <IP_ADDRESS>/26 affinity=host:theseus1:
IPAM block <IP_ADDRESS>/26 affinity=host:theseus2:
IPAM block <IP_ADDRESS>/26 affinity=host:theseus0:
IPAM blocks record 21 allocations.
Loading all IPAM pools...
<IP_ADDRESS>/16
<IP_ADDRESS>/24
Found 2 active IP pools.
Loading all nodes.
Found 3 node tunnel IPs.
Loading all workload endpoints.
Found 18 workload IPs.
Workloads and nodes are using 21 IPs.
Loading all handles
Looking for top (up to 20) nodes by allocations...
theseus2 has 10 allocations
theseus0 has 8 allocations
theseus1 has 3 allocations
Node with most allocations has 10; median is 8
Scanning for IPs that are allocated but not actually in use...
Found 0 IPs that are allocated in IPAM but not actually in use.
Scanning for IPs that are in use by a workload or node but not allocated in IPAM...
Found 0 in-use IPs that are not in active IP pools.
Found 0 in-use IPs that are in active IP pools but have no corresponding IPAM allocation.
Scanning for IPAM handles with no matching IPs...
Found 12 handles with no matching IPs (and 21 handles with matches).
Scanning for IPs with missing handle...
Found 0 handles mentioned in blocks with no matching handle resource.
Check complete; found 12 problems.
kubectl get ipamblock
NAME               AGE
10-11-247-128-26   8m34s
10-42-117-0-26     34d
10-42-254-0-26     34d
10-42-96-0-26      34d
kubectl get ipamblocks.crd.projectcalico.org -o jsonpath="{range .items[*]}{'podNetwork: '}{.spec.cidr}{'\t NodeIP: '}{.spec.affinity}{'\n'}"
podNetwork: <IP_ADDRESS>/26     NodeIP: host:theseus2
podNetwork: <IP_ADDRESS>/26       NodeIP: host:theseus1
podNetwork: <IP_ADDRESS>/26       NodeIP: host:theseus2
podNetwork: <IP_ADDRESS>/26        NodeIP: host:theseus0
podNetwork:      NodeIP:
My questions is the same and also why the block is only assigned to theseus2? Since the pool4 has
nodeSelector: all() value why I don't have also a block at theseus1 ?

Because of how IPAM blocks are designed to work. A pool is split into smaller blocks that are spread across nodes - each block is assigned to a node in order to keep routing simpler. This way we can assign a /26 route to each node instead of needing many /32 routes.

I understand but in that case I have 10 pods which have always specific IPs from this subnet <IP_ADDRESS>/24 and the block is <IP_ADDRESS>/26. The IPs must not change at any case. For instance a deployment yaml file of one of them is :
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.21.0 (992df58d8)
creationTimestamp: null
labels:
io.kompose.service: ucms
name: ucms
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: ucms
strategy:
type: Recreate
template:
metadata:
annotations:
"cni.projectcalico.org/ipAddrs": "["<IP_ADDRESS>"]"
.  .  .
.  .  .
The pods ucms with IP : <IP_ADDRESS> is assigned to theseus1 but the IPBlock is assigned to theseus2 so it cannot start.  I understand this is WAD but is there any solution of that?
How can I have Pods within that block with specific IPs to be divided among the worker nodes? Since Calico has the functionality to assign specific IPs to pods what's the point to have them only to one node.

@Barlojohn what does this command return?
kubectl get ipamconfig default -o yaml

Calico should only enforce block affinities strictly if configured to do so via the strictAffinity field in that API.

Yes @caseydavenport  here is the output:
theseus0:~ # kubectl get ipamconfig default -o yaml
apiVersion: crd.projectcalico.org/v1
kind: IPAMConfig
metadata:
annotations:
meta.helm.sh/release-name: rke2-calico
meta.helm.sh/release-namespace: kube-system
creationTimestamp: "2023-12-20T11:34:46Z"
generation: 1
labels:
app.kubernetes.io/managed-by: Helm
name: default
resourceVersion: "919"
uid: 9604271f-533a-4e44-b2a6-3224fa89a0cc
spec:
autoAllocateBlocks: true
strictAffinity: true

@Barlojohn FYI you can use triple backticks to format as code to make yaml much easier to read. I've modified your comment to do so.
Looks like strictAffinity: true is set on your IPAM configuration, which would be the cause.


Generated integrations do not expose the Jolokia port

We should expose the Jolokia port so that developers and inspect the JVM in greater detail.

What do you mean by expose? The port is listening and listed in pods ports. What more do you need? Any ideas @rhuss?

Afaik, port name has to be set tojolokia for the OpenShift Java Console to pick it up.

Really? I thought it was either name or number, not just name, but perhaps that's changed. It's f-m-p generating that so would require a change there iirc. Let's wait for @rhuss.

@jimmidyson @dsimansk Actually, I think it works with a port only (without name), but the best answer is to try it out. @chirino in your screenshot  you do expose the 8778 port (which is jolokia's port). But I think it wouldn't harm to add a name: jolokia

Looks like f-m-p should enrich that port name - https://github.com/fabric8io/fabric8-maven-plugin/blob/ef580fa8173e198931624114ecdc62d6b1e1248d/enricher/standard/src/main/java/io/fabric8/maven/enricher/standard/PortNameEnricher.java#L42

Ah yes we're not using f-m-p here are we... let me take a quick look, should be simple fix.

Should we also expose the SB health check ports while we are at it?

@chirino You don't have to expose those ports at all unless something actually needs to discover them. The ports are still accessible in the pod, whether they're declared in the manifest or not so I would say no for now, but keep it in mind for future integration with other systems if needed.

So the integration's DC's should be configured with heath/readiness checks then?

Readiness checks can use non-published ports but yes we should be adding readiness, liveness probes to deployments templates.


Hardware age SQL fix

SQL statement for determining hardware age now excludes machines that come back as NULL

Thanks for the PR! I think the proper SQL syntax should be
AND $agesql IS NOT NULL


az vm extension set - doesn't seem working probably

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
Running az vm extension set
will enable the extension on the target VM but won't  create the expected table/s (in my case : WADWindowsEventLogsTable) in the give storage account (or write to it if it's already exist).
To Reproduce
run the command :
az vm extension set --resource-group myrg --vm-name myvm --name IaaSDiagnostics --publisher Microsoft.Azure.Diagnostics --protected-settings protected-settings.json --settings public-settings.json
please see my settings below
Expected behavior
I expect the extension to be enabled on the target VM, and the subject table will be create in the given storage account according to logs type I'v defined in public-settings.json
Environment summary

Windows

azure-cli                          2.7.0 *

Powershell 7.0.2

Additional context

what I'm trying to is to enable VM Diagnostic extension to send Event logs (Application [1,2,3], Security [all], System [1,2,3]) to one unified storage account (let's call logs storage) where WADWindowsEventLogsTable is supposed to be created.

different scenarios I'm trying to implement :

VM is in the same resource group where logs storage is.
The result : same as explained above

VM in a different resource group where logs storage is.
The result : same as explained above

VM in a different subscription
The result : the extension will be enabled. However, where I go to Agent tab, I'll get the error message "the value must not be empty" under Storage account section

public-settings.json
{ "StorageAccount": "logsstorage", "WadCfg": {   "DiagnosticMonitorConfiguration": {     "overallQuotaInMB": 5120,     "WindowsEventLog": {       "scheduledTransferPeriod": "PT1M",       "DataSource": [         {           "name": "Application!*[System[(Level=1 or Level=2 or Level=3 or Level=4)]]"         },         {           "name": "Security!*"         },         {           "name": "System!*[System[(Level=1 or Level=2 or Level=3)]]"         }       ]     }   } } }

protected-settings.json
{       "storageAccountName": "logsstorage",       "storageAccountKey": "xxxxxxxx",       "storageAccountEndPoint": "https://logsstorage.blob.core.windows.net" }

cli-command-output.json
{ "autoUpgradeMinorVersion": true, "forceUpdateTag": null, "id": "/subscriptions/xxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.Compute/virtualMachines/tmpvm01/extensions/IaaSDiagnostics", "instanceView": null, "location": "westeurope", "name": "IaaSDiagnostics", "protectedSettings": null, "provisioningState": "Succeeded", "publisher": "Microsoft.Azure.Diagnostics", "resourceGroup": "myrg", "settings": {   "StorageAccount": "logsstorage",   "WadCfg": {     "DiagnosticMonitorConfiguration": {       "WindowsEventLog": {         "DataSource": [           {             "name": "Application!*[Application[(Level=1 or Level=2 or Level=3)]]"           }         ],         "scheduledTransferPeriod": "PT1M"       },       "overallQuotaInMB": 5120     }   } }, "tags": null, "type": "Microsoft.Compute/virtualMachines/extensions", "typeHandlerVersion": "1.17", "virtualMachineExtensionType": "IaaSDiagnostics" }

I suspect the extension version has something to do with the behavior

I'd like to add that I tried to implement this via powershell (Set-AzVMDiagnosticsExtension) and I was able successfully to get scenarios (1 & 2) to work. However, scenario (3) I encountered same issue using az cli. I've notieced the extension version in powershell is TypeHandlerVersion      : 1.5

I followed instructions on this like https://docs.microsoft.com/en-us/azure/azure-monitor/platform/diagnostics-extension-windows-install

@qwordy could you pls have a look? thanks

I managed to get this work, thanks for the help from @prernavashistha from Microsoft support
it turned out there's some inconsistency in the documentations.
According to the documentation here :
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/diagnostics-extension-windows-install
In protected-settings.json I should pass the storage URI to  "storageAccountEndPoint" key :
{ "storageAccountEndPoint": "https://logsstorage.blob.core.windows.net" }

However, according to another documentation reference :
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/diagnostics-extension-schema-windows#json
I should pass the Azure storage endpoint :
{ "storageAccountEndPoint": "https://core.windows.net" }

I can confirm that using Azure storage endpoint resolved the issue, and I can enable the extension across subscriptions, and I can see logs being written to the correct table as expected.

Note:
I faced the same issue with Powershell, here :
https://github.com/Azure/azure-powershell/issues/12259

thanks @mataralhawiti . Is it ok to close the issue now?


What are the differences between pointer types and normal types

Your Question
From https://gorm.io/docs/models.html#Declaring-Models as we see Name have a string types but Email have a *string types, but what is the difference technically?
  GORM translates nil values to NULL when inserting, updating, etc.  It appears the email field in this struct is meant to represent a value that can be NULL in the model's corresponding column in the Users table.

Thank you @Asteriskdev


Bug when updating a reference

When I click on a reference in the dashboard to modify it, the form falls in error

When the references were retrieved on the Dashboard side, the content was not requested in the query. The problem has been solved with #33


It is unclear what valid values are for contextValue

Testing https://github.com/microsoft/vscode/issues/74472
It looks like from reading the doc that editable is a valid value. However there is no indication if this is the only valid value. And if not which the other values are.

Actually now I found out how this works: user can have their own sets of contextValues. I would suggest to make this more clear in the JS doc by including the JS/TS code that actually set the value. Otherwise users might think (like I did) that editable is a given value.

Closing as vscode.d.ts already includes a JS doc comment with an example usage


Thunderbird not connecting to Hydroxide

Hi, I am running my hydroxide in my docker for windows w/ WSL 2.0. (This means it connects to a linux distro running on windows)
running 'docker run' with the ports 1025 and 1145, I try to connect with thunderbird but it never connects when i run test,
I have tried localhost, as well as the direct docker container ip. I have tried with branches: master and arichtman:ft-2fa
Incoming

Protocol: IMAP
Sever: localhost
Port: 1143
SSL: None
Authentication: Normal Password
Username: email without the @protonmail.com

Outgoing

Protocol: IMAP
Sever: localhost
Port: 1025
SSL: None
Authentication: Normal Password
Username: email without the @protonmail.com

Thanks @bobland1 for your report!
Let's debug on the master branch for now, as richtman:ft-2fa is still in review.
Can you run send_mail.py and let me know if it effectively sends a test message?

Yeah sure, yeah send_mail.py works fine

Gotcha. OK a few follow-up questions:

Have you exposed both those ports in the Dockerfile?

https://github.com/harleylang/hydroxide-docker/blob/f19ea54da6c7f323d104980e837ab68f26327aff/hydroxide/Dockerfile#L40

Forgive me, I'm on a linux system so my knowledge of Windows Subsystem is limited and this next question might be a shot in the dark. Is your docker-machine ip different from local host? See:

https://github.com/docker/for-win/issues/204#issuecomment-604617284
https://github.com/microsoft/WSL/issues/4983#issuecomment-602487077

Been watching this issue, forgive my random interruption.  WSL 2 runs in hyper-v with NAT.  You need to add a port forward on the network adapter and possibly add a firewall rule.
https://github.com/microsoft/WSL/issues/4150

Adding a firewall rule fixed my issue thank you

That's great news, thanks again @bobland1 for submitting the issue and reporting back with the fix, and big shout out to @agates for sharing the wisdom of setting the firewall :fire: much appreciated!


Competitive Programming: Binomail Coefficient Using Bottom-Up Tabularization Approach

Description
I will provide the explanation regarding bottom-up approach to find the binomial coefficient and the limitations of the conventional method.
Domain
Competitive Programming
Type of Contribution
Documentation
Code of Conduct

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

/assign


Series model for stocks historical data

I am interested in using InfluxDB for storing and retrieving historical stocks data. Suppose that system has about 8k symbols and for each symbol about 100 Indicators should be stored and retrieved for about 20 years.
First of all, I should know if InfluxDB is suitable for this requirement?
And second question is about series schema. one serie for each indicator? or one serie for each indicatior and each symbol? if I should implement first design model, how can I query for specific indicator values of an specific symbol without tags?
thanks in advance

This is not an actionable issue with the product and therefore not appropriate for GitHub Issues. Please use the mailing list<EMAIL_ADDRESS>to request schema advice and ask general product questions.


Typescript 3

I tried updating to typescript@3 and there is two problems, both with getCombinedModifierFlags.
https://github.com/Perryvw/TypescriptToLua/blob/f62835e9d86ca09ec64c585c063d799d8e0e9f90/src/Transpiler.ts#L121
Node vs expected Declaration, can use as Declaration here?
https://github.com/Perryvw/TypescriptToLua/blob/f62835e9d86ca09ec64c585c063d799d8e0e9f90/src/TSHelper.ts#L51
not sure what to do here.

TS 3 is on our todo list. Not sure we can just cast there, but im sure its fixable.

This is delayed due to bugs in Typescript 3.0 you can track the progress here #247


Layout, dependencies & automation

Hey, I couldn't get this to work and tracked down the problem to the pydantic version.  While I was trying to figure out what was going on, I made some improvements to project layout, dependencies and automation.
Note the change with  pydantic == 1.9.0.  Using  >= as previously breaks for me with an error deep in the guts of pydantic:
E   TypeError: constr() got an unexpected keyword argument 'regex'

I haven't fixed that to work with latest, but pinning the dependency differently makes tests succeed.

Hi @mattvonrocketstein ! I am happy that somebody found this library helpful. Thanks for your PR i liked your additions.
I will try to make this lib works with latest pydantic near soon.


Releases 1.0.3 and 1.0.4 contain only source code

your latest releases, 1.0.3 and 1.0.4, seem to be only the source code but not app.js etc.
is this by accident?
I couldn't install them directly through Obsidian (404)

Hey there, thanks for trying my plugin.
I hadn't updated in two months or so and already forgot the proper release process. I need to automate that :D
The proper files should be attached to the latest 1.0.4 release now

The release seems to have worked for others now, so I will close this for the time being. Feel free to comment again if someone is not working.


Wrong .Parent with pages with overlapping names (e.g. sdk and sdk_exporters)

The issue title is a big vague for now.
Reference: https://discourse.gohugo.io/t/subpage-missing-from-sections-page-list-when-using-0-123-8/48789
Minimal reproducible example:
git clone --single-branch -b hugo-forum-topic-48789 https://github.com/jmooring/hugo-testing hugo-forum-topic-48789
cd hugo-forum-topic-48789
npm ci
hugo server

Then visit http://localhost:1313/docs/logs/ to see the problem.
You will see "Stdout" in the menu on the left, but that page is not shown in the content listing with v0.123.0 or later.

I have a fix on its way, but I would recommend the theme author(s) to somehow simplify this construct:
{{ $parent := .Page -}}
    {{ $pages := (where .Site.Pages "Section" .Section).ByWeight -}}
    {{ $pages = (where $pages "Type" "!=" "search") }}
    {{ $pages = (where $pages ".Params.hide_summary" "!=" true) -}}
    {{ $pages = (where $pages ".Parent" "!=" nil) -}}
    {{ if and $parent.File .Parent .Parent.File -}}
        {{ $pages = (where $pages "Parent.File.UniqueID" "==" $parent.File.UniqueID) -}}
    {{ end -}}


1.16.1: ARM osx migration

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Needed for debugging gnutls on osx-arm64.

Needed for debugging gnutls on osx-arm64.

@conda-forge/automake This is ready for review/merge.

@conda-forge/automake This is ready for review/merge.


bug: Drag & Drop in Numbered List doesn't work as expected

Provide environment information
System:

OS: macOS 14.5
CPU: (11) arm64 Apple M3 Pro
Memory: 240.17 MB / 18.00 GB
Shell: 5.9 - /bin/zsh

Binaries:

Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v20.15.1/bin/npm
pnpm: 9.6.0 - ~/.nvm/versions/node/v20.15.1/bin/pnpm

Describe the bug
I started to use novel copying web template and integrating it into my project. However, drag and drop functionality in numbered list is not working well. (See the video below) To be sure I also directly run  web template but the behavior was also broken. Actually the editor in novel.sh works pretty well. I don't see what is going wrong.
https://github.com/user-attachments/assets/600445ba-f100-4732-a517-ac8e85a8702a
Link to reproduction
https://github.com/steven-tey/novel/tree/ai-features/apps/web
To reproduce
Clone and run web template. Delete everything in the editor. Add 5-10 numbered list items. Then start drag & drop between list items.
Additional information

Note: When I open the editor in a new tab d&d works at the beginning but after it fails, it almost always fail. It usually fail if I try to drop the item somewhere close to edges of item list.


Row number with path builders.

I got problem when I am trying to write this sql select with query dsl:
select productName,productDescription from
    (select productName,productDescription,
     row_number() over (order by productName) as rn
     from productTable)
where rn >=0 and rn <= 2;

I use this select for paging rows with ordering by one column
I have to use row_number function because offset and limit functions
do not work with ordering.
I am trying to use PathBuilders like this:
JPAQuery query = new JPAQuery(entityManager);
PathBuilder<Product> product = new PathBuilder<>(Product.class, "product");
OrderSpecifier<String> sortOrder = new OrderSpecifier<>(Order.ASC, product.get("productName", String.class));

SimpleExpression<Long> rowNumber = SQLExpressions.rowNumber()
                .over().orderBy(sortOrder).as("rowNumber");

query.select(product.get("productName",String.class))
    .from(SQLExpressions.select(product.get("productName",String.class), rowNumber)
                        .from(product).as(product))
    .where(Expressions.numberPath(Long.class, "rowNumber").goe(0L))
    .where(Expressions.numberPath(Long.class, "rowNumber").loe(2L))
    .fetch();

My questions are:

The example syntax is not compilable and should be only in querydsl 4. Is this possible in querydsl 4 or 3.5 ?
Please give me advice how to construct this statement in querydsl 3.5 or 4

Thanks in advice.

@timowest
Please have a look on this issue. Thanks.

There are a few issues here

You are mixing window functions, which are only supported in SQL queries with JPAQuery, which Querydsl module do you want to use?
You don't need to write the underlying paging SQL, you can use query.limit(..).offset(...), this works in all Querydsl modules
Why do use PathBuilder? For Both Querydsl JPA and SQL the code generations are the preferred choice.

We use only JPAQuery.
Functions query.limit(..).offset(...), are translated into sql select which is based on rownum, and what I read in some posts like this:
http://stackoverflow.com/questions/15091849/how-to-use-oracle-order-by-and-rownum-correctly
it is no guaranteed, that the rownum will be evaluated well if there is ordering.
Answer for your last question is that unfortunately we are constrained not to use code generations.

Could you try JPAQuery with limit and offset and post the resulting SQL query? I am sure that the underlying JPA provider will use rownum properly.

Feel free to reopen, if your issue isn't fixed yet

Hello Timo,
problem still remains, but I did not have time to concentrating on this bug. I found similar bug,
which deals with hibernate criteria builder, here is the link:
https://nhibernate.jira.com/browse/NH-3814
Maybe It will clarify the problem for you.

Please reopen the bug.

@timowest
Please have a look on this issue. Thanks.

Like I said before window functions can't be used with JPQL. You will need to use limit/offset or Querydsl SQL.
Could you explain why limit/offset doesn't work with order by?

Here is the problematic select:
select * from
( select
row_.*,
rownum rownum_
from
( select
person3_.PERSONID as PERSONID2_67_1_,
person3_.PERSONTYPE as persontype
from CP2.PERSON person3_
where person3_.DELETEFLAG=0
order by
person3_.PERSONTYPE desc ) row_
where
rownum <= 10
)
where
rownum_ > 0
There are duplicate values in column PERSONTYPE.
Output of this select is:
PERSONID2_67_1_, persontype, ROW_NUM_
57300	11	1
59902	11	2
59901	11	3
58709	11	4
58707	11	5
58506	11	6
58504	11	7
58502	11	8
58500	11	9
57302	11	10
The second page should be like this:
select
*
from
( select
row_.*,
rownum rownum_
from
( select
person3_.PERSONID as PERSONID2_67_1_,
person3_.PERSONTYPE as persontype
from CP2.PERSON person3_
where person3_.DELETEFLAG=0
order by
person3_.PERSONTYPE desc ) row_
where
rownum <= 20
)
where
rownum_ > 10
And output:
PERSONID2_67_1_, persontype, ROW_NUM_
60005	11	11
59902	11	12
59901	11	13
58709	11	14
58707	11	15
58506	11	16
58504	11	17
58502	11	18
58500	11	19
57302	11	20
The problem is that on second page there are duplicate rows selected except the first one.

But I resolved this problem by adding default ordering by primary key for example:


delete trustline Question

Help me please, how to delete trustline?
I found this note:
To remove a trust line, reset it to its default state. (0 limit, 0 balance, and no non-default settings.)

what is non-default settings ?
now I use this request:
 var accountInfo = await Client.AccountInfo(AccountSender);

            ITrustSetTransaction trustSet = new TrustSetTransaction()
            {
                Account = AccountSender,
                Flags = TrustSetFlags.tfSetNoRipple,
                TransactionType = TransactionType.TrustSet,
                LimitAmount = new Currency { Value = "0", Issuer = Issuer, CurrencyCode = CurrencyCode },
                Sequence = accountInfo.AccountData.Sequence,
            };

But it not work

Did you get this to work?

Did you get this to work?

Yeah, I got it...
Working with trustlines is terrible..
Do you want me to tell ?

Yeah technically that should be in the binary parser but I would guess that functionality is missing.
This will definitely help others.

the documentation does not contain complete information about deleting the trustline.
All that is written - the number of coins should be = 0, the limit = 0, and return the account to its original state.
but there is no information which original it is...
that is, we need to get information about the account from the server and check its settings (flag), if we received the flag = 0, then we need to send the default flag (SetNoRipple)..., or set flag from account
but there is one nuance:
when requesting trustines, we get not only our trustines, but also ltrustines established by others in relation to us, and it would be nice to filter these trustines, because they cannot be deleted.

Nice, I would also note, that if following the best practices, the account that "isssues" the asset is going to have trustlines "IN" where your personal will likely have trustlines "OUT".
So it would be less likely to have both INs and OUTs on one account, but it can happen.
Also, if you want the trustlines for the issuing account, I would use gateway balances, and then account_lines for the regular accounts.
However, if you're building like an explorer or something then I can see your reasoning.

Finally, maybe I don't understand the use case but you can just override the flags on the TrustSet. I don't think that check above in necessary. If you are doing this for your own token, I just set the noRippledFlag and it works well.
Is default rippled would be set by the issuer of a token and they would very very rarely add a trustline for another token.


Typo?

Hello,
In this section:
https://learn.microsoft.com/en-us/azure/cosmos-db/emulator-command-line-parameters#manage-the-emulator-with-command-line-syntax
Here:

Shouldn't "Specified" be replaced by "Specifies"?
Best regards,
François

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

ID: efcccbd1-9103-6af1-e40f-a169f499a870
Version Independent ID: 7cd5ceeb-f6d4-c165-f33f-ea59483f88bb
Content: Emulator command-line and PowerShell reference - Azure Cosmos DB
Content Source: articles/cosmos-db/emulator-command-line-parameters.md
Service: cosmos-db
GitHub Login: @seesharprun
Microsoft Alias: sidandrews

Hi @FRFR-LO ,
Thanks for sharing this feedback. We will look into this and update as appropriate.

:tada:
We recently released a complete revamp of the emulator documentation to cover many of the content gaps, be more succinct, and enable you to use the emulator quickly.
The new emulator documentation shows how to use the containerized (Docker) or local (Windows) variants of the emulators across five different APIs (NoSQL, MongoDB, Apache Cassandra, Apache Gremlin, Table) and three programming languages (Python, .NET, JavaScript).
We have also retired the outdated legacy emulator documentation as many of the code samples and instructions were out of date relative to the latest SDKs/libraries for each API and programming language.
Here's a few helpful links to get you started with the new emulator docs:

Link

Emulator landing page
https://learn.microsoft.com/azure/cosmos-db/emulator

How-to use the emulator guide
https://learn.microsoft.com/azure/cosmos-db/how-to-develop-emulator

Emulator release notes (local Windows only)
https://learn.microsoft.com/azure/cosmos-db/emulator-release-notes

**Emulator command-line arguments (local Windows only)
https://learn.microsoft.com/azure/cosmos-db/emulator-windows-arguments

I hope this helps unblock you. If you need changes to the emulator docs, feel free to open a new GitHub issue.
Thank you for your patience!


Generate functional tests

Problem
Local functional testing is manual currently.
Solution
Base functional tests / requirements off the snap demo page and see how far we can go in automating them.
Alternatives
No response

No longer needed


Chore: Remove emotion + stacks UI

This task is to track work on refactoring out:

emotion now we have panda
stacks UI

I made some good progress here and have some PRs open.

Phase 1 - remove emotion: https://github.com/leather-wallet/extension/pull/4178
Phase 2 - remove Stacks UI theme provider - https://github.com/leather-wallet/extension/pull/4179
Phase 3 - remove stacks ui utils - https://github.com/leather-wallet/extension/pull/4180
Phase 4 - get rid of all the Stacks UI we can

Phase 1 doesn't impact the UI much, phase 2 we start seeing some strange issues and will need to add our own CSS to fix them.
I think it makes sense to rip out all these old styles now, then implement the new container patterns more cleanly.

@mica000 @fabric-8 - this is the main task for the foundational work I need to implement.
As part of this I will implement:

https://github.com/leather-wallet/extension/issues/4165
https://github.com/leather-wallet/extension/issues/4249
Implement new settings menu as removing the stacks ThemeProvider affects that a lot

We achieved this task last year - removing emotion + stacks UI


How to troubleshoot

Good day,
I've tried to install this mod but I can't seem to get it working.
Tools

OS: Arch Linux
Terminal 1: Kitty & Alacritty
Terminal 2: Gnome-terminal

What have I tried:

Uninstalling/reinstalling the plugin manually
Tried with bare minimal .zshrc file and only this plugin active
Reboot
Different terminal emulator

Upon typing npm run <tab> nothing happens.
I was wondering if there is a way for me to troubleshoot further/more in depth besides the most common things which I've tried above?
Thanks!

+1


Further translate untranslated English parts

In this pull request, I have translated multiple headers and contents that have not been translated fully into Chinese.

Thanks!!


change of location closes modal

moved modal close into a function and called On $locationChangeSuccess
cleans up the event listener if closed normally,
Added test to check for existence of dom object on $locationChangeSuccess

@kernowjoe thanks for this, great addition! adding to the contributors list now

How do I make it not do this?
I don't see this feature documented anywhere...

I opened a PR to generalize this feature to any $rootScope event. Any feedback would be great to hear: https://github.com/dwmkerr/angular-modal-service/pull/215


Fix potential memory leak in slice when using FilterInPlace

When we move right elements to left, we should assgin emtpy value to useless elements for gc.

@SpecialYang: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

gencheck_istio
e2e5f4dd4931e31b0e8daccb983de0b27c0c491e
link
true
/test gencheck

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@SpecialYang: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

gencheck_istio
e2e5f4dd4931e31b0e8daccb983de0b27c0c491e
link
true
/test gencheck

lint_istio
e2e5f4dd4931e31b0e8daccb983de0b27c0c491e
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Done. @howardjohn

@SpecialYang: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient_istio
52c63229ae91ed7f0006bd84ce9d7cb66eb4c9f8
link
true
/test integ-ambient

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@SpecialYang: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient_istio
52c63229ae91ed7f0006bd84ce9d7cb66eb4c9f8
link
unknown
/test integ-ambient

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@SpecialYang: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient_istio
52c63229ae91ed7f0006bd84ce9d7cb66eb4c9f8
link
true
/test integ-ambient

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-ambient


Polygon/line batching

The following pattern is quite common in CartoCSS (polygon and line symbolizers within a single rule):
#layer {
  line-color: #ff0;
  polygon-color:#000;
}

Unfortunately this makes vector tile renderer to switch shaders at each element, thus causing many draw calls and slowing down rendering to unusable speed in some cases. It is possible to generalize renderer batching and use line shader for polygons. So do it.

This is client-side fix for https://github.com/CartoDB/cartodb/issues/7723 ?

Merged to master.


Unable to resolve module 'fs'

When using the dependency in a React Native project, i receive the following error:
Unable to resolve module 'fs' from node_modules/strava-v3/index.js
I am running node version v6.10.2.

Hitting the same issue, did you resolve this for your react native project?

No, i did not proceed.

Thanks. Actually thinking about this a little more, it does not really make sense to include this within the React Native project itself anyway. Looking at how the Strava authentication process works, you will pretty much need to have a small Node.js server anyway (or at least that is what I am finding with React Native + Expo) otherwise you simply cannot get the oauth process to run smoothly.

This module is definitely for backend. And fs is a native module in a node.js. I would say that this discussion can be closed


mir cannot move in rviz

Hi! I have created a moveit package for mir with a manipulator. However, when I add this in my launch file mir is not able to move around in rviz when I launch the move_group.
     <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
          <rosparam param="source_list">[mir/joint_states]</rosparam>
          <param name="rate" value="200.0" />
      </node>

Hi, could you share the package you created? I currently struggling with the same problem - creating a mobile robot manipulator using a MiR base and a UR arm.

@saralopez7: If you're still struggling with this, you could have a look at the package that we've created for our own mobile manipulator "Mobipick" (MiR100 base + UR5 arm): https://github.com/DFKI-NI/mobipick


Ability to remove ticket linked items

If an item / object has been linked by error there is no ability to unlink that object. This feature needs to be added for all ticket types and projects
I suggest an additional tab "Linked items" that shows a list of everything linked, related, blocking, or blocked by where the user can deselect this and it is removed from the list

If an item / object has been linked by error there is no ability to unlink that object. This feature needs to be added for all ticket types and projects

agreed

I suggest an additional tab "Linked items" that shows a list of everything linked, related, blocking, or blocked by where the user can deselect this and it is removed from the list

what like the "tickets" tab within each items tabs?

moving to milestone UI migration as this feature will be added as part of the new UI.
Milestone v1.4 will likely see us start to use the new UI so as to wrinkle out any issues prior to removing the old UI.


Windows 10 Performance

How is the performance of Webview under Windows 10?

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

ID: ef31dc71-3610-6c18-2bda-d0bb70804c92
Version Independent ID: 02f7dc7b-541b-4b82-b33c-4e974fb94d8c
Content: WebView - Xamarin
Content Source: docs/xamarin-forms/user-interface/webview.md
Service: unspecified
GitHub Login: @davidbritch
Microsoft Alias: dabritch

@eltiare here's a link to the UWP WebView control docs
https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.webview
I have no insight into how it performs.

I thought it would be helpful to include this information in the "performance" section since it listed other platforms and Windows 8.

Ah, I see. We don't have much to add there, UWP devices should run Edge just fine, embedded or not. Good point, though. I've added a paragraph to the doc to clarify.


Invalid serialization of unordered_map with integer key type

When trying to publish an object of type std::unordered_map<uint32_t, std::string>, Crossbar.io claims that there is an invalid serialization and cuts the connection. The publishing is done with code similar to this:
typedef std::unordered_map<uint32_t, std::string> MyMap;
MyMap m;
m[12] = "foo";
m[32] = "bar";
m[52] = "zap";
std::tuple<MyMap> arguments(m);
session->publish("com.examples.subscriptions.topic1", arguments);

Crossbar reports this on the console as:
017-12-13T06:53:02+0000 [Router       3911] ApplicationSession started.
2017-12-13T06:53:14+0000 [Router       3911] invalid serialization of WAMP message (must be string or buffer, not int)
2017-12-13T06:53:14+0000 [Router       3911] WampRawSocketProtocol: WAMP Protocol Error (invalid serialization of WAMP message (must be string or buffer, not int)) - aborting connection
2017-12-13T06:53:14+0000 [Router       3911] WampRawSocketProtocol: connection lost: reason = '[Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionAborted'>: Connection was aborted locally, using.

If the key type of the map is changed to std::string, it works like a charm :-). So probably integer key types are not serialized in a way which is WAMP-compatible.

also, we are still on msgpack v1 https://github.com/crossbario/autobahn-cpp/issues/95
msgpack v1 has another issue: https://github.com/crossbario/autobahn-cpp/issues/166

Using the crossbar container from https://github.com/crossbario/crossbar-starter/ and the example client from "autobahn-cpp" in the same repo, I can get your example code above to successfully send that map (and have a Python subscriber receive it). Also the other way around. This is the exact subprotocol I see:
HTTP/1.1 101 Switching Protocols
Server: Crossbar
Upgrade: WebSocket
Connection: Upgrade
Sec-WebSocket-Protocol: wamp.2.msgpack.batched

How does this differ from @kbirken's setup?

Here is a complete example using integer maps, built using our AutobahnCpp toolchain images - and easy super easy to use: https://github.com/crossbario/crossbar-starter/blob/master/autobahn-cpp/app/client.cpp#L14
So, can't reproduce, closing. @kbirken


Path based Code navigation to /index.js seems broken

VSCode Version: 1.42.1
OS Version: Mac OS

Steps to Reproduce:
Code navigation seems broken when you import by path and the file is actually in an index.js file.
There are a couple of scenarios relevant to developing in react-native

import from another package in a monorepo import SomeComponent from 'common-lib/Router, when the file is packages/common-lib/src/Router/index.js
import in the same package import SomeComponent from 'modules/Router, when the file is src/modules/Router/index.js
import SomeComponent from 'modules/Router, when the file is not actually index.js src/modules/Router/index.ios.js and src/modules/Router/index.android.js

In general, what works is loading a file name by name (not an index.js file)
What doesn't work is loading a file by path that is actually an index.js, index.native.js, index.ios.js, index.android.js etc file
My code structure is
root
    packages
           mobile
           server
                src
                       server
                       shared
           common-lib

There is some history here that is not ideal. But ok.
packages/server jsconfig.json
{
	"compilerOptions": {
		"target": "es2017",
		"allowSyntheticDefaultImports": false,
		"baseUrl": ".",
		"paths": {
			"common-lib/*": ["../common-lib/*"],
			"mobile/*": ["../mobile/*"],
			"modules/*": ["./src/shared/modules/*"],
			"components/*": ["./src/shared/components/*"],
			"router/*": ["./src/shared/router/*"],
			"server/*": ["./src/server*"],
			"App": ["./src/App"]
		}
	},
	"exclude": ["node_modules", "../../node_modules", "build"]
}

Does this issue occur when all extensions are disabled?: Yes

Moving upstream to see if the TS team has any additional feedback on this scenario

Duplicate of #35876.

Oh, this is for JS projects, my mistake. I guess you wouldn't see suggestions.

What would be the right workflow here? A suggestion diagnostic to tell users we don't understand their paths?
(CC @orta)

I think so yeah, it could recommend making a jsconfig with target: node?
Perhaps something like?
import SomeComponent from ...'common-lib/Router'

/// TS:XYZ - Could not find a file at 'common-lib/Router', but  `common-lib/Router/index.js` was found - do you want to set `moduleResolution: node`?