Active Learning with NLP | Documentation

Describe the bug
Unable to import active_huggingface_dataset from baal.active
---------------------------------------------------------------------------

ImportError                               Traceback (most recent call last)

[<ipython-input-4-281f6293f8fe>](https://localhost:8080/#) in <module>
----> 1 from baal.active import active_huggingface_dataset
      2 from transformers import BertTokenizer
      3 pretrained_weights = 'bert-base-uncased'
      4
      5 tokenizer = BertTokenizer.from_pretrained(pretrained_model_name_or_path=pretrained_weights)

ImportError: cannot import name 'active_huggingface_dataset' from 'baal.active' (/usr/local/lib/python3.7/dist-packages/baal/active/__init__.py)

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

To Reproduce

Go to baal docs https://baal.readthedocs.io/en/latest/notebooks/compatibility/nlp_classification/
Open the tutorial in colab
Install the dependencies in colab using !pip install -qq datasets transformers baal
from baal.active import active_huggingface_dataset creates and error

Expected behavior
Based on the docs this should have worked.
The following works
from baal.active.dataset.nlp_datasets import active_huggingface_dataset

Version (please complete the following information):

OS: Ubuntu 18.04.6 LTS
Python: 3.7.15
Baal version: 1.6.0

Additional context
Essentially not a bug, but seems like a problem with documentation. I am currently working on few active learning problems and am planning to use baal for some of them. Maybe I can contribute some minor corrections to the docs as I read them and learn more about baal :)

Good catch!
I just opened a PR to fix this issue thank you!
And yes we would absolutely love to review your PRs :) Any help is appreciated!


Ensure FakeAsyncTestZoneSpec tick always doTick

In the case where there is pending work in the scheduler queue, but the duration
of the tick did not causes it to run the doTick callback would not be called (or
would not be called with intervals summing to the total time ellapsed).

@vikerman , could you help to review this one (especially about when to trigger doTick and whether we should trigger doTick multiple times when multiple tasks have the same end time), Thank you!

@mitchellwills, some other PR was merged, could you rebase this one? thanks.

Rebased.


Master change issue in replicated mode

Hi. We've noticed master change errors in our logs and we try to figure out what could be the reason of them. As a client we use Redisson 3.19.1 with replicated servers configuration. And as a server we use managed Redis in IBM Cloud which consists of one master node and one replica. I understand that it's perfectly fine for managed Redis to change its IP address but I'd like to understand why we see errors like below at that moment.
Here is a stacktrace:
2023-02-01 12:07:35,821 [redisson-netty-2-10] ERROR org.redisson.connection.SingleEntry - Unable to change master from: URL/IP1:PORT to: rediss://URL:PORT
java.util.concurrent.CompletionException: org.redisson.client.RedisConnectionException: Unable to init enough connections amount! Only 23 of 24 were initialized. Redis server: URL/IP2:PORT
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347) ~[?:?]
	at java.util.concurrent.CompletableFuture$BiRelay.tryFire(CompletableFuture.java:1498) ~[?:?]
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) ~[?:?]
	at org.redisson.connection.pool.ConnectionPool.lambda$createConnection$0(ConnectionPool.java:155) ~[redisson-3.19.1.jar!/:3.19.1]
	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863) ~[?:?]
	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841) ~[?:?]
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) ~[?:?]
	at org.redisson.connection.pool.ConnectionPool.promiseFailure(ConnectionPool.java:318) ~[redisson-3.19.1.jar!/:3.19.1]
	at org.redisson.connection.pool.ConnectionPool.lambda$createConnection$6(ConnectionPool.java:277) ~[redisson-3.19.1.jar!/:3.19.1]
	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863) ~[?:?]
	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841) ~[?:?]
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) ~[?:?]
	at org.redisson.client.RedisClient$1$1.run(RedisClient.java:241) ~[redisson-3.19.1.jar!/:3.19.1]
	at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) ~[netty-transport-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: org.redisson.client.RedisConnectionException: Unable to init enough connections amount! Only 23 of 24 were initialized. Redis server: URL/IP2:PORT
	at org.redisson.connection.pool.ConnectionPool.lambda$createConnection$0(ConnectionPool.java:154) ~[redisson-3.19.1.jar!/:3.19.1]
	... 19 more
Caused by: java.util.concurrent.CompletionException: org.redisson.client.RedisTimeoutException: Command execution timeout for command: (AUTH), params: (password masked), Redis client: [addr=rediss://URL:PORT]
	at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:368) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:377) ~[?:?]
	at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1097) ~[?:?]
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) ~[?:?]
	at org.redisson.client.RedisConnection.lambda$async$0(RedisConnection.java:245) ~[redisson-3.19.1.jar!/:3.19.1]
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.run(HashedWheelTimer.java:715) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.ImmediateExecutor.execute(ImmediateExecutor.java:34) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:703) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:790) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:503) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	... 2 more
Caused by: org.redisson.client.RedisTimeoutException: Command execution timeout for command: (AUTH), params: (password masked), Redis client: [addr=rediss://URL:PORT]
	at org.redisson.client.RedisConnection.lambda$async$0(RedisConnection.java:244) ~[redisson-3.19.1.jar!/:3.19.1]
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.run(HashedWheelTimer.java:715) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.ImmediateExecutor.execute(ImmediateExecutor.java:34) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:703) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:790) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:503) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	... 2 more
2023-02-01 12:07:35,821 [redisson-netty-2-10] ERROR org.redisson.connection.ReplicatedConnectionManager - Unable to change master to URL/IP3:PORT
java.util.concurrent.CompletionException: org.redisson.client.RedisConnectionException: Unable to init enough connections amount! Only 23 of 24 were initialized. Redis server: URL/IP2:PORT
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347) ~[?:?]
	at java.util.concurrent.CompletableFuture$BiRelay.tryFire(CompletableFuture.java:1498) ~[?:?]
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) ~[?:?]
	at org.redisson.connection.pool.ConnectionPool.lambda$createConnection$0(ConnectionPool.java:155) ~[redisson-3.19.1.jar!/:3.19.1]
	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863) ~[?:?]
	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841) ~[?:?]
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) ~[?:?]
	at org.redisson.connection.pool.ConnectionPool.promiseFailure(ConnectionPool.java:318) ~[redisson-3.19.1.jar!/:3.19.1]
	at org.redisson.connection.pool.ConnectionPool.lambda$createConnection$6(ConnectionPool.java:277) ~[redisson-3.19.1.jar!/:3.19.1]
	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863) ~[?:?]
	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841) ~[?:?]
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) ~[?:?]
	at org.redisson.client.RedisClient$1$1.run(RedisClient.java:241) ~[redisson-3.19.1.jar!/:3.19.1]
	at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) ~[netty-transport-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: org.redisson.client.RedisConnectionException: Unable to init enough connections amount! Only 23 of 24 were initialized. Redis server: URL/IP2:PORT
	at org.redisson.connection.pool.ConnectionPool.lambda$createConnection$0(ConnectionPool.java:154) ~[redisson-3.19.1.jar!/:3.19.1]
	... 19 more
Caused by: java.util.concurrent.CompletionException: org.redisson.client.RedisTimeoutException: Command execution timeout for command: (AUTH), params: (password masked), Redis client: [addr=rediss://URL:PORT]
	at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:368) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:377) ~[?:?]
	at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1097) ~[?:?]
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) ~[?:?]
	at org.redisson.client.RedisConnection.lambda$async$0(RedisConnection.java:245) ~[redisson-3.19.1.jar!/:3.19.1]
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.run(HashedWheelTimer.java:715) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.ImmediateExecutor.execute(ImmediateExecutor.java:34) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:703) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:790) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:503) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	... 2 more
Caused by: org.redisson.client.RedisTimeoutException: Command execution timeout for command: (AUTH), params: (password masked), Redis client: [addr=rediss://URL:PORT]
	at org.redisson.client.RedisConnection.lambda$async$0(RedisConnection.java:244) ~[redisson-3.19.1.jar!/:3.19.1]
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.run(HashedWheelTimer.java:715) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.concurrent.ImmediateExecutor.execute(ImmediateExecutor.java:34) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:703) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:790) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:503) ~[netty-common-4.1.87.Final.jar!/:4.1.87.Final]
	... 2 more

Can you share connections amount graph for this node?

Also check result of INFO REPLICATION command. This is why IP is being changed

Here is the output of INFO REPLICATION:
role:master
connected_slaves:1
slave0:ip=<IP_ADDRESS>,port=8500,state=online,offset=6372709721345,lag=0
master_replid:c1af2c4befafca930dd05fffb20c274c68a6898d
master_replid2:04b3816c2bb4b467fb4f1bd23f4030a8b828074e
master_repl_offset:6372709721345
second_repl_offset:6160029437299
repl_backlog_active:1
repl_backlog_size:10485760
repl_backlog_first_byte_offset:6372699235586
repl_backlog_histlen:10485760

As for connections amount. We saw up to 75 connections at peak but usually it's 20-25 which correlates with our settings:
  subscriptionConnectionMinimumIdleSize: 1
  subscriptionConnectionPoolSize: 50
  subscriptionsPerConnection: 5
  slaveConnectionMinimumIdleSize: 24
  slaveConnectionPoolSize: 64
  masterConnectionMinimumIdleSize: 24
  masterConnectionPoolSize: 64

Please share logs from application start moment till the issue appeared.

