master broken: unable to validate: open /config-schema.json: no such file or directory

From @wking on June 21, 2016 3:17
This is probably due to the floating dependencies without #148, but recent builds in a clean Go directory break with:
$ make test
go test -race ./...
?       github.com/opencontainers/image-spec/cmd/oci-image-tool [no test files]
?       github.com/opencontainers/image-spec/image      [no test files]
--- FAIL: TestConfig (0.00s)
        config_test.go:162: test 6: expected validation failure false but got true, err schema application/vnd.oci.image.serialization.config.v1+json: unable to validate: open /config-schema.json: no such file or directory
…

Copied from original issue: opencontainers/image-spec#162

From @wking on June 21, 2016 4:0
And the problem is (not surprisingly, given the error message) with http/FileSystem (see discussion in #150).  The tests pass with the following patch:
diff --git a/schema/validator.go b/schema/validator.go
index abc8d6d..537314a 100644
--- a/schema/validator.go
+++ b/schema/validator.go
@@ -19,6 +19,7 @@ import (
 	"fmt"
 	"io"
 	"io/ioutil"
+	"path/filepath"

 	"github.com/pkg/errors"
 	"github.com/xeipuuv/gojsonschema"
@@ -44,7 +45,12 @@ func (v Validator) Validate(src io.Reader) error {
 		return errors.Wrap(err, "unable to read manifest")
 	}

-	sl := gojsonschema.NewReferenceLoaderFileSystem("file:///"+specs[v], fs)
+	//sl := gojsonschema.NewReferenceLoaderFileSystem("file:///"+specs[v], fs)
+	refPath, err := filepath.Abs(specs[v])
+	if err != nil {
+		return err
+	}
+	sl := gojsonschema.NewReferenceLoader("file://" + refPath)
 	ml := gojsonschema.NewStringLoader(string(buf))

 	result, err := gojsonschema.Validate(sl, ml)

From @wking on June 21, 2016 4:13
Rolling back assorted dependencies, the issue was introduced by xeipuuv/gojsonschema#103, and there are already comments there about broken loading as a result.  So folks who want a working test suite should pin thier gojsonschema before that PR landed or wait until they roll out a fix.

From @wking on June 21, 2016 3:26
Spun off from earlier discussion in #161.

From @vbatts on June 21, 2016 14:10
correct. rolling back https://github.com/xeipuuv/gojsonschema/commit/ac948b64b57aa1beeb91c87069730e6f24bc91d9 lets the tests pass again. :-\

From @petemoore on June 21, 2016 17:43
I think https://github.com/xeipuuv/gojsonschema/pull/105 fixed a bug introduced in https://github.com/xeipuuv/gojsonschema/pull/103 - so you might not need to pin anymore...

From @vbatts on June 21, 2016 17:45
nope. 105 did not fix the issue.
On Tue, Jun 21, 2016 at 1:43 PM, Pete Moore<EMAIL_ADDRESS>wrote:

I think xeipuuv/gojsonschema#105
https://github.com/xeipuuv/gojsonschema/pull/105 fixed a bug introduced
in xeipuuv/gojsonschema#103
https://github.com/xeipuuv/gojsonschema/pull/103 - so you might not
need to pin anymore...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/opencontainers/image-spec/issues/162#issuecomment-227516349,
or mute the thread
https://github.com/notifications/unsubscribe/AAEF6eMLXQhr52m7X1lzPZ_pGd7uyoU9ks5qOCLFgaJpZM4I6Uyb
.


add chatbot integration to website

add chatbot integration to website

This feature is already present on the website....


udev: refactor ActionHandler to get BD name on remove

Problem:
When a device is removed, we're unable to determine the BD name (i.e. the name of the blockdevice CR) for logging purposes, because we're trying to figure it out based on device information in /sys/class/block/... and /var/run/udev/data/... but that isn't present anymore, because the device is gone.
Solution:
Use the data in the udev event instead for remove events. This change (IMO) simplifies ActionHandler a bit. I've also taken the liberty of introducing structured logging in that function, and I've included an (unrelated) small fix to an error string in util.lsblk().
Log messages before this PR, when attaching/detaching a device (note the error messages and missing BD name on detach):
time="2024-07-16T12:21:36Z" level=info msg="Wake up scanner with add operation with blockdevice: b3270eab097d4515bac2d595665ac618"
time="2024-07-16T12:21:36Z" level=info msg="scanner waked up, do scan..."
time="2024-07-16T12:21:36Z" level=info msg="Detected the disk with block device /dev/sda, id(Name): b3270eab097d4515bac2d595665ac618 on node harvester-node-0"
time="2024-07-16T12:21:36Z" level=info msg="  - wwn: 0x1234567890123456"
time="2024-07-16T12:21:36Z" level=info msg="  - vendor: QEMU"
time="2024-07-16T12:21:36Z" level=info msg="  - model: QEMU_HARDDISK"
time="2024-07-16T12:21:36Z" level=info msg="  - SerialNumber:<PHONE_NUMBER>123456"
time="2024-07-16T12:21:36Z" level=info msg="Create new device b3270eab097d4515bac2d595665ac618 with wwn: 0x1234567890123456"
time="2024-07-16T12:21:36Z" level=info msg="Add new block device b3270eab097d4515bac2d595665ac618 with device: /dev/sda"
time="2024-07-16T12:21:36Z" level=info msg="Waiting new event to trigger..."

[...]

WARNING: failed to read int from file: open /sys/block/sda/queue/rotational: no such file or directory
time="2024-07-16T12:21:55Z" level=info msg="Wake up scanner with remove operation with blockdevice: "
time="2024-07-16T12:21:55Z" level=info msg="scanner waked up, do scan..."
WARNING: failed to read disk partitions: open /sys/block/sda: no such file or directory
time="2024-07-16T12:21:55Z" level=info msg="Waiting new event to trigger..."

Log messages after this PR, when attaching/detaching a device:
time="2024-07-17T02:16:02Z" level=info msg="udev action triggering scanner wake" device=/dev/sda kind=BlockDevice name=b3270eab097d4515bac2d595665ac618 namespace=longhorn-system udevAction=add
time="2024-07-17T02:16:02Z" level=info msg="scanner waked up, do scan..."
time="2024-07-17T02:16:02Z" level=info msg="Detected the disk with block device /dev/sda, id(Name): b3270eab097d4515bac2d595665ac618 on node harvester-node-0"
time="2024-07-17T02:16:02Z" level=info msg="  - wwn: 0x1234567890123456"
time="2024-07-17T02:16:02Z" level=info msg="  - vendor: QEMU"
time="2024-07-17T02:16:02Z" level=info msg="  - model: QEMU_HARDDISK"
time="2024-07-17T02:16:02Z" level=info msg="  - SerialNumber:<PHONE_NUMBER>123456"
time="2024-07-17T02:16:02Z" level=info msg="Waiting new event to trigger..."

[...]

time="2024-07-17T02:16:32Z" level=info msg="udev action triggering scanner wake" device=/dev/sda kind=BlockDevice name=b3270eab097d4515bac2d595665ac618 namespace=longhorn-system udevAction=remove
time="2024-07-17T02:16:32Z" level=info msg="scanner waked up, do scan..."
time="2024-07-17T02:16:32Z" level=info msg="Waiting new event to trigger..."

Related Issue:
N/A (I found these issues while working on https://github.com/harvester/harvester/issues/5059, but this PR is just a wee bit of cleanup)
Test plan:
N/A (no functional changes)

@mergifyio backport v0.6.x v0.7.x


Is this the new version of the model?

There was a new version of modelscope released recently, it was trained for a month longer and it can generate better videos, is this repo using the new model or the old one?

Also, do you know that a new 6 billion parameters version of modelscope will be released soon, do you think this repo will work with it? That would be incredible. Heres the link https://www.modelscope.cn/models/damo/cv_diffusion_text-to-video-synthesis/summary

This repository uses the 1.7 billion parameter model. If they decide to upload it to huggingface as a diffusers pipeline, it will most definitely be integrated here.


Emojis break $(if) variable parsing

Honestly I consider this to be quite low priority. Unless you want to submit a PR fixing this I'll close it. (I belive you have to edit some kind of regex in the ActionParser class, in case you want to give it a try yourself)


Exercise 6.36

题目并没有要求函数的参数类型吧？
我以为string (&func(/* any possible parameters */))[10]就行了。

@lafener 还真是，当时可能脑子抽了。。。

@pezy
Is any re-factor needed for this issue?

I have no idea how to improve the answer. Could you please help me to fix it? IMO, you are more better at this kind of questions. Thx a lot. 😉

Ok..I've not read it yet...I'll trying. :sob:

Hi @lafener
I think string (&func(/* any possible parameters */))[10] as a declaration is perfectly legal. But does it make any sense to do so?
IMO, we have to pass at least one reference to a string array so that this function has something to return. Take the following code as an example :
string(&generate())[10]
{
	string arr[10] = { "111", "222", "333" };
	return arr;
}

This code compiles, but it crashed when running. In this sense, I prefer the current answer. What's your opinion?
(Sorry for my laziness, so late to handle this issue)

@Mooophy 确实，我没考虑到不能返回局部对象的引用或指针这一点。
还是@pezy 的答案更好些。

Awesome.
If no more discussion needed, please close this issue to keep every thing clean.
BTW this part of C++ looks sooooooo ugly... :walking:


Fix issue with multiple y-axis datapoints

This is a small fix that makes a big improvement for anyone trying to plot multiple data points on the same y-axis. If you have time @santosjorge to merge this into master it would be much appreciated!

@santosjorge Any update on merging this? I would be willing to help maintain this repository if you want to add me as a maintainer.

Thank you


When render directly returns a custom object, will throw an uncaught TypeError.

Vue version
3.3.4
Link to minimal reproduction
https://play.vuejs.org/#eNp9U01v2zAM/SuCLk6BzMbWy5A5Qbu1hw3YOnTFTrooNpM6lSVBkr0Uhv/7KPojKVDkYMgk36PIJ7Ljt9ambQN8xXNfuMoG5iE0limp92vBgxd8I3RVW+MC65iDHevZzpmaJUhL5tAd1Gb0p1k0ki9CC10Y7QMrZZCPyFxHfi7162aR6KbegkuuzmB48x0iPz1sDwhdXLH1hnVCs4mftlI1gKGOaVnDiiXxSJZM7tH4+Jn1mCx+U0IHLTjKeTnfVMxIz7NBCmwcjQC1VTIAWozl1Gf7oTYlKNRnzCR4RmAElFW7mfqtPFt13Wj1fZ7FIKG2TQhGs5tCVcUL5jlrHQVHiwXDzPaQZwNyZLl4zTv0U6PIHowzZp7NPfAlPimKs6v26cEbje9OighemNpWCtyDDRWKJ/hq0CrGpFLm3w/yBdfAcvIXz1C8vOM/+GP0Cf7bgQfXguBzLEi3hzCE7//8giP+z0GUtVGIvhB8BG9UE2scYF8bXWLZZziq9juNZaX3T/7+GED7qalYaET2hBccp/jbhdZP5V6n18TDGUEV4xykwaN+825YZ6x/MrchuJ/Szmtygzdk/lk6KOOAzfASdpWmu40GHd6sFc2w0HAkLCJlo+g8ZyyoyHETaOWoJSpj7oAG9W+cc3Sx8Grx1I1SsY9JBNr4BfGuJp5Dn9Pj0lAoPaXC8gZuH9eX9/8BOFdwUg==
Steps to reproduce
click set to obj button will throw warning:
Invalid VNode type:(undefined)
 at <DemomodelValue=[object Object]onUpdate:modelValue=fn>
 at <Repl>

and then click revert button, will throw uncaught TypeError:
Uncaught (in promise): Cannot read properties of undefined (reading 'parentNode')

What is expected?
Whether it's warning against directly returning objects during development,
catching that exception,
or providing clearer warning instructions in the documentation,
I would prefer it to be traceable rather than throwing an error in an unrelated place.
And, if possible, could the returned object be serialized? But I think this might bring more trouble, so maybe having a warning is sufficient.
By the way, about the documentation,
I have reviewed the documentation, and it mentions that you can also return strings or arrays. However, it does not specify the consequences of returning an object.

What is actually happening?
I think that it is here where there is no strict validation whether child is necessarily a VNode.
https://github.com/vuejs/core/blob/37a14a5dae9999bbe684c6de400afc63658ffe90/packages/runtime-core/src/vnode.ts#L746-L750

I add a simple test in rendererComponent:
  test('render return object', async () => {
    const root = nodeOps.createElement('div')
    const App = {
      render() {
        return {info:'hi'};
      }
    }
    render(h(App), root)
    expect(serializeInner(root)).toBe(`[object Object]`)
  })

child will be Object {info : "hi"}, and then it will be cloned as a VNode.
I think the starting point is here, causing a series of operations afterwards that lead to various kinds of exceptions being thrown.
System Info
No response
Any additional comments?
This is the process where my issue occurs:
When I was developing a component using TSX, I wrote this piece of code:
{slot ? slot(...) : data}

Due to the coding habit of SFC, I didn't realize that using an object as data was incorrect. However, when I used the component, my data(in the code) changed from a string to an object, and that's when the exception was thrown.

However, this exception completely prevents me from pinpointing the error, so I have to narrow down the scope gradually, which consumes some time.
And as you can see, in my various actions, it gives various warnings or errors, but it seems unrelated to the current behavior scenario.
So, I think it might be more user-friendly to add a conditional check and warning in
https://github.com/vuejs/core/blob/37a14a5dae9999bbe684c6de400afc63658ffe90/packages/runtime-core/src/vnode.ts#L746-L750
or directly check the __v_isVNode property of the child to route non-VNodes to the last else case
https://github.com/vuejs/core/blob/37a14a5dae9999bbe684c6de400afc63658ffe90/packages/runtime-core/src/vnode.ts#L750-L753
These approaches would provide a more friendly solution, relatively speaking.
If possible, I would be happy to submit a pull request to fix this issue.

IMO, If the user returns a non-VNode, an error should be reported. Because Vue can't handle it. There is no point in giving warnings, and many people don't really care about warnings.


Error when parsing model dict because of the series names

I create a pastas model and add a Stressmodel to it. Then I add this model to a Pastastore using the following code:
ml = ps.Model(df['stand_m_tov_nap'], name='tm')
w1 = ps.StressModel(df['Volume_sum'], rfunc=ps.Hantush, name='well_totaal', settings='well', up=False)
ml.add_stressmodel(w1)
pstore = pst.PastaStore('test',connector=pst.DictConnector("my_conn"))

pstore.add_model(ml)

Then when I try to retrieve with pstore.get_models('tm') the model I get this error:
Traceback (most recent call last):

  File "<ipython-input-150-256e244d4d4a>", line 1, in <module>
    pstore.get_models('tm')

  File "c:\users\oebbe\02_python\pastastore\pastastore\connectors.py", line 1372, in get_models
    ml = self._parse_model_dict(data)

  File "c:\users\oebbe\02_python\pastastore\pastastore\base.py", line 341, in _parse_model_dict
    raise LookupError(msg)

LookupError: oseries stand_m_tov_nap not present in project

Now I understand that I have to add the oseries and stresses to the pastastore seperately. So I use:
pstore = pst.PastaStore('test',connector=pst.DictConnector("my_conn"))
pstore.add_oseries(df['stand_m_tov_nap'], name='to')
pstore.add_stress(df['Volume_sum'], name='ts')
pstore.add_model(ml)

But still I get the same error when using pstore.get_models('tm'). This is because the oseries is added to the pastastore under the name 'to' while the model dictionary saves the stress series under the name 'stand_m_tov_nap'. This is the name of the pandas Series that was used to create the oseries.
I think this has to do with the way a model is added to the pastastore but I don't know how to solve it.

The pastastore was designed to build models from timeseries stored in the oseries/stresses. When adding a model it is assumed the timeseries are also present in the store. So if you build a model from timeseries not contained in the pastastore, it will happily add the model, but will not be able to re-create it when loading it.
Generally, it is easier to add your oseries/stresses to the Pastastore and build your models from there. Your approach should work however, but the name of the series is different in the model than in the pastastore. I think if you set the name to 'stand_m_tov_nap' it should work:
pstore.add_oseries(df['stand_m_tov_nap'], name='stand_m_tov_nap')

A better idea is probably to rename your series before building the model to give it a more unique name:
oseries = df['stand_m_tov_nap']
oseries.name = "piezometer_xx"
# build model, etc...

Based on your issue, I think we can improve the behavior of the pastastore. I can make it so that when you add a model for which the timeseries are not present in the pastastore, it automatically adds those timeseries for you.

58b9359 adds functionality when adding a model that checks whether the oseries and stresses are contained in the PastaStore. If they cannot be found, the timeseries are added to the PastaStore. A test was added to ensure this works.
@OnnoEbbens, let me know if the issue can be closed!

Closed by #12


Go through the todo and bug lists in the code

https://github.com/nopara73/HBitcoin/commit/293cb724f36457cff0051a3355779dee9c986d7a


Backend fix

@cjh1 PTAL
Cause was in RuntimeBackend component.
Did not bump React version, no need to right now.

This doesn't resolve #326 for me, here are my recreate steps ( it has to be a new project and new simulation for some reason ):

Create a new PyFR project
Create a new simulation
Go into the simulation
Try to switch to 'input'

I see the console on the console:

I can confirm it resolves #302

This does not resolve #303 for me. The recreate steps for me are as follows:

I have two clusters one that support cuda and the other use openmp.
I create a new simulation.
I navigate to the simulation start page.
The cuda cluster is currently selected
I switch to the openmp cluster.
Start the simulation

The backend sent is still cuda.


ModuleNotFoundError: No module named 'pointnet2_ops'

Thank you for sharing the source code.
For part segmentation, the following error is encountered:
File "/Point-MAE/segmentation/pt.py", line 7, in <module>
from pointnet2_ops import pointnet2_utils
ModuleNotFoundError: No module named 'pointnet2_ops'
It seems that the folder named 'pointnet2_ops' is missing. Could you add it? Thanks

Hi,
It seems you run the code from the root directory. You need to strictly follow our instructions.
cd segmentation
python main.py --ckpts <path/to/pre-trained/model> --root path/to/data

Hi,
Could you please check whether you install the module successfully?
# PointNet++
pip install "git+git://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"

Hi, thank you for your prompt reply!
The following error is reported during installing PointNet++:

pip install "git+git://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"
Collecting pointnet2_ops
Cloning git://github.com/erikwijmans/Pointnet2_PyTorch.git to /tmp/pip-install-6w3mzbet/pointnet2-ops_5d20ebf575a34c878914924451adc20a
Running command git clone -q git://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-6w3mzbet/pointnet2-ops_5d20ebf575a34c878914924451adc20a
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
WARNING: Discarding git+git://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib. Command errored out with exit status 128: git clone -q git://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-6w3mzbet/pointnet2-ops_5d20ebf575a34c878914924451adc20a Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pointnet2-ops (unavailable) (from versions: none)
ERROR: No matching distribution found for pointnet2-ops (unavailable)

I just Googled and found that the unauthenticated git protocol on port 9418 is no longer supported Error. we should use https://github.com instead of git://github.com.
The following command is viable:
pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"
But it somehow stuck during wheel building. Any solutions for this?

Please check your CUDA version matches your PyTorch version. We did not meet this issue.

Hi Yatian, the wheel building is successful after a few moments. You might need to update the PointNet++ installation command as stated above. Thank you again for your prompt reply.

Thanks for pointing it out.

Hello, have you ever encountered this situation
Cloning https://github.com/erikwijmans/Pointnet2_PyTorch.git to c:\users\xiaomumu\appdata\local\temp\pip-install-5i7vkh4_\pointnet2-ops_1abcf7a21ccb40348dd4ac624101674f
Running command git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git 'C:\Users\xiaomumu\AppData\Local\Temp\pip-install-5i7vkh4_\pointnet2-ops_1abcf7a21ccb4
0348dd4ac624101674f'
fatal: unable to access 'https://github.com/erikwijmans/Pointnet2_PyTorch.git/': Failed to connect to github.com port 443 after 21206 ms: Timed out
error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git 'C:\Users\xiaomumu\AppData\Local\Temp\pip-install-5i7vkh4_\pointnet2-ops_1abcf7a21ccb40348dd4ac6241
01674f' did not run successfully.
│ exit code: 128
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git 'C:\Users\xiaomumu\AppData\Local\Temp\pip-install-5i7vkh4_\pointnet2-ops_1abcf7a21ccb40348dd4ac624101
674f' did not run successfully.
│ exit code: 128
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

Hello, could you tell me the version of pytorch and cuda you use

Hi, have you sloed the problem?

Hi, Hope you doing well.
I used pytorch version = 10.1+cu111 and it worked for me as I have cuda 11.1.1( means111)
you just check which version of cuda you have on your PC then accordingly do installation. Compare appropriate cuda version with respected torch version. (LINK : https://pytorch.org/get-started/previous-versions/ )
CUDA 11.1 command
pip install torch==1.10.1+cu111 torchvision==0.11.2+cu111 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html

Processing d:\pythonproject1\pointnet2_pytorch_master\pointnet2_ops_lib
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.4 in d:\anaconda\envs\dxtorch\lib\site-packages (from pointnet2-ops==3.0.0) (1.12.1)
Requirement already satisfied: typing_extensions in d:\anaconda\envs\dxtorch\lib\site-packages (from torch>=1.4->pointnet2-ops==3.0.0) (4.7.1)
Building wheels for collected packages: pointnet2-ops
Building wheel for pointnet2-ops (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [72 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pointnet2_ops
copying pointnet2_ops\pointnet2_modules.py -> build\lib.win-amd64-3.8\pointnet2_ops
copying pointnet2_ops\pointnet2_utils.py -> build\lib.win-amd64-3.8\pointnet2_ops
copying pointnet2_ops_version.py -> build\lib.win-amd64-3.8\pointnet2_ops
copying pointnet2_ops_init_.py -> build\lib.win-amd64-3.8\pointnet2_ops
running egg_info
writing pointnet2_ops.egg-info\PKG-INFO
writing dependency_links to pointnet2_ops.egg-info\dependency_links.txt
writing requirements to pointnet2_ops.egg-info\requires.txt
writing top-level names to pointnet2_ops.egg-info\top_level.txt
reading manifest file 'pointnet2_ops.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no directories found matching 'pointnet2_ops_ext-src'
writing manifest file 'pointnet2_ops.egg-info\SOURCES.txt'
running build_ext
building 'pointnet2_ops.ext' extension
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "D:\pythonProject1\Pointnet2_PyTorch_master\pointnet2_ops_lib\setup.py", line 20, in
setup(
File "D:\anaconda\envs\dxtorch\lib\site-packages\setuptools_init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "D:\anaconda\envs\dxtorch\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\anaconda\envs\dxtorch\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "D:\anaconda\envs\dxtorch\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\anaconda\envs\dxtorch\lib\site-packages\wheel\bdist_wheel.py", line 364, in run
self.run_command("build")
File "D:\anaconda\envs\dxtorch\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda\envs\dxtorch\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\anaconda\envs\dxtorch\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "D:\anaconda\envs\dxtorch\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda\envs\dxtorch\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\anaconda\envs\dxtorch\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "D:\anaconda\envs\dxtorch\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "D:\anaconda\envs\dxtorch\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "D:\anaconda\envs\dxtorch\lib\site-packages\torch\utils\cpp_extension.py", line 765, in build_extensions
build_ext.build_extensions(self)
File "D:\anaconda\envs\dxtorch\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "D:\anaconda\envs\dxtorch\lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "D:\anaconda\envs\dxtorch\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "D:\anaconda\envs\dxtorch\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "D:\anaconda\envs\dxtorch\lib\distutils\command\build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "D:\anaconda\envs\dxtorch\lib\site-packages\torch\utils\cpp_extension.py", line 738, in win_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "D:\anaconda\envs\dxtorch\lib\site-packages\torch\utils\cpp_extension.py", line 1474, in _write_ninja_file_and_compile_objects
_write_ninja_file(
File "D:\anaconda\envs\dxtorch\lib\site-packages\torch\utils\cpp_extension.py", line 2014, in _write_ninja_file
assert len(sources) > 0
AssertionError
Emitting ninja build file D:\pythonProject1\Pointnet2_PyTorch_master\pointnet2_ops_lib\build\temp.win-amd64-3.8\Release\build.ninja...
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pointnet2-ops
Running setup.py clean for pointnet2-ops
Failed to build pointnet2-ops
ERROR: Could not build wheels for pointnet2-ops, which is required to install pyproject.toml-based projects
how to solve this question?

error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-7mm7bzr0/pointnet2-ops_febb989072b44b2a805dfbaaaf61f8c5 did not run successfully.
│ exit code: 128
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-7mm7bzr0/pointnet2-ops_febb989072b44b2a805dfbaaaf61f8c5 did not run successfully.
│ exit code: 128
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

Hi, have you sloved the problem?

error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-7mm7bzr0/pointnet2-ops_febb989072b44b2a805dfbaaaf61f8c5 did not run successfully. │ exit code: 128 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-7mm7bzr0/pointnet2-ops_febb989072b44b2a805dfbaaaf61f8c5 did not run successfully. │ exit code: 128 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

Hi, I had the same problem as you and I solved it by updating setuptools. If you haven't solved the problem you can try the following commands:
pip install --upgrade setuptools


New article: "Who implements the typeclass instance?"

Some things about typeclass style and GADT pattern matching, for posting on December 20.

Thanks @larsrh; I've added some updates that I hope clarify all these.

Netlify is failing because I've changed something in how deployment works in the meantime. Please merge development into your branch, then it should work.


SecurityBundle command improvements

Do not crash if role already exists

Show error message instead and exit with status 1
Handle case where no roles exist

Handle errors in CreateUser command

Handle case where requested role does not exist
Handle case where username already exists

Tasks:

[x] test coverage
[ ] gather feedback for my changes
[x] added changelog line

Informations:

Q
A

Tests pass?
yes

Fixed tickets

BC Breaks

Doc

Reverted changes to the Role as this will now be handled by https://github.com/sulu-cmf/sulu/pull/732
Please review and then I will rebase and merge.

Need to remove existing reference to updateTimestamps (as per the tests)

Updated

@dantleech Maybe you can also include a fix for #465 ? Afterwards I would merge it, in case it is not failing anymore ;-)

Updated.

Updated.

Can't the check if a role is already existing be done at the beginning of the interactive mode? I have to enter some data, before the command fails.

@danrot you mean if you specify --role ? Well, should we also check the email, locale and username? That would be more refactoring.

@dantleech No, I mean when you don't pass any arguments, and use the interactive mode instead. If there are no roles at all, you have already typed username, password and so on, and it will fail as soon as you reach the ChoiceQuestion. If you check at the beginning of the interactive mode if there is a role, it could save the user some typing.

Ah I see. I guess we should add an initialize method which both methods call which loads the role names, email types, etc, etc.

Shouldn't be too much work :-)

Updated.


Tests for CollisionPick

These are tests for https://github.com/highfidelity/hifi/pull/13714. The following is tested:

Whether or not a collision is detected
The number and position of collisions
Effect of shape choice on collisions (Bullet-native shapes vs custom model shapes, the latter of which is currently not fully supported)
The effect of blacklists/whitelists
The effect of object filter type (entity or avatar)

There is also an interactive test which allows seeing results from a visualized, movable capsule collision pick in real-time. If in HMD mode, the capsule will also rotate.
The remaining work is to polish the documentation for these tests in preparation of the initial merge of the Collision Pick API.

Currently testing


feat: Build with Python support for MacOS

Description
Build Metacall with Python support for MacOS
Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added tests/screenshots (if any) that prove my fix is effective or that my feature works.
[x] I have tested the tests implicated (if any) by my own code and they pass (make test or ctest -VV -R <test-name>).
[x] If my change is significant or breaking, I have passed all tests with ./docker-compose.sh test &> output and attached the

Note:
The following tests FAILED:
4 - log-custom-test (SEGFAULT)
33 - metacall-dynlink-path-test (Failed)
34 - metacall-library-path-without-env-vars-test (Failed)
you can view full logs from here

@ahmedihabb2 please use always tabs in shell scripts, do not mix tabs and spaces in a shell script, use spaces in yaml only.

@ahmedihabb2 please use always tabs in shell scripts, do not mix tabs and spaces in a shell script, use spaces in yaml only.

Noted


[devicelab][LUCI] hibernate/power settings for Debian devices

Current salt config are provided for MacOS only. They are missing for Debian, which need to be added.

cl submitted: 289677


NATIVE-390: Setup CI using Fastlane and Circleci

Does circle ci build the branches or the pull request?

@Schedulaar I switched to only build PRs


Not working in windows 10?

C:\Users\Yoda\Documents\DEVELOPMENT\CODE\vue-flask
λ python -m venv env-vf
C:\Users\Yoda\Documents\DEVELOPMENT\CODE\vue-flask
λ env-vf\Scripts\activate
C:\Users\Yoda\Documents\DEVELOPMENT\CODE\vue-flask
(env-vf) λ pip install tifa
Collecting tifa
Downloading https://files.pythonhosted.org/packages/36/e4/467676bd3d92824fe40efa6671c1864f0ef4543e8c1c3e9657f4273c5dd2/tifa-0.3.2-py2.py3-none-any.whl
Could not install packages due to an EnvironmentError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\Users\Yoda\AppData\Local\Temp\pip-install-tjghtl4y\tifa\tifa/templates/min/'
Seems like it is trying to create a path with both backslashes and fowardslashes at same time.   Very much hoped this would work for me as I'm still scratching my head on how to easily integrate flask and vuejs.
rgds
Gopal

@gopalagrawal
Sorry bro, I have no Windows computer to test this issue.


Check VIEW for correct type and validate descriptors

On FIND, READ, HISTOGRAM and GET, the referenced VIEW should be checked if it is actually a VIEW.
Moreso, the referenced descriptors should be checked if they're actual descriptors.

Note that, when using DB2, you can actually use READ, FIND instead of SELECT if you wish to do so...


feat(docs): Document the image requirements

We need an http probe route in the container localhost:port/
Or the HTTP probe will fail.

I would love to work on this issue, Can you assign it to me and also I would like to know how to proceed with this issue
@gaocegege

We should add a section in https://docs.open.modelz.ai/deployment/deploy or somewhere, to tell users that the image should run a single-port http server, and provide a http healthz check endpoint. We will use "/" by default.

BTW, we already support mdz deploy --probe-path /healthz.

Hi @cybergeekgyan any progress for this issue? Feel free to ask here if you have any questions.


Relative launcher speed

If the speed of a launcher sign starts with + or -, it is relative.
The speed will be added to the current speed of the train.
If the train is going at 0.4 blocks/tick and the launcher speed is +0.2 blocks/tick, the train will be accelerated to 0.6 blocks/tick.
Closes #94

It looks like it only works for the +, because even if you use a - before the speed it still parses it as and +.

@mg-1999 The train was slowed down correctly when I tested it.
ParseUtil.parseDouble(...) uses Double.valueOf(...) which supports + and -.

@JackDn Looked only at the code. Didn't test it.


refactor!: only support winston3

BREAKING CHANGE: Drop support for winston2 as a semver major change.
Ref: https://github.com/googleapis/nodejs-logging-winston/pull/278

This unblocks #278. We may spin off winston2 support (if it is still necessary) into a separate package, or continue to support it from the penultimate semver major branch.

@JustinBeckwith this is good to land, but an Administrator will have to force land this. Snyk is complaining about the removal of a package.json file. This is intentional.


setFlipEnabled changes winding

In my 2d library with flipped-y and setFlipEnabled(true) fonts keep their winding as counter-clockwise
But all the other meshes change from counter-clockwise to clockwise
So culling must be disabled to make everything visible
Is this the intended behavior?

This is not the intended behavior.  I don't think the function will be needed anymore with Vulkan, but in the meantime this could maybe be changed to add the vertices in a different order when flip is enabled.


Add login:quiet command

Adds the ability to login non-interactively. Email and password args are required on the command line.

Instead of this what you should do is put your api token in the netrc file directly under api.heroku.com and git.heroku.com. Putting the password into the bash history isn't secure.

Understood. I had tried that previously and noticed some odd behavior, which is why I went down this path. However, I ran through it again and noticed after doing an "auth:logout", the _netrc in my %USERPROFILE% didn't delete. Curious enough, it was reading/writing to %HOMEDRIVE%%HOMEPATH%, which I only found because of the docs on the netrc repo.
Which still begs the question, under what circumstances was it writing to the %USERPROFILE% as it seems like the %HOMEDRIVE%%HOMEPATH% is used first if it can be?
Closing request.

Let me know what issues you see using the oauth token in the netrc file.
As far as the USERPROFILE vs HOMEDRIVE/HOMEPATH thing, it should be consistent. It should be whatever Go does for user.HomeDir. I believe it checks HOMEDRIVE/HOMEDIR first and if that does not exist it uses USERPROFILE.


[utils] implement Verhoeff checksum calculation and validation

This commit adds Utils::VerhoeffChecksum class along with public OT APIs and related CLI commands for Verhoeff checksum calculation and validation. Unit test test_checksum is updated to test the new module.

Related to SPEC-1216

Just wondering why the size-report bot reports a large size increase for ot-cli-ftd: since by default this code is not included in the build? (only on border-agents)   I would assume the actual size increase would be +0 for non-BAs.
Or perhaps it's better to only enable this feature in the build, if the "ePSKc" feature is also enabled. This would be the case for newer Thread BRs only.

Just wondering why the size-report bot reports a large size increase for ot-cli-ftd: since by default this code is not included in the build? (only on border-agents) I would assume the actual size increase would be +0 for non-BAs.

Yes. The OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE is enabled in ot-core-config-check-size-ftd.h (may make sense to remove it later)?

Or perhaps it's better to only enable this feature in the build, if the "ePSKc" feature is also enabled. This would be the case for newer Thread BRs only.

Make sense to do so (will change it in the next push).
But I think it will not impact the code-size report since OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE is also enabled in ot-core-config-check-size-ftd.h..

@EskoDijk one thing puzzles me, the wikipedia article works through one example in the algorithm description:

For example the check digit for 248 is 5.

But "2485" does not seem to pass as valid. This seems to be the case testing it with other available implementations of Verhoeff.

@jrhodie can you take a look at this one too please


feat: Tutorial Module 2: Setup LLM pipeline with LangChain

Completed at https://uw-ssec-tutorials.readthedocs.io/en/latest/SciPy2024/module1/langchain.html


Hooks render inside Jest unlike in the browser

react-testing-library version: 5.3.0+
react version: 16.7.0-alpha.2
node version: n/a
npm (or yarn) version: n/a

Relevant code or config:
https://codesandbox.io/s/lp702xjv8z
import React from "react";
import { render, cleanup } from "react-testing-library";
import { App, RootConsumer } from "../hello";

afterEach(cleanup);

it("should not have root!", () => {
  const { container } = render(
    <App>
      <RootConsumer />
    </App>
  );
  expect(container.innerHTML).toMatch(/I don't have the root yet/); // FAILS
});

What you did:
Working with hooks I've stumbled in a use case when I need to pass a reference to a DOM element down the tree through the context (but this detail doesn't matter, it could be just a prop instead of context), and in order to propagate the change a rerender is needed. (See the CodeSandbox example.)
However if I render the same element with the react-testing-library this rerender in not required, which means the behaviour is different from how it works in the browser.
(It probably stands true for non-hook components too, I'll check later)
Reproduction:
I couldn't reproduce it in CodeSandbox, is it because tests run in browser there?

Hi @vlad-zhukov,
Have you see the flushEffects function?
Yes, there's a difference between jsdom and the browser with useEffect and I'm not sure what the issue is, nor am I working on fixing it. You're welcome to do some digging, but the fix will not be in this project, so I'm going to go ahead and close this. Thanks!


Error on build

npm run build

...

tsoa swagger
/Users/oleg/Develop/2016/github.com/enterprise-react-app/packages/tsoa-example/node_modules/tsoa/dist/cli.js:21
const getConfig = (configPath = 'tsoa.json') => {
^

SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3

@olegsmetanin I think this is probably because you're on a version of node that doesn't support const, or ES6 stuff in general. In the package.json, the node.js engine is stated as 6+.
That said, now that TypeScript supports downcompiling async/await, I think we could support earlier versions of Node, I just haven't made those changes yet.

node v6.9.4 is OK, issue is solved.
by the way -
Starting server...
express deprecated res.sendfile: Use res.sendFile instead dist/server.js:11:9

thanks @olegsmetanin


Profile README.md

Feature Description
It would be nice to be able to prettify your profile with a README.md file like in GitHub.
Yes.... I know.... is not really a feature and maybe a bit unnecessary but would be cool :)
Screenshots

Duplicate of #12233


How to save custom object in method onSaveInstanceState

I need to restore my data by implementing onRestoreInstanceState method, however how can I save a custom object in method onSaveInstanceState? I coud not found any example about this in your repo.

This library doesn't do anything special to save and restore data, as it relies on the native Android implementation. Thus, you will need to serialise your data in order to be able to save it and restore it. There are multiple ways to achieve this, so I suggest you look it up. I personally prefer using the library Gson.


fix: #839 fix browser console error for labels

fixed console error for labels not having a match id.

One of the ways primevue recommends for labeling it's inputs is to use aria-labelledby with a matching span as label.
exemple:
Two <RadioButton aria-labelledby="rb2" />

I seem to see these (not error, but warning) still, seems to be related:

I don't feel we need these changes....
If we check the primevue component:

for InputText, it has example how to use the label: https://primevue.org/inputtext/#floatlabel, so basically we need to give an id to the "InputText" element, not the "Field" element
for Dropdown, it has example as well: https://primevue.org/dropdown/#floatlabel
for RadioButton, there is no example, but I think we can just use one of the id

I also did a cleanup and restructure of the elements in the grant access form component. When write the page elements, make sure we use the same pattern for the sections. For example, for this grant access form, each field should share the similar structure. For each field, it will be inside a div element with the classname "row" for margin. And then inside each div, it will be label and whatever form element. It will make our code more clear.


feat: Cloud Deploy CICD

Description
This PR updates the cicd terraform module to deploy the initial Cloud Deploy resources that will make up an automated CICD pipeline.
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist

[ ] Added steps to reproduce the changes in this pull request
[ ] Added relevant testing in this pull request
[x] Please merge this PR for me once it is approved.

Ty! Looking again 👍🏼

Cool cool, lgtm! The initial rollout failures was related to those previous timeout issues we saw for cloud_run_v2 resource.
Went through flow once again. Checking out build triggers first...

When I pushed a change to main in my forked github repo, triggered appropriately. Looks good!
Now checking if cloud deploy picked up ...

Approving the build ...

Deployment successful! I see the new revision in the Cloud Run service! 🥳


BenchmarkExportConntrackConns panics

Describe the bug
BenchmarkExportConntrackConns is panicking after merging https://github.com/antrea-io/antrea/pull/2854.
2021-11-04T22:34:25.4378372Z I1104 22:34:25.437109    1669 main.go:108] "Parse result" parseSet=map[BenchmarkPoll-2:[BenchmarkPoll-2<PHONE_NUMBER>3.00 ns/op 1371489 B/op 53375 allocs/op]]
2021-11-04T22:34:28.2056529Z I1104 22:34:28.199618    1669 main.go:266] "Exec command output" out="goos: linux\ngoarch: amd64\npkg: antrea.io/antrea/pkg/agent/flowexporter/exporter\ncpu: Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz\nBenchmarkExportConntrackConns\npanic: runtime error: invalid memory address or nil pointer dereference [recovered]\n\tpanic: runtime error: invalid memory address or nil pointer dereference\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x13405ff]\n\ngoroutine 8 [running]:\ngithub.com/golang/mock/gomock.(*Controller).finish(0xc0004be300, 0x0, {0x148af60, 0x242cd00})\n\t/home/runner/go/pkg/mod/github.com/golang/mock@v1.6.0/gomock/controller.go:288 +0x30a\ngithub.com/golang/mock/gomock.(*Controller).Finish(0x0)\n\t/home/runner/go/pkg/mod/github.com/golang/mock@v1.6.0/gomock/controller.go:269 +0x38\npanic({0x148af60, 0x242cd00})\n\t/opt/hostedtoolcache/go/1.17.2/x64/src/runtime/panic.go:1038 +0x215\nantrea.io/antrea/pkg/agent/config.IsIPv4Enabled(...)\n\t/home/runner/work/antrea/antrea/pkg/agent/config/node_config.go:158\nantrea.io/antrea/pkg/agent/flowexporter/exporter.NewFlowExporter({0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, 0x0, 0x0, 0x0, 0x0, ...)\n\t/home/runner/work/antrea/antrea/pkg/agent/flowexporter/exporter/exporter.go:165 +0xff\nantrea.io/antrea/pkg/agent/flowexporter/exporter.setupExporter(0x1)\n\t/home/runner/work/antrea/antrea/pkg/agent/flowexporter/exporter/exporter_perf_test.go:163 +0x157\nantrea.io/antrea/pkg/agent/flowexporter/exporter.BenchmarkExportConntrackConns(0xc000126480)\n\t/home/runner/work/antrea/antrea/pkg/agent/flowexporter/exporter/exporter_perf_test.go:85 +0x99\ntesting.(*B).runN(0xc000126480, 0x1)\n\t/opt/hostedtoolcache/go/1.17.2/x64/src/testing/benchmark.go:192 +0x126\ntesting.(*B).run1.func1()\n\t/opt/hostedtoolcache/go/1.17.2/x64/src/testing/benchmark.go:232 +0x59\ncreated by testing.(*B).run1\n\t/opt/hostedtoolcache/go/1.17.2/x64/src/testing/benchmark.go:225 +0xa5\nexit status 2\nFAIL\tantrea.io/antrea/pkg/agent/flowexporter/exporter\t0.035s\nFAIL\n"
2021-11-04T22:34:28.2065996Z I1104 22:34:28.199644    1669 main.go:267] "Exec command error" err=""
2021-11-04T22:34:28.2067237Z I1104 22:34:28.199683    1669 main.go:108] "Parse result" parseSet=map[]
2021-11-04T22:34:28.3533754Z F1104 22:34:28.352983    1669 main.go:60] failed to run a benchmark: failed to run '/opt/hostedtoolcache/go/1.17.2/x64/bin/go test -run '^$' -bench BenchmarkExportConntrackConns -benchtime 10x -timeout 10m -cpu 2 -v -benchmem ./pkg/agent/flowexporter/exporter' command: exit status 1
2021-11-04T22:34:28.3536726Z goroutine 1 [running]:
2021-11-04T22:34:28.3538014Z k8s.io/klog/v2.stacks(0x1)
2021-11-04T22:34:28.3539456Z 	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.20.0/klog.go:1038 +0x8a
2021-11-04T22:34:28.3540892Z k8s.io/klog/v2.(*loggingT).output(0x85eaa0, 0x3, 0x0, 0xc0000cc070, 0x1, {0x71961e, 0x10}, 0xc00015a400, 0x0)
2021-11-04T22:34:28.3542389Z 	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.20.0/klog.go:987 +0x7bd
2021-11-04T22:34:28.3543815Z k8s.io/klog/v2.(*loggingT).printDepth(0xc0000a4120, 0x8e160, 0x0, {0x0, 0x0}, 0x60, {0xc0007e6020, 0x1, 0x1})
2021-11-04T22:34:28.3545316Z 	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.20.0/klog.go:735 +0x1ae
2021-11-04T22:34:28.3546405Z k8s.io/klog/v2.(*loggingT).print(...)
2021-11-04T22:34:28.3547640Z 	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.20.0/klog.go:717
2021-11-04T22:34:28.3548615Z k8s.io/klog/v2.Fatal(...)
2021-11-04T22:34:28.3549712Z 	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.20.0/klog.go:1512
2021-11-04T22:34:28.3551007Z main.main()
2021-11-04T22:34:28.3552545Z 	/home/runner/work/benchci/benchci/main.go:60 +0xe5
2021-11-04T22:34:28.3553280Z
2021-11-04T22:34:28.3554062Z goroutine 18 [chan receive]:
2021-11-04T22:34:28.3555088Z k8s.io/klog/v2.(*loggingT).flushDaemon(0x0)
2021-11-04T22:34:28.3556360Z 	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.20.0/klog.go:1181 +0x6a
2021-11-04T22:34:28.3557493Z created by k8s.io/klog/v2.init.0
2021-11-04T22:34:28.3558674Z 	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.20.0/klog.go:420 +0xfb

This is causing the Go Benchmark Test workflow to fail on the main branch.

@heanlan could you take a look at this?
@wenqiq we should probably run the benchmarks once for each PR (without bench-ci) to make sure that they are not broken, without consuming too many Github Actions minutes. What do you think?

@heanlan could you take a look at this?

I'll look into it.

@wenqiq we should probably run the benchmarks once for each PR (without bench-ci) to make sure that they are not broken, without consuming too many Github Actions minutes. What do you think?

Actually, the Go benchmark test workflow has recorded the benchmark error of #2854 : https://github.com/antrea-io/antrea/actions/runs/1423364727
We can avoid this if we run the Go benchmark workflow for each PR, it will take about 17minutes which run the benchmarks twice. I think we can add a step in go.yaml to run the benchmarks, it will only take about 9-10minutes.

@wenqiq 10 minutes is still pretty large when run every time the PR is updated.
If something likes go test -run=XXX -bench=. -benchtime=1x performs the same job (without the possibility of flakes) and does it much faster, then we should consider doing that instead.


[New Feature] Support partial rule overrides (merge rules of the same name)

Motivation

I came across the rule exceptions page this evening and tried it out.
Falco is printing output against the Contact K8S API Server From Container rule and I want to make it less spammy in my environment. I wanted to add the container name to the output, in order to better identify the containers triggering the spammy messages; so I added this block to a new values file and did helm upgrade with this values file appended in addition to my normal values:
customRules:
## Add the container name to the output
  falco_rules.local.yaml: |-
    - rule: Contact K8S API Server From Container
      output: Unexpected connection to K8s API Server from container (command=%proc.cmdline pid=%proc.pid %container.info container.name=%container.name image=%container.image.repository:%container.image.tag connection=%fd.name)

When loading Falco with this config:
Error: /etc/falco/rules.d/falco_rules.local.yaml: Invalid
1 Errors:
In rules content: (/etc/falco/rules.d/falco_rules.local.yaml:0:0)
    rule 'Contact K8S API Server From Container': (/etc/falco/rules.d/falco_rules.local.yaml:14:2)
------
- rule: Contact K8S API Server From Container
  ^
------
LOAD_ERR_YAML_VALIDATE (Error validating internal structure of YAML file): Item has no mapping for key 'enabled'

When I added enabled: true and redeployed falco, I got:
Error: /etc/falco/rules.d/falco_rules.local.yaml: Invalid
1 Errors:
In rules content: (/etc/falco/rules.d/falco_rules.local.yaml:0:0)
    rule 'Contact K8S API Server From Container': (/etc/falco/rules.d/falco_rules.local.yaml:14:2)
------
- rule: Contact K8S API Server From Container
  ^
------
LOAD_ERR_YAML_VALIDATE (Error validating internal structure of YAML file): Item has no mapping for key 'condition'

I expected that Falco would read this override config file and realize that its an override for the rule with the same name, and because it already has a definition for the rule from the original rules yaml, it would merge the two together. As a Kubernetes user, I don't want to have to copy the entire rule from upstream to override part of the rule. Details on why this is are provided near the bottom.
Feature

It would be far more preferable if falco would do a YAML merge between the rule named in this override and the original content of the rule in falco_rules.yaml to produce the following in memory:
- rule: Contact K8S API Server From Container
  desc: Detect attempts to contact the K8S API Server from a container
  condition: >
    evt.type=connect and evt.dir=< and
    (fd.typechar=4 or fd.typechar=6) and
    container and
    not k8s_containers and
    k8s_api_server and
    not user_known_contact_k8s_api_server_activities
  output: Unexpected connection to K8s API Server from container (command=%proc.cmdline pid=%proc.pid %container.info container.name=%container.name image=%container.image.repository:%container.image.tag connection=%fd.name)
  priority: NOTICE
  tags: [network, k8s, container, mitre_discovery, T1565]

Alternatives

The only alternative is to just override the entire rule. IMO, this defeats the purpose of falcoctl's artifact follow features. If I want to always have the latest upstream rules, but want to make adjustments such as changing only the output, or adding an exception to allow certain known authorized activities, then I want to change as little as possible about the rule by simply adding an override containing the rule name and the field(s) to be overridden. If I have to override the whole rule, then I never get the benefits offered by falcoctl because my customizations completely changed the rule logic.
However, having said that, I feel I should clarify that having merges like this should still allow for completely changing the rule logic as well. By redefining the condition in an override, or by overriding a macro, we can still change the rule logic (such as in order to get rid of things that are allowed by default but you want to log an event on).
In order to build a complete rule, Falco should merge different fields from rules with the same name, and override fields defined earlier with those defined later when they are defined in multiple rules of the same name.
Additional context

Why this matters to kubernetes users in specific:
When a kubernetes manifest which has the same field defined twice is deployed to a cluster, if the twice-defined field is a map type field, the two fields are merged together. This is easily demonstrated by helm when it tries to merge 2 different livenessProbe fields together, which is why you have to explicitly set the field being overridden in that example as null.
This is what I'm requesting for Falco to do. When an update comes in from upstream, I want the updated rule to take effect without me needing to review the update and apply the same update to my local rules file unless the specific field that I've overridden is what has changed.
So, taking my original example above, let's say that the output field changes upstream. That would not take effect because my local rules has its own output defined. But let's say that I added an exception to this rule. Since upstream doesn't have an exception, my exception gets merged into the new rule from upstream and continues to apply without issue. If, later on, an exception is added upstream, then It'll be up to me to review that and take action.
There is also a really big bonus here in that this feature would make reviewing the rule changes from upstream for differences to incorporate far easier. Because we only add what needs to be overridden to the local rules file, we only need to compare that one line for changes, rather than having to review the whole rule and all of the lists and macros used in the condition.

Thanks for sharing this. I did some research on the flaws and pitfalls of our rule language and the notion of "merging" definitions instead of complete overrides is something that I thought about multiple times. To make it short, changing the current behavior would cause most rulesets currently existing to be broken, which is not practicable at all. What we can do in the future instead is adopting solid semantic versioning on the rule engine itself, and introduce a slight variant of the current language supporting concepts like this one. There has been no concrete conversation about this so far, but it's something I wish to discuss for our roadmap in the upcoming future.

This is related to https://github.com/falcosecurity/falco/issues/1340
Disclaimer: We are not talking about append mode at all and solely about overriding either the entire rule or a subset of properties when defining the same rule the second time. FYI: There are some open requests related to the append mode (that is be able to also append to either the output or tags property and not just the condition property) that I am starting to address.
Current state:
When adding a yaml rule object with a rule name that was used before it is a requirement to redefine all keys hence the entire rule which is a drawback for many use cases.
As discussed here https://github.com/falcosecurity/falco/issues/1340 if we allowed the override when using the same rules name, but define let's say only the condition field, the new behavior can be to override the condition key, but keep all the other keys definitions from when the rule was first defined.
From my perspective this won't break past behavior as in the past attempting partial overrides would not work in the first place, hence I look at it as a new feature that should be possible without complications (just would need docs updates as well)? Happy to be proven wrong if that is not true.
Regardless +1 on rules engine versions wrt the semantics

@tspearconquest let's track this in the related issue https://github.com/falcosecurity/falco/issues/1340, is this ok with you?


web-test-runner-plugin blocks code coverage

I'm trying to get web-test-runner to run code coverage, as outlined in their guide.
When I include the @snowpack/web-test-runner-plugin in web-test-runner.config.js as recommended in the Snowpack Testing docs, it outputs this to the terminal, and the HTML report is empty:
View full coverage report at coverage/lcov-report/index.html

However, when I don't include the plugin in the config, it works as expected. It runs the coverage and the HTML report is built.
Code coverage: 100%
View full coverage report at coverage/lcov-report/index.html

I suspect the plugin is somehow blocking the coverage code from executing. How do we resolve this?
I have the latest versions (as of today) of these dependencies installed:
{
  "devDependencies": {
    "@esm-bundle/chai": "4.1.5",
    "@snowpack/web-test-runner-plugin": "0.1.3",
    "@web/test-runner": "0.9.5",
    "snowpack": "2.15.1"
  }
}

I'm experiencing this issue as well

I'd love some help debugging this! In your node-modules directory, can you add a console.log to:
<EMAIL_ADDRESS>    async serve({request}) {
+    console.log('SERVE', request.url);
      if (request.url.startsWith('/__web-dev-server')) {

    transformImport({source}) {
+    console.log('TRANSFORM', source);

And then share the result? Specifically, I'm curious if these are catching any files that aren't coming from your codebase. If that's happening, the it could be that Snowpack is trying to serve some code-coverage helper files itself, which would explain the error.

Here's the output, as requested, using my basham/rx-ui-patterns project. Let me know if you need anything else.
TRANSFORM /src/util/use/useValue.test.js?wtr-session-id=3af3cf52-c9e8-4c75-9ae5-7428e7dffa10
TRANSFORM /src/util/mode.test.js?wtr-session-id=9ae8d6c1-e709-4a10-b185-b2fb6c1c8655
SERVE /util/use/useValue.test.js
SERVE /util/mode.test.js
TRANSFORM /__web-dev-server__web-socket.js
TRANSFORM<EMAIL_ADDRESS>TRANSFORM<EMAIL_ADDRESS>TRANSFORM ../../web_modules/rxjs.js
TRANSFORM ./mode.js
TRANSFORM ./useValue.js
SERVE<EMAIL_ADDRESS>SERVE /web_modules/rxjs.js
SERVE /util/mode.js
SERVE /util/use/useValue.js
TRANSFORM ../../web_modules/rxjs.js
TRANSFORM ./common/map-f121bde3.js
TRANSFORM ./object.js
TRANSFORM ../../web_modules/rxjs/operators.js
TRANSFORM ./common/map-f121bde3.js
TRANSFORM ./common/zip-85aacb30.js
TRANSFORM ./common/zip-85aacb30.js
SERVE /util/object.js
SERVE /web_modules/common/map-f121bde3.js
SERVE /web_modules/common/zip-85aacb30.js
SERVE /web_modules/rxjs/operators.js
TRANSFORM ./map-f121bde3.js
TRANSFORM ../common/map-f121bde3.js
TRANSFORM ../common/map-f121bde3.js
TRANSFORM ../common/zip-85aacb30.js
TRANSFORM ../common/zip-85aacb30.js

To clarify, there are only two test files in this project right now.
/src/util/use/useValue.test.js
/src/util/mode.test.js

Hmm, I don't see anything surprising/problematic in that code. @LarsDenBakker any idea what may be going on here?

Thanks for pinging me. It looks like one of the libraries we're using for test coverage parsing (https://github.com/istanbuljs/v8-to-istanbul) is returning empty results when using the plugin - possibly because the paths are pointing to dist. I'm looking into how we can resolve this.

I've fixed this in @web/test-runner 0.9.7 . I also added web_modules to the default list of excluded folders for test coverage.
However there is still a few problems when doing test coverage with snowpack.

The files built with snowpack don't have any sourcemaps, so the generated report from istanbul can't map back to the original source content. (though this doesn't affect the actual coverage % calculation).

There are .proxy.js files that show up in the coverage report. I think that if we add sourcemaps istanbul will cascade them back the original files.

Test files are included in the test coverage. We exclude test files in the test runner by default, but the snowpack plugin rewrites the paths to the testfiles so there is a mismatch. Users can add an ignore pattern for this in the config, but it would be ideal if they didn't have to. How does this work with the dev server? Does it rewrite the paths to entrypoint files as well?

I upgraded to<EMAIL_ADDRESS>I can confirm that coverage percentage outputs to the terminal. But yes, the report is broken when inspecting individual files. For example:
Unable to lookup source: /Volumes/Basham HD/GitHub/rx-ui-patterns/util/mode.js (ENOENT: no such file or directory, open '/Volumes/Basham HD/GitHub/rx-ui-patterns/util/mode.js')

The path is missing the src/ folder. The correct file path is:
/Volumes/Basham HD/GitHub/rx-ui-patterns/src/util/mode.js

Great, thanks @LarsDenBakker! We’re tracking the remaining work to get sourcemaps working in all cases in #1213


Added RenderStatePackager to CI build artifacts(close #59)

Merged in https://github.com/DiligentGraphics/DiligentTools/commit/e83a32afbbf9106ead256835dce04a7d7d01d64f


Write .lgd-nfy file to tmp?

Preface: I'm still learning about your library
When using your library in a Python script embedded in a systemd service, I am hitting the following error on start up:
Oct 12 17:58:47 leaderbw pio[1674]: 2023-10-12 17:58:47 xCreatePipe: Can't set permissions (436) for //.lgd-nfy0, No such file or directory
... [omitted]...
Oct 12 17:58:47 leaderbw pio[1674]:     import lgpio
Oct 12 17:58:47 leaderbw pio[1674]:   File "/usr/lib/python3/dist-packages/lgpio.py", line 562, in <module>
Oct 12 17:58:47 leaderbw pio[1674]:     _notify_thread = _callback_thread()
Oct 12 17:58:47 leaderbw pio[1674]:                      ^^^^^^^^^^^^^^^^^^
Oct 12 17:58:47 leaderbw pio[1674]:   File "/usr/lib/python3/dist-packages/lgpio.py", line 504, in __init__
Oct 12 17:58:47 leaderbw pio[1674]:     self._file = open('.lgd-nfy{}'.format(self._notify), 'rb')
Oct 12 17:58:47 leaderbw pio[1674]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 12 17:58:47 leaderbw pio[1674]: FileNotFoundError: [Errno 2] No such file or directory: '.lgd-nfy-3'

Looking into the Python code, the callback_thread tries to write the notify file to the current dir. Permissions errors can occur, like above. Does it make sense to write this file to /tmp (or tempdir()), since all users can write to it?

My solution is to modify the .service to set the working directory to somewhere I can write.

Ah, I just saw issue #12, and the solution LG_WD=/tmp. Closing this as that issue tracks this issue better.


Placed GitHub release first for @skylib.

See bazelbuild/bazel-skylib#164.

Hups, thanks for the fix!

@hlopko I just wonder are these two urls placed there for fault-tolerance? In this case it seems like a bug.

Oh wait I got confused. The first one should be the mirror, because that is far more reliable than github. When the mirror is down, github will be tried. That doesn't apply to failed hash check though, at least that's my understanding. Is the hash in rules_cc wrong?

The data in mirror were wrong, unfortunately Bazel downloads anything which is 200, then checks for a hash. Maybe mirror is not much reliable in terms of consistency?

Oh it is, I must have had uploaded the wrong thing there.


L1 -> unit, L1 easily confused with L1 norm

If I understand correctly, the usage of L1 here means "length one." However, the wording is easily confused with the L1 norm or L1 sphere.

Thanks, that was indeed confusing. The controller is using the L1 norm, but in a unit formulation.


Are you going to try encoder-decoder transformer?

For example, you can compare with BART.

I notice that there are some asserts to make sure the model doesn't accept encoder hidden state and cross attention.
https://github.com/bobby-he/simplified_transformers/blob/1d8eb6db9835f82c7eb91db551d02123991fb683/simplified_transformers/model_utils.py#L197
https://github.com/bobby-he/simplified_transformers/blob/1d8eb6db9835f82c7eb91db551d02123991fb683/simplified_transformers/model_utils.py#L408
Let say, I want to implement encoder-decoder-ish transformer. How can I use with your simplified transformer blocks?

Hi, thanks for the question. To be honest we haven't thought much about the encoder-decoder attention. I think it would be compatible with our simplified transformer block, with some additional modifications to shaped attention to account for the encoder representations, though I haven't tried it out. If there was interest in implementing it to test if it works I would be happy to be involved.

Yesterday I tried to read your code. I'm still not confident. Maybe I haven't understood well enough. I also think it's doable with a bit modification to your layer.

If there was interest in implementing it to test if it works I would be happy to be involved.

I may want to implement such things. But I have questions about shaped attention.

So, compared to the OG Transformer block, eq 13rd doesn't have weight for V and has some extra alpha, beta, gamma weight, right?


Investigate multiple pod restarts for queue-consumers on dev environment

Describe the task
Investigate the cause of dev-queue-consumers multiple pod restarts.
Additional Context
It appears to be an OOMKill. Check root cause of out of memory issues. Check resource settings, etc.
Acceptance Criteria

[ ] stable deployment of dev-queue-consumers pods without persistent restarts

Closing this ticket as obsolete and removing estimate.


z.union allow ZodType array spread as argument

I am attempting to use a dynamically generated array of strings to define a z.union() that validates that a string is included within said dynamic array.
To do this I am mapping each element of my dynamic array of strings to z.literal(), and then spreading this mapped array of literals to the union type.
import { z } from "zod"
const TILES = ["a1","a2","a3","b1","b2","b3"]

// ERROR:
// Argument of type 'ZodLiteral<string>[]' is not assignable to parameter of type 'readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]'.
// Source provides no match for required element at position 0 in target.ts(2345)
const myUnion = z.union([
    ...TILES.map(tile => z.literal(tile))
])

This implementation results in typescript kicking up a fuss, as it is not sure that union has been provided any values. This is because zod's union type is hardcoded to have atleast 2 ZodTypes provided to it.
declare const unionType: <T extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T, params?: RawCreateParams) => ZodUnion<T>;

This means to prevent typescript from complaining, 2 literals must be hardcoded before we spread our array of literals into the union.
const myUnion = z.union([
    z.literal("a1"),
    z.literal("a2"),
    ...TILES.map(tile => z.literal(tile))
])

This is evidently not ideal as we may not have two values which we always wish to be included in our union type.
Is there any way z.union() could be re-typed / changed in some way to better support spreading of ZodType arrays?

This is a good idea; one-element and even zero-element unions have reasonable conventional semantics, and can probably be easily implemented in the type system with conditionals!

My goal is for ZodUnion to have a strongly typed tuple containing the element schemas. The current type signature is designed to prevent things like your TILES.map() call, because then you can't do something like this:
myUnion.options[2];
// should be ZodLiteral<"a3">

I'm looking into loosening this restriction in the next major version. This is a recurring issue for people, and it doesn't impact the inferred type so it's probably not worth the trouble.


App launcher icon for Android not showing

Description
The app launcher icon for iOS is working normally, however, the app launcher icon fails to display for Android. The application can still be accessed via Android Settings --> Apps, and registered as being installed.
I've checked the res folder and nothing seems to be out of the ordinary as the images were generated with Android Studio's Asset Studio.

Version

Flutter 1.17.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f7a6a7906b (4 weeks ago) • 2020-05-12 18:39:00 -0700
Engine • revision 6bc433c6b6
Tools • Dart 2.8.2

Hi @Thirawat14
are referring to the default or custom launcher icons,
creating an launching a new project seems to work as intended;
could you please provide a
a minimal complete reproducible code sample.
Thank you

Hi @iapicca , I'm referring to custom launcher icon.
This is my pubspec.yaml
`name: chess_mobile
description: A new Flutter project.
version: 1.0.0+15
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
bloc: ^4.0.0
flutter_bloc: ^4.0.0
http:
flutter_localizations:
sdk: flutter
intl:
flutter_svg:
google_fonts:
cupertino_icons: ^0.1.3
pin_code_fields: ^3.0.1
validators: ^2.0.0
imei_plugin: ^1.1.6
equatable: ^1.1.1
pie_chart: ^3.1.1
firebase_core: ^0.4.0+9
firebase_analytics: ^5.0.2
firebase_auth: ^0.16.1
firebase_dynamic_links: ^0.5.1
firebase_messaging: ^6.0.16
provider: ^4.1.2
flutter_secure_storage: ^3.3.3
shared_preferences: ^0.5.7+3
corsac_jwt: ^0.2.2
persistent_bottom_nav_bar: ^1.5.5
shimmer: ^1.1.1
pull_to_refresh: ^1.5.8
dev_dependencies:
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
mockito: ^4.1.1
bloc_test: ^5.1.0
flutter_launcher_icons: "^0.7.3"
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "lib/assets/icons/icon.png"
flutter:
uses-material-design: true
assets:
- lib/assets/images/
- lib/assets/icons/
- lib/assets/fonts/
fonts:
- family: Chess
fonts:
- asset: lib/assets/fonts/chess.ttf
`
And this is some snippet from AndroidManifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.tamada.chessMobile">     <application         android:name="io.flutter.app.FlutterApplication"         android:label="chessMobile"         android:icon="@mipmap/ic_launcher"         android:allowBackup="false"         android:fullBackupContent="false">
Are there any specific files that you want me to refer to in relation to launcher icons?

HI @Thirawat14
i noticed in your yaml that you are using the 3rd party plugin flutter_launcher_icons
if these icons are generated with said plugin
please open an issue in the dedicated github
otherwise could you please provide a github repo with a minimal sample project
that does not use 3rd party plugins
Thank you

Hi, @iapicca Thank you for pointing me out to the sub-forum for third party plugin. I'll close the issue in this forum. I'll look for answers in that forum since it seems like there are some other people facing similar issues. Thanks!

I also have this problem, could you solve this?

Just Run Flutter Clean,
then Flutter Pub get,
after that you can launcher icon command, an error will be resolved.

same issue here

@itxtoledo
this issue is more than 2 years old,
if it's the same case I'd open an issue the dedicated repo
if you are encountering the issue without 3rd party plugins
I recommend to open a new issue with a minimal code sample and you flutter doctor


Glitchy, and save option vanished?

Describe the bug
Hey, so I am working on a mindmap, and it has been ok, dragging and dropping has been fluent. yesterday I added a lot of things, and today I wen tback to the mindmap to work on that section again, I knew my nodes were not draggable for some reason, so I started working on that. A few thigns happened, first Bolt tried to fix it, and created a lagging experience, and with an edit of that it corrupted the thing a bit, , so ir3everted back to a checkpoint. Then I took my old backup code, and pasted it in, and hit save. Thinking this would be faster, etc. And this approach does some good, but when I was not 100% with that either I kept going back to my old files to find a better code/backup -  And I pasted my code, and then, the save option is gone`?  Also, when first starting Bolt today, it did not load. Application error. Or something it stated. So it SEEMS as if there are some issues?
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-3a6nfo
Steps to reproduce
try to add code manually and hit save
Expected behavior
we should be able to change our code and hit save, and it saves
Screen Recording / Screenshot

Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 130
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 76035618,
  "usedJSHeapSize": 73335506,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = RuneEll
Chat ID = 207998c673b5

Additional context
No response

Hi @RuneEll,
Are you able to find your project by navigating to stackblitz.com, clicking Collections on the left-hand side of the page, and then clicking Bolt Collection?


Support for data-parallelism for adjacent find

Contributes to fixing #2333
Proposed Changes

Adds CPO to adjacent find
Adapts datapar adjacent find
Adds unit tests for datapar adjacent_find

Any background context you want to provide?
Not all points below apply to all pull requests.

[x] I have added a new feature and have added tests to go along with it.
[ ] I have fixed a bug and have added a regression test.
[x] I have added a test using random numbers; I have made sure it uses a seed, and that random numbers generated are valid inputs for the tests.

This is superseded by https://github.com/STEllAR-GROUP/hpx-local/pull/22


vite@4 support

vite@4 was released, but this plugin supports<EMAIL_ADDRESS>Would be nice to support the latest.

+1 would love to see this

Added a PR to updated peerDependencies: https://github.com/vitejs/vite-plugin-vue2/pull/72

In my limited testing, I can confirm that just bumping the peerDependencies appears to work fine with Vite 4.x


Bugfix - Docker fail to get repository name

[x] All tests passed. If this feature is not already covered by the tests, I added new tests.
[x] All static analysis checks passed.
[x] This pull request is on the dev branch.
[x] I used gofmt for formatting the code before submitting the pull request.

The Artifactory response regarding the Docker repository returns 400 due to the missing header. This PR adds the correct header to resolve the issue.

@Or-Geva -
Does the code now also verify that the response from Artifactory 200, and otherwise return an error?

Yes @eyalbe4. The check is here https://github.com/jfrog/jfrog-cli-core/pull/381/files#diff-e4ef2ba07abad6dcf673bd84b941b6326d3bb1bd7603ec3ed030a482094fe7e2R140


Fix int double error when quering NodesCount

Edit(odow): Closes #261

Thanks. Do you mind checking the other attributes? At the very least, it looks like IterCount is also dbl: https://www.gurobi.com/documentation/8.1/refman/itercount.html
Also, can you add a test please? For example, something like:
@testset "Attributes" begin
    model = Gurobi.Optimizer()
    @test MOI.get(model, MOI.NodeCount()) == 0.0
    @test MOI.get(model, MOI.SimplexIterations()) == 0.0
    # Other attributes here
end


mx:List valueCommit function is not being triggered

Project Details are :
https://paste.apache.org/cpo8y
Test case is available on VDI.
Go to Sales from Select in Menu
Go to Incentive Scheme from Setups in Menu
File : com/dbz/modules/SAL/dbzIncentiveSchemeSetup.mxml
In Incentive scheme setup there's a mx:List right after Exclude Customer Label
When you click on it and select any record from picklist and click ok nothing will be shown in mx:List because valueCommit of mx:list isn't triggered.
<mx:List id="inc_Cust_DescList"  x="209" y="408"  showDataTips="true" rowCount="10" width="386"
					 rowHeight="15" enabled="true" editable="false" visible="false" valueCommit="fn_SetDesc();" height="81"/>

private function fn_SetDesc():void{
				inc_Cust_Desc.text="";
				for(var j:int = 0; j < inc_Cust_DescList.dataProvider.length; j++){
					inc_Cust_Desc.text+=inc_Cust_DescList.dataProvider[j]+ "\r" ;

				}
			}

I am posting a small video here for better understanding that you can see the steps and the function call,valueCommit function is not called in royale :

valueCommit is not a public event.  Use "change" event instead

In Flex,valueCommit is working for mx:List

Of course it worked in Flex, but we are not going to emulate 100% of Flex.  Internal, undocumented events and APIs are a low priority for emulation, especially if there is an alternative.


File input, modal and ESC key

You have a "file input" contained in a modal.
The user clicks "choose file" and the browsing dialog appears
User changes his mind and click ESC to clos the browsing dialog
The event is intercepted by the modal, which is closed
User is irritated

A workaround is to set 'keyboard' to false for the modal, which still prevents the user to use ESC to close the modal.
The modal shouldn't listen for "ESC" events when another dialog is open.

Let's ask @fat to check it out. Thanks!

I'm having a similar problem. I have a small form inside of a modal. When the form is submitted I have a progress bar modal open on top of the form modal. If there is an error I report it within the progress modal (which is on top of the form modal). To dismiss the progress modal a user would hit the "ESC" key which closes both modals.
It would be nice if only the modal on top listen for the different events.
Here's a jsfiddle that demos the "ESC" behavior when multiple modals are open. Click the "Add Something" button, and then the "Save Changes" button, and then hit "ESC"


lineName throwing errors

For some reason lineName is throwing issues 19 times.

Traced issue back to loadBlock where setinterval is continously calling lineName or some variation that wont work

curBlock.line worked but curBlock[1].line did not


prevent php from loading external resources

Prevent php from automagically fetching resources when parsing xml
cc @LukasReschke

Ping pong...

Merging this for now, but consider using ZendXml in a future cleanup if possible.

@butonic This means we can switch to upstream again. – Please adjust our implementation.


Self-Contained Binary Versions

Pre-compiled self contained versions ready and easy to deploy would make this project far more adoptable, very much so for people already with windows/macos file servers with LTO drives as Linux support with LTFS is iffy but MacOS and with some issues windows has better support for end users.
Checklist:

[ ] MacOS
[ ] MacOS Arm
[ ] Linux
[ ] Linux Arm
[ ] Windows
[ ] Windows Arm

With the new Pi 5 PCIe support, this would be amazing to intergrate into a low power Tape server on the ARM platform for example with apple moving to there own ARM based hardware its growing rapidly adoption wise.

Currently, I have provided Linux amd64 binary. The problem is I don't have a Mac / Windows device that can connect tape drive. At its current state, this software theoretically can run on a unix-like system. But because of the big difference of mount mechanism, running it on Windows maybe more difficult. I would try to compile macOS and Linux arm binary, but unfortunately can't test them.

And as far as I know, Pi 5's PCIe only supports gen2/3 x1, and it only has one 1Gbps Ethernet port. Tbh Orange Pi 5 Plus with 2x M2 and 2.5Gbps Ports might be more suitable for the job (if its m2 can be converted to pcie).

@samuelncui you should leverage community testing for this, untill you can build a couple test boxes or a proxmox station.
I can test windows, and possibly arm on a RockPro64.


Support for multiple reCAPTCHA forms.

Each recaptcha form has it's own unqiue id, you can use as many as you like.

The ids are not unique.

Only the first recaptch input gets the token value.
Also, there are also multiple .rc-anchors present on the page.


New assertion library

We've slowly been becoming less happy about Expectation as our assertion syntax.
It might be a good idea to involve a new assertion library and syntax, like the one from Busted, which is more flexible. Some examples from Busted:
-- deep check comparisons!
assert.are.same({ table = "great"}, { table = "great" })

-- or check by reference!
assert.are_not.equal({ table = "great"}, { table = "great"})

assert.truthy("this is a string") -- truthy: not false or nil

assert.True(1 == 1)
assert.is_true(1 == 1)

assert.falsy(nil)
assert.has_error(function() error("Wat") end, "Wat")

I quite like this provided we have better docs than Busted! Jest (https://jestjs.io/docs/en/expect) and jest extended (https://github.com/jest-community/jest-extended) are good.
We should add https://jestjs.io/docs/en/expect#expectextendmatchers so that people can extend Expectation

Aha I see https://github.com/Roblox/testez/pull/62 has implemented extend


Feature to introduce Dev Containers

Issue #, if available:
Description of changes:
Feature to introduce Dev Containers
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

I finally got to test it out. From the good side, my setup worked at the end. Provisioned c5.xlarge and setup devcontainers, with VSCode local IDE and remotessh access to the repo. My feedback (tactical and more serious items mixed):

I got an error on setup "setup failed, try to rerun under root". Unsure what it was, I ran reset on the workspace and it started working.
Does your machine register on the PVRE security policy violation list?
By default c5.xlarge was provisioned. It seems a bit slow. What machine are you using? Also have you tried with graviton 3, i.e. c7g.2xlarge?
We need to add npm install to dev container, otherwise ws is not quite ready
What credentials are used in the workspace? I am getting errors like region is missing on cdk list as well as complaints about bootstrap and inability of the devcontainer role to assume bootstrap credentials. This should be customized to something reasonable and we need to document it.
Can we do something about the terminal? e.g set to zsh with reasonable addons, i know you are a fan of powerlevel10k. Ideally would love to have command completion working in the terminal.

Overall, the approach seems solid and we could use it for development or even workshop provided appsec approves.

@shapirov103 Thankyou for review the PR and getting the setup working. Please see my response below for your points:

This happens to me sometimes but not always. Probably something to do with using DevPod from work mac and Isengard accounts idk.
No i have been using for 3 weeks now and i dont see any PVRE violation so far so we are good to use.
I try to use c5.2xlarge and works like charm. Also DevPod reuses machines if that option i set. It should work on Graviton machines too.
Check this, i did research on npm install but that was claimed to be anti pattern and container will fail to launch, check this thread.
Git and AWS credentials are injected from your terminal. Watch the AWS provider settings in DevPod
The terminal already has ZSH installed but it defaults to bash like any linux machine. I will see if we can override this behavior. ohmyzsh is also installed by default all the user has to do is update to add plugins which is not automatic.

Overall, i will work on item number 6 and will keep you posted.


"Local Installation" is confusing

We should use another term to avoid the perception that this is on the local machine. "Local" was meant to refer to "local to a project" compared to the "global / central" installation.
FYI @renedupont suggestions welcome :)

By "global / central" you mean the ns where ods is installed, and by "Local" the project specific cd ns, right?

correct

Might also be confusing though for people that don't know much about ODS.

yes I would love to find something that is less ODS specific

or name it equal to the folder names here: https://github.com/opendevstack/ods-pipeline/tree/master/deploy

@renedupont Yes agree these need to be aligned. Maybe cd-namespace is not a bad choice. Or cicd-namespace? That makes it a bit more generic, not so tied to the foo-cd naming as with ODS Pipeline you can actually install into a namespace of any name.

Will be fixed with #404, from then on we simply call it "installation" as there will not be a global installation any longer.


Move to versioned releases

Using Semantic Versioning 2.0 http://semver.org/

Releases are currently versioned in args.xml but not in the POM. We should definitely include this.


Transmit power AT command seems to have no effect

I am trying to deal with what appears to be severe multi-paths issues in our test env.
so I was advised to  turn down the transmit power..
the tag SW has an AT command for that..  but none of the choices seem to make any difference
I don't have any electronic equipment to actually check the signal strenth..
I would have expected -40 (lowest valid value)  to be almost not heard..

well, I should have looked at the code 1st..
it SAVES the new power level for NEXT POWER ON cycle.. (which I don't do)
changed to save and then apply live.. we shall see...  now to reflash  every tag

now at least the TX power is set   -40 and -30 too low in my env... at -20 have signals..  but net results not different..

i see the doc in the u-connect locate says txpwr needs a reset ofter changing

closing, user error


Performance issue: the dispatch() of saga actions takes several hundred milliseconds

I refactor a rather complex logic of fetching/refreshing/updating data from a hierarchy of components to a redux saga and now I encounter jank each times my data get refreshed.
My saga is composed of a loop that every 10s fork a task with 2 levels of nested yield call() that end-up making XHR request. I have around 40 leaf call() that makes XHR requests.
So I have a timer that get triggered every 10s. With the Chrome Timeline I can clearly see 2 parts inside the timer:

redux-saga execute all my call() and send the XHR requests (takes around 100ms).
redux-saga execute a redux dispatch() with, if I understood correctly, its internal actions, only useful for itself. This part takes around 400ms.

So every 10s my page freeze completely for half a second :-(
I looked at the average time of other dispatch on other view it is more around 20ms when they aren't any re-render.
Do you think I end up using redux-saga the wrong way or it seems normal to you?
Do you have any idea on how to improve this time?
Or do you need more information?

it may be related to #159. The midleware fires multiple monitoring events in dev. mode which may cause perf. issue. try in production mode

Thanks @yelouafi , with production files me task is always below 200ms of execution time. Much better.

Thanks @yelouafi , with production files me task is always below 200ms of execution time. Much better.


Ensures console is showing if output is written to it - resolves #2247

This PR does two things towards #2247

it changes the #run-button click handler so that it checks to see if the console is already active before calling toggleConsole(), this prevents to the console from being toggled off if it is open
it changes showOutput() to just ensure that the console is showing, instead of incrementing the console message counter.

We could always show the console when the run button is pressed - this PR does not do this.  This PR just shows the console if there is any output to the console.  This seemed like the minimum change to address #2247, but also prevent always showing the console even when there had been no output to it.
I can change this if the desired behavior is to always show the console even when there has been no output to it.

Thanks, Tim! I haven't had a chance to test this one, not sure if there's a test link as well. One question: If the dart code is async and prints to the console after a Future completes, would the console be shown?

There's still some bugs related to how we are dealing with the tabs, so I went ahead and fixed a few issues related to https://github.com/dart-lang/dart-pad/issues/2247 in this PR: https://github.com/dart-lang/dart-pad/pull/2272

👍 I like your state based refactoring and considering if the workshop is dart or flutter to determine if console or UI should be shown. nice.


FIrst line is disappearing in the editor when scrolling

On a big table, the feature names (first line) should always be visible.
However, it currently disappears behind the website navigation bar when scrolling.

The bug is not anymore present with the new editor based on ui-grid.


use instr. cekalgorithm in place of MaterialsDescription prop

Description
Replaces the referenced algorithm (instructions.MaterialsDescription[EncryptionUtils.XAmzEncryptionContextCekAlg]), which evaluates to null with the algortithm referenced as a property on instructions (instructions.cekAlgorithm) which is populated with the expected algorithm earlier in the call stack.
Motivation and Context
Fixes issue #26 where the content encryption algorithm used at encryption time does not match the algorithm stored for decryption time. The end-result is users of the library will be able to client side decryption library in cases such as my use case, where we have SES store emails as encrypted s3 objects and wish to decrypt those objects in our code.
Testing
I first used JetBrains dotPeek to decompile a version I could test against my particular use case. Once I made the appropriate change in that local version, I took the main changes from that fix and updated this repo. Once updated, I tested the code change by executing the code locally. I verified that this code is only utilized inside s3 object decryption, so it wouldn't impact other functionality outside of that scope.
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
[ ] My change requires a change to the documentation
[ ] I have updated the documentation accordingly
[x ] I have read the README document
[ ] I have added tests to cover my changes
[x ] All new and existing tests passed

Thank you @justinrhammonds for this PR. It helped the team diagnose the issue much faster!
We ended up addressing this issue via this PR, we also added some unit tests.
The fix has been released in version 2.0.5 on 02/13/2023.


Explain how this is different from Anti-AutoTranslation list

https://github.com/Nebula-Mechanica/Anti-AutoTranslation-List/ is another project with exactly the same goal.

all clones, not just auto translated

I didn't know this project existed, so I created my own, for my own needs. It shares the same goal, so I can't "Explain how this is different from Anti-AutoTranslation".
However here are differences:

it is not my own filter, matching my needs;
it does not include mirrors, but auto-translations (according to README);
it has not been updated for 7 month;
it concat filters for every search engine, which is not great for performance;
it uses 5 filters for DDG, 4 for Google, which is not great for performance (although my filters are certainly not perfect either);
it has less users, which inevitably implies less contributors/data updates.


Add support for Pointer events

As written here, Flutter supports both Gestures and raw Pointer events: https://flutter.dev/docs/development/ui/advanced/gestures
But for multi-touch applications Gestures have some limitations:

For example, down-1, down-2, up-1, up-2 produces only one tap on up-1.

Also, there are no Move gestures.

Hey @lastant, what do you mean about add support? Flame does not implement any gestures, all we do is to add some helpers functions to help the developer with what we thinks are the most common used gesture recognizar (taps). But you can always wrap the game widget on a RawGestureDetector and use all that flutter has to offer, you can see a good example here: https://github.com/flame-engine/flame/issues/157#issuecomment-533884398

Yes, what I did eventually was
Listener(
  child: game.widget,
  behavior: HitTestBehavior.opaque,
  onPointerDown: (PointerDownEvent pointerDownEvent) {
    game.onPointerDown(pointerDownEvent);
  },
  onPointerUp: (PointerUpEvent pointerUpEvent) {
    game.onPointerUp(pointerUpEvent);
  },
  onPointerMove: (PointerMoveEvent pointerMoveEvent) {
    game.onPointerMove(pointerMoveEvent);
  },
)

We have added a new API for gesture detection on version 0.17.0, this should fix this, gonna close this, but if there is still problems, feel free to open a new issue


(soft) line wrapping in text editor not working

Title says it all... It makes it basically impossible to edit files that may have been created without hard \n breaks, as is often the case from folks who edit with line-wrapping editors.

Well we definitely don't want it on always, but have an option for it. The Editor menu has a settings entry that indicates it will turn on and off line wrapping, but doesn't seem to work (is that what you are saying about it "not working"?).
I think the editor itself should have a small toolbar that has buttons or indicators for things like that, syntax highlighting settings, etc. I'll make an issue for that.
And then when we get a real settings system, we should be able to set defaults about these settings on a per-file-type basis.

cf. #511 and #512.

Setting to "Needs discussion" because I think it would be better UX to implement #511 (per editor settings toolbar) or #512 (global status area that changes when switching documents).

Actually, I fixed this in #513, and we can have the discussion on #511 or #512.

(By the way, #514 makes some of these settings per-editor settings, rather than global settings)

yes, that's what I mean by "not working". I tried the toggle and it didn't do anything, leaving me with a huge horizontal scroll bar. I had to switch to vscode to edit b/c of this...


[HOTFIX] Revert some temp commits accidentaly merged from  #1197 "[Enhancement] remove recursive dir iterator"

Both CI throughput and quality degraded after #1197. Please review & merge ASAP.

@junliume No problem. We should have set on_hold or made #1197 draft immediately after pushing temporary commits.
CC @JehandadKhan


fix Hyper to fix the recent vulnerability if it affects Pyrsia

A vulnerability was discovered with Hyper
https://www.linkedin.com/feed/update/urn:li:activity:7016787673486934016/
Investigate if this affects Pyrsia and fix in code or provide an explanation.

Hey @betarelease, was going over the code and see if the method was being used in Pyrsia. The only place I could find an occurrence was in this block of code which is used for testing purposes.
    async fn verify_recover_response(
        response: Response,
        expected_body: String,
        expected_status: StatusCode,
    ) {
        let status = response.status();
        let actual_body_bytes = hyper::body::to_bytes(response.into_body())
            .await
            .expect("Response body to be converted to bytes");
        let actual_body_str = str::from_utf8(&actual_body_bytes)
            .map(str::to_owned)
            .expect("Response body to be converted to string");
        assert_eq!(status, expected_status);
        assert_eq!(actual_body_str, expected_body);
    }
    ```


Importing Pandas messes up raw mode

After importing pandas, using raw=True fails silently with the result being an arbitrarily short string of the beginning of each pdf page. The length of the string is different on each run.
Steps to reproduce:

In a new shell import pdftotext and run pdftotext.PDF(<filename>, raw=True) to test for successful result.
Import pandas.
Run again the same test.

Python 3.8.0; pdftotext 2.1.2; pandas 0.25.3

Interesting. Can you provide

the output of pip freeze (or the equivalent from a different tool if you aren't using pip). Since this might be caused by one of the dependencies pandas uses, I'd like to see the full list.
a test script that demonstrates the issue
the PDF you used, if it's something you can share

Thanks!

Ignored my request for over six months--closing.

Sorry, it went of my radar as I gradually moved away from anything related to Pandas.