Slug with explicit .html extension breaks build

Have you read the Contributing Guidelines on issues?

[X] I have read the Contributing Guidelines on issues.

Prerequisites

[X] I'm using the latest version of Docusaurus.
[X] I have tried the npm run clear or yarn clear command.
[X] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[X] I have tried creating a repro with https://new.docusaurus.io.
[X] I have read the console error message carefully (if applicable).

Description
I'm migrating a blog from Jekyll. It is necessary for me to keep the exact same url structure because there's external refs to these posts. So I have a
slug: a/b.html

in every blog post frontmatter. On build, this fails with the following error:
[ERROR] Unable to build website for locale en.
[ERROR] Error: Expected output HTML file to be found at /home/projects/kkviyzpmp.github/build/blog/a/b.html/index.html.

Running the site works fine, error only happens on build.
Reproducible demo
https://stackblitz.com/edit/github-iuz7vq?file=blog/2021-08-26-welcome/index.md
Steps to reproduce

Set a slug in a blog post frontmatter: /a/b.html
Run yarn build

Expected behavior
Build should succeed, especially since running the site poses no problems.
Actual behavior
Build fails with the following error message:
[ERROR] Unable to build website for locale en.
[ERROR] Error: Expected output HTML file to be found at /home/projects/kkviyzpmp.github/build/blog/a/b.html/index.html.

Your environment
On stackblitz playground.
Self-service

[ ] I'd be willing to fix this bug myself.

Could you try setting trailingSlash: false?

Could you try setting trailingSlash: false?

That doesn't seem to have any effect. I get the exact same error.
However, I think I have a work-around. If I define the slug as /a/b, the build succeeds and the resulting url becomes /a/b.html. I left trailingSlash as undefined in this case.
Not sure if this is still a bug now or expected docusaurus behavior :)

Ok, if I put the slugs as /a/b and set trailingSlash: false, I end up with urls like /a/b.html, which is exactly what I want.
I do think that it's a bit unclear from just looking at the slug to understand what the end result will be, but this now seems more like a feature than a bug :)

Setting slug: /a/b.html is a hacky but not obscure technique to ensure canonical URL, SEO, etc. all work the same as before. I'll need to experiment what happens with trailingSlash: true, but it shouldn't be too surprising.

Hm, getting broken links now that weren't there before. And I don't really understand the error message. What's the 23 and 24?
Exhaustive list of all broken links found:

- On source page path = /programming/cloudfoundry/2019/02/26/net-service-broker-03:
   -> linking to 23 (resolved as: /programming/cloudfoundry/2019/02/26/23)
   -> linking to 24 (resolved as: /programming/cloudfoundry/2019/02/26/24)

    at throwError (/home/rwwilden/projects/rwwilden.gitlab.io/node_modules/@docusaurus/logger/lib/index.js:76:11)
    at handleBrokenLinks (/home/rwwilden/projects/rwwilden.gitlab.io/node_modules/@docusaurus/core/lib/server/brokenLinks.js:153:47)
    at async buildLocale (/home/rwwilden/projects/rwwilden.gitlab.io/node_modules/@docusaurus/core/lib/commands/build.js:177:5)
    at async tryToBuildLocale (/home/rwwilden/projects/rwwilden.gitlab.io/node_modules/@docusaurus/core/lib/commands/build.js:38:20)
    at async mapAsyncSequential (/home/rwwilden/projects/rwwilden.gitlab.io/node_modules/@docusaurus/utils/lib/jsUtils.js:34:24)
    at async Command.build (/home/rwwilden/projects/rwwilden.gitlab.io/node_modules/@docusaurus/core/lib/commands/build.js:73:21)

@rwwilden please when. you have a stacktrace, post it in its entirety. You removed the stacktrace from the error message, preventing us to immediately understand what's the issue, needing to reproduce it locally to understand the problem.
The stacktrace is:
[ERROR] Unable to build website for locale en.
[ERROR] Error: Expected output HTML file to be found at /Users/sebastienlorber/Desktop/projects/docusaurus/website/build/blog/docu2.1.html/index.html.
    at readOutputHTMLFile (/Users/sebastienlorber/Desktop/projects/docusaurus/packages/docusaurus-utils/lib/emitUtils.js:75:15)
    at async /Users/sebastienlorber/Desktop/projects/docusaurus/packages/docusaurus-plugin-content-blog/lib/feed.js:41:25
    at async Promise.all (index 0)
    at async generateBlogFeed (/Users/sebastienlorber/Desktop/projects/docusaurus/packages/docusaurus-plugin-content-blog/lib/feed.js:39:5)
    at async createBlogFeedFiles (/Users/sebastienlorber/Desktop/projects/docusaurus/packages/docusaurus-plugin-content-blog/lib/feed.js:85:18)
    at async Object.postBuild (/Users/sebastienlorber/Desktop/projects/docusaurus/packages/docusaurus-plugin-content-blog/lib/index.js:315:13)
    at async /Users/sebastienlorber/Desktop/projects/docusaurus/packages/docusaurus/lib/commands/build.js:171:9
    at async Promise.all (index 1)
    at async buildLocale (/Users/sebastienlorber/Desktop/projects/docusaurus/packages/docusaurus/lib/commands/build.js:167:5)
    at async tryToBuildLocale (/Users/sebastienlorber/Desktop/projects/docusaurus/packages/docusaurus/lib/commands/build.js:38:20)

This makes it clear for us maintainers that the problem is in our blog feed: we added a readOutputHTMLFile() method to create the blog RSS feed HTML content, but it's not reading from the correct output file location.
When an URL already ends with .html, such as /x/y/z.html, we output /x/y/z.html and not /x/y/z/index.html => readOutputHTMLFile apparently doesn't support this logic

Hey @slorber I'll like to work on this. I've read the disclaimer and don't expect the PR to be assigned but just wanted to give up a heads up to prevent some one else from working on the same task.
( I'll try create a PR quickly, but if you don't see a message in the next 12 hours, feel free to pick this up )

I've been able to setup the project and am able to reproduce this issue. Will send a PR soon.

I've created a PR which fixes this. Feel free to take a look when you get time


HTTP Send service

dependency: https://github.com/liteflow-labs/service-http/pull/24
This can be tested with a process like
name: webhook-todo
steps:
  - type: trigger
    endpointKey: webhook
  - type: task
    service: http
    taskKey: send
    inputs:
      url: https://webhook.site/726ebc85-a698-466d-aea2-ba5c75089a09
      data:
        collection: foo
        data:
          bar: 23
          xxx: true
      headers:
        authorization: "Bearer xxx"

@antho1404 service deployed and instance id updated


variable dumping

Is there any way to dump variable in the template?
I saw this explanation https://github.com/gohugoio/hugo/pull/1042, but printf display complex structure without any hierarchy.

Please use https://discourse.gohugo.io/ for questions/troubleshooting. Also see  Hugo Documentation.


请问单机单卡运行，需要修改什么地方呢？

two options:

use distributed launch and set both GPU_PER_NODE and NNODES to 1.
use normal run such as python xx.py, install bmtrain by source code using the latest main branch. The core change is in de6be9a. It is updated after version 0.2.1 released, while version 0.2.2 is not yet ready.