We've looked into our console logs and found very strange behaviour. I can see that master switches between three IP addresses almost every seconds. It feels like there is a kind of load balancer.
2023-01-31 19:02:39,111 [main] INFO  org.redisson.Version - Redisson 3.19.1
2023-01-31 19:02:39,783 [main] INFO  org.redisson.connection.ReplicatedConnectionManager - rediss://URL:PORT is the master
2023-01-31 19:02:39,900 [redisson-netty-2-13] INFO  org.redisson.connection.pool.MasterPubSubConnectionPool - 1 connections initialized for URL/IP1:PORT
2023-01-31 19:02:40,398 [redisson-netty-2-23] INFO  org.redisson.connection.pool.MasterConnectionPool - 24 connections initialized for URL/IP1:PORT
2023-01-31 19:02:41,440 [redisson-netty-2-26] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP2:PORT to rediss://IP3:PORT
2023-01-31 19:02:42,504 [redisson-netty-2-31] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP2:PORT to rediss://IP1:PORT
2023-01-31 19:02:43,584 [redisson-netty-2-6] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP3:PORT to rediss://IP2:PORT
2023-01-31 19:02:44,627 [redisson-netty-2-22] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP1:PORT to rediss://IP3:PORT
2023-01-31 19:02:45,688 [redisson-netty-2-13] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP2:PORT to rediss://IP1:PORT
2023-01-31 19:02:46,755 [redisson-netty-2-15] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP2:PORT to rediss://IP1:PORT
2023-01-31 19:02:47,800 [redisson-netty-2-21] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP3:PORT to rediss://IP2:PORT
2023-01-31 19:02:48,820 [redisson-netty-2-18] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP1:PORT to rediss://IP3:PORT
2023-01-31 19:02:49,848 [redisson-netty-2-22] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP1:PORT to rediss://IP2:PORT
2023-01-31 19:02:50,890 [redisson-netty-2-29] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP3:PORT to rediss://IP2:PORT
2023-01-31 19:02:51,936 [redisson-netty-2-28] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP3:PORT to rediss://IP2:PORT
2023-01-31 19:02:55,096 [redisson-netty-2-7] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP2:PORT to rediss://IP1:PORT
2023-01-31 19:02:56,147 [redisson-netty-2-19] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP3:PORT to rediss://IP1:PORT
2023-01-31 19:02:57,182 [redisson-netty-2-26] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP1:PORT to rediss://IP2:PORT
2023-01-31 19:02:59,252 [redisson-netty-2-20] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP2:PORT to rediss://IP3:PORT
2023-01-31 19:03:00,291 [redisson-netty-2-30] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP3:PORT to rediss://IP2:PORT
2023-01-31 19:03:01,363 [redisson-netty-2-12] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP2:PORT to rediss://IP1:PORT
2023-01-31 19:03:02,408 [redisson-netty-2-22] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP2:PORT to rediss://IP1:PORT
2023-01-31 19:03:03,441 [redisson-netty-2-18] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP3:PORT to rediss://IP1:PORT
2023-01-31 19:03:04,473 [redisson-netty-2-10] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP1:PORT to rediss://IP2:PORT
2023-01-31 19:03:05,542 [redisson-netty-2-6] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP2:PORT to rediss://IP1:PORT
2023-01-31 19:03:06,646 [redisson-netty-2-8] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP2:PORT to rediss://IP3:PORT
2023-01-31 19:03:07,835 [redisson-netty-2-12] INFO  org.redisson.connection.pool.MasterPubSubConnectionPool - 1 connections initialized for URL/IP2:PORT
2023-01-31 19:03:08,267 [redisson-netty-2-32] INFO  org.redisson.connection.SingleEntry - master URL/IP1:PORT has changed to URL/IP2:PORT
2023-01-31 19:03:08,268 [redisson-netty-2-32] INFO  org.redisson.connection.pool.MasterConnectionPool - 24 connections initialized for URL/IP2:PORT
2023-01-31 19:03:09,269 [redisson-netty-2-5] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP3:PORT to rediss://IP2:PORT
2023-01-31 19:03:10,311 [redisson-netty-2-6] INFO  org.redisson.connection.ReplicatedConnectionManager - Hostname: rediss://URL:PORT has changed IP from: URL/IP2:PORT to rediss://IP1:PORT
2023-01-31 19:03:11,436 [redisson-netty-2-9] INFO  org.redisson.connection.pool.MasterPubSubConnectionPool - 1 connections initialized for URL/IP2:PORT
2023-01-31 19:03:11,890 [redisson-netty-2-15] INFO  org.redisson.connection.SingleEntry - master URL/IP2:PORT has changed to URL/IP2:PORT
2023-01-31 19:03:11,891 [redisson-netty-2-15] INFO  org.redisson.connection.pool.MasterConnectionPool - 24 connections initialized for URL/IP2:PORT
...


COMBS Documentation

Is there an updated version of the library available, and/or is the documentation update still in the works?

I have a new repo called Combs2 that has updated code, libraries, and some unpublished new features. Let me know if you'd like to use that. It has some documentation (though not much) and a fairly decent tutorial. The plan is to make the Combs2 repo public once we publish the paper / submit the preprint.

Thank you for the reply.
I would love to have a look, but given the unpublished nature I understand the hold-back.
Perhaps you would have some time for a private chat, as we are looking for the applicability in some future research lines.


module 'cupy' has no attribute 'from_dlpack' when using tensorflow

Description
I am trying to do the data conversion between  tensor (tensorflow 2.0+) and cupy array as what it should be like in the document: https://docs.cupy.dev/en/stable/user_guide/interoperability.html?highlight=tensorflow #dlpack
using cupy on Google colab, tried with default cupy and  also installed by wheel using "pip install cupy-cuda111" and "pip install cupy-cuda11x", all lead to the same issue:
AttributeError: module 'cupy' has no attribute 'from_dlpack'
To Reproduce
import cupy as cp
import tensorflow as tf

x = cp.arange(6, dtype='f').reshape(2, 3)
y = tf.random.uniform((10,))

# convert a cupy array to tensorflow tensor
cap = x.toDlpack()
z = tf.experimental.dlpack.from_dlpack(cap)
print(type(z),z)

cap = tf.experimental.dlpack.to_dlpack(y)
w = cp.from_dlpack(cap)

<class 'tensorflow.python.framework.ops.EagerTensor'> tf.Tensor(
[[0. 1. 2.]
 [3. 4. 5.]], shape=(2, 3), dtype=float32)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[<ipython-input-3-da5750aad4e7>](https://localhost:8080/#) in <module>()
     10
     11 cap = tf.experimental.dlpack.to_dlpack(y)
---> 12 w = cp.from_dlpack(cap)

[/usr/local/lib/python3.7/dist-packages/cupy/__init__.py](https://localhost:8080/#) in __getattr__(name)
    873         if value is None:
    874             raise AttributeError(
--> 875                 f"module 'cupy' has no attribute {name!r}")
    876         attr, eq_attr = value
    877         _warnings.warn(

AttributeError: module 'cupy' has no attribute 'from_dlpack'

Installation
Wheel (pip install cupy-***)
Environment
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03    Driver Version: 460.32.03    CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Tesla P100-PCIE...  Off  | 00000000:00:04.0 Off |                    0 |
| N/A   43C    P0    33W / 250W |    411MiB / 16280MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  2
Core(s) per socket:  2
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               79
Model name:          Intel(R) Xeon(R) CPU @ 2.20GHz
Stepping:            0
CPU MHz:             2199.998
BogoMIPS:            4399.99
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            56320K
NUMA node0 CPU(s):   0-3

Additional Information
What is this issue? is it deprecated or do I need to install dependencies or set  env variables?

cupy.from_dlpack is new in CuPy v10. Try
!pip uninstall -y cupy-cuda111 && pip install cupy-cuda11x

to remove the Colab's default CuPy (v9) and install the latest one (v11).

This works well, cheers!


Remove duplicates when adding to the Kustomization representation.

What type of PR is this?

/kind cleanup

What does this PR do / why we need it:
This adds functionality for adding resources to the Kustomization, which will
filter out duplicate entries and maintain the element in string-sorted order.
Have you updated the necessary documentation?

[ ] Documentation update is required by this PR.
[ ] Documentation has been updated.

Which issue(s) this PR fixes:
Fixes #?
How to test changes / Special notes to the reviewer:

/lgtm
/approve


misc renaming & refactoring

renamed odc_tljh stuff to tljh_opendatacube
pulled out a buncha vars that could be configurable and popped them in f-strings
some other misc refactoring

still testing this but getting this PR up to track it

Still neeed to put some polish on the initial data loading bit, but what we've got so far is at least installing w/o errors.

Looks like the install went well. Still might be some stuff we want to configure, and I'll need to try it on a fresh instance next. But so far so good.

everything up to the point of adding the datacube .config for each user is tested and g2g. moved that to it's own issue as well as setting up default data, since we might want to integrate a separate script or setup file for that to make it more easily accessible.
ready for a code review + merge


docs(changelog): update changelog

Please Review
@seenusuvarna
@flesher1
@mleeBoeing

:+1:
Agree with @seenusuvarna. Also links in Changelog correctly links back to commits in GitHub


HDFS-16624. Fix org.apache.hadoop.hdfs.tools.TestDFSAdmin#testAllDatanodesReconfig ERROR.

JIRA:HDFS-16624. Fix org.apache.hadoop.hdfs.tools.TestDFSAdmin#testAllDatanodesReconfig ERROR.
(https://github.com/apache/hadoop/pull/4406) found an error message during Junit unit testing, as follows:
expected:<[SUCCESS: Changed property dfs.datanode.peer.stats.enabled]> but was:<[ From: "false"]>

After code debugging, it was found that there was an error in the selection outs.get(2) of the assertion(1208), index should be equal to 1.
Please see jira for details.
Introduce code in https://github.com/apache/hadoop/pull/4264

@virajjasani @tomscut  please help to review the code.

Thanks for the PR @slfan1989
Is this test consistently failing or is it more of a flaky one?

Thanks for the PR @slfan1989 Is this test consistently failing or is it more of a flaky one?

Hi @virajjasani ,
This error looks like a consistent failing, I can reproduce it by running multiple times locally, and 2 tests report as failure in https://github.com/apache/hadoop/pull/4406.
report1
reprot2

That's surprising indeed. One of the recent PRs, I see this test passing:

https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4402/1/testReport/org.apache.hadoop.hdfs.tools/TestDFSAdmin/testAllDatanodesReconfig/
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4402/2/testReport/org.apache.hadoop.hdfs.tools/TestDFSAdmin/testAllDatanodesReconfig/

That's surprising indeed. One of the recent PRs, I see this test passing:

https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4402/1/testReport/org.apache.hadoop.hdfs.tools/TestDFSAdmin/testAllDatanodesReconfig/
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4402/2/testReport/org.apache.hadoop.hdfs.tools/TestDFSAdmin/testAllDatanodesReconfig/

But you can look at the screenshot of my local debugger(in jira HDFS-16624), the index is indeed inaccurate.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
12m 54s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
38m 44s

trunk passed

+1 :green_heart:
compile
1m 45s

trunk passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
compile
1m 34s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
checkstyle
1m 19s

trunk passed

+1 :green_heart:
mvnsite
1m 36s

trunk passed

+1 :green_heart:
javadoc
1m 20s

trunk passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
javadoc
1m 51s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
3m 44s

trunk passed

+1 :green_heart:
shadedclient
23m 18s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
1m 26s

the patch passed

+1 :green_heart:
compile
1m 28s

the patch passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
javac
1m 28s

the patch passed

+1 :green_heart:
compile
1m 18s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
javac
1m 18s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
1m  2s

the patch passed

+1 :green_heart:
mvnsite
1m 28s

the patch passed

+1 :green_heart:
javadoc
0m 57s

the patch passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
javadoc
1m 31s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
3m 27s

the patch passed

+1 :green_heart:
shadedclient
23m  1s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
252m 18s

hadoop-hdfs in the patch passed.

+1 :green_heart:
asflicense
1m 13s

The patch does not generate ASF License warnings.

375m 23s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4412/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/4412

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux 25c503b8420f 4.15.0-175-generic #184-Ubuntu SMP Thu Mar 24 17:48:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 13422ba2a0310ad0a1545646c05f2a30fa27db4b

Default Java
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS> /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4412/1/testReport/

Max. process+thread count
3270 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4412/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

I already know the cause of the problem, because the log is out of order due to multi-threading.

Good find btw @slfan1989

@virajjasani @tomscut please help me review the code again.

Good find btw @slfan1989

The code you contributed is very useful, I have learned a lot from you, thank you again!

Thank you for the nice fix @slfan1989 and for the review @tomscut !!

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
17m 34s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
36m 50s

trunk passed

+1 :green_heart:
compile
1m 45s

trunk passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
compile
1m 35s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
checkstyle
1m 26s

trunk passed

+1 :green_heart:
mvnsite
1m 46s

trunk passed

+1 :green_heart:
javadoc
1m 24s

trunk passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
javadoc
1m 46s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
3m 41s

trunk passed

+1 :green_heart:
shadedclient
23m 10s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
1m 23s

the patch passed

+1 :green_heart:
compile
1m 27s

the patch passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
javac
1m 27s

the patch passed

+1 :green_heart:
compile
1m 20s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
javac
1m 20s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
1m  8s

the patch passed

+1 :green_heart:
mvnsite
1m 33s

the patch passed

+1 :green_heart:
javadoc
1m  4s

the patch passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
javadoc
1m 42s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
3m 52s

the patch passed

+1 :green_heart:
shadedclient
25m 32s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
386m 30s

hadoop-hdfs in the patch passed.

+1 :green_heart:
asflicense
1m 14s

The patch does not generate ASF License warnings.

515m 24s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4412/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/4412

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux 22af71d9fc96 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / c0b129acd4d6794bd78503287c865350aa82f7de

Default Java
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS> /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4412/2/testReport/

Max. process+thread count
2891 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4412/2/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

Thanks @slfan1989 for your contribution! Thanks @virajjasani for your review.


Erro in decode BOLETO

Didn't read my barcode correctly.
Below is the image I sent.

The lib returned me<PHONE_NUMBER>0000950000000003300130000003222917
But the code should be<PHONE_NUMBER>0330013000600032229171395510000095000
This barcode is interleaved 2 of 5

Hi @felipeparente , thanks for the feedback. Did you try to fine tune the parameters in the following https://rexshijaku.github.io/PDFBarcodeJS/ to decode your barcodes? Note that, at the end, our library depends on the other barcode decoding library and it is up to it whether it will be decoded successfully or not.

Yes, I tested it on the DEMO page, and the error persists.

Hi @felipeparente, sorry for the delay. I've been quite busy and didn't have time to reply earlier. I believe the issue might be related to the core library that decodes the barcodes. If you could provide the original file (PDF) here, it would be helpful. This way, either I or someone else can investigate it further in the future and maybe resolve it. Thanks!

Hello @rexshijaku  This is the file I mentioned
BarCode2.pdf


ciao-controller: datastore: do not make fake volumes for every workload

The sqlite3 datastore currently makes fake storage requests for
every workload. this causes us to create a volume on every workload
start and impacts performance for workloads that did not want
a volume.
Signed-off-by: Kristen Carlson Accardi<EMAIL_ADDRESS>

Coverage decreased (-0.04%) to 66.572% when pulling bc203cd82f8b4b171c985e08996a6a732d13273c on kaccardi:topic/fix-fake-storage into 1ca2fd0aa3b012520d1896979043c9f354ca93c9 on 01org:master.


Fixed DISPATCH_APPLY_AUTO issue

Hello,
I have noticed some issues in some very specific cases, while making use of pstld from another library and having the HEADER_ONLY option. It results in an issue as following:
In file included from input_line_9:10:
In file included from ./MyLibA/Impl/TKFRImpl.h:26:
./install/include/MyLibB/std/pstld.h:3740:36: error: use of undeclared identifier 'DISPATCH_APPLY_AUTO'
    ::dispatch_apply_f(iterations, DISPATCH_APPLY_AUTO, ctx, function);
                                   ^

I fixed it and it should work fine after that. Please check.
Hope it helps ! Thank you for the great work :)

Thank you for the PR. I assume you're targeting some rather old MacOSX?

Not really, my macOS is actually a M1 Pro Max from 2022.
I cannot provide a reproducer, but I assume this preproc variable (in the dispatcher.h) that I used to handle this specific case is actually made for this.

Sorry, I still don't understand what problem the patch aims to solve.
By the looks at queue.h the macro defined as the following:

#if defined(__APPLE__) && \
		(defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && \
		__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_7_0) || \
		(defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && \
		__MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_9)
#define DISPATCH_APPLY_AUTO_AVAILABLE 0
#define DISPATCH_APPLY_QUEUE_ARG_NULLABILITY _Nonnull
#else
#define DISPATCH_APPLY_AUTO_AVAILABLE 1
#define DISPATCH_APPLY_QUEUE_ARG_NULLABILITY _Nullable
#endif

/*!
 * @constant DISPATCH_APPLY_AUTO
 *
 * @abstract
 * Constant to pass to dispatch_apply() or dispatch_apply_f() to request that
 * the system automatically use worker threads that match the configuration of
 * the current thread as closely as possible.
 *
 * @discussion
 * When submitting a block for parallel invocation, passing this constant as the
 * queue argument will automatically use the global concurrent queue that
 * matches the Quality of Service of the caller most closely.
 *
 * No assumptions should be made about which global concurrent queue will
 * actually be used.
 *
 * Using this constant deploys backward to macOS 10.9, iOS 7.0 and any tvOS or
 * watchOS version.
 */
#if DISPATCH_APPLY_AUTO_AVAILABLE
#define DISPATCH_APPLY_AUTO ((dispatch_queue_t _Nonnull)0)
#endif

It already defines DISPATCH_APPLY_AUTO_AVAILABLE.

I see your point, so the #else in pstld.h is not necessary. I just tested and I agree.
The point of this patch is to fix the aforementioned issue when DISPATCH_APPLY_AUTO is not defined.


Refactor computed items data structure

Refactored our computed items data structure to reflect the API data structure. The flat data structure we had previously is somewhat confusing, especially how we store units for each cost type. The report API data structures have evolved and it would be ideal if we updated as well.
Nothing changes visually. We should see that same overview and historical charts, tooltips, units, etc.
https://issues.redhat.com/browse/COST-765
Our computed items now mimic this API data structure

Thanks, Boaz!


Saving invalid metadata/SpreadsheetFormatterSelector and then creating SpreadsheetFormatterContext will fail leaving app "broken"

create new spreadsheet
click metadata panel -> date formatter
click any date format pattern leaving it broken.
App.refreshSpreadsheetProvider tries to create SpreadsheetFormatterContext and fails because of incomplete date format pattern.

Entering a valid selector, does render samples and work.
Entering an invalid selector and then entering a correct one does not work, it leaves samples not rendered and broken.


cyberia.host

This is actually a minimal webblog I've been building for myself that's just backed by a markdown converter and a small ~30 line bash script to put everything into a lighttpd webroot. The idea is to keep the pages as simple as possible(basic html/css) unless client side javascript is absolutely needed(and only in rare instances).

Added!


Update readme for more transparency around cache version

Description
Especially with self hosted runners, there could be a difference in machine configuration even if all runners are using the same host OS. This PR adds a paragraph to hint at potential problems that could arise in such a set-up and how to approach them.
Motivation and Context
In our own self hosted GH actions environment we had the issue that caches from Mac Mini A could not be consumed on Mac Mini B. Eventually, we found out that one of the Macs had zstd available and the other did not. As it kind of feels unexpected that caches created on the same host OS can be incompatible, it might be worth mentioning in the Cache Version section of the README.
How Has This Been Tested?
n/a
Screenshots (if appropriate):
n/a
Types of changes

[ ] 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)
[x] Documentation (add or update README or docs)

Checklist:

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

Thanks @hawk23 for pointing this out, we will take this up and do the necessary fixes in the readme.

Thanks @hawk23 for pointing this out, we will take this up and do the necessary fixes in the readme.

Will you use my PR for this or can I close it again?


[PSM Interop] Legacy test builds always pull the driver from master (v1.51.x backport)

Backport of #33699 to v1.51.x.
Similar to https://github.com/grpc/grpc-java/pull/8982.
All other languages already to this.
Needed for easier deployment of https://github.com/grpc/grpc/pull/33685.
ref b/274944592

[ ] grpc/core/v1.51.x/branch/linux/grpc_xds_v3
[ ] grpc/core/v1.51.x/branch/linux/grpc_xds_v3_python


Incorrect request generated when saving changes on vertica 10.1 database

Hello,
when updating a table without primary key on vertica 10.1, auto-generated request doesn't take all columns in where conditions.
more on that, the request send when saving is not the same that the one shown on script preview.
for exemple:
request send to database :
UPDATE schema.TABLE SET COLUMN1='VALUE' WHERE COLUMN1 IS NULL AND COLUMN10='VALUE10';
request shown in script :
UPDATE schema.TABLE SET COLUMN1='VALUE' WHERE COLUMN1 IS NULL AND COLUMN10=NULL;
I don't know why column10 is selected and not the others, and I don't understand how a column10=null could appear in a where condition since it will always return false
request send to database on same table on vertica 9
UPDATE schema.TABLE
SET COLUMN1='VALUE'
WHERE COLUMN1  IS NULL AND COLUMN2='VALUE2' AND ... COLUMN10='VALUE10' AND ... COLUMN20='VALUE20';
I'm using last version of dbeaver (21.0.4) and last version of vertica driver 10.1

ok I've found that I had an incorrect virtual primary defined. By the way I had to edit the config file since I can't find a way to do it with the GUI.
And there is still the problem of inconsistant query with column=null in where close

And there is still the problem of inconsistant query with column=null in where close

Sorry, I can't really understand the exact issue you are having. Can you describe the steps that lead to this issue?

there is no update on the issue for a long time.
If it is still actual for you - feel free to reopen it with additional info


[RemoteMirror] Add bounds checking to BitMask operations.

If we encounter any multi-paylaod enum descriptors with bad data, we can end up writing off the end of the bitmask allocation, causing heap corruption. Add range checks to let us fail gracefully instead.
rdar://91423283

@swift-ci please test

@swift-ci please test


Add missing os and browser

New safari, arc, brave (check issues in original repo) or Windows 11.
DONE: Add also some docs for std-env (change NodeInfo to ServerInfo with product and runtime info)
DONE: To detect Windows 11, we need HTTP Client Hints on client and server: https://learn.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11

closing this, fixed via #11 , I will open another issue for new browsers and PR in the original repo


Add Nvidia GeForce Experience version <IP_ADDRESS>

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

#10113

Should I close it or keep it open? I didn't see your PR earlier otherwise I wouldn't waste my time in creating it.

Just close it as its a very low priority and my PR is a test zone, will update it when we get it to pass.


Some more random .rpt errors

From my latest play session, feel free to disregard if they dont mean anything:
11:20:02 "[AS] Error: object_get(location,AS_base_11,AAFsupport): property 'AAFsupport' does not exist for object 'AS_base_11' in container 'location'. Valid properties: [""_properties"",""type"",""position"",""side"",""busy"",""garrison"",""spawned"",""forced_spawned"",""size""]"

It is an error. We are trying to get the property AAFsupport of a base (AS_base_11), but that property only exists for cities. This means that somewhere we are running code for a city on a base. :)
I would try to search for AAFsupport and double check where a base may wrongly be used instead of a city (or else)

Yeah, that s in the title was a mistype. Thanks for the explanation though, still learning from your fixes :)