I use option 1:
get some error, Can you give me some advice? Thank you
Traceback (most recent call last):
File "tune_cpm_ant.py", line 47, in
tune.run(data)
File "/home/shanhoo3/fkb/remote_project/cpm/cpm-live/examples/tune.py", line 222, in run
self.forward(train_dataloader, eval_dataloader, cls_num=self.cls_num)
File "/home/shanhoo3/fkb/remote_project/cpm/cpm-live/examples/tune.py", line 122, in forward
loss = self._forward(train_data, cls_num=cls_num)
File "/home/shanhoo3/fkb/remote_project/cpm/cpm-live/examples/tune.py", line 350, in _forward
loss = self.loss_function(logits, targets.view(-1))
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/bmtrain/loss/cross_entropy.py", line 200, in forward
w = (target != self.ignore_index).int()
RuntimeError: CUDA error: no kernel image is available for execution on the device
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 16863) of binary: /home/shanhoo3/anaconda3/envs/cpm/bin/python
Traceback (most recent call last):
File "/home/shanhoo3/anaconda3/envs/cpm/bin/torchrun", line 33, in
sys.exit(load_entry_point('torch==1.10.1', 'console_scripts', 'torchrun')())
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 345, in wrapper
return f(*args, **kwargs)
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/distributed/run.py", line 719, in main
run(args)
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/distributed/run.py", line 710, in run
elastic_launch(
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 131, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 259, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:

a=torch.Tensor([1,2])
a=a.cuda()
a

Seems like architecture mismatch, what GPU do you use and what's the cuda version?

but I execute the following code, which is correct
a=torch.Tensor([1,2])
a=a.cuda()
a

python3 -c "import torch; print(torch.version.cuda)"

cuda:11.3  torch:1.10.1  RTX 3090

export CUDA_LAUNCH_BLOCKING=1

Still report the same error
====================== Initialization ======================
rank :          0
local_rank :    0
world_size :    1
local_size :    1
master :        shanhoo3:60407
device :        0
cpus :          [0, 1, 2, 3, 4, 5, 6, 7]
root
├── encoder (Encoder)
│   ├── layers (TransformerBlockList)
│   │   ├── 0-0,5-5,7-7,9-9,11-11,16-16,18-18,20-20,24-24,27-27,31-31,36-36,39-40(CheckpointBlock)
│   │   │   ├── self_att (SelfAttentionBlock)
│   │   │   │   ├── layernorm_before_attention (LayerNorm) weight:[4096]
│   │   │   │   └── self_attention (Attention)
│   │   │   │       ├── project_q,project_v(Linear) weight:[8388608]
│   │   │   │       │   └── lora (DistributedLowRankLinear) lora_A:[32768] lora_B:[16384]
│   │   │   │       └── project_k,attention_out(Linear) weight:[8388608]
│   │   │   └── ffn (FFNBlock)
│   │   │       ├── layernorm_before_ffn (LayerNorm) weight:[4096]
│   │   │       └── ffn (FeedForward)
│   │   │           ├── w_in (DenseGatedACT)
│   │   │           │   └── w_0,w_1(Linear) weight:[2867200]
│   │   │           └── w_out (Linear) weight:[2867200]
│   │   ├── 1-2,4-4,6-6,8-8,12-12,23-23,29-30,33-33,42-42(CheckpointBlock)
│   │   │   └── self_att (SelfAttentionBlock)
│   │   │       ├── layernorm_before_attention (LayerNorm) weight:[4096]
│   │   │       └── self_attention (Attention)
│   │   │           ├── project_q,project_v(Linear) weight:[8388608]
│   │   │           │   └── lora (DistributedLowRankLinear) lora_A:[32768] lora_B:[16384]
│   │   │           └── project_k,attention_out(Linear) weight:[8388608]
│   │   └── 17-17,22-22,28-28,37-37,44-45,47-47(CheckpointBlock)
│   │       └── ffn (FFNBlock)
│   │           ├── layernorm_before_ffn (LayerNorm) weight:[4096]
│   │           └── ffn (FeedForward)
│   │               ├── w_in (DenseGatedACT)
│   │               │   └── w_0,w_1(Linear) weight:[2867200]
│   │               └── w_out (Linear) weight:[2867200]
│   └── output_layernorm (LayerNorm) weight:[4096]
├── prompt_embedding (Embedding) weight:[4194304]
├── segment_embedding (Embedding) weight:[131072]
├── input_embedding (Embedding) weight:[125829120]
└── position_bias (SegmentPositionEmbedding) relative_attention_bias:[24576]
[INFO|(OpenDelta)basemodel:696]2023-03-08 14:12:31,772 >> Trainable Ratio: 2457600/1152323584=0.213273%
[INFO|(OpenDelta)basemodel:698]2023-03-08 14:12:31,772 >> Delta Parameter Ratio: 2457600/1152323584=0.213273%
[INFO|(OpenDelta)basemodel:700]2023-03-08 14:12:31,772 >> Static Memory 2.15 GB, Max Memory 2.61 GB
[INFO] Tuning begins...
Building prefix dict from the default dictionary ...
Loading model from cache /tmp/jieba.cache
Loading model cost 0.637 seconds.
Prefix dict has been built successfully.
Building prefix dict from the default dictionary ...
Loading model from cache /tmp/jieba.cache
Loading model cost 0.409 seconds.
Prefix dict has been built successfully.
Traceback (most recent call last):
File "tune_cpm_ant.py", line 47, in
tune.run(data)
File "/home/shanhoo3/fkb/remote_project/cpm/cpm-live/examples/tune.py", line 222, in run
self.forward(train_dataloader, eval_dataloader, cls_num=self.cls_num)
File "/home/shanhoo3/fkb/remote_project/cpm/cpm-live/examples/tune.py", line 122, in forward
loss = self._forward(train_data, cls_num=cls_num)
File "/home/shanhoo3/fkb/remote_project/cpm/cpm-live/examples/tune.py", line 350, in _forward
loss = self.loss_function(logits, targets.view(-1))
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/bmtrain/loss/cross_entropy.py", line 200, in forward
w = (target != self.ignore_index).int()
RuntimeError: CUDA error: no kernel image is available for execution on the device
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 31822) of binary: /home/shanhoo3/anaconda3/envs/cpm/bin/python
Traceback (most recent call last):
File "/home/shanhoo3/anaconda3/envs/cpm/bin/torchrun", line 33, in
sys.exit(load_entry_point('torch==1.10.0', 'console_scripts', 'torchrun')())
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 345, in wrapper
return f(*args, **kwargs)
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/distributed/run.py", line 719, in main
run(args)
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/distributed/run.py", line 710, in run
elastic_launch(
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 131, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 259, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
tune_cpm_ant.py FAILED
Failures:
<NO_OTHER_FAILURES>
Root Cause (first observed failure):
[0]:
time      : 2023-03-08_14:13:06
host      : shanhoo3
rank      : 0 (local_rank: 0)
exitcode  : 1 (pid: 31822)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
run_sh：
#! /bin/bash
export CUDA_LAUNCH_BLOCKING=1
export CUDA_VISIBLE_DEVICES=0
GPUS_PER_NODE=1
NNODES=1
MASTER_ADDR=localhost
MASTER_PORT=12345
OPTS=""
OPTS+=" --dataset-name C3"
OPTS+=" --dataset-path ./dataset/oss_cuge/C3"
OPTS+=" --cls-num 4"
OPTS+=" --output-path ./output/C3"
OPTS+=" --model-path ./pretrain_models/cpm_live_1b/cpm-ant-1b.pt"
OPTS+=" --config-path ./pretrain_models/cpm_live_1b/cpm-ant-1b.json"
OPTS+=" --batch-size 4"
OPTS+=" --early-stop-patience 10"
OPTS+=" --eval-interval 50"
OPTS+=" --tune-maxlen 1024"
OPTS+=" --lr 1e-3"
OPTS+=" --warmup-iters 50"
OPTS+=" --epochs 20"
TUNE_CMD="torchrun --nnodes=${NNODES} --nproc_per_node=${GPUS_PER_NODE} --rdzv_id=1 --rdzv_backend=c10d --rdzv_endpoint=${MASTER_ADDR}:${MASTER_PORT} tune_cpm_ant.py ${OPTS}"
#TUNE_CMD="python3 tune_cpm_ant.py ${OPTS}"
echo ${TUNE_CMD}
$TUNE_CMD
INFER_CMD="python -u infer_cpm_ant.py ${OPTS}"
echo ${INFER_CMD}
$INFER_CMD

Sorry, I mean
print(target.dtype, target.device, target.shape)

print(target.dtype, target.device, target.shape)
torch.int64 cuda:0 torch.Size([32])

Try the following code
import torch
target = (torch.rand((32,))*100000).to(torch.int64).cuda()
print(target.dtype, target.device, target.shape)
ret = (target != -100).int()
print(target, ret)

No problem with that
torch.int64 cuda:0 torch.Size([32])
tensor([10774, 12657, 33614, 78932, 97760, 75976, 96933, 25522, 62390, 51455,
27301, 15220, 78448, 33771, 29875, 97263, 66820, 69208, 74462, 62388,
73307, 45559, 32449,    34, 42047, 41038, 92167, 11860, 42870, 87416,
33985, 80742], device='cuda:0') tensor([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1], device='cuda:0', dtype=torch.int32)

Since I can run in the same environment setting, it's hard to debug. Whether or not your nvcc --version match your torch cuda version?
Can I execute the following code, theoretically the CUDA version matches Torch, right?

import torch
a = torch.tensor([0]).cuda()
a
tensor([0], device='cuda:0')

Hard to figure out why. From your log, it seems that the forward of BMTrain model has successfully passed, the error is on the loss function. I tried the following code using the same environment as yours but raise no error.
import torch
import bmtrain as bmt

bmt.init_distributed()

loss_func = bmt.loss.FusedCrossEntropy()
input = torch.randn(32, 100).half().cuda()
input.requires_grad_(True)
target = torch.randint(0, 100, (32,)).long().cuda()
loss = loss_func(input, target)
loss.backward()

Could you help me modify the file /home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/bmtrain/loss/cross_entropy.py, add
print(w.dtype, w.device, w.shape)
print(self.ignore_index)

before the line w = (target != self.ignore_index).int(), and tell me the printed result.

File "/home/shanhoo3/anaconda3/envs/cpm/lib/python3.8/site-packages/bmtrain/loss/cross_entropy.py", line 200, in forward
w = (target != self.ignore_index).int()

Hello, are you executing this code on torchrun?

using torchrun --nnodes=1 --nproc_per_node=1 --rdzv_id=1 --rdzv_backend=c10d --rdzv_endpoint=localhost:12345 test.py
enviroment:

nvcc --versionnvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Mar_21_19:15:46_PDT_2021
Cuda compilation tools, release 11.3, V11.3.58
Build cuda_11.3.r11.3/compiler.29745058_0

torch.__version__ is 1.10.2+cu113
gpu GeForce RTX 3090

When I debug, I find a particularly interesting thing, the first execution in the terminal generates an error, and the second execution of the same code succeeds.
Do you know what caused this? Or how to fix it?
(target != self.ignore_index).int()
Traceback (most recent call last):
File "/home/shanhoo3/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_exec2.py", line 3, in Exec
exec(exp, global_vars, local_vars)
File "", line 1, in
RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
(target != self.ignore_index).int()
tensor([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1], device='cuda:0', dtype=torch.int32)

using torchrun --nnodes=1 --nproc_per_node=1 --rdzv_id=1 --rdzv_backend=c10d --rdzv_endpoint=localhost:12345 test.py
enviroment:

nvcc --versionnvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Mar_21_19:15:46_PDT_2021
Cuda compilation tools, release 11.3, V11.3.58
Build cuda_11.3.r11.3/compiler.29745058_0

torch.__version__ is 1.10.2+cu113
gpu GeForce RTX 3090


Feature/http server

update and add/remove sections as needed
New Features

Support for conversion of HTTP actions to Dripline Commands
Disable values and specifier in UI when user click on GET
Make specifier field mandatory in UI when user clicks on CMD

Fixes

Fixed converting Dripline commands to HTTP actions in javascript
Fixed and improved logging
Fixed error handling

Testing
please describe both unit tests included and any integration tests conducted
Prior to merging for releases:

[ ] update the project's version in the top-level CMakeLists.txt file
[ ] update the appVersion to be the new container image tag version in chart/Chart.yaml

Closing in favor of http_with_auth PR


[FIX] Unittests: disable sort_keys in JSON output

As discussed in #383
Unittests are failling because the output is in the wrong order.
From an usability pov. We want to output keys just as they were parsed from the invoice.
Eg in lines section:
Section_header
Productline 1
Productline 2
instead of (alphabetical order)
Productline 1
Productline 2
Section_header

Looks good, thanks!


updated docs ephemeral pods/static pods

updated docs regarding ephemeral pods not being supported by static pods kubernetes/kubernetes#113935

/approve

/retitle Document that static pods can't have ephemeral containers

We could additionally document why you can't add an ephemeral container (which is that mirror pods are essentially read-only).

I see some comments from @sftim but this got merged a while back.  Sorry, I did not see your comments in time.


Renaming items

Renaming certain things: Table group -> room , Table -> Table number, Category -> Track. Most of this will be in the admin tab, but make sure you comb through the site to see if there's anything else.

Only rename table groups and add a pointer tool tip for the other two.

Like this:


fix(firebase_auth): TenantId can be reset to null after being set to something else

Description
Existing behavior

Cannot set tenantId to null after setting it to something else

New behavior

Setting tenantId back to null works as expected

Motivation

This is how the native SDKs work

I was unsure how to write tests for this. The existing tenantId tests don't look like they actually interact with the platform code. If anyone could point me in the right direction I would be happy to write them.
Related Issues
https://github.com/FirebaseExtended/flutterfire/issues/7896#issue-1107115648
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (melos run analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

Welp it looks like this issue goes deeper than just this plugin
In the native Android SDK:
    public void setTenantId(@NonNull String param1) {
        // $FF: Couldn't be decompiled
    }

I don't think that code is open source, so I'm stuck on this

Hey @Rexios80, this is worth raising on the firebase-android-sdk I believe. It looks like it probably shouldn't be @nonnull annotated but worth finding out what folks on that repo think 😄.

@Rexios80 please let me know if you've raised an issue for this and we can mention it to the Android SDK devs

@Salakar https://github.com/firebase/firebase-android-sdk/issues/3398


autocomplete for rust dont work

Check for existing issues

[x] Completed

Describe the bug / provide steps to reproduce it
when i open zed and i start typing,the intellisense window dont shows up! i dont know why
Environment
Zed: v0.109.3 (stable)
OS: macOS 13.5.2
Memory: 8 GiB
Architecture: x86_64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.
No response

Hey @Iovans, are you working inside of a rust project or are you trying to edit a standalone rust file? I don't believe the latter is supported by rust-analyzer. If you are working in a project, there might be some issue with the language server not installing. Can you check inside of:
~/Library/Application\ Support/Zed/languages/
and see if you see a directory for rust-analyzer? If you have it, try deleting that directory, exiting Zed, and reopening your project in Zed, to see if it attempts to download again.

im trying to edit just a standalone rust file,let me check the directory

nothing changed unfortunately,it keeps not shows

Ah yeah, even though rust-analyzer supports completions on standalone files (outside of projects), Zed doesn't support it yet. Do you get completions for rust projects (opening Zed on directories generated by cargo new <project_name>)?

I dont know, i will try later this evening and i will let you know thank you for the help

I tried but still dont work

@JosephTLyons Same problem here.
No intellisense completions on a rust project that's nested into a folder with dependent apps.
My use case is simple: I have a couple apps I plan to deploy using docker compose.
I tried deleting the language server and saw it re-download. To no avail.

@Standaa, I know its not what you want for you workflow, but does the Rust language server at least work for you if you open the rust projects directly as the root directory?


Probe for Region Endpoint should not be set to false when endpoint is null

I have a lambda which connects to DynamoDb, for local testing I can set a region but when its not testing (live) I want it to use the region the lambda is in.
I would create the AmazonDynamoDBConfig as following where regionEndpoint is an optional parameter that defaults to null
_dynamoDbConfig = new AmazonDynamoDBConfig
{
    RegionEndpoint = regionEndpoint
};

if regionEndpoint = null (which is when not testing) then I get No RegionEndpoint or ServiceURL configured
this however will work
 _dynamoDbConfig = new AmazonDynamoDBConfig();

if( regionEndpoint != null)
{
    _dynamoDbConfig.RegionEndpoint = regionEndpoint;
}

I tracked this down to ClientConfig#L117 where probeForRegionEndpoint is set to false regardless of value being set.
I think that this line should be moved to within the if statement
set
{
    this.serviceURL = null;

    this.regionEndpoint = value;

if (this.regionEndpoint != null)
{
    this.probeForRegionEndpoint = false;
    var endpoint = this.regionEndpoint.GetEndpointForService(RegionEndpointServiceName, this.UseDualstackEndpoint);
    if (endpoint != null && endpoint.SignatureVersionOverride != null)
        this.SignatureVersion = endpoint.SignatureVersionOverride;
    }
}

happy to make a pr if you agree

Thanks for pointing this out. I agree with your premise but let me review the code to see what the implications are if we made a change.

sure no problems

Marking this as resolved.  If this solution doesn't work for you, feel free to open a new one.


Bump up version to 0.0.20-SNAPSHOT

Current coverage is 61.04% (diff: 100%)

Merging #123 into master will not change coverage

@@             master       #123   diff @@
==========================================
  Files            48         48
  Lines          2195       2195
  Methods           0          0
  Messages          0          0
  Branches        325        325
==========================================
  Hits           1340       1340
  Misses          776        776
  Partials         79         79

Powered by Codecov. Last update 3589079...19f4e5b


running-workflow-name does not work consistently

From my testing over a couple of weeks, the functionality behind the "running-workflow-name" param is unreliable and will not always wait until all the other checks finish despite what the docs say. It does work most of the time, but there is a race condition. From my observation there is some period of time after a job finishes and another job (with a dependency on the first job) gets queued. If the "wait-on-check-action" just so happens to check the jobs status in that period of time, it will incorrectly conclude that all jobs have finished even though they haven't.

In my case, just using:
ref: ${{ github.ref }}
check-name: 'Run tests'

also leads to inconsistent results. Sometimes the check incorrectly assumes that the tasks have run. I have noticed that this happens when there are multiple jobs running, but possibly also happens otherwise.


How to get the identity image?

Great open source work! But how can I get the identify image in training code?
In original paper, it said that "Considering the efficiency, we employ a simplified method that directly transforms the posed human image to the canonical result in standard A-pose using a pretrained human repose model."
Thx.

thx for encouragement - when i picked apart this paper - i have to backtrack to cover the en3d stuff (which is missing code) i started to flesh this out - but author said code is coming so kinda abandoned this effort.
https://github.com/johndpope/en3d

This helped me a lot, thx again!


Add surface normals to picking information

A small PR to add surface normals to picking information. Note that the normals are calculated in model coordinates just as the hit coordinates are.

If we are going to add so many arguments to the pick object, lets figure out a way to not do it in the case where it is not needed. We should only pass all this stuff if it is a mesh collider that has enabled the option.

@NolaDonato Another pull request is coming soon to address this - I just needed this PR so people can review #1288.

Will merge on Wednesday.

Needs DCO per https://resources.samsungdevelopers.com/Gear_VR_and_Gear_360/GearVR_Framework_Project/040_Get_Involved/GearVRf_Developer_Certificate_of_Origin

GearVRf-DCO-1.0-Signed-off-by: Jonathan Reynolds<EMAIL_ADDRESS>

Looks good to me too. Are there unit tests for this feature?


Fix bintray publish so version is calculated later

Nebula » nebula-plugin-plugin-pull-requests #13 SUCCESS
This pull request looks good


Child Profile Paragraph Buckets

The following are the four text boxes that should be created in the Child's Record which will populate their visible child profile.  The goal is to prompt the MARE worker to make sure the following info is in each box although they will create the narrative.
Intro: Hi my name is ________________ and first-person quote
Box 1: Age, Race, Interests, Hobbies, Strengths
Box 2: Physical, Social, Emotional and Academic Functioning
Box 3: Legal Status, Sibling/Family Contact, Family Constellation and Placement requirements

from phone conversation with Lisa on April 6th:
Buckets for creating profile page:
Intro: Hi my name is Name and Quote
1P: Age, Race, Interests, Hobbies, Strengths
2P: Physical Social and Emotional Needs
3P: Legal Status, Sibling/Family Contact, Family Constellation and Placement requirements
Buckets on Child Registration Form that should be replicated in child’s record:
Physical Needs
Intellectual special needs (added by Lisa on the phone call)
Social Needs
Emotional Needs/Trauma History
Interests, Talents and Aspirations
School Life: (Child’s academic functioning, grade level, school behavior, peer relationships)
Family Life: (Child’s interaction and behavior in a family or residential setting)
Personality (How does child or others describe him/herself? What is unique about this child (e.g. sexual orientation/gender identity, temperament, sense of humor, etc.)
Other Recruitment Considerations (Qualities of the ideal family, child’s wishes for a family, worker’s recommendation, geographical considerations)

Review with @lisafunaro
changes made to the form:

added Social Needs text area
removed Is child receiving therapy? radio buttons
changed label from Emotional Special Needs to Emotional Needs/Trauma History
removed Other Considerations list (Fire Setting, LGBTQ Youth, etc.)
removed Other considerations for placement text area
removed Please indicate areas to be avoided in recruitment text area
removed Individual/Personality: How does child describe him/herself? text area
removed Interests: (Describe what child enjoys doing.) text area
removed Talents: (Describe unique aspects of child in terms of what he/she does best.) text area
removed Special Needs: (Briefly describe child’s disabilities, behavioral difficulties, therapy, medication.) text area
removed Placement Requirements: (Include what child wants in a family and worker’s recommendations.) text area
removed If this child could have one wish, What would it be? text box
changed label from Aspirations: (Describe what child wants to be in the future –career or educational goals.) to Interests, Talents and Aspirations: (Describe what child wants to be in the future –career or educational goals.)
moved School Life text area below Family Life text area
added Personality (How does child or others describe him/herself? What is unique about this child (e.g. sexual orientation/gender identity, temperament, sense of humor, etc.) text area
added Other Recruitment Considerations (Qualities of the ideal family, child’s wishes for a family, worker’s recommendation, geographical considerations) text area

changes made to the model:

added social needs dropdown (mild, moderate, severe)
added socail needs description box

There's more to do, review it with @lisafunaro to make sure it's correct

Hi Jared –
I’ve gone thru this with a fine toothed comb!  Here are some edits:
In Child Model:

     Change the following left hand titles:

o   Let me tell you more about myself…  to 1st paragraph
o   And here’s what others say… to 2nd paragraph
o   If I could have my own special wish…. To 3rd paragraph

     All the dropdowns for physical needs, emotional needs,

intellectual needs, social needs need to have the text box appear even if
none is chosen (because these buckets are only text boxes on the child
registration form)

     The fields that need a home can be placed in this order right

after social needs

     Add text box for Interests, Talents & Aspirations – put it after

social needs and before school life
Edit to Child registration form:

     Add back Other Considerations list (Fire Setting, LGBTQ Youth,

etc.)
Everything else looks good.  See you today at 4:30!
Lisa
Lisa K. Funaro LICSW
Executive Director
Massachusetts Adoption Resource Exchange, Inc. (MARE)
45 Franklin Street, 5th Floor, Boston, MA  02110
ph:<PHONE_NUMBER>  ext. 111  Fax:<PHONE_NUMBER>
<EMAIL_ADDRESS>www.MAREinc.org http://www.mareinc.org/
MARE http://www.mareinc.org/* - Finding adoptive *families for
children in foster care since 1957.
From: Jared Collier<EMAIL_ADDRESS>Sent: Sunday, April 16, 2017 8:53 AM
To: autoboxer/MARE
Cc: lisafunaro; Mention
Subject: Re: [autoboxer/MARE] Child Profile Paragraph Buckets (#199)
Review with @lisafunaro https://github.com/lisafunaro
changes made to the form:

added Social Needs text area
removed Is child receiving therapy? radio buttons
changed label from Emotional Special Needs to Emotional
Needs/Trauma History
removed Other Considerations list (Fire Setting, LGBTQ Youth, etc.)
removed Other considerations for placement text area
removed Please indicate areas to be avoided in recruitment text area
removed Individual/Personality: How does child describe him/herself?
text area
removed Interests: (Describe what child enjoys doing.) text area
removed Talents: (Describe unique aspects of child in terms of what
he/she does best.) text area
removed Special Needs: (Briefly describe child’s disabilities,
behavioral difficulties, therapy, medication.) text area
removed Placement Requirements: (Include what child wants in a family
and worker’s recommendations.) text area
removed If this child could have one wish, What would it be? text box
changed label from Aspirations: (Describe what child wants to be in
the future –career or educational goals.) to Interests, Talents and
Aspirations: (Describe what child wants to be in the future –career or
educational goals.)
moved School Life text area below Family Life text area
added Personality (How does child or others describe him/herself?
What is unique about this child (e.g. sexual orientation/gender identity,
temperament, sense of humor, etc.) text area
added Other Recruitment Considerations (Qualities of the ideal
family, child’s wishes for a family, worker’s recommendation, geographical
considerations) text area

changes made to the model:

added social needs dropdown (mild, moderate, severe)
added socail needs description box

There's more to do, review it with @lisafunaro
https://github.com/lisafunaro to make sure it's correct
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/autoboxer/MARE/issues/199#issuecomment-294350186, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AXv7TIbbL1vplAuyMLGO5pl7pjD39Bs5ks5rwg8dgaJpZM4MPpAy
.


DTLS example can not work on vs2010

I open the example Project in  mbedtls-2.6.0_server\visualc\VS2010，run dtls_client.exe and dtls_server.exe on my windows pc , I find the client can not connect to the server.
we should modify the mbedtls-2.6.0_server\programs\ssl\dtls-server.c
line 173  " if( ( ret = mbedtls_net_bind( &listen_fd, NULL, "4433", MBEDTLS_NET_PROTO_UDP ) ) != 0 )" should be "    if( ( ret = mbedtls_net_bind( &listen_fd, "<IP_ADDRESS>", "4433", MBEDTLS_NET_PROTO_UDP ) ) != 0 )"
bind NULL cannot work .

Hi @Supowang Thank you for raising this issue. I believe this issue is a duplicate of #977 , therefore I am closing it. If you feel this issue was wrongfully closed, please reopen.

@RonEld  sorry  I have not see  the #997 issue before
Thanks a lot.


Clarifying how to find the console...

Not immediately obvious how to load the console for those beginners. Since this is so crucial, I figured it would be worth mentioning it here.

so will the commit be approved?

@z2k-gwp I went ahead and merged my suggestions. Let me know if you have any comments.


Fix item pickup behind obstacles

Quite a bit hacky... timer will check if we try to pick up the same item over and over again. After 4 sec it will try to force a move (with teleport this can fix the issue), after another 4 sec it will skip this item type for this round.

nice fix


Refactor integration tests of server

The integration tests of the server code are arduous to maintain, largely because they violate best practices:

Avoid copy-pasted code
Use the least complex example that adequately exercises the code under test

We want to refactor it to address these problems by adding a helper module. This helper module should include (a hierarchy of?) testcase superclasses to support:

setting Epidata.BASE_URL and secrets
truncating tables
loading data

should isolate variations so they are easy to read and reason about at the point of use
should return a dict in epidata response format using same ordering
should feel free to use the associated database.Database as a helper -- these are server tests; database.Database should have been tested elsewhere

The files affected:

integrations/server/test_covid_hosp.py - has a reasonable example of what loading data might look like
integrations/server/test_covidcast.py
integrations/server/test_covidcast_endpoints.py
integrations/server/test_covidcast_meta.py
integrations/server/test_covidcast_nowcast.py
integrations/server/test_fluview.py - setup only
integrations/server/test_fluview_meta.py - setup only

this example could be a decent start for some of these points: https://github.com/cmu-delphi/delphi-epidata/blob/e0fb58b4cee56e97c29dd81fe54db42a9690e7e4/integrations/acquisition/covidcast/test_db.py
also, collapse multiple definitions of CovidcastRow into one

Fixed in #959


Use selenium/standalone-chromium on AMD and ARM

[!NOTE]
There are two possible PR: This one here which unifies the chromium image for AMD and ARM, or https://github.com/laravel/sail/pull/723 which only modifies the ARM image.
I would be more in favour of this PR, because in a multi person team, it less weniger disruptions if different platforms are used.

Based on the PR https://github.com/laravel/docs/pull/9875 I think it is a good idea, to also replace seleniarm with selenium. This also unifies to use selenium/standalone-chromium on both AMD and ARM, instead of before the two different images:

selenium/standalone-chrome for AMD
seleniarm/standalone-chromium for ARM

Description of the PR https://github.com/laravel/docs/pull/9875:

This PR changes the recommended image for Sail's Selenium service on Apple Silicon from seleniarm/standalone-chromium to selenium/standalone-chromium. Notice selenium instead of seleniarm 😄

Reason: The community-maintained fork was merged back into the official Selenium project in May 2024 and is now only maintained there. See the official announcement by the Selenium project. The latest seleniarm/standalone-chromium release is Chromium v124.0.6367.78 from four months ago. Its GitHub repository is now archived. Unfortunately, until Google provides Linux/ARM builds for Chrome, Apple Silicon / ARM users still need to switch from Chrome to Chromium.

@Jubeki this one has conflicts.


Fix: AgentProfileView compressed labels

Why?
I noticed the name and title labels in AgentProfileView were being compressed. Not sure when this happened, but I suspect #61.
What?

Set contentCompressionResistancePriority to .required.

Version Change
Minor.
UI Changes

Before
After

Question: I see that now the "Har du noen spørsmål" is compressed or restricted to a single line. Is that intentional?

Question: I see that now the "Har du noen spørsmål" is compressed or restricted to a single line. Is that intentional?

Damn, but nice catch!🥇  I'll dig deeper

It's caused by OverFlowCollectionView initially calculating an incorrect height for itself. I'll see if I can find a fix for this

Closing this since we have a fix and PR ready in the app.


New GetMappingsView API and CreateIndexMappings API improvements

Description
Added new API GetMappingsView which returns mappings view with given index name and rule topic parameters.
Improved CreateIndexMappings API to accept optional parameter alias_mappings which is user-supplied alias mappings. This parameter will have higher priority over rule_topic parameter.
Issues Resolved
#44
Check List

[x] New functionality includes testing.

[x] All tests pass

[x] New functionality has been documented.

[ ] New functionality has javadoc added

[x] Commits are signed per the DCO using --signoff

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

Codecov Report

Merging #46 (3c358f5) into main (0d038b0) will decrease coverage by 14.97%.
The diff coverage is 9.75%.

@@              Coverage Diff              @@
##               main      #46       +/-   ##
=============================================
- Coverage     58.26%   43.29%   -14.98%
- Complexity      783      814       +31
=============================================
  Files           124      161       +37
  Lines          3666     5322     +1656
  Branches        536      690      +154
=============================================
+ Hits           2136     2304      +168
- Misses         1314     2796     +1482
- Partials        216      222        +6

Impacted Files
Coverage Δ

...rch/securityanalytics/SecurityAnalyticsPlugin.java
0.00% <0.00%> (ø)

...rch/securityanalytics/action/DeleteRuleAction.java
0.00% <0.00%> (ø)

...ch/securityanalytics/action/DeleteRuleRequest.java
0.00% <0.00%> (ø)

...h/securityanalytics/action/DeleteRuleResponse.java
0.00% <0.00%> (ø)

...arch/securityanalytics/action/GetAlertsAction.java
0.00% <0.00%> (ø)

...rch/securityanalytics/action/GetAlertsRequest.java
0.00% <0.00%> (ø)

...ch/securityanalytics/action/GetFindingsAction.java
0.00% <0.00%> (ø)

...h/securityanalytics/action/GetFindingsRequest.java
0.00% <0.00%> (ø)

...ecurityanalytics/action/GetMappingsViewAction.java
0.00% <0.00%> (ø)

...curityanalytics/action/GetMappingsViewRequest.java
0.00% <0.00%> (ø)

... and 56 more

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


Fixed broken links

Hi @svick, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

Other broken links that were not fixed by this change:

Sample code for MVC → Views → Layout does not exist
Apple man page for sudo is broken (linked from Building Projects with Yeoman#Install Node.js, npm, and Yeoman
http://symbolsource.org/ is down (linked from Debugging#Debugging with Source and Symbols)
aspnet/logging doesn't have a master branch (linked from its API reference)
WebListener is not open source (linked from its API reference)

:shipit:

Thanks! 3aa24e44310c587b478f89ea5bec440dd63c1e27


feat: support plurals format message

#70

Codecov Report

Merging #73 (de5d3f1) into main (59570ab) will not change coverage.
The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff            @@
##              main       #73   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines          250       254    +4
  Branches        45        47    +2
=========================================
+ Hits           250       254    +4

Flag
Coverage Δ

core
100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

packages/core/src/index.ts
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


fix: consistent return types for copy

What kind of change does this PR introduce?
Bug fix
What is the current behavior?
The copy method return signature was incorrect
What is the new behavior?
we now returns a path key to be consistent with the other methods

:tada: This PR is included in version 2.0.0-rc.2 :tada:
The release is available on:

GitHub release
npm package (@rc dist-tag)

Your semantic-release bot :package::rocket:


Extend WebEncoders API to avoid allocations within the methods

rewrite existing methods in terms of the new ones
don't allocate multiple 0-length arrays

nit:

clarify a couple of doc comments e.g. using <paramref/>
move an error message into a resource
pass parameter names into new resource
rename parameters for consistency e.g. inputLength -> count

/cc @Tratcher @rynowak

Why are you making this change?

Why are you making this change?

Because the allocations done inside WebEncoders are significant for the Antiforgery use of this code. See numbers in aspnet/Antiforgery#56.

Seems like it might be worthwhile to consider a low allocation pattern where the user provides all of the input and output structures. They way they can pool arrays or instead of us having to new things up. The only issue might be knowing what the size of the output array is. I wonder of there are any nice patterns for doing this.

:up::date:

:shipit: from me with some minor comments - this will meet our needs.
Another option here is to use stackalloc with the intermediate array, but that has its own gotchas.

8c120a0

BTW @rynowak

Another option here is to use stackalloc with the intermediate array

This option is now open for callers. For example, if the DataProtections use of WebEncoders in public static string Protect(this IDataProtector protector, string plaintext) or public static string Unprotect(this IDataProtector protector, string protectedData) show up in tested scenarios, we could use stackalloc there.


No data returned from server written to socket before connection close

Hi!
I have a following code
$socket->on('connection', function ($conn)
{
  $conn->write("Hello there!\n");

  $conn->on('data', function ($data) use ($conn) {
    $conn->write("I have received a data!\n");
    $conn->close();
  });
});

The problem is I only receive "Hello there" string, but not "I have received a data!\n". I am not receiving second string even with sleep(5) or something before $conn->close() line. Is this a bug or I am doing something wrong?
Thank you in advance.
PS
comoser:
{
    "require": {
        "react/socket": "~0.4.0"
    }
}

php -v:
PHP 7.0.5 (cli) (built: Apr  2 2016 23:10:23) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

close immediately closes the socket. Being an asynchronous environment that could happen before the write happens. Instead, use $conn->end(). That will close the connection after the write buffer has been drained.

->end() works great, thank you!


[BACKLOG-26047] Adds custom analyzer for JMS Consumer step

Build Completed
:x: This pull request has errors. They will need to be addressed before it can be accepted. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -f 'pom.xml' -pl 'plugins/streaming/impls/jms' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'plugins/streaming/impls/jms' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  plugins/streaming/impls/jms/pom.xml
  plugins/streaming/impls/jms/src/main/java/org/pentaho/di/trans/step/jms/JmsConsumerMeta.java
  plugins/streaming/impls/jms/src/main/java/org/pentaho/di/trans/step/jms/JmsDelegate.java
  plugins/streaming/impls/jms/src/main/java/org/pentaho/di/trans/step/jms/analyzer/JmsConsumerAnalyzer.java
  plugins/streaming/impls/jms/src/main/resources/OSGI-INF/blueprint/blueprint.xml

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes: -0.8% (click to expand)
:new: org.pentaho.di.trans.step.jms.analyzer.JmsConsumerAnalyzer

Coverage: 0% :exclamation:

org.pentaho.di.trans.step.jms.JmsConsumerMeta

Complexity Change: -8.9% :small_red_triangle_down:
Instruction Change: -3.7% :small_red_triangle_down:
Line Change: -4.5% :small_red_triangle_down:
Method Change: -8.9% :small_red_triangle_down:

org.pentaho.di.trans.step.jms.JmsDelegate

Branch Change: 0%
Complexity Change: -37.5% :small_red_triangle_down:
Instruction Change: -6.4% :small_red_triangle_down:
Line Change: -7% :small_red_triangle_down:
Method Change: -33.7% :small_red_triangle_down:

License header violations

:heavy_exclamation_mark: Couldn't find acceptable copyright on plugins/streaming/impls/jms/src/main/java/org/pentaho/di/trans/step/jms/analyzer/JmsConsumerAnalyzer.java

:heavy_exclamation_mark: Couldn't find acceptable license on plugins/streaming/impls/jms/src/main/java/org/pentaho/di/trans/step/jms/analyzer/JmsConsumerAnalyzer.java

Checkstyle violations
The code submitted is not complying with one or more of our guidelines. To perform these checks locally, please use this tool.
/home/buildguy/project/plugins/streaming/impls/jms/src/main/java/org/pentaho/di/trans/step/jms/analyzer/JmsConsumerAnalyzer.java

:heavy_exclamation_mark: File does not end with a newline. at Line: 0

:heavy_exclamation_mark: '{' at column 72 should have line break after. at Line: 27 Column: 72

:heavy_exclamation_mark: '{' at column 59 should have line break after. at Line: 62 Column: 59

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -f 'pom.xml' -pl 'plugins/streaming/impls/jms' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'plugins/streaming/impls/jms' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  plugins/streaming/impls/jms/pom.xml
  plugins/streaming/impls/jms/src/main/java/org/pentaho/di/trans/step/jms/JmsConsumerMeta.java
  plugins/streaming/impls/jms/src/main/java/org/pentaho/di/trans/step/jms/JmsDelegate.java
  plugins/streaming/impls/jms/src/main/java/org/pentaho/di/trans/step/jms/analyzer/JmsConsumerAnalyzer.java
  plugins/streaming/impls/jms/src/main/resources/OSGI-INF/blueprint/blueprint.xml

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes: -0.8% (click to expand)
:new: org.pentaho.di.trans.step.jms.analyzer.JmsConsumerAnalyzer

Coverage: 0% :exclamation:

org.pentaho.di.trans.step.jms.JmsConsumerMeta

Complexity Change: -8.9% :small_red_triangle_down:
Instruction Change: -3.7% :small_red_triangle_down:
Line Change: -4.5% :small_red_triangle_down:
Method Change: -8.9% :small_red_triangle_down:

org.pentaho.di.trans.step.jms.JmsDelegate

Branch Change: 0%
Complexity Change: -37.5% :small_red_triangle_down:
Instruction Change: -6.4% :small_red_triangle_down:
Line Change: -7% :small_red_triangle_down:
Method Change: -33.7% :small_red_triangle_down:


Create a Docker configuration

First of all, thanks for writing what I had in mind saving me the time :smile:
Since I prefer running things in Docker I created a Dockerfile and thought I'd share, hope it's useful to someone.

You're welcome, Mathy, and thanks for contributing! Much appreciated.
Cheers,
Conor


Make Rails/EagerEvaluationLogMessage enabled by default

On issue #1355 we had some discussions about the Rails/EagerEvaluationLogMessage cop. In particular, @Earlopain did some useful benchmarks of some possible scenarios.
After seeing the benchmarks, it's pretty obvious to note that offenses that this cop reports (that is, interpolated strings passed to Rails.logger.debug ) are very slow compared to the form that the cop allows (that is, blocks passed to Rails.logger.debug).
With that being said, considering that the performance hit is now clear between the 2 forms, we might as well enable this cop by default.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.
[ ] If this is a new cop, consider making a corresponding update to the Rails Style Guide.

Thanks, but cops aren't enabled in minor releases. If a user wants it right now, they must either use NewCops: enable or enable it manually. See https://docs.rubocop.org/rubocop/versioning.html#pending-cops

I'm going to close this proposal because newly introduced rules are not enabled by default until a minor version update. Thank you.


Base tick number calculation on difference between minDate and maxDate instead of array length

Description
The tick calculation doesn't work well when you have data that skips days, since it is based on array length rather than the difference in days between the minDate and maxDate.
For example, I have a data set that spans from Jan 5 to Feb 6, but there are lots of "holes" in the data so we only have 12 "days" within that range that have data attached.
However it's actually 32 days, but the tick count function believes it's 12 days, causing way too many ticks to be rendered.
Motivation and Context

How Has This Been Tested?

Change unit tests
Screenshots (if appropriate):
Before fix:

small screen:

After fix:

small screen:

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

LGTM


Conversations API methods implementation request

Recently, Slack implemented some new "all-in-one" methods to govern objects which used to be in multiple different endpoints that can be handled in one over-arching method scope...
https://api.slack.com/docs/conversations-api
This would be great to have slacker python wrappers for the new api methods... one of the new methods allows for multiple users to be invited to a channel at once (handy)

Working on this here: https://github.com/os/slacker/pull/118

Hi. What's the state of this? I use slacker but now need the conversations API since the current/old one is not working anymore. Thanks.

should be part of https://github.com/os/slacker/releases/tag/v0.13.0 as far as I can see


⚠ Nebulance has degraded performance

In 22a4a6b, Nebulance ($NBL) experienced degraded performance:

HTTP code: 200
Response time: 1756 ms

Resolved: Nebulance performance has improved in 3ce4753 after 6 minutes.


fix: multiple css url separation (fix #3922)

Description
The PR is solving issue #3922
Additional context

What is the purpose of this pull request?

[x] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the Pull Request Guidelines and follow the Commit Convention.
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it. (The function in question is not exported on its own, and only participates in the build process. Apart from creating temporary build files, I cannot think of any other tests)

Right, I'll take care of it today

The added test checks for combinations of multiple urls, separated by differently padded commas. It fails for the previous version: (yarn test-serve css)
yarn run v1.22.10
$ jest css
 PASS  packages/vite/src/node/__tests__/plugins/css.spec.ts (9.081 s)
 PASS  packages/playground/css-codesplit/__tests__/css-codesplit.spec.ts (10.964 s)
 PASS  packages/playground/css-codesplit-cjs/__tests__/css-codesplit.spec.ts
 FAIL  packages/playground/css/__tests__/css.spec.ts (13.309 s)
  ● Url separation

    expect(received).toMatch(expected)

    Expected pattern: /^url\(.+\)(?:\s*,\s*url\(.+\))*$/
    Received string:  "none"

      263 |       editFile('imported.css', (code) => code.replace(cases[i - 1], c))
      264 |
    > 265 |     expect(await getBg(urlSeparated)).toMatch(/^url\(.+\)(?:\s*,\s*url\(.+\))*$/)
          |                                       ^
      266 |   }
      267 | })
      268 |

      at Object.<anonymous> (packages/playground/css/__tests__/css.spec.ts:265:39)

Test Suites: 1 failed, 3 passed, 4 total
Tests:       1 failed, 22 passed, 23 total
Snapshots:   0 total
Time:        14.636 s

(returns "none" since the css is invalid, and the background-image falls back on default)
and passes after the fix:
yarn run v1.22.10
$ jest css
 PASS  packages/playground/css-codesplit/__tests__/css-codesplit.spec.ts (9.623 s)
 PASS  packages/vite/src/node/__tests__/plugins/css.spec.ts (10.393 s)
 PASS  packages/playground/css-codesplit-cjs/__tests__/css-codesplit.spec.ts
 PASS  packages/playground/css/__tests__/css.spec.ts (12.533 s)

Test Suites: 4 passed, 4 total
Tests:       23 passed, 23 total
Snapshots:   0 total
Time:        13.191 s, estimated 14 s

Hi,
It's ok now in debug mode. But when build for production, the problem still exists.

@softboy99 please open a new issue with a reproduction against the latest version. Thanks!


📌 Pin SQLAlchemy range for tests, as it doesn't use SemVer

📌 Pin SQLAlchemy range for tests, as it doesn't use SemVer and I forgot (or didn't know?) that when I pinned it the first time.
This only affects FastAPI internal tests... and by accident, Pydantic tests. :grimacing: :see_no_evil:

databases already solved this issue, discussions: https://github.com/tiangolo/fastapi/issues/2996 and https://github.com/encode/databases/pull/299

Thanks @Kludex for the heads up! I was convinced FastAPI was also affected as it has a direct dependency on SQLAlchemy and it had a too-open range (given SQLAlchemy doesn't follow SemVer). But now I realize that probably none of the code in FastAPI itself was really affected by the new SQLAlchemy release. :thinking:


LVM+LUKS: initial research into enabling support for it

Investigate how we can enable LVM and LUKS support in osbuild.

This is part of #370

Summary of the research:
LUKS and LVM are totally orthogonal in a) what they provide and b) they way they would need to implemented in osbuild. They have implementation detail in common, both use Device Mapper.

LUKS: For enabling LUKS support in osbuild, the critical point is opening the device, via cryptsetup open <device> <name>, where <device> is the thing that is encrypted (maybe a loop device) and <name> is the name to be used with device mapper and this will then generate the corresponding device in /dev/mapper/<name>. The name is transient though, and indeed not attached permanently to the LUKS container. Thus collisions can be avoided by choosing a random name. An API similar to the existing one for loop devices that can handle the opening for LUKS should be sufficient to create the encrypted container.
For the image itself, one important catch is that it will need to be re-encrypted on first boot, otherwise all instances of the same image would share the same master key, rendering the encryption partly moot. A dracut module for this already exists dracut_90reencrypt but is probably not usable as is. A more elaborate setup using clevis and teng is employed by CoreoS (spec).

LVM: After the initial research revealed that CoreOS is using a "plain" file-system in a LUKS container and no LVM (create_disks.sh), not that much research went into this. The interconnection between the volume group name and the device in /dev seems to be very tight. E.g. creating a volume group with name "example" will create /dev/example/<devices> in addition to /dev/mapper/example-<devices>. Tools seem to assume the /dev/example dir exists and will want to use that. This would of course lead to name collisions, prohibition parallel builds on the same machine (or worse, building images with the same volume group names as the host has chosen for itself). Possible work arounds:

DM_DEV_DIR env variable: tried that, didn't seems to work
use a lvmsystemid(7) when creating the devices in osbuild so that the host won't actually register them. Then address the devices via their lvm uuid. Later rename or remove the lvmsystemdid. Did not test that.
prevent the devices in /dev to be created via block device locking of the (block) device that contains the LVM volumes. Might interfere with tools that assume that devices in /dev/ exist. Did not test.

* prevent the devices in `/dev` to be created via block device [locking](https://systemd.io/BLOCK_DEVICE_LOCKING) of the (block) device that contains the LVM volumes. Might interfere with tools that assume that devices in `/dev/` exist. Did not test.

Yeah, the device-locking should work here. FYI, we do not use devtmpfs in the build-root, anyway, so no devices would show up. So anything that would expect devices in /dev would have to make us create them manually (similar to how we create loop-devices already).

@puiterwijk can you review this please?


Error when retrieving an object with a field of type Dictionary<string, decimal>

I have a model that has a field of type Dictionary<string, decimal>, the decimal is necessary since its a financial payment data. I use to use double when i converted it to decimal it does not work. It says that it can not cast decimal in a generic list (paraphrased).
If you need i can submit the model and my test code. I tested this by creating a new db and creating the vertex class.

@dagimf Sorry about the late reply.  if you could include your code sample that would be great

Here is the class i am using. Basically the exception happens when the ODocument is converted to c# equivalent model using the To method. The code i am using to run the program is below the class as well. I actually redesigned my db to not use dictionary, so i have found a work around.
The Model:

public class TestModel
    {
        public TestModel()
        {
            DecimalDictionaryTest = new Dictionary<string, decimal>();
            DecimalListTest = new List<decimal>();
        }
        public decimal  DecimalTest { get; set; }
        public Dictionary<string, decimal> DecimalDictionaryTest { get; set; }
        public List<decimal> DecimalListTest { get; set; }
    }

The test code:
static void Main(string[] args)
        {

            //drop any previously exsisting db
            try
            {
                OrientConnection.DropDatabase();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }

            //create the test database
            OrientConnection.CreateDatabase();

            //establish connection with the db
            OrientConnection.CreatePool();
            var database = new ODatabase(OrientConnection.GlobalDatabaseAlias);

            //create the schema
            database.Create.Class(typeof(TestModel).Name).Extends<OVertex>().Run();

            //model to save
            var testModel = new TestModel();
            testModel.DecimalTest = decimal.Parse("189.5");
            testModel.DecimalDictionaryTest.Add("key", decimal.Parse("189.5"));
            testModel.DecimalListTest.Add(decimal.Parse("189.5"));

            //save the test model
            database.Insert<TestModel>(testModel).Run();

            //get the saved data
            var selectQuery = new OSqlSelect()
                .Select()
                .From(typeof(TestModel).Name)
                .ToString();
            var testModelDocuments = database.Query(selectQuery);

            //convert it to the c# model
            var testModels = testModelDocuments.Select(document => document.To<TestModel>()).ToList();

        }


Add sort by Number of Contributors

Make it the final Sort option: Number of Contributors (high to low).

Closed with 11783f6e037528f30b7dbff8a865754058519665


Doble check that the basic information is sufficient

Related to @lasseke's comment for #4.
We need to double-check that our documentation is sufficient with links to guides for the total beginner.

This is a task we will do when we are happy with version 1 of the CTSM-Norway-Docs


bcbio installation failed, tried many times, seems always stuck at the following step

wget https://raw.github.com/chapmanb/bcbio-nextgen/master/scripts/bcbio_nextgen_install.py python bcbio_nextgen_install.py ~/install/bc --tooldir=~/install/bc-data --genomes hg38 --aligners bwa
The following packages will be downloaded:
package                    |            build
---------------------------|-----------------
pysam-0.8.4                |           py27_0         3.1 MB
python.app-1.2             |           py27_4           7 KB
pytz-2015.7                |           py27_0         174 KB
pyvcf-0.6.8.dev0           |           py27_0         964 KB
pyzmq-14.7.0               |           py27_1         305 KB

.....
The following NEW packages will be INSTALLED:
appnope:                0.1.0-py27_0
argcomplete:            1.0.0-py27_1
argh:                   0.26.1-py27_0
arrow:                  0.7.0-py27_0
azure:                  1.0.2-py27_0
backports_abc:          0.4-py27_0

.....
The following packages will be UPDATED:
conda:                  3.19.0-py27_0 --> 3.19.3-py27_0
openssl:                1.0.2d-0      --> 1.0.2f-0
pip:                    7.1.2-py27_0  --> 8.0.2-py27_0
requests:               2.9.0-py27_0  --> 2.9.1-py27_0
setuptools:             18.8.1-py27_0 --> 20.1.1-py27_0
sqlite:                 <IP_ADDRESS>-1     --> 3.9.2-0
wheel:                  0.26.0-py27_1 --> 0.29.0-py27_0

^CTraceback (most recent call last):
File "bcbio_nextgen_install.py", line 245, in
main(parser.parse_args(), sys.argv[1:])
File "bcbio_nextgen_install.py", line 38, in main
bcbio = install_conda_pkgs(anaconda)
File "bcbio_nextgen_install.py", line 72, in install_conda_pkgs
"--file", os.path.basename(REMOTES["requirements"])])
...
KeyboardInterrupt

Sorry about the install problems. It looks like this errored out due to a manual Ctrl-C keyboard interrupt. Are you seeing errors other than this, or is the issue that it's taking too long to download packages?
If the later, we've turned off progress bars here because of some problems with them in automated environments, but conda is in the process of downloading and installing all those packages. So you might not see something happening, but it is working in the background. How long are you waiting for?

Yes, after waiting about 1 hour nothing showed up, I interrupted it. It seems have progress bar (at least when upgrading, like below)?
The reason I try to install fresh new is I tried many times the upgrade command, and always error when downloading some packages, like below (next should be cramtools, not large, but eventually error after long time waiting). sometimes even stuck at the 'Fetching package metadata' ....
besides, always got this in the middle
`
Fetching package metadata: ....
Error: no packages found to remove from environment: /home/xxx/install/bc/anaconda
Warning: local() encountered an error (return code 1) while executing '/home/xxx/install/bc/anaconda/bin/conda uninstall -y perl perl-threaded'
`
bcbio_nextgen.py upgrade -u stable --tools
The following packages will be downloaded:
package                    |            build
---------------------------|-----------------
gawk-4.1.3                 |                0         2.6 MB
vardict-2015.10.30         |                0          60 KB
varscan-2.4.0              |                1         112 KB
vcflib-1.0.0_rc0           |                0        47.7 MB
viennarna-2.1.9            |                1         9.8 MB
vt-2015.11.10              |                0         1.5 MB
wham-<IP_ADDRESS>             |                0         950 KB
bcbio-prioritize-0.0.5     |                1        21.4 MB
bcbio-variation-0.2.6      |                0        30.2 MB
bcbio-variation-recall-0.1.4|                2        14.5 MB
bcftools-1.3               |                0         1.8 MB
boost-1.57.0               |                4         9.7 MB
cramtools-3.0.b47          |                2         3.5 MB

...large list of packages...
vardict:                           2015.10.30-0
vardict-java:                      1.4.3-1
variant-effect-predictor:          83-3
variantbam:                        1.2.1_2015.01.08-0
varscan:                           2.4.0-1
vawk:                              0.0.2-py27_0
vcflib:                            1.0.0_rc0-0
viennarna:                         2.1.9-1
vt:                                2015.11.10-0
wham:                              <IP_ADDRESS>-0

The following packages will be UPDATED:
bx-python:                         0.7.3-np19py27_0 --> 0.7.3-np110py27_1
cnvkit:                            0.7.3dev0-py27_0 --> 0.7.7-py27_0
singledispatch:                    <IP_ADDRESS>-py27_0   --> <IP_ADDRESS>-py27_1

Fetching packages ...
gawk-4.1.3-0.t 100% |######################################################################################################################################################################################| Time: 0:00:02 998.30 kB/s
vardict-2015.1 100% |######################################################################################################################################################################################| Time: 0:00:00 147.32 kB/s
varscan-2.4.0- 100% |######################################################################################################################################################################################| Time: 0:00:00 172.82 kB/s
vcflib-1.0.0_r 100% |######################################################################################################################################################################################| Time: 0:00:09   5.35 MB/s
viennarna-2.1. 100% |######################################################################################################################################################################################| Time: 0:00:04   2.12 MB/s
vt-2015.11.10- 100% |######################################################################################################################################################################################| Time: 0:00:02 582.93 kB/s
wham-<IP_ADDRESS> 100% |######################################################################################################################################################################################| Time: 0:00:16  60.37 kB/s
bcbio-prioriti 100% |######################################################################################################################################################################################| Time: 0:00:05   3.95 MB/s
bcbio-variatio 100% |######################################################################################################################################################################################| Time: 0:00:08   3.95 MB/s
bcbio-variatio 100% |######################################################################################################################################################################################| Time: 0:00:04   3.24 MB/s
bcftools-1.3-0 100% |######################################################################################################################################################################################| Time: 0:00:02 654.56 kB/s
boost-1.57.0-4 100% |######################################################################################################################################################################################| Time: 0:00:07   1.36 MB/s
An unexpected error has occurred, please consider sending the                                                                                | ETA:  --:--:--   0.00  B/s
following traceback to the conda GitHub issue tracker at:
https://github.com/conda/conda/issues

Include the output of the command 'conda info' in your report.
Traceback (most recent call last):
File "/home/xxx/install/bc/anaconda/bin/conda", line 5, in
sys.exit(main())
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 173, in main
args_func(args, p)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 180, in args_func
args.func(args, p)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/cli/main_install.py", line 45, in execute
install.install(args, parser, 'install')
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 424, in install
plan.execute_actions(actions, index, verbose=not args.quiet)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/plan.py", line 538, in execute_actions
inst.execute_instructions(plan, index, verbose)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/instructions.py", line 149, in execute_instructions
cmd(state, arg)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/instructions.py", line 52, in FETCH_CMD
fetch(state['index'], arg)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/instructions.py", line 48, in fetch
fetch_pkg(index[fn])
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 296, in fetch_pkg
download(url, path, session=session, md5=info['md5'], urlstxt=True)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 376, in download
chunk  = resp.raw.read(2**14)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/response.py", line 311, in read
flush_decoder = True
File "/home/xxx/install/bc/anaconda/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/response.py", line 244, in _error_catcher
raise ProtocolError('Connection broken: %r' % e, e)
requests.packages.urllib3.exceptions.ProtocolError: ("Connection broken: error(104, 'Connection reset by peer')", error(104, 'Connection reset by peer'))
Fatal error: local() encountered an error (return code 1) while executing '/home/xxx/install/bc/anaconda/bin/conda install -y -c bioconda -c r age-metasv bamtools bcbio-prioritize bcbio-rnaseq bcbio-variation bcbio-variation-recall bcbreport bcftools bedtools=2.24.0 bio-vcf biobambam bowtie2 bwa bwakit cancerit-allelecount cnvkit cpat cramtools crossmap cufflinks cutadapt delly fastqc freebayes=<IP_ADDRESS> gatk-framework gemini glpk grabix hall-lab-svtools hisat2 hmmlearn htseq htslib impute2 kraken lofreq lumpy-sv macs2 manta metasv mirdeep2 moreutils novoalign oncofuse optitype parallel pbgzip perl-sanger-cgp-battenberg phylowgs picard pindel platypus-variant pyloh pytabix pythonpy qsignature qualimap razers3 rtg-tools sailfish sambamba samblaster samtools scalpel seqbuster seqtk sickle-trim simple_sv_annotation snpeff spades star stringtie subread svtyper tdrmapper theta2 tophat ucsc-bedgraphtobigwig ucsc-bedtobigbed ucsc-bigbedinfo ucsc-bigbedsummary ucsc-bigbedtobed ucsc-bigwiginfo ucsc-bigwigsummary ucsc-bigwigtobedgraph ucsc-bigwigtowig ucsc-fatotwobit ucsc-gtftogenepred ucsc-liftover ucsc-wigtobigwig vardict vardict-java variant-effect-predictor variantbam varscan vawk vcflib viennarna vt wham awscli p7zip s3gof3r perl-app-cpanminus perl-archive-extract perl-archive-zip perl-bio-db-sam perl-cgi perl-dbi perl-encode-locale perl-file-fetch perl-file-sharedir perl-file-sharedir-install perl-ipc-system-simple perl-lwp-protocol-https perl-lwp-simple perl-statistics-descriptive perl-time-hires perl-vcftools-vcf bioconductor-annotate bioconductor-biocinstaller bioconductor-biocstyle bioconductor-biostrings bioconductor-biovizbase bioconductor-bubbletree bioconductor-cn.mops bioconductor-degreport bioconductor-deseq2 bioconductor-dexseq bioconductor-dnacopy bioconductor-genomicranges bioconductor-iranges bioconductor-limma bioconductor-rtracklayer r r-cghflasso r-chbutils r-devtools r-dplyr r-ggdendro r-ggplot2 r-gplots r-gsalib r-knitr r-pheatmap r-plyr r-pscbs r-reshape r-rmarkdown r-rsqlite r-sleuth r-snow r-stringi r-wasabi'
Aborting.
xxx $ conda info
Current conda install:
         platform : linux-64
    conda version : 3.18.3

conda-build version : 1.18.1
python version : 2.7.10.final.0
requests version : 2.8.1
root environment : /home/xxx/.conda  (writable)
default environment : /home/xxx/.conda
envs directories : /home/xxx/.conda/envs
package cache : /home/xxx/.conda/pkgs
channel URLs : https://repo.continuum.io/pkgs/free/linux-64/
https://repo.continuum.io/pkgs/free/noarch/
https://repo.continuum.io/pkgs/pro/linux-64/
https://repo.continuum.io/pkgs/pro/noarch/
config file : None
is foreign system : False

Thanks for the details. It looks like the installation is progressing as you've moved on to installing tools. It might be that you have a slow connection to the anaconda.org servers leading to he slow install and intermittent timeout errors. I don't have a good fix for this other than being patient and re-trying the installation. The install will pick up where it left off, so at least you won't have to re-do finished downloads. Sorry to not have a better approach but hopefully retrying on failure will get everything installed for you.

Thank you. Yes, i don't have to re-do the finished downloads. but sadly maybe i have to try 1000+ times :(
and also i just don't understand also most of the time it's stuck at the ssl step ... i tried different networks (actually my internet speed is quite fast), different os systems, always these kind of errors. the previous installation (last year) don't have this problem. don't know if i use ec2 from aws, it will result in the same error ? then worry of the aws cost. I wonder if you tried a fresh installation ?

Sorry about all the problems. Where are you located? I wonder if this is connection speed to anaconda.org or the packages themselves, which I believe are hosted on AWS. We do clean installations regularly so do expect things to work without restarts and not be this frustrating in the general case. The AWS implementation or using Docker with bcbio-vm (https://github.com/chapmanb/bcbio-nextgen-vm) locally do not require downloads of the individual conda packages since they're pre-built.
I'm not sure what you mean by "stuck at the ssl step" but if could can identify a reproducible place where this fails happy to look at that. So far the errors you posted look like conda is downloading packages so there is not much we can work around at those points, but happy to keep exploring.

thanks so much for your information. i'm in hk currently. then probably i'just try to use aws. the ssl problem i mentioned is just everytime it stuck at some packages then i interrupted it by CTRL-C, then the trace at the bottom is always a function like '_sslobj(...)' ... didn't save the trace. I'll try to post it here later.

i tried one more time for the upgrading, this is the trace i mentioned.
Fetching packages ...
cramtools-3.0. 100% |######################################################################################################################################################################################| Time: 0:00:04 840.29 kB/s
curl-7.45.0-1. 100% |######################################################################################################################################################################################| Time: 0:00:01 463.70 kB/s
fastqc-0.11.4- 100% |######################################################################################################################################################################################| Time: 0:00:03   2.49 MB/s
gatk-framework 100% |######################################################################################################################################################################################| Time: 0:00:07   1.31 MB/s
^CTraceback (most recent call last):
File "/home/xxx/install/bc/bin/bcbio_nextgen.py", line 4, in
import('pkg_resources').run_script('bcbio-nextgen==0.9.6', 'bcbio_nextgen.py')
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/setuptools-20.1.1-py2.7.egg/pkg_resources/init.py", line 724, in run_script
Traceback (most recent call last):                                                                                | ETA:  --:--:--   0.00  B/s
File "/home/xxx/install/bc/anaconda/bin/conda", line 5, in
sys.exit(main())
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 173, in main
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/setuptools-20.1.1-py2.7.egg/pkg_resources/init.py", line 1650, in run_script
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/bcbio_nextgen-0.9.6-py2.7.egg-info/scripts/bcbio_nextgen.py", line 207, in
install.upgrade_bcbio(kwargs["args"])
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/bcbio/install.py", line 73, in upgrade_bcbio
upgrade_thirdparty_tools(args, REMOTES)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/bcbio/install.py", line 376, in upgrade_thirdparty_tools
cbl_deploy.deploy(s)
File "/home/xxx/project/R-pkg/pider-old/R/tmpbcbio-install/cloudbiolinux/cloudbio/deploy/init.py", line 65, in deploy
args_func(args, p)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 180, in args_func
args.func(args, p)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/cli/main_install.py", line 45, in execute
install.install(args, parser, 'install')
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 424, in install
_setup_vm(options, vm_launcher, actions)
File "/home/xxx/project/R-pkg/pider-old/R/tmpbcbio-install/cloudbiolinux/cloudbio/deploy/init.py", line 110, in _setup_vm
configure_instance(options, actions)
File "/home/xxx/project/R-pkg/pider-old/R/tmpbcbio-install/cloudbiolinux/cloudbio/deploy/init.py", line 257, in configure_instance
install_biolinux(options)
File "/home/xxx/project/R-pkg/pider-old/R/tmpbcbio-install/cloudbiolinux/cloudbio/deploy/init.py", line 281, in install_biolinux
_perform_install(target=target, flavor=flavor, more_custom_add=options.get("custom_add", None))
File "/home/xxx/project/R-pkg/pider-old/R/tmpbcbio-install/cloudbiolinux/fabfile.py", line 120, in _perform_install
install_conda(flavor=flavor, automated=True)
File "/home/xxx/project/R-pkg/pider-old/R/tmpbcbio-install/cloudbiolinux/fabfile.py", line 321, in install_conda
conda.install_packages(env, to_install=pkg_install)
File "/home/xxx/project/R-pkg/pider-old/R/tmpbcbio-install/cloudbiolinux/cloudbio/package/conda.py", line 34, in install_packages
env.safe_run("{conda_bin} install -y {channels} {pkgs_str}".format(locals()))
File "/home/xxx/project/R-pkg/pider-old/R/tmpbcbio-install/cloudbiolinux/cloudbio/fabutils.py", line 47, in _run
return local(command, capture=capture)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/fabric/operations.py", line 1185, in local
plan.execute_actions(actions, index, verbose=not args.quiet)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/plan.py", line 538, in execute_actions
(stdout, stderr) = p.communicate()
File "/home/xxx/install/bc/anaconda/lib/python2.7/subprocess.py", line 796, in communicate
self.wait()
File "/home/xxx/install/bc/anaconda/lib/python2.7/subprocess.py", line 1384, in wait
pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
File "/home/xxx/install/bc/anaconda/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
return func(*args)
KeyboardInterrupt
inst.execute_instructions(plan, index, verbose)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/instructions.py", line 149, in execute_instructions
cmd(state, arg)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/instructions.py", line 52, in FETCH_CMD
fetch(state['index'], arg)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/instructions.py", line 48, in fetch
fetch_pkg(index[fn])
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 296, in fetch_pkg
download(url, path, session=session, md5=info['md5'], urlstxt=True)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 376, in download
chunk  = resp.raw.read(214)
File "/home/xxx/install/bc/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/response.py", line 301, in read
data = self._fp.read(amt)
File "/home/xxx/install/bc/anaconda/lib/python2.7/httplib.py", line 612, in read
s = self.fp.read(amt)
File "/home/xxx/install/bc/anaconda/lib/python2.7/socket.py", line 384, in read
data = self._sock.recv(left)
File "/home/xxx/install/bc/anaconda/lib/python2.7/ssl.py", line 734, in recv
return self.read(buflen)
File "/home/xxx/install/bc/anaconda/lib/python2.7/ssl.py", line 621, in read
v = self._sslobj.read(len or 1024)
KeyboardInterrupt

another kind of error (but this should also be the problem of anaconda):
Error: HTTPError: 403 Client Error: Forbidden for url: https://binstar-cio-packages-prod.s3.amazonaws.com/568d7f714e42ed6c17c1d1a5/568d7f714e42ed6c17c1d1a9?Signature=qxwfzmkvs%2F7BQq26z1AWMEk9heU%3D&Expires=1456542400&AWSAccessKeyId=ASIAIMNMM4FIWPL4GFOA&response-content-disposition=attachment%3B filename%3Dlibxml2-2.9.3-0.tar.bz2&response-content-type=application/x-tar&x-amz-security-token=AQoDYXdzEJn//////////wEa4AME/wL5nU2iGwnWNxWMVvEL0TiVSPNF0yJg/2Dgig%2BRim0FC4%2Bj/y1f5iXczgWpF3BvyyW0Rn8veTXUdt0L7dPl53KUYkyAg27x3h%2BxCPPwWks1bnH5LVW57V8mc5D6RsFKpXAV60crIHa/ISn74gax8Rg1FcfQiZS10cjF8diFvPy9f46hchoJ6OO9PzzGv1L0tRy4Ve6jzYMb29xbhi7tIq4WLJQWjI1/DaFa19mhk21GXB5mdvPkknjz/1WNF37DKNpBge3Oj%2BQCbqWGYz6%2B4hGdrpHekByPYzXkMvKlNMEN8Q/R%2BBGnf/nfShjad66rZr9a/cydPdD/M1qMYGtqY2XW/PSceyZss9Pe/89HZYXvLl/ZlJbf2pi8OgwmoqGxsob6ATff8yTQ/tQ0smMAB66S/DJcp5Um4SXK/t2VrPpT6/fdxB6GNmebxrLnASMv4Hj4zTcoIm7st4MhN6PWT5VAak/9f5p7AjLwAScvfwhmtn9bRVg0Gz2Lri8ABPEPtRoPX%2BSLgKL7%2BR7KD3cRXOlPxqmNHcdGsqajzRFWJwY6i2MNrEDb4nJjMOT0XVeheuiKvYTdulpcX4QEn3OCHK9WVzHzYkBhygx6werS5Z2hOpy/ocdtwXEHgQaMvAIgtdPDtgU%3D: https://conda.anaconda.org/bioconda/linux-64/libxml2-2.9.3-0.tar.bz2

Thanks for the additional details. Looking at those tracebacks they all appear to be standard download process. The SSL one is an interrupt while reading the download file, so you'd see that regularly since it's the most common operation that's happening. The additional error is also an access/download problem.
It looks like download from Hong Kong to the S3 buckets these are hosted on (in the us-east region, I believe). We've also had reports about this problem from China (#1208 #1211). I'm not sure about the best way to help immediately beyond suggesting to try the docker container and bcbio-nextgen-vm. That would give us a single download point (for the tools, at least) we could mirror in multiple places if slow. Data install will still be a problem since that is at multiple points, including in S3 buckets.
We'd certainly like to improve this and are also working on a more consistent data download environment. There are a lot of challenges around geographically distributed hosting of all the tools and data we're working with.
In the short term, the best I can suggest is trying to identify if you can improve connectivity and download speeds from S3 outside of the conda/bcbio install environment. Understanding why download from, say, https://conda.anaconda.org/bioconda/linux-64/libxml2-2.9.3-0.tar.bz2 in your last example is so slow might help solve the general issue. Hope this helps some and sorry not to have better answers.

thank you so much. you actually already help me a lot.


Event consumer runtime is blocking

Figure out why the event consumer is blocking on first message.
Interactively, the function does not block, need to check why its blocks in the default setup...

fixed by #69
issue with proper desrialization.


Add OS functions based on system.h

This branch adds the system module to ogc-rs
system implements all functionality from system.h from libogc through ogc-sys
system also implements all OS memory casting macros in utils.rs
All memory casting macros are named after the macros from system.h with

k0 being replaced with cached
k1 being replaced with uncached

Currently system is missing the functions:

SYS_UnregisterResetFunc - sys_resetinfo requires a threading handle.
SYS_RegisterResetFunc - sys_resetinfo requires a threading handle.
Font functions such as SYS_InitFont
SYS_AllocateFramebuffer - Requires structure that will be defined in video

kprintf will not be implemented due to the usage of printf instead with console

Currently system is missing the functions:

SYS_UnregisterResetFunc - sys_resetinfo requires a threading handle.
SYS_RegisterResetFunc - sys_resetinfo requires a threading handle.
SYS_AllocateFramebuffer - Requires structure that will be defined in video

SYS_UnregisterResetFunc and SYS_RegisterResetFunc will not be implemented at the moment.
The current system implementation is completed yet doesn't compile because it requires video to be added to the main branch. Once this is done, this branch will be pushed with video.


cas-118

this is a for ticket cas-118. After testing, it was discovered that our tests and the updateCommunity endpoint was not able to handle multiple strategies in the way required for the new UI flow.
• Updates strategies column on communities to be of type json • Updates createCommunityandupdateCommunityendpoint to handle an array of strategy Structs, each with a contract Structs • Updatescommunity_test`

closing this as the new PR as it was merged to branch rich/strategy-update

In the case that community Admin set onlyAuthorsToSubmit to false, the backend now can't enforceTheTokenThreshold as contract data is now inside strategies column. I'm working on fixing this now.
if onlyAuthorsToSubmit is true you should be to create a proposal successfully (as an admin)

ok this looks good to go now from my end

Just to confirm createCommunity payload is now http://localhost:5001/communities POST
{
   "name":"new community Germannn",
   "body":"test",
   "category":"social",
   "termsAndConditionsUrl":"https://some.terms.com",
   "creatorAddr":"0xf8d6e0586b0a20c7",
   "proposalThreshold":"2000",
   "slug":"4347dfa0fc",
   "logo":"https://gateway.pinata.cloud/ipfs/QmPE8m66ftG2gTCVZHmgvwZ6pgyzJLHNn5oChn9cKfVKeH",
   "contractAddress":"0x1111111111111111",
   "contractName":"flowToken",
   "storagePath":"flowToken",
   "onlyAuthorsToSubmit":false,
   "strategies":[
      {
            "name": "one-address-one-vote",
            "contract": {
                "name": "FlowToken",
                "addr": "0x0ae53cb6e3f42a79",
                "publicPath": "flowTokenBalance",
                "threshold": "0"
            }
        }
   ],
   "timestamp":"1656427655771",
   "compositeSignatures":[
      {
         "addr":"0xf8d6e0586b0a20c7",
         "keyId":0,
         "signature":"1d613a8ca9d6e5a94600923c516e6cf6fadc3fb0b3438fcf886ae83a394aaeafb36a4c3997049cf9095c20a8f8fbf0b0f717cb3173587a9738dd351c38b8d146"
      }
   ]
}

and then, create proposal payload http://localhost:5001/communities/15/proposals POST
{
   "name":"Test proposal",
   "body":"
this is the text
",
   "choices":[
      {
         "choiceText":"some text",
         "choiceImgUrl":null
      },
      {
         "choiceText":"some text b",
         "choiceImgUrl":null
      }
   ],
   "creatorAddr":"0xf8d6e0586b0a20c7",
   "endTime":"2022-07-02T03:00:00.000Z",
   "startTime":"2022-06-27T23:32:00.000Z",
   "strategy":"one-address-one-vote",
   "status":"published",
   "timestamp":"1656372770267",
   "compositeSignatures":[
      {
         "addr":"0xf8d6e0586b0a20c7",
         "keyId":0,
         "signature":"df93c2c515d3122ba4d130c60f6683cdc2bbdc2e6168b9d8a79e220f9c48db2d8b45f34040d2a576ffd9bd121c6f18a01c633df9ea0f2046f3dadd0aee29eb1c"
      }
   ]
}

there are other cases of course, but thought it might be useful to dump this here.


⚠ Bofrost.de has degraded performance

In 93c5e0d, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 975 ms

Resolved: Bofrost.de performance has improved in 04991de after 22 minutes.


Rename MLOperandDescriptor.dimensions to MLOperandDescriptor.shape

Fixed #273

@huningxin, @ibelem, PTAL, thanks!

Thanks @Honry . What is our plan for such kind of breaking changes @huningxin , I meant do we need to add notes in footer of sample pages? E.g. "Known compatible Chromium version: 130.0.6723.4 due to #676 "

Thanks @Honry . What is our plan for such kind of breaking changes @huningxin , I meant do we need to add notes in footer of sample pages? E.g. "Known compatible Chromium version: 130.0.6723.6 due to #676 "

Maybe we should keep both dimensions and shape for a while to avoid breaking.

Maybe we should keep both dimensions and shape for a while to avoid breaking.

sounds good. The Chromium impl would also support both dimensions and shape for a while for a smooth transition.

Maybe we should keep both dimensions and shape for a while to avoid breaking.

sounds good. The Chromium impl would also support both dimensions and shape for a while (a milestone) for a smooth transition.

Done, PTAL, thanks!


WIP: Card refactor

LiveURL: https://orbit-components-refactor-card.surge.sh

@williamkolmacka Could you please do design review ?

Closing due to designers decision.


plumbing.NewHash() violates Go style

In Go, a NewXxxx should normally return a pointer value, whereas go-git makes it return plumbing.Hash which is a direct value.

In addition, it doesn't do a format check (there should 40 bytes , and they should be hex.)
It would be great to have a ParseHash that returns (*Hash,error)

also, if you keep the signature as it is, it would be good to have it panic if passed invalid data. Otherwise, this might silently corrupt data.


Add example of connection using TLS

Thanks for the PR! I'm going to merge it soon, and, if you don't mind, touch it up a bit to align the style with other example programs.


cmd/compile: incorrect error message on unclosed [ in map indexing

go version go1.16.5 linux/amd64
go version devel go1.18-a632b433a1 Fri Aug 13 19:30:04 2021 +0200 linux/amd64

package p

func f(m map[int]int) int {
	return m[0
		]
}

$ go build test.go
# command-line-arguments
./test.go:4:12: syntax error: unexpected newline, expecting :

The expecting : part of the error message is plainly wrong, as there's no way to get a program that compiles by putting a : there.
go/types correctly reports expected ']', found newline.
cc @griesemer

Note that is a syntax error and not a type-checking error, so the compiler doesn't know the type of m. In this case the parser assumes that the incomplete m[0 was going to be a slice expression and thus expected a : (slices tend to be more common than maps). The error should probably be syntax error: unexpected newline, expecting : or ].


⚠ Bofrost.fr has degraded performance

In 5d09afe, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1281 ms

Resolved: Bofrost.fr performance has improved in 282fb46 after 6 minutes.