I confirm that this is still present in v0.1.

Reopening: this is not fixed yet. See #120

Found which code was calling this wrongly.


Could we add a search tool in the OSDM specs?

To ease navigation and maintenance, we'd appreciate a search bar in the OSDM specs with the ability to search all the pages.
I found some possible solutions:

https://blog.webjeda.com/instant-jekyll-search/
https://www.algolia.com (there's a free version)
https://jekyllcodex.org/without-plugin/search-lunr/

Any advise? I'm not a developer, anyone interested in the group to try to setup something for the OSDM specs? (I can help testing or up to the limits of my technical skills ;-) )

@oangeras There is also possibility to search google and limit results using site:osdm.io parameter in the fulltext query.


CameraMatrix::set_frustum does not work

Operating system or device - Godot version:
Godot 2.1, recent clone as of the december 11, core CameraMatrix.cpp
Issue description (what happened, and what was expected):
This is a TODO in the CameraMatrix.cpp but I can't find any issues about open it so I figure I'd just post that it was there incase anyone knows how to fiddle with the camera.
Steps to reproduce:
Search .set_frustum in CameraMatrix.cpp
Link to minimal example project (optional but very welcome):

In order to try and mess with the coordinates of the viewing plane, since set_frustum wouldn't effect them, I replaced the code in set_orthogonal inside CameraMatrix.cpp, both of the set_orthogonal functions, so that one would have the set_frustum code in it and the other wouldn't divide the input coordinates by 2 anymore, and I set the translation of the camera to a moving 3D object.  Nothing is seen in the scene, as in when I switch to orthogonal mode nothing is viewed no matter how I change the properties, but I was printing get_frustum and as the character moved the coordinates for the planes were changing.

Messing with Orthogonal didn't work, but I put the set_frustum code and referenced a bit from this guys code
http://gamedev.stackexchange.com/questions/83191/offset-a-camera-render-without-changing-perspective
And I replaced how 'set_perspective' works in CameraMatrix.cpp and I think it is working so that the vanishing point changes.  The reason I think it's working is because when I translate, the perspective doesn't change!!!

So I think in order to offset the vanishing point now, all I need to do is learn how to reference the Camera that this CameraMatrix is of, and then use the v_offset h_offset to shift the vanishing point...

What I am doing now is adding 2 more arguments to set_perspective which are h and v offset

Turns out I was wrong the whole time... Apparently it switched to orthogonal like, cause perspective was broken so I guess it just switched to it when I started it up, or maybe I had forgotten to change it the last time I saved, and anyway what I thought worked didn't work.
I was in orthogonal when I thought it was perspective, so yeah.  My bad

Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed.

As there was no update since the previous post, we close this issue.
If it is still relevant in the way it was described and discussed above, please comment to ask for it to be reevaluated. If it is only partly relevant, or if the original issue has changed, it would be better to open a new issue (potentially referring to this one) focused on the current state.


Auth problems?

I freshly started this app but can't get auth mechanism to work.
Login is fine so I take the accessToken from 'admin' login action and paste it in the accessToken on swagger for GET b/api/v1/admin/role/list

But then I get an error
"statusCode": 5102,     "message": "auth.error.permissionTokenUnauthorized",     "error": "auth.error.permissionTokenUnauthorized"
When I set 'x-permission-token' header I get:
"statusCode": 5106,     "message": "Permission not allowed",     "error": "auth.error.permissionForbidden"
So how to make it work?

Okay got it,
That because i forgot to update the swagger.
Sorry for that, i will fix it

Now all permission with /admin prefix will protected with 2 token.

Access Token : /login
Permission Token /grant-permission

So... after you get the access token (authenticate), then you must to claim permission token (authorize).

Why do we need two functions? Isn't it enough just to /login?
Like, since you have the accessToken you can generate permission token anyway, so it's not more secure just more boilerplate?

That not for security reason. That approach for reduce the size of token payload.
I want build this boilerplate to keep stateleas for user authentication and authorization. So i consume jwt as access token and put all permission related user in the payload. Because of that, the previous payload has a huge bytes and got rejected by aws api gateway. Also, previous approach will break time of execution.
In my real case
I have more than 100 permissions included read,create,update,delete for every module and i put it all in the 1 role. Then, my request had rejected because the header size of request must less then 1mb.
Rules
Every 5m, you must to reclaim the permission token (base on scope) and every 15m you must to refreh the access token
You can customize the expire in config

I got this approach from some article, github discusstion, and stackoverflow after 7daya of rnd lol.
But if you have better approach, feel free to request ☕

I don't know if I get this right but why don't we just send the accessToken -> read user from Token -> check user roles -> see if roles are permitted, why is that worse?

It releated with serverless architecture
Nowdays, every service such as API Gateway from AWS have a limitation.
One of limitation is the size.
Size of request, size of body/payload, size of headers.
If you use nginx or apache in server such as EC2 or ECS, you can change the size in their config.
But if you use API Gateway, there has no options to change or increase the size.
So i create the permission token to decrease the access token
FYI
AccessToken will contains role
PermissionToken will contains permission base on scope

Maybe in your case, you can use AuthJwtAccessProtected for every endpoint and do not use AuthPermissionProtected
The decorator will only check role, and you do not need claim the permissionToken

AuthJwtAccessProtected for general
AuthJwtAdminAccessProtected for admin.
AuthJwtPublicAccessProtected for user.

What if I update the permission in the database. My current token doesn't know this?

Yup, you're right.
That is why the token has an expiration time.
Every time we make a change in our system (backend) that cannot be immediately implemented on the client side (because of stateless of authentication / authorization), you need to get a new token from /login or /refresh endpoints.
For the permission token, you can recreate the token from /grant-permission endpoint.
If your systems are monolithic applications. You can use the method that @ChrisK1994 described.
If you want to build the stateful authentication / authorization, you can use session.
It all depends on what you need.

{
"scope": [
"USER",
"ROLE",
"PERMISSION",
"API_KEY",
"SETTING"
]
}
one more question. Is this the scope from the api?


copy pasted text breaks unnaturally

Issue Type: Bug
Hi,
I have markdown text file. When I copy either a portion or all of it, and then paste it to Pages / TextEdit / Notes / Mail in MacOS, the words break happen mid word, but not in an expected way. Is there a way to attach screen shot?
VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:33:00.827Z)
OS version: Darwin x64 19.0.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz (4 x 3000)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: enabledoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
2, 1, 1

Memory (System)
16.00GB (4.00GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (3)

Extension
Author (truncated)
Version

vscode-markdownlint
Dav
0.31.0

code-runner
for
0.9.14

python
ms-
2019.10.41019

Yeah if you take a screenshot you can drag or paste it into github to attach it to the issue. I think a screenshot would help.

See how the word breaks unnaturally in several places. First line "is" is broken up in the middle, third line "making" is broken up after "m", fourth line "infant" broken up after "inf" and etc.

And this is all one line in the actual vscode editor?
Are you sure that this isn't the destination app adding line breaks? It just looks like it's trying to wrap it to some column width.
 Do you see it if you start with --disable-extensions?

I had this problem too. The "language support for java" extension was causing it. When I disabled it, no more drunken copy/paste. https://marketplace.visualstudio.com/items?itemName=redhat.java

Thanks for the tip Peter. But I don't have any java extension installed. So I wonder what's going on.

In fact, I don't have any extensions installed. And I still have this problem.

And this is all one line in the actual vscode editor?
Are you sure that this isn't the destination app adding line breaks? It just looks like it's trying to wrap it to some column width. What if you paste it into another vscode editor?

Yes, all one line in viscode editor. When pasted into another viscode editor, the content displays as expected.
When pasted into MacOS Pages, Notes, TextEdit, Mellel, even in Vim running, the problem shown in the screen capture above shows up.
I really like viscode and want to keep using it, but if I can't resolve this soon, I will have to unfortunately move on. This is costing me too much time.

By the way, simple paste always shows the problem. But in some cases paste and match styles in the destination app sometimes clears it up, which leads me to think something other than a sequence of strings is being copied from vscode which some apps can strip while other apps can't. Mellel can fix it. So can Notes, sometimes. But not Pages, ever.

Can you try disabling this setting? editor.copyWithSyntaxHighlighting

Can you try disabling this setting? editor.copyWithSyntaxHighlighting

That's it! With it turned off copy-paste now works as expected with no weird word break. With it on, the problem returns. With it off, problem gone again. Thanks for tracking this down for me!

Is this related to #88178?

yes, it's a duplicate of https://github.com/microsoft/vscode/issues/88178. We went back and forth on breaking/non-breaking space but didn't seem to have a good solution for all. Let's discuss in that issue.


Syncing does not work properly on Windows

I am testing gulp.js in conjunction with hugo. I have my source Files in /src and gulp.js is processing them and putting them at the correct places under `themes/mytheme/. Now I noticed the following with hugo v0.12:

hugo claims it is syncing my themes/mytheme/static/css with public/css but it leaves old .css-Files in the public/css even though the old source in themes/mytheme/static/cssis gone. So it is not deleting and therefore really not "syncing".

When I am applying changes to the index.html hugo server --watch picks them up and livereload is displaying them beautifully. However, when I am applying changes to a .css-File, hugo outputs:
Change detected, rebuilding site
but actually does not. The updated .css-File is not synced into public/css and livereload is not displaying the changes. When I am stopping and restarting the server, the update takes place. So it seems that css-Files are only synced when the server is started.

Hi @karland,
Thank you for your comments!

About Hugo not deleting old files in public/: I believe it is a design decision to "copy" and "not delete", to avoid destroying user's data inadvertently.  For example, some users have hugo installed on the web server to run automatically to deploy a website after a git push.  Some users may have decided to nest a "sub-website" in a subdirectory, or perhaps added some secret .htpasswd inside the public/ directory but not in static/ because the user does not want these sensitive information in a public repository on GitHub...
Whatever the reason, automatically deleting something Hugo doesn't recognize is a very risky behaviour, and generally frowned upon by users.  I don't think any other static site generators have ventured down that path either.

I believe the CSS LiveReload issue was reported as #490 and subsequently fixed by @bjornerik in commit df489b4712dd59b097de0d2fb84cfac7a013f5cd in September 2014, several weeks after Hugo v0.12 was released.  I highly recommend that you try to build from the latest source of Hugo v0.13-DEV using go get as documented in README.md and in http://gohugo.io/overview/installing/.

The sync issue has been discussed in other issues.
About livereload, please reopen if still an issue with 0.13.

@bjornerik I have compiled Hugo as suggested and I am now on
go version go1.4.1 windows/amd64
Hugo Static Site Generator v0.13-DEV

Unfortunately, the issue persists. Basically what I am doing is changing the background color from the body-element from red to blue for testing purposes in mystyle.css. Hugo detects the change:
Change detected, rebuilding site
2015-01-27 23:53 +0100
WARN: 2015/01/27 Unable to locate layout for 404 page: [404.html theme/404.html]
0 of 1 draft rendered
0 future content
0 pages created
0 paginator pages created
0 tags created
0 categories created
in 20 ms

but neither is Hugo syncing the changed mystyle.cssinto public/css nor is livereload displaying the change. When I manually copy the changed mystyle.css into public/css livereload also does not notice the change. When I refresh manually, the browser updates properly. When I stop the server and restart it, it works fine up until the next change.

@karland I was seeing the same behavior and have submitted a pull request that fixes it on Windows. Once it's merged, could you test it as well to make sure it's working for you?

@karland @jaden's patch is merged now.

As per @karland' comment in #858


conditions in LoopScope is always empty

conditions is described in the documentation as a list of the conditions of the loopStatement. However, the conditions are never added so it always returns an empty list.

As a quick fix I added the branch add-loop-scope-conditions.

As a quick fix I added the branch add-loop-scope-conditions.

Thanks. Can you make a PR out of it? then we can discuss it.


test_gluon_data.test_multi_worker has fixed seed that can mask flakiness

The unit test in title have been using fixed seed to mask flakiness. Suggested action:

Evaluate whether the test is flaky without fixed seed. If not, remove seed. Else move to 2
If test is flaky, determine whether it's an actual uncaught edge case. If so, fix the operator. Else move to 3
If numerical instability is inevitable, adjust tolerance level appropriately.

Thanks for filing this issue. We will investigate this Flaky test

PR https://github.com/apache/incubator-mxnet/pull/12315 has enabled this test.
cc @sandeep-krishnamurthy


ui_accept Key Press Not Detected While Moving Up Left or Down Right

Godot version
v3.5.stable.official [991bb6ac7]
System information
Linux Mint 20.3 x86_64
Issue description
Pressing ui_accept is not detected while holding ui_up and ui_left, or ui_down and ui_right. In the attached project this presents as no message being printed to output panel when pressing spacebar or enter key while moving up left or down right.
Might be related to issue #63972
Steps to reproduce

Start game
Open Output panel
Hold ui_left and ui_up, or hold ui_right and ui_down
Press ui_accept
Read Output panel to see message did not print

Minimal reproduction project
BUG ui_accept Not Detected.zip

Are you using a gamepad or a keyboard?

Are you 100% certain that other programs are able to see the same key combination? If not, this is likely a hardware issue (keyboard ghosting), which can be fixed by getting a keyboard with antighosting functionality.

If this is a gamepad, could this be #63972?

@Zireael07  @Sslaxx  Using the keyboard built into my laptop.
@Calinou  Just tested it in other programs and, yes it appears those key combinations don't work on my laptop. Weird. Never would have considered that.


Forgot password and Reset password added

I have added backend of Forgot Password and Reset Password and for that made changes in authController.js, authRoutes.js and package.json.

Also you have to add environment variables of email and password from which you will send reset password email to user and for that I have added examples in .env.backend.sample. Also add "App password" in your google account for that particular email account.

-Screenshots

Ask me if you face any difficulty or have any doubts.

Which checks are getting failed??

hello @VanshVg, Thank you so much for your contribution As I can see you have used NodeMailer as the mailing service, please guide me towards it, do i need to create a API key on its website, or just login and enter email and pass here.

No you don't need to create any API key.
You just have to add email of your email account from which you wanna send email and keep it as "LINKUP_EMAIL" in .env file.
And for password you have to generate App Password for your email account.
Go to google accounts -> Security -> 2 steps verification -> Enter your password -> App Password -> Select device -> Other.
Then generate App Password like that.
Then copy the generated password and paste it to .env file as "LINKUP_PASS".
Your .env file should look like this
"LINKUP_EMAIL" =
"LINKUP_PASS" =
Let me know if you have any doubts.

Ok.


Fix typo for importing connections from sqldeveloper

Connection was imported using the Host as a user.
Correction made: use the correct getter.

Thank you for the contribution 👍

@serge-rider Happy to contribute.
FYI, I'm preparing a commit that will be able to import also the passwords from sqldeveloper.
I hope you will be interested.


Vcluster/sigstore and gh

I don't really get this. We talked about keeping it all simple. But this seems to be following a lot of stuff that the old pipeline also did.


Multilingual support?

@Brunty what was the idea here? The description is a bit lacking. ;-)

I likely threw this issue in as an idea to explore more. I'm unsure if it's needed for a tool with limited options though.
It's likely for the .cigar.json file. The keys that things are referenced as.

I see. But in this case having multiple files should be enough and already works. Not sure if anything more than this is necessary.

Yeah, you're right. I'll close this, it can be re-opened in future if needed.


”Peștere”, ”Prisaca”, ”Zăgujeni” are listed in the drop-down menu

Description:
When user writes ”Peștere”, ”Prisaca”, ”Zăgujeni” the locations appear in the drop-down menu next to the comune and the county witch is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Peștere"

Expected results
The location appears in the drop-down menu as "Peștere, Caraș-Severin(Constantin Daicoviciu)”.

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Prisaca"

Expected results
The location appears in the drop-down menu as "Prisaca, Caraș-Severin(Constantin Daicoviciu)”.

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Zăgujeni"

Expected results
The location appears in the drop-down menu as "Zăgujeni, Caraș-Severin(Constantin Daicoviciu)”.


Add layout blocks

This simply puts a block around a few parts of the page layout sections so it could be extended. It shouldn't change any behavior, just means that if a theme extends this one, they can use that block.
(here's the PR where I'm trying to lightly-extend this theme: https://github.com/ExecutableBookProject/cli/pull/7)

(or this one, which I think will be much less-complex) cc @jorisvandenbossche

Sorry for the slow follow-up. Generally this looks good to me.
Are we fine with the terminology of "navbar", "sidebar" and "toc"? -> I suppose yes
Are we fine with the docs_ prefix? -> I am less sure (also not sure what other themes do), but probably also not too important

thanks for the feedback! re: the names and such, I was mostly concerned that I would override another block accidentally. But if you think there are better names to use I'm happy to use them! Mostly I just wanted the ability to re-work a few of the layout sections (e.g. to use slightly different column widths etc)

@jorisvandenbossche any thoughts on this?

latest push removes the centering...

I am happy to make edits as you like, or to revisit this with another PR later after some deliberation

Let's get some experience with this, maybe we can revisit later based on your experiences (see which ones you need etc)


Wrong source command printed when warning

> fish --version
fish, version 2.2.0

> fisher -v
You need fish 2.3.0 or higher to take advantage of snippets.
Without it some plugins might not work.

Refer to your package manager documentation
for instructions on how to upgrade your fish build.

If you can not upgrade, append the following code
to your ~/.config/fish/config.fish:

for file in ~/.config/fish/conf.d/*.fish
        source
end

fisherman version 2.12.0 ~/.config/fish/functions/fisher.fish

The warning message above seems wrong:
The source command should be fed with "$file" argument.
I'm new to fish shell, so it was a bit confusing...

@igrep Whoops, you are totally right.

https://github.com/fisherman/fisherman/blob/master/fisher.fish#L50

To fix this, just add a backslash before $file like this \$file.
Do you want to send a PR?

Okay, let me make my contribution map more green! 😏


Can't find variable React

Current behaviour
got error when set a custom tabBarComponent for createBottomTabNavigator
Expected behaviour
should have no error
Code sample
export const topNav =  createBottomTabNavigator({
    Pink: {
        screen: PinkScreen,
    },
    Blue: {
        screen: BlueScreen
    }
},
{
    tabBarComponent:props => <TestTab {...props}/>

})

Screenshots (if applicable)

What have you tried
above code
Your Environment

software
version

ios or android
ios 11.2

react-native
0.55.4

react-navigation-tabs
0.5.1

node
v8.9.4

npm or yarn
npm

you need to import React when you use JSX

I really disagree with this. You should not need to import React in order to use createBottomTabNavigator. If createBottomTabNavigator has a dependency on React, it needs to import React itself.

This will drive a Linter crazy (no un-used variables)
It creates a fallible ecosystem

Are there any other options?

@rkingon -- This isn't an issue caused by react-navigation/react-navigation-tabs, this is something to do with JSX itself.
The build environment (Babel?) is implicitly rewriting the <TestTab {...props}/> statement to something like React.createElement(TestTab, …

@fbartho that actually makes sense. Total bummer!
Considering babel is using React behind the scenes, this solution may be "okay" (I don't love it).
https://www.npmjs.com/package/babel-plugin-provide-modules
{
  "plugins": [
    ["provide-modules", {
      "react": "React"
    }]
  ]
}

If you just import react into your source file, the problem will go away, for what it’s worth!

@fbartho yes, it's what I am doing currently -- with an eslint ignore comment.
I was considering the provide module because if this is an issue with babel/jsx, it seems appropriate to have babel import React if it is going to using it. Sounds like this is going to be an issue in any file that you are using JSX in without importing React already (not sure how common that is).


How to build 3D grid [ 10- 10 ] with racks on it

How to build 3D grid ? How to add rack inside grid?

Use createPlane https://api.pixi3d.org/classes/Mesh3D.html#createPlane to create the grid  and apply a texture to it.
material.baseTexture = PIXI.Texture.from(...)
Use createCube https://api.pixi3d.org/classes/Mesh3D.html#createCube to create the boxes.


Pubsub binder sample fix

fixes #863

One more time: the fix is not correct even if it leads to the expected outcome.
Not sure where you see philosophy, if we talk about cold code and proper approach.
More over this is an application code you are fixing here, not a Framework.
Are you going to ask all the people to add such a converter to their applications to make binder working?..

Is it so bad to have the user specify a pubsub message converter like this? I don't think so, and I think that's up to opinion/philosophy. This PR is just for fixing the sample application given the current state of the repository. If we decide to switch up the auto config of these converters later then we can change this sample then.
Until then I don't think we should let big questions block small fixes for things that definitely need fixing at the moment.

I don't see reason to postpone a proper fix and apply a temporary fix if we have all the players on field already. This is not so productive.
My main concern here that Binder's consumer always must produce a message with byte[]. So, no any custom conversions from the application perspective should be exposed.
We shoudn't encourage end-users to think some other way since we always expect byte[] on the Spring Cloud Stream.
If you still disagree with me, let it be: feel free to merge it as is!
I don't see arguments why would I proceed with the wrong solution when the proper one is in hands already...

This might be a little off topic, but I'm looking into this issue and I'm realizing that the conversion exception is being swallowed somewhere by the binder. It looks like it's because the binder is receiving the messages asynchronously. @artembilan Any ideas on how to make sure that the exception bubbles up to the console?

Replaced by #872. Closing.


Custom Post-Processing WebGL2 example from website does not work; WebGPU version hangs chrome

Bevy version
website example (latest?) https://bevyengine.org/examples/Shaders/post-processing/
[Optional] Relevant system information
tested and fails on:

WebGL2 / Firefox 119 / Windows: cube has no effect
WebGL2 / Chrome 119 / Windows: cube has no effect
WebGPU / Chrome 119 / Windows: browser hangs until restart (other WebGPU examples work)

What you did
Visit website examples in configurations above
What went wrong

WebGL: cube has no effect
WebGPU: browser hangs until restarted

Additional information

shown: firefox in background, chrome in foreground, native Windows only one that actually applies the effect (checkout v0.12.0).
console log on firefox:
ERROR crates/bevy_render/src/render_resource/pipeline_cache.rs:811 failed to process shader:
error: required import 'bevy_core_pipeline::fullscreen_vertex_shader::FullscreenVertexOutput' not found
   ┌─ shaders/post_processing.wgsl:21:1
   │
21 │ #import bevy_core_pipeline::fullscreen_vertex_shader::FullscreenVertexOutput
   │ ^
   │
   = missing import 'bevy_core_pipeline::fullscreen_vertex_shader::FullscreenVertexOutput'

The examples are unfortunately not yet up-to-date. (https://github.com/bevyengine/bevy-website/issues/814)
The example seems to work for me locally, so once that is resolved, this should be fixed as well.

This got fixed.


java.lang.NoSuchMethodError: No virtual method containerColor$material3_release

Trying to use your ChipTextField M3 composable with the latest alpha version of Compose Material3 (1.3.0-alpha04) in my application results in the following runtime exception:
FATAL EXCEPTION: main

Process: com.edricchan.studybuddy.debug, PID: 15038

java.lang.NoSuchMethodError: No virtual method containerColor$material3_release(ZZLandroidx/compose/foundation/interaction/InteractionSource;Landroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; in class Landroidx/compose/material3/TextFieldColors; or its super classes (declaration of 'androidx.compose.material3.TextFieldColors' appears in /data/app/~~vbA7OQNACTyE_6u8mGXFWA==/com.edricchan.studybuddy.debug-Bon-hhim6VYMu3d0aAH8JA==/base.apk)
at com.dokar.chiptextfield.m3.TextFieldColorsConverterKt$toChipTextFieldColors$1.backgroundColor(TextFieldColorsConverter.kt:38)
at com.dokar.chiptextfield.m3.OutlinedChipTextFieldKt.OutlinedChipTextField-oTzSxmA(OutlinedChipTextField.kt:273)
at com.dokar.chiptextfield.m3.OutlinedChipTextFieldKt.OutlinedChipTextField-oTzSxmA(OutlinedChipTextField.kt:186)
...

Looking at the source code, I believe this is because the containerColor method that's used in the TextFieldColorsConverter.kt file has since been made to return a Color rather than a State<Color>:
https://github.com/dokar3/ChipTextField/blob/d821f25ef5aef4db4c6ec27298f8d7127ad1b865/chiptextfield-m3/src/commonMain/kotlin/com/dokar/chiptextfield/m3/TextFieldColorsConverter.kt#L32-L43
(I presume this change most likely landed in 1.3.0-alpha02, but there's no user-facing release note so I can't confirm that)

Thanks for reporting. Material 3 1.3 seems to have changed a lot, will patch a fix later.

The fix is out, it should work now, feel free to try it!
https://github.com/dokar3/ChipTextField/releases/tag/v0.7.0-alpha03


ModuleNotFoundError: No module named 'apprise'

I've tried running this in a venv, but it doesn't find apprise, even though all requirements are installed in the venv.
Also, does this have to run as sudo?
Any help much appreciated :)
(pal-venv) user@domain:~/Plex-Auto-Languages$ sudo python3 main.py ./default.config
Traceback (most recent call last): File "/home/user/Plex-Auto-Languages/main.py", line 6, in <module>
    from apprise import Apprise
ModuleNotFoundError: No module named 'apprise'

I might add that it works without issues when not running it in a venv, but it makes more sense to run it in a venv to avoid installing dependencies globally kinda.
This is the error I get when running it without sudo (as it should be ran I guess)
(pal-venv) user@server:~/Plex-Auto-Languages$ python3 main.py -c ./config/default.yaml
Traceback (most recent call last):
  File "/home/user/Plex-Auto-Languages/main.py", line 297, in <module>
    plex_auto_languages = PlexAutoLanguages(args.config_file)
  File "/home/user/Plex-Auto-Languages/main.py", line 25, in __init__
    self.healthcheck_server = HealthcheckServer("Plex-Auto-Languages", self.is_ready, self.is_healthy)
  File "/home/user/Plex-Auto-Languages/utils/healthcheck.py", line 20, in __init__
    self._server = make_server("<IP_ADDRESS>", 80, self._app)
  File "/home/user/Plex-Auto-Languages/pal-venv/lib/python3.9/site-packages/werkzeug/serving.py", line 849, in make_server
    return BaseWSGIServer(
  File "/home/user/Plex-Auto-Languages/pal-venv/lib/python3.9/site-packages/werkzeug/serving.py", line 693, in __init__
    self.server_bind()
  File "/usr/lib/python3.9/http/server.py", line 138, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib/python3.9/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
PermissionError: [Errno 13] Permission denied

Ok, so the issue was it wants to start a webserver on port 80. Changed the port, and it worked.

Hi @s0up4200 ! Sorry for the late reply, you've already answered most of your issue yourself.
The WebServer is indeed running on port 80, I set it up like this with Docker in mind but I see how this can be inconvenient if you don't user Docker. I will probably change the default port to something that doesn't require elevated privileges, and maybe add this as a parameter. Thank you for opening this issue !


Add suggestions for key binding when clause contexts

When the user is creating custom keybindings, we now have suggestions (IntelliSense) for command ids.
Suggestions for then when clause contexts (ex, editorFocus, inDebugMode, etc) would also be useful.

Suggestion for new when clause context: contexts related to the source control viewlet.  e.g. sourceControlViewletFocus, souceControlInputBoxFocus, sourceControlFilesStaged, etc.

@alexandrudima is there a central place where all the contexts are known so we inject this into the schema? If yes could you provide a code pointer, somebody might want to do a PR. Maybe @gregvanl

@isidorn No, at this time, keybindings are contributed at runtime from various parts of our system...

Would it be possible to add a 'when clause' that checks the name of currently active integrated terminal? That would make it so much easier to implement specific functionality for different types of terminal usage.

@usernamehw if we had a hard coded list of context keys it would be easy to add them.
However having a hard coded list has the down side that we have to manage that list, and it might easily get out of sync with reality

It would still probably be better than no suggestions.

Is this still a possibility?

Made a minimalistic extension that adds autocomplete for context keys:

https://marketplace.visualstudio.com/items?itemName=usernamehw.when-suggest

I have pushed this for keybindings.json and for when-clauses in extensions' package.json files. Over time we are also adding descriptions to context keys. I'll create another issue for the UI keybindings editor

To verify:

open the keybindings.json-file and make sure context keys are suggested inside the when-clause
open the package.json-file of an extension and make sure context keys are suggested inside the when clause of menu contributions
make sure context keys aren't suggested outside of when-clauses

Verified:

works in keybindings.json and menu contributions
has a little glitch when not typed a character: https://github.com/microsoft/vscode/issues/117594

As a follow up, it would be nice if:

we expand the support for intellisense to any place that has when (e.g. extension contributed keybindings in package.json)
we support this also in the keybindings UI editor where I can edit when clauses:

we support this also in the keybindings UI editor where I can edit when clauses:

Agree, we have https://github.com/microsoft/vscode/issues/116855 for that

when (e.g. extension contributed keybindings in package.json)

Oh, that will be trival to do


Feature Request: Temporarily cache multi-sig wallet configuration on device and allow users to select it during transaction signing.

I've been playing around with multi-sig vaults on Blue Wallet and I'm using SeedSigner to manage all the keys. Everything works well until I try to send from the multi-sig wallet.
The Context: Once you enter a receiving address and amount to be sent, Blue Wallet displays a screen asking for the required number of signatures. After clicking "Provide signature" under a specific key (see here for a visual), Blue Wallet generates a QR code that needs to be scanned by the SeedSigner. Once scanned, SeedSigner shows the transaction info but can't confirm the change address until you scan the multi-sig configuration information.
The Problem: In order to get back to the multi-sig configuration information in Blue Wallet, you need to back out of the current transaction which means it's not possible to confirm the change address without scanning that info from a QR code that you've saved outside of Blue Wallet.
The Feature Request:
Allow users to scan multi-sig configuration information into the SeedSigner and temporarily cache that information so that it can be referenced during transaction signing.
Does that make sense?
Thank you all for your work on this project. It's awesome.

Hi, thanks for your interest on this.
I believe that this issue should be created on SeedSigner repository instead SeedSignerOS.
In this repository we have mainly the OS, and in SeedSigner the software that creates files and interact with them and also all regarding UI/UX.
Could you please create this issue in SeedSigner repository?
Regards


Update Expired Certs

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.11%. Comparing base (2dfe961) to head (add73f0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #636   +/-   ##
=======================================
  Coverage   80.11%   80.11%
=======================================
  Files          28       28
  Lines        5964     5964
=======================================
  Hits         4778     4778
  Misses       1186     1186

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Create Audit Log entries

Since we remove people directly from groups, we are bypassing the audit log creations
either need to replicate the audit log code, or create some handler in AA that we use

i assume we are talking about autogroups here?

Auth requires a user in the request_actor field on the audit logs.
Few options;

patch auth to have request_actor optional. and pin the min version.
define a user to use in app_settings
use the person getting changed as the actor.

Let me know your thoughts.


Multiple assume roles

Maybe it's possible, but I'm not seeing it from the documentation.
It would be nice to be able to have a single long-term that can assume roles into multiple accounts with multiple permissions.
default-long-term, but can easily assume

aws-mfa --assume-role admin --account dev
aws-mfa --assume-role admin --account qa
aws-mfa --assume-role readonly --account dev

Hi @sstarcher this appears to be possible with the short-term-suffix option. Take a look a the very last example in the README, this should take care of you! Thanks for using aws-mfa!

@broamski got ya so what you are suggesting would be
aws-mfa --assume-role admin admin --short-term-suffix qa --assume-role arn:aws:iam::123456788990:role/RoleName
aws-mfa --assume-role admin admin --short-term-suffix dev --assume-role arn:aws:iam::123456788991:role/RoleName
I was really hoping to have it less painful for users by having the config for these definitions inside of the .aws/config vs having the user need to know the additional info.

I would recommend using profiles or similar:
[prod-long-term]
aws_access_key_id = YOUR_LONGTERM_KEY_ID
aws_secret_access_key = YOUR_LONGTERM_ACCESS_KEY
assume_role =  arn:aws:iam::123456788990:role/some-admin-role

Then: aws-mfa --profile prod

@broamski sounds good that's what I'm doing I was just hoping to not have to copy the key a dozen times.  Thanks for the assistance.


Add All-contributors integration

@all-contributors please add @jakebolam for doc, tests and code

@all-contributors please add @kamiazya for doc, tests and code


change_singe_quota_to_double

we found that double quota will happens a error in our env. but we change it to single quota it will be all right.

Reference: https://github.com/go-mysql-org/go-mysql/commit/79c3b018b47c3f9654c9a64187093c34078e5b27


Trillian?

@grandamp we are making good progress with the Trillian based logs, if your getting started now I would go there instead of starting on this version : https://github.com/google/trillian

Thanks for the feedback @rmhrisk!
I have been paying attention to Trillian, especially 	PKCS#11 signer support (#611).
While key generation and signing can be offloaded to a FIPS validated HSM via PKCS#11, I'm also trying to figure out how the digesting operations can be handled by a FIPS validated implementation (assuming that it still occurs in software).  I'm not certain if this will present a challenge to a Federal Agency attempting to host a log, as they are required to adhere to all FIPS.
Otherwise, I was not certain how much Trillian is used in operational logs today given the following in the README.md:

WARNING: The Trillian codebase is still under development, and is not yet suitable for production use. Everything here is subject to change without notice – including APIs, database schemas, and code layout.

@grandamp I don't think there will be a problem building Trillian with Boring in FIPS mode.
As for the operational readiness of Trillian, I expect in the next couple months that to go away as Google and others launch logs based on it.

@rmhrisk Thanks!  Although, I was not aware that Boring was FIPS validated (yet - pending review: http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/140InProcess.pdf), with the exception of Samsung's implementation (http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/140sp/140sp2746.pdf).  Samsung's implementation appears to only run on Android.
Is there a draft security policy (or other documentation) available so that I can dig into this ASAP?

Yes, it is not validated yet but will be soon (I hope).
As for the security policy for Boring, I can ask if there is a public copy, I imagine there is since it was submitted for evaluation/review already.
Anyway, if your going to spend time on this I really think Trillian is the way to go.

Ironic, as I was talking with @sleevi and @pzb about BoringCrypto on Monday ;)
Thanks again, and I'm taking a look at the code now!

All crypto should be boring ;)


Task to remove orphan symlinks

This is an initial implementation of this task to remove orpahn symlinks, which should be ran periodically every 1h aprox.
In the ticket, I also suggested that the Edit action doesn't make sense to me and should be reconsidered.
Finally, if we consider to remove the Edit action, this task should be run just once and should be enough.
Closes #3493

@agjohnson I changed the query and did a quick test locally: all the cnames that comes with the test data (djangokong.com for example) were removed but temporal.humitos.ar (the one that I have been using for .com) was kept there.
[09/Mar/2018 08:15:27] readthedocs.projects.tasks:795[6934]: INFO Unlinking orphan CNAME: /home/humitos/rtfd/code/readthedocs.org/private_cname_project/djangokong.com

Please, take a new a look at this and after merged I will create a new PR under -ops to configure the periodic task.

Any reason to not set the task up as a scheduled task in the application? I think we can keep this out of ops.

No strong reason, really. I though we were setup them only in the ops repo as I think we don't have any other scheduled task in this repository. If we have, can you point me where they are? Otherwise, can you give an example (from the web) where/how I should configure this?

We have scheduled tasks set up in our corporate repo. The ops tasks are just for tasks that only make sense in production. This is a task that would be useful for a development instance.

I define the task here under CELERYBEAT setting and opened a PR in the ops repo to extend the basic definition from here.
This should be ready to be merged.

I just pushed the changes requested.
I didn't find any example for celery beat and broadcast. So, I created a new task just to broadcast the one that I already had.

The broadcast function could be a decorator (maybe) in the future if we need to do this multiple times.

I resolved conflicts here, going to wait on tests to merge though

Same issue with linting. Merging!


Default FOV does not match presentation in N64 version

The default vertical FOV setting of 60 provides a (mostly; more on that later) identical presentation to the N64 version, but only if you're running it at the aspect ratio implied by the game's original resolution on N64; 320x218.

These screenshots illustrate that when running at 320x240 (same aspect ratio as the default 640x480), content at the edges is cropped compared to N64. Setting the FOV setting to 64.5 seems to alleviate this to my eyes, but only in gameplay as the setting doesn't apply to cutscenes.

These screenshots show that cutscenes have content cropped at the sides as well when running the game at 427x240 (the 16:9 counterpart of 320x240), compared to the original game when running with 16:9 enabled in the settings.
In addition, I suspect the FOV calculation may be slightly off in some way. Even when running at 320x218, the PC port seems to have a very slightly larger FOV.

This screenshot is of the PC port running at 320x218, which looks almost the same as the above N64 screenshot but exposes just a little more of the surroundings around the edges.
From my testing, it seemed like 59.5 on the FOV setting makes things look more closer to the original N64 game.

The internal (original) resolution is assumed to be 320x220, since that's what the original code does as well, which would explain the last part. The rest is probably down to how exactly the resolution scaling is implemented in the PC port vs emulators. I don't really know if I can do anything about this since I don't know what is actually wrong.


Support other aspect ratios

Helper appears to be designed for a fixed aspect ratio of 12:5 (WIDTH_ORIGINAL = 264, HEIGHT_ORIGINAL = 110). That can be fine if it's going to be inserted as a small element of a larger scene, but I was looking to use Helper to be the sole content on a standard 16:9 HDTV screen. I tried increasing HEIGHT_ORIGINAL, which did increase the height of the background rectangle, but the content within the rectangle did not move so it appeared to be aligned to the top which wasn't very pleasing. Perhaps a simple solution could be that the content would be centered vertically within the available space, as it already appears to be centered horizontally.

Thanks for the feedback! I can take a look at this as well. 👍

A friend of mine led a playthrough of Twilight Imperium at a local board game cafe as a precursor to his Extra Life livestream this year. We had Extra Life Helper on a TV in the room to inform onlookers about the event and to keep the players motivated by donations.

Donors could purchase opportunities to influence the game by forcing a die to be rerolled or compelling a faction to vote for a particular outcome.

I had to adjust the positioning of each text element in helper.js to recenter it on its new 16:9 canvas. I also replaced the logo svg with one with more information about the event and how to donate, and here too I had to adjust the script to account for the different dimensions and aspect ratio of the new svg. If the hardcoded positions and sizes could be replaced with percentages, and if the svg were placed and sized based on the svg's actual size, that would make such customization easier.

Thanks for sharing how your friend used the Helper! It always makes me very happy to hear how Extra Lifers are using it to assist with their fundraising efforts. It gets me excited about working on it again.
Yep, the implementation of the Helper is very, very old.  Embarrassingly old and using an unnecessary vector library for layout and animation.  I've been wanting to rebuild it for a while now using a simple responsive layout and CSS animation that would work for any size and aspect ratio.

Closing this as I am currently re-writing the Extra Life Helper from scratch and will be ensuring that the layout is responsive.


Running Queries Tab for Server and Elastic Pool Level

It seems that there is some issue with the Running Queries tab when at the instance or elastic pool level.   No matter the selected timeline, the data seems inaccurate at this level.   For instance, I have 45 databases in an elastic pool, five elastic pools on an instance, 150 databases in total...if I got to Elastic Pool 3 under the instance, sort the data by Longest Running Query descending, and they are all near zero for time.  I can go to any one of the databases and do the same thing at that level and see queries running for 7 minutes, etc.
Elastic Pool Level

One of the Databases Level inside the Elastic Pool

Also, if you do the same thing and chose a Custom timeline (say five days ago), this same level (EP or Instance) will not change to show the correct dates, it keeps the current snapshot dates on the rendered grid.

At root level, or elastic pool level, the Running Queries tab shows the data associated with the most recent snapshot for each instance.  It allows you to see what is happening right now across all of your SQL instances.  If you change the date range it's still showing the data from the most recent snapshot.  If it took the date range into consideration it would show you the snapshot from around midnight on Monday which might not be that useful.  I think what you are interested in would be to show the max running queries over the selected time period etc.  Maybe the report could be changed to show this alongside the most recent snapshot data for the period, taking the date range into consideration.

What we have started running into is that any database in an elastic pool with a long running query can cause the Persistent Version Store of any other database in the pool to not flush.  So what we are looking for is the ability to go back in time across the entire elastic pool and see which database at 2AM was the one with a long running query cause 16 other databases to grow their PVS to 50% of the total database size.  We can do it by clicking on all 50 databases in the EP, but it would be better for us to be able to look at the snapshot in history at the EP level to save a huge amount of time in correlation.


Fix backwards compatibility with openPopup

Resolves #405

This will not fix #405. But it's a good fix.


[BUG] Using TensorRT nvcr.io Hitting an error on nvtabular test run

The TensorRT nvidia/cuda:nvcr.io/nvidia/tritonserver:20.12-py3 container fails one test in the nvtabular. On a cupy error:
https://gitlab-master.nvidia.com/rapidsdl/docker/-/jobs/19481066
Couple of Facts about container
Running on 11.1
rapids install is based on cudatoolkit 11.0

retiring this bug