SAMZA-1155: Validate users configure window.ms when using the fluent API

@xinyuiscool @prateekm can you please look at this?

Is it possible to add logic in the planner to figure out a reasonable window.ms instead of asking the user to configure it? seems it's not too hard to do.

@prateekm @jmakes Can you please take a look?


Typescript rewrited and DevOps set

PR: #4
DevOps log
Todo: add NPM_TOKEN in [setting] -> [secrets] @Gcaufy

done. thx.


Offer an external secret option for prometheus

I love the ability to specify an existing prometheus through the values file like this:
opencost:
  prometheus:
    username: "my-username"
    password: "my-password"
    external:
      enabled: true
      url: https://prometheus.example.com/api/prom

But I'd love to have the option to use an existing secret with something like:
opencost:
  prometheus:
    createSecret: false
    secretName: my-existing-secret
    usernameKey: prom_username
    passwordKey: prom_password
    external:
      enabled: true
      url: https://prometheus.example.com/api/prom

This would lead to the deployment looking like this:
apiVersion: apps/v1
kind: Deployment
spec:
  template:
    spec:
      containers:
      - name: my-opencost
         env:
         - name: DB_BASIC_AUTH_USERNAME
            valueFrom:
              secretKeyRef:
                name: my-existing-secret
                key: prom_username
         - name: DB_BASIC_AUTH_PW
            valueFrom:
              secretKeyRef:
                name: my-existing-secret
                key: prom_password

If people like the idea, I can work on a PR

@petewall really useful support option. Thx for that!
Is there any plans for also supporting fetching the url as well from the (same or different) k8s secret?


[TF 2.0] GRU layer doesn't work when called from tf.function

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Darwin Kernel Version 18.6.0
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
N/A
TensorFlow installed from (source or binary):
binary
TensorFlow version (use command below):
2.0.0-dev20190826
Python version:
Python 3.6.8 :: Anaconda, Inc.
Bazel version (if compiling from source):
N/A
GCC/Compiler version (if compiling from source):
N/A
CUDA/cuDNN version:
N/A
GPU model and memory:
N/A

Describe the current behavior
The code below raises error:

Tried to convert 'tensor' to a tensor and failed. Error: None values not supported.

As noted in comments, the bug disappears if we don't use tf.function, or set persistent=False in gradient tape.
Code to reproduce the issue
import numpy as np
import tensorflow as tf

x = tf.cast(np.random.randn(1, 100), tf.float32)
y = tf.cast(np.random.randn(1, 100, 100), tf.float32)
z = tf.cast(np.random.randn(1, 100), tf.float32)

class Model(tf.keras.Model):
    def __init__(self):
        super(Model, self).__init__()
        self.layer = tf.keras.layers.GRU(100)

    @tf.function # remove this and it works fine
    def call(self, x, y):
        z = self.layer(y, initial_state=x)
        return z

model = Model()

with tf.GradientTape(persistent=True) as tape: # if persistent=False it works fine
    loss = tf.norm(model(x, y) - z)
grads = tape.gradient(loss, model.trainable_variables)

Issue replicating for TF version 2.0, please find the Gist of Colab.Thanks!

Saurabh, looks WhileGrad / TensorList related?

Yeah this seems to be failing when building the gradient of TensorListPopBack. It seems like with persistent=True this takes the path that outputs all necessary intermediates to support higher-order derivatives which triggers taking the derivative of TensorListPopBack. That path is not taken with persistent=False iiuc. I will look into a fix.

@David-Mao,
I was able to reproduce the error with TF v2.0. However, the issue seems to be fixed with TF v2.1. Please find the attached gist. Thanks!

@David-Mao,
I was able to reproduce the error with TF v2.0. However, the issue seems to be fixed with TF v2.1. Please find the attached gist. Thanks!

Any updates regarding this issue? Thanks!

Sorry I don't understand. Should we close this since this seems to be fixed in 2.1? Are you asking if this will be fixed in 2.0? I don't think we would want to do that now since the fix is already available in a public release.

This problem still exists in TF2.1, the strangest thing is that the GRU is OK now but the LSTM is not. Does anybody have a solution?
import numpy as np
import tensorflow as tf
from tensorflow.keras import Model as M
from tensorflow.keras import Input as I

x = tf.cast(np.random.randn(1, 100, 100), tf.float32)
y = tf.cast(np.random.randn(1, 100), tf.float32)
z = tf.cast(np.random.randn(1, 100), tf.float32)
u = tf.cast(np.random.randn(1, 100), tf.float32)

class Model(M):
    def __init__(self):
        super().__init__()
        self.layer = tf.keras.layers.GRU(100)
        self(I(shape=(None, 100)), I(shape=(100,)))

    @tf.function # remove this and it works fine
    def call(self, x, y):
        z = self.layer(x, initial_state=y)
        return z

model = Model()

with tf.GradientTape(persistent=True) as tape: # if persistent=False it works fine
    loss = tf.norm(model(x, y) - z)
grads = tape.gradient(loss, model.trainable_variables)

print("###############SUCCESS################")

class Model2(M):
    def __init__(self):
        super().__init__()
        self.layer = tf.keras.layers.LSTM(100)
        self(I(shape=(None, 100)), I(shape=(100,)), I(shape=(100,)))

    @tf.function     # remove this and it works fine
    def call(self, s, h, c):
        z = self.layer(s, initial_state=(h, c))
        return z

model2 = Model2()

with tf.GradientTape(persistent=True) as tape: # if persistent=False it works fine
    loss = tf.norm(model2(x, y, u) - z)
grads = tape.gradient(loss, model2.trainable_variables)

print("###############SUCCESS################")

@StepNeverStop,
Could you please submit a new issue from this link, so that we can track the issue there. Thanks!

BTW, I checked the code from @StepNeverStop with tf-nightly and the issue doesn't repro, so it might be that the fix landed in 2.3, instead of 2.2. It would be worth double checking.


Fixed Player Option Order

The order for player options were wrong. It's all in the correct order now

Great, thanks


TypeError: Illegal invocation problem

Version: 11.1.1
Browser: Chrome/47.0.2526.106
If I write code like this, browser would throw an error TypeError: Illegal invocation
Upload.upload({
    url: 'xxx',
    data: {
      file: $scope.file
    },
})

but when do this in another way
Upload.upload({
    url: 'xxx',
    data: {

    },
    file: $scope.file
})

the problem solved
I guess there should be something wrong with processing File object

What version?

I have the same problem in chrome：49.0.2623.87,but in /*! 12.0.4 */.
The function module is ok,but in console always get this error message:
TypeError: Illegal invocation
Is that cause by angularjs file（mine is  v1.2.7）?if So, which version of the angularjs do you use?


Update Helidon OpenAPITools guide to describe Helidon SE support

[## Environment Details

Helidon Version: 2.x, 3.x
Helidon SE or Helidon MP SE
JDK version:
OS:
Docker version (if applicable):

Problem Description
See #4019 (adding SE server support to the tool) and #4018 (creating short Helidon guide for using the tool)
Presumably, by the time we have completed #4019 we will have the guide mentioned in #4018. This issue is for the work to update the guide with new information about Helidon SE generation using the tool.

Covered by new Epic for Helidon Specific generator. Closing.


learning rate unchanged

Hi,
I am trying to use the step policy for learning rate decay, and I have revise the schedule config file as:
optimizer = dict(type='SGD', lr=0.001, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=None)
lr_config = dict(policy='step', gamma=0.9, step=200)
runner = dict(type='EpochBasedRunner', max_epochs=200)

However, fro the output of training logs (shown below), it seems the learning rate was fixed as 0.001 and unchanged at all:
optimizer = dict(type='SGD', lr=0.001, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=None)
lr_config = dict(policy='step', gamma=0.9, step=200)
runner = dict(type='EpochBasedRunner', max_epochs=200)
checkpoint_config = dict(interval=1)
log_config = dict(interval=100, hooks=[dict(type='TextLoggerHook')])
dist_params = dict(backend='nccl')
log_level = 'INFO'
load_from = None
resume_from = None
workflow = [('train', 1)]
work_dir = './work_dirs/mobilenet-v3-small_8xb16_custom_0728overall'
gpu_ids = [0]

2022-07-28 17:51:12,219 - mmcls - INFO - Set random seed to<PHONE_NUMBER>, deterministic: False
/apdcephfs/share_1041553/qdliu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/mmcv/cnn/bricks/hsigmoid.py:31: UserWarning: In MMCV v1.4.4, we modified the default value of args to align with PyTorch official. Previous Implementation: Hsigmoid(x) = min(max((x + 1) / 2, 0), 1). Current Implementation: Hsigmoid(x) = min(max((x + 3) / 6, 0), 1).
  warnings.warn(
2022-07-28 17:51:12,265 - mmcls - INFO - initialize MobileNetV3 with init_cfg [{'type': 'Kaiming', 'layer': ['Conv2d'], 'nonlinearity': 'leaky_relu'}, {'type': 'Normal', 'layer': ['Linear'], 'std': 0.01}, {'type': 'Constant', 'layer': ['BatchNorm2d'], 'val': 1}]
/apdcephfs/share_1041553/qdliu/cv_project/goal-prediction/mmclassification/mmcls/datasets/custom.py:200: UserWarning: Found no valid file in the folder out. Supported extensions are: .pgm, .jpeg, .png, .ppm, .tif, .bmp, .jpg
  warnings.warn(
2022-07-28 17:51:17,674 - mmcls - INFO - Start running, host: root@VM-87-247-centos, work_dir: /apdcephfs/share_1041553/qdliu/cv_project/goal-prediction/mmclassification/work_dirs/mobilenet-v3-small_8xb16_custom_0728overall
2022-07-28 17:51:17,675 - mmcls - INFO - Hooks will be executed in the following order:
before_run:
(VERY_HIGH   ) StepLrUpdaterHook
(NORMAL      ) CheckpointHook
(LOW         ) EvalHook
(VERY_LOW    ) TextLoggerHook
 --------------------
before_train_epoch:
(VERY_HIGH   ) StepLrUpdaterHook
(LOW         ) IterTimerHook
(LOW         ) EvalHook
(VERY_LOW    ) TextLoggerHook
 --------------------
before_train_iter:
(VERY_HIGH   ) StepLrUpdaterHook
(LOW         ) IterTimerHook
(LOW         ) EvalHook
 --------------------
after_train_iter:
(ABOVE_NORMAL) OptimizerHook
(NORMAL      ) CheckpointHook
(LOW         ) IterTimerHook
(LOW         ) EvalHook
(VERY_LOW    ) TextLoggerHook
 --------------------
after_train_epoch:
(NORMAL      ) CheckpointHook
(LOW         ) EvalHook
(VERY_LOW    ) TextLoggerHook
 --------------------
before_val_epoch:
(LOW         ) IterTimerHook
(VERY_LOW    ) TextLoggerHook
 --------------------
before_val_iter:
(LOW         ) IterTimerHook
 --------------------
after_val_iter:
(LOW         ) IterTimerHook
 --------------------
after_val_epoch:
(VERY_LOW    ) TextLoggerHook
 --------------------
after_run:
(VERY_LOW    ) TextLoggerHook
 --------------------
2022-07-28 17:51:17,675 - mmcls - INFO - workflow: [('train', 1)], max: 200 epochs
2022-07-28 17:51:17,675 - mmcls - INFO - Checkpoints will be saved to /apdcephfs/share_1041553/qdliu/cv_project/goal-prediction/mmclassification/work_dirs/mobilenet-v3-small_8xb16_custom_0728overall by HardDiskBackend.
2022-07-28 17:51:24,025 - mmcls - INFO - Epoch [1][100/239]     lr: 1.000e-03, eta: 0:50:22, time: 0.063, data_time: 0.022, memory: 68, loss: 1.5709
2022-07-28 17:51:27,844 - mmcls - INFO - Epoch [1][200/239]     lr: 1.000e-03, eta: 0:40:16, time: 0.038, data_time: 0.007, memory: 68, loss: 0.5216
2022-07-28 17:51:29,324 - mmcls - INFO - Saving checkpoint at 1 epochs
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 192/192, 372.3 task/s, elapsed: 1s, ETA:     0s2022-07-28 17:51:29,936 - mmcls - INFO - Epoch(val) [1][12] accuracy_top-1: 52.0833, accuracy_top-5: 100.0000
2022-07-28 17:51:35,215 - mmcls - INFO - Epoch [2][100/239]     lr: 1.000e-03, eta: 0:35:59, time: 0.053, data_time: 0.021, memory: 68, loss: 0.2269
2022-07-28 17:51:38,471 - mmcls - INFO - Epoch [2][200/239]     lr: 1.000e-03, eta: 0:33:35, time: 0.033, data_time: 0.002, memory: 68, loss: 0.1789
2022-07-28 17:51:39,827 - mmcls - INFO - Saving checkpoint at 2 epochs
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 192/192, 437.1 task/s, elapsed: 0s, ETA:     0s2022-07-28 17:51:40,359 - mmcls - INFO - Epoch(val) [2][12] accuracy_top-1: 52.0833, accuracy_top-5: 100.0000
2022-07-28 17:51:45,589 - mmcls - INFO - Epoch [3][100/239]     lr: 1.000e-03, eta: 0:32:32, time: 0.052, data_time: 0.021, memory: 68, loss: 0.1293
2022-07-28 17:51:48,813 - mmcls - INFO - Epoch [3][200/239]     lr: 1.000e-03, eta: 0:31:25, time: 0.032, data_time: 0.000, memory: 68, loss: 0.1119
2022-07-28 17:51:50,077 - mmcls - INFO - Saving checkpoint at 3 epochs
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 192/192, 440.4 task/s, elapsed: 0s, ETA:     0s2022-07-28 17:51:50,587 - mmcls - INFO - Epoch(val) [3][12] accuracy_top-1: 77.6042, accuracy_top-5: 100.0000
2022-07-28 17:51:55,785 - mmcls - INFO - Epoch [4][100/239]     lr: 1.000e-03, eta: 0:30:58, time: 0.052, data_time: 0.021, memory: 68, loss: 0.0885
2022-07-28 17:51:58,906 - mmcls - INFO - Epoch [4][200/239]     lr: 1.000e-03, eta: 0:30:11, time: 0.031, data_time: 0.000, memory: 68, loss: 0.0808
2022-07-28 17:52:00,093 - mmcls - INFO - Saving checkpoint at 4 epochs
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 192/192, 436.6 task/s, elapsed: 0s, ETA:     0s2022-07-28 17:52:00,605 - mmcls - INFO - Epoch(val) [4][12] accuracy_top-1: 86.4583, accuracy_top-5: 100.0000
2022-07-28 17:52:05,861 - mmcls - INFO - Epoch [5][100/239]     lr: 1.000e-03, eta: 0:30:01, time: 0.052, data_time: 0.021, memory: 68, loss: 0.0672
2022-07-28 17:52:09,013 - mmcls - INFO - Epoch [5][200/239]     lr: 1.000e-03, eta: 0:29:28, time: 0.032, data_time: 0.000, memory: 68, loss: 0.0636
2022-07-28 17:52:10,187 - mmcls - INFO - Saving checkpoint at 5 epochs
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 192/192, 441.1 task/s, elapsed: 0s, ETA:     0s2022-07-28 17:52:10,694 - mmcls - INFO - Epoch(val) [5][12] accuracy_top-1: 79.1667, accuracy_top-5: 100.0000
2022-07-28 17:52:15,989 - mmcls - INFO - Epoch [6][100/239]     lr: 1.000e-03, eta: 0:29:24, time: 0.053, data_time: 0.020, memory: 68, loss: 0.0645
2022-07-28 17:52:19,163 - mmcls - INFO - Epoch [6][200/239]     lr: 1.000e-03, eta: 0:28:59, time: 0.032, data_time: 0.000, memory: 68, loss: 0.0478
2022-07-28 17:52:20,400 - mmcls - INFO - Saving checkpoint at 6 epochs
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 192/192, 444.3 task/s, elapsed: 0s, ETA:     0s2022-07-28 17:52:20,907 - mmcls - INFO - Epoch(val) [6][12] accuracy_top-1: 78.6458, accuracy_top-5: 100.0000
2022-07-28 17:52:26,049 - mmcls - INFO - Epoch [7][100/239]     lr: 1.000e-03, eta: 0:28:52, time: 0.051, data_time: 0.021, memory: 68, loss: 0.0483
2022-07-28 17:52:29,177 - mmcls - INFO - Epoch [7][200/239]     lr: 1.000e-03, eta: 0:28:31, time: 0.031, data_time: 0.000, memory: 68, loss: 0.0400
2022-07-28 17:52:30,411 - mmcls - INFO - Saving checkpoint at 7 epochs
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 192/192, 443.6 task/s, elapsed: 0s, ETA:     0s2022-07-28 17:52:30,920 - mmcls - INFO - Epoch(val) [7][12] accuracy_top-1: 79.1667, accuracy_top-5: 100.0000
2022-07-28 17:52:36,121 - mmcls - INFO - Epoch [8][100/239]     lr: 1.000e-03, eta: 0:28:27, time: 0.052, data_time: 0.020, memory: 68, loss: 0.0345
2022-07-28 17:52:39,244 - mmcls - INFO - Epoch [8][200/239]     lr: 1.000e-03, eta: 0:28:08, time: 0.031, data_time: 0.000, memory: 68, loss: 0.0278
2022-07-28 17:52:40,408 - mmcls - INFO - Saving checkpoint at 8 epochs

Could you please give me some hint on the reason?
Many thanks.
Best.

Oh, I see.
Each step here denotes a epoch, instead of a training iteration.
I shall close the issue.


Monitor CPU usage of add-ons

If an add-on uses too much CPU, it should be stopped for security reasons.
Research:
https://nodejs.org/api/process.html#process_process_cpuusage_previousvalue
https://gist.github.com/pmuellr/8c349726392bb47da680410eb7904092
https://stackoverflow.com/questions/7773826/how-to-find-out-the-cpu-usage-for-node-js-process#answer-44657880

I believe a side effect of doing this would be breaking ARM support:
https://github.com/sungshon/PimpMyStremio/issues/23


Schedule notification that repeats every 4 days at a given time

How can I schedule notifications repeating at regular intervals?

How can I schedule notifications repeating at regular intervals?

Hi @Nek-12, at the moment it is not possible to schedule repeated alarms. But this is in the roadmap for this library so stay tuned for updates!

Hey @Nek-12 , with version 1.2.0 of this library, you can now schedule repeated alarms by providing a RepeatInterval.
Details here.
Let me know if this is what you need!

No, this doesn't solve the problem. I want to repeat the notification every 4 days, but with the provided options, I can only choose 1 day, 1 month, 1 hour or 1 year as an interval.
Additionally, it looks like the notification doesn't come correctly when I set both first occurrence date (e.g. 24th of Nov 2024 and the repeat interval)

That option doesn't seem to work correctly. I still can't schedule a notification that starts at 6pm tomorrow, then repeats at that time (6pm) every 4 days. Instead, it just comes at 6pm tomorrow, but then repeats at the time it was scheduled, for example 11:24:55 am, not at the time I wanted (6pm).

Yes, you can achieve this behavior by setting scheduledDateTime to tomorrow at 6pm and using RepeatInterval.Custom(duration = 4.days) like this:
alarmeeScheduler.schedule(
    alarmee = Alarmee(
        uuid = "myAlarmId",
        notificationTitle = "🔁 Congratulations! You've schedule a custom repeating Alarmee!",
        notificationBody = "This notification will be displayed on December 18th, 2024, at 6:00 PM and will repeat every 4 days at 6:00 PM",
        scheduledDateTime = LocalDateTime(year = 2024, month = Month.DECEMBER, dayOfMonth = 18, hour = 18, minute = 0),
        repeatInterval = RepeatInterval.Custom(duration = 4.days), // Will repeat every 4 days
        androidNotificationConfiguration = AndroidNotificationConfiguration( // Required configuration for Android target only (this parameter is ignored on iOS)
            priority = AndroidNotificationPriority.DEFAULT,
            channelId = "otherChannelId",
        )
    )
)

The first notification will be displayed tomorrow at 6pm.
The second notification will be displayed exactly 4 days after tomorrow at 6pm, so the 22nd at 6pm. (4 days =<PHONE_NUMBER>0 = 345600000 milliseconds).
Etc.
Does that make sense?

Like I said, I tried it, but it doesn't work this way.

It seems that you're using UNTimeIntervalNotificationTrigger, which schedules the alarm to repeat after provided interval since scheduled, not the fixed time initially desired. https://developer.apple.com/documentation/usernotifications/untimeintervalnotificationtrigger?language=objc

Like I said, I tried it, but it doesn't work this way.

Can you show me the code you used to test this behavior? Because for sure you couldn't test with 4 days interval.

To repeat, if I schedule my alarm right now, the first invocation should be at 4 pm on Wednesday, then the second one must be 4pm Sunday, not at 12:23pm Saturday.

That is not the expected behavior. The scheduledDateTime property defines the first occurence of the repeating alarm. So if you schedule your alarm right now (via scheduledDateTime), then the first notification will be triggered right now.

No, I scheduled it for the first occurrence date (in a day), but the repeat was 5 minutes, and as I thought, the notification came after 5 mins, not 20 hours as I specified.
Sorry, I don't have code, because to give you feedback quickly I threw together a test alarm and removed it afterwards locally on a work project

But afaik, there is no way to execute code upon the push notification being sent on iOS, so we can't reschedule the notification. I was hoping this library would be the solution to the problem you mentioned above, but if you think that's out of scope of the library, then this issue can be closed.


Make Decks available in the API

Hi,
I've started working on a tiny iOS companion app for Track-o-Bot, since I play a lot of HS on iPad.
Basic functionality (authenticating & creating new results) works fine. As a next step, I wanted to be able to pick the Deck used in each game, and for that I need to be able to access the list of user-defined decks via the API. At the moment, this seems impossible. Using a URL like
https://trackobot.com/profile/settings/decks.json?username=<username>&token=<token>

leads to an internal server error
{"status":"500","error":"Internal Server Error"}

Would be real nice if you could at some point enable access to the decks via the API.
Anyway, thanks for this nice, clean and minimal HS tracker!

That's a good idea! Will keep this in mind.

Would be awsome @stevschmid if you can implement this!

Any news on that ?

Not yet. Soonish hopefully.

Solved with commit ce24f24c1dcf89ffe8efb4fa17e1184d7ee3500e


Allow assembly file paths from root of the project using /pattern

Set root option for glob calls to be process.cwd()

fixed in c661a9b5cf074c034bba2609c90efd46511e0b84


Add Denarius (DNR)

Added support for DNR, to my knowledge. If something is missing, let me know!

Well someone in the Slack told me the correct branch was v0.25 but I can move back to master or wherever you would like it! :)

Oops though didn't mean to commit the branch changes to the submodule

Alright, should be good now, GUI PR is here: https://github.com/SuperNETorg/EasyDEX-GUI/pull/196

Okay we should be 100% good haha. Sorry about that, only changed submodule on my own branch didn't realized I committed was doing testing. Let me know if you need anything else from me.

I just verified both Electrum servers are online still...
r 08 15:26:14 denarius electrumx_server.py[22018]: INFO:B
lockProcessor:flush #7,331 took 0.3s.  Height 621,762 txs:
1,112,130
Mar 08 15:26:14 denarius electrumx_server.py[22018]: INFO:B
lockProcessor:processed 1 block in 0.3s
^[[BMar 08 15:26:48 denarius electrumx_server.py[22018]: IN
FO:Prefetcher:new block height 621,763 hash<PHONE_NUMBER>01260
1050e2ba577fec9cd22cca43a0738aa10b9ab212ca2aef7ea
Mar 08 15:26:48 denarius electrumx_server.py[22018]: INFO:B
lockProcessor:flush #7,332 took 0.0s.  Height 621,763 txs:
1,112,131
Mar 08 15:26:48 denarius electrumx_server.py[22018]: INFO:B
lockProcessor:processed 1 block in 0.0s
Mar 08 15:26:53 denarius electrumx_server.py[22018]: INFO:M
emPool:0 txs touching 0 addresses
aMar 08 15:27:03 denarius electrumx_server.py[22018]: INFO:
Prefetcher:new block height 621,764 hash<PHONE_NUMBER>004b8088
bd1ee3a8505fff40b0db0c44fc6cea3307439119da65d6
Mar 08 15:27:03 denarius electrumx_server.py[22018]: INFO:B
lockProcessor:flush #7,333 took 0.0s.  Height 621,764 txs:
1,112,132
Mar 08 15:27:03 denarius electrumx_server.py[22018]: INFO:B
lockProcessor:processed 1 block in 0.0s

i'm not getting any responses from your servers at all
not even an error
this is an example what i get from kmd electrum
(echo '{ "id": 1, "method": "blockchain.address.get_balance", "params": ["RDbGxL8QYdEp8sMULaVZS2E6XThcTKT9Jd"] }'; sleep 0.5) | ncat electrum1.cipig.net 10001
{"jsonrpc": "2.0", "id": 1, "result": {"confirmed": 148130, "unconfirmed": 0}}
can you verify your servers work? you can use any electrum method / address and ncat to get a response

Have you tried port 50001?

<IP_ADDRESS>:50002 that's what you committed
50001 works

Updated ports for now until I get 50002 working properly.


go1.21.0.linux-armv6l built with GOARM=7

What version of Go are you using (go version)?

$ go version
1.21.0

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
Linux raspberrypi 6.1.21+ #1642 Mon Apr  3 17:19:14 BST 2023 armv6l GNU/Linux
Raspbian GNU/Linux 11 (bullseye)
go env Output
$ go env
Illegal instruction

What did you do?
Installed go 1.21.0 onto two different Raspberry Pi zero w and get the same illegal instruction output when running go.
I installed https://go.dev/dl/go1.21.0.linux-armv6l.tar.gz.  Version 1.20.7 works.

rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.0.linux-armv6l.tar.gz
go version

What did you expect to see?
When running "go version" I expected to see the go version output and not "illegal instruction"
What did you see instead?
illegal instruction

seems like it was built with GOARM=7 instead of 6
go: go1.21.0
	path	cmd/go
	build	-buildmode=exe
	build	-compiler=gc
	build	-gcflags=cmd/...=-dwarf=false
	build	-trimpath=true
	build	DefaultGODEBUG=panicnil=1
	build	CGO_ENABLED=0
	build	GOARCH=arm
	build	GOOS=linux
	build	GOARM=7

The arm64 artifact by contrast has no explicit GOARM set
go: go1.21.0
	path	cmd/go
	build	-buildmode=exe
	build	-compiler=gc
	build	-gcflags=cmd/...=-dwarf=false
	build	-trimpath=true
	build	DefaultGODEBUG=panicnil=1
	build	CGO_ENABLED=0
	build	GOARCH=arm64
	build	GOOS=linux

cc @golang/release

Indeed, thanks for reporting.
It was set to GOARM=6 in 1.20 and older because the release target used the linux-arm-aws builder, and that builder has GOARM=6 in its environment. For Go 1.21.0, it's built on a linux-amd64 builder via make.bash -distpack, and GOARM wasn't set in the release target's environment explicitly.


When using --build-dir HEIF does not work

The reason is it's looking for the libaom.so in $BUILD_DIR build it's being created in /usr/local since the aom wasn't configured with a prefix.

Hmm, I'm getting the same error, but without using --build-dir. aom appears to build fine, but heif won't build, says aom isn't installed.

That option is only relevant for imagemagick itself. You may want to check the logfile, and see, if an error occurred during the build of aom.


Fix IPv6 e2e test caused by image update

wget in toolbox image expects the protocol to be specified when IPv6 address is used in the url, otherwise it would use ftp protocol. This patch fixes it and unifies how we get url from IP, port and path.

/test-all
/test-ipv6-e2e

/test-e2e
/test-ipv6-e2e
/skip-conformance
/skip-networkpolicy


Crash in GodotPaymentV3.java:71 (NullPointerException)

Godot version:
Version 3.2.1 stable
OS/device including version:
Huawei HUAWEI Y9 Prime 2019 (HWSTK-HF), 3840MB RAM, Android 10
Issue description:
Received this bug report from one of my app users.
java.lang.NullPointerException:
  at org.godotengine.godot.GodotPaymentV3.<init> (GodotPaymentV3.java:71)
  at org.godotengine.godot.GodotPaymentV3.initialize (GodotPaymentV3.java:63)
  at org.godotengine.godot.GodotLib.setup (Native Method)
  at org.godotengine.godot.Godot$2.run (Godot.java:325)
  at android.opengl.GLSurfaceView$GLThread.guardedRun (GLSurfaceView.java:1511)
  at android.opengl.GLSurfaceView$GLThread.run (GLSurfaceView.java:1281)

CC @m4gr3d
This might have been improved already by refactoring work in 3.2.2 beta 1 if you are able to test: https://godotengine.org/article/dev-snapshot-godot-3-2-2-beta-1

I had a look at the code for both 3.2.1 stable tag and the 3.2 branch. I'm pretty sure it is solved in 3.2.2:
old:
	public GodotPaymentV3(Activity p_activity) {

		registerClass("GodotPayments", new String[] { "purchase", "setPurchaseCallbackId", "setPurchaseValidationUrlPrefix", "setTransactionId", "getSignature", "consumeUnconsumedPurchases", "requestPurchased", "setAutoConsume", "consume", "querySkuDetails", "isConnected" });
		activity = (Godot)p_activity;
		mPaymentManager = activity.getPaymentsManager();
		mPaymentManager.setBaseSingleton(this); // <--- crash here (NPE)
	}

new:

public GodotPayment(Godot godot) {
	super(godot);
	mPaymentManager = new PaymentsManager(godot, this);
	mPaymentManager.initService(); // no NPE here, but maybe downstream
}


pythonPackages.azure-devops: init at 5.0.0b8

Motivation for this change
Follow up to #63184
This is the "new" azure-devops package after vsts was rebranded to azure-devops.
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[X] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

$ nix path-info -Sh ./result
/nix/store/j2xpynp8kxi476vk0rz0q89sqa1cn9wm-python3.6-azure-devops-5.0.0b8       126.1M

By the way, please group related in a single PR.

Closing until stable release


[Python] read_row_group fails with Nested data conversions not implemented for chunked array outputs

Hey, I'm trying to concatenate two files and to avoid reading everything to memory at once, I wanted to use read_row_group for my solution, but it fails.

I think it's due to fields like these:
pyarrow.Field<to: list<item: string>>

But I'm not sure. Is this a duplicate? The issue linked in the code is resolved https://github.com/apache/arrow/blob/fd0b90a7f7e65fde32af04c4746004a1240914cf/cpp/src/parquet/arrow/reader.cc#L915

Stacktrace is

  File "/data/teftel/teftel-data/teftel_data/parquet_stream.py", line 163, in read_batches
    table = pf.read_row_group(ix, columns=self._columns)
  File "/home/kuba/.local/share/virtualenvs/teftel-o6G5iH_l/lib/python3.6/site-packages/pyarrow/parquet.py", line 186, in read_row_group
    use_threads=use_threads)
  File "pyarrow/_parquet.pyx", line 695, in pyarrow._parquet.ParquetReader.read_row_group
  File "pyarrow/error.pxi", line 89, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Nested data conversions not implemented for chunked array outputs
Reporter: Jakub Okoński
Related issues:

[C++] Support nested data conversions for chunked array (is duplicated by)
[C++][Parquet] 16MB limit on (nested) column chunk prevents tuning row_group_size (relates to)
[C++] Parquet arrow::Table reads error when overflowing capacity of BinaryArray (relates to)

Note: This issue was originally created as ARROW-5030. Please see the migration documentation for further details.

In case someone wants to load a pandas dataframe I want to share my workaround.
For me installing fastparquet and specifying the eninge='fastparquet' argument in the load_parquet function worked.

In case someone wants to load a pandas dataframe I want to share my workaround.
For me installing fastparquet and specifying the eninge='fastparquet' argument in the load_parquet function worked.

Concurring. If the parquet file contains a dictionary/list/struct, then the following
import pandas as pd
df = pd.read_parquet(parquet_path)

throws an error "ArrowNotImplementedError: Nested data conversions not implemented for chunked array outputs"
But only if the parquet file is over 1 GB. If it is under 1 GB, then it loads with no problems.


revert commits since

Reverting the filter since its not working correctly, will start up a new branch that focuses on the fix...
This is just to clear the error for now

Part 1 - need to filter/ stop the task once it hits target date


For Java 9+, flag usages of Iterators.forEnumeration

Filed a corresponding PR with Guava: google/guava#3382.

Thank you for your contribution @Stephan202!


chore: rename LocalRing to IsLocalRing

Co-authored-by: Javier López-Contreras

@j-loreaux ?! Did you forget to submit your review, maybe?

oops sorry.

Adding those deprecated aliases took me 20min by hand. I did it this time, but we have to find an automated way to do this.


Fake schema generating always the same name

I'd like to use the Schema generation (and transformation) as part of my Unit Testing. However, it appears that data produced through a schema (requesting a single item) always returns the same result.
To Reproduce
import net.datafaker.providers.base.BaseFaker;
import net.datafaker.transformations.JsonTransformer;
import net.datafaker.transformations.Schema;
import static net.datafaker.transformations.Field.field;

import java.util.Random;
public class MethodMatch {

    public static void main(String[] args) {
        BaseFaker faker = new BaseFaker(new Random(100L));
        Schema<Object, ?> schema = Schema.of(
            field("Text", () -> faker.name().firstName()),
            field("Bool", () -> faker.bool().bool())
        );

        JsonTransformer<Object> transformer = JsonTransformer.builder().build();
        String json = transformer.generate(schema, 1);

        System.out.println(json);

    }

}

The result for every execution is:
{"Text": "Dion", "Bool": false}
Is it possible to have different (random) data when requesting a single item:
 String json = transformer.generate(schema, 1);
I'm using version 1.9.0
Thanks

If your random seed is static wouldn't that be expected? (Note I haven't tested or played with this functionality, so I'm kinda guessing but that stands out.)

That's the idea of repeatability feature: if something is invoked for thesame seed in your case new Random(100L) after same steps the result will be same.
If you want to have different result each time and do not case about repeatability then just use ThreadLocalRandom.current() like
    public static void main(String[] args) {
        BaseFaker faker = new BaseFaker(ThreadLocalRandom.current());
        Schema<Object, ?> schema = Schema.of(
            field("Text", () -> faker.name().firstName()),
            field("Bool", () -> faker.bool().bool())
        );

        JsonTransformer<Object> transformer = JsonTransformer.builder().build();
        String json = transformer.generate(schema, 1);

        System.out.println(json);
    }

Thanks for your feedback! Indeed I was just replying that I'm unable to change the seed as in the real example I'm attaching a static schema to my Java Beans. With your suggestion it works perfectly thanks!
public class CustomerSchema {
      public static Schema<Object, ?> defaultSchema() {
         var faker = new Faker(Locale.getDefault(), ThreadLocalRandom.current());
            return Schema.of(
            field("name", () -> faker.name().firstName()),
            field("surname", () -> faker.name().lastName())
            );
     }

}

@FakeForSchema("com.sample.model.CustomerSchema#defaultSchema")
public class Customer {
}


Implement local cache for crowdsec

https://github.com/fbonalair/traefik-crowdsec-bouncer/pull/32
With better implementation
3 mode:

stream mode: use /decisions/stream to get in cache the decisions.
live mode: like before but with cached response from crowdsec
none mode: like before (every request ask crowdsec)

Hey, thanks for choosing my MR, the other one is made by a friend. We have a different approach to it, so you can go look at it too.
I have fixed all the issues you brought up, but one of them is not understandable to me.
Another point about the 403 return in case of the cache stream update fail. In your previous comment, you said "crash the bouncer" and in you PR comment "return 403 on /healthz", I choose the second, feel free to tell me the opposite was the good answer.


Feature request: Extend example to show window resize

Change application to demonstrate how content is adapted to window size. Demonstrate a responsive design.

Should be covered by bootstrap CDN.


Autowire sqlSessionFactory

Hello @davsclaus , is it enough? or the camel-spring-boot component has to be generated again?

there is a bot for regen SB so if anything is needed it will send a PR automatic


[BUG] directives are not working whiling making a dom piece as a variable in setup

it seems directives are not working whiling making a dom piece as a variable in setup
// working
setup() {
  const show = ref(false)
  return () => {

test

  }
}

// not working
setup() {
  const show = ref(false)
  const dShow =

  return () => dShow
}

setup could only execute one time.

@linkscope got it, thank you!


[SUGGESTION] Export the application's logic out of the main.py file.

In professional programming, it is good to keep the program's logic inside another file. I would like you to do that.

Okay, I will fix it @CadmiumC4 , thank you for your feedback.

In professional programming, it is good to keep the program's logic inside another file. I would like you to do that.

Thank you for your contribution. I seperated main and interface files.


exception when writing files to the devfs

When run against the ios simulator, I get an exception when writing files to the devfs. This is reproducible by running flutter run --devfs. I can write a file (foo.txt) w/o a directory; anything with a directory in the path fails (foo/bar.txt). I suspect that the parent directories need to be created.
vm-service: Error: Unhandled exception:
	FileSystemException: Cannot open file, path = '/Users/.../BC0CC205-716F-4FCD-914C-589FDF557E73/tmp/flutter_gallery0Gmu7N/lib/demo/all.dart' (OS Error: No such file or directory, errno = 2)
	#0      _File.open.<anonymous closure> (file_impl.dart:356)
	#1      _RootZone.runUnary (dart:async/zone.dart:1683)
	#2      _FutureListener.handleValue (dart:async/future_impl.dart:131)
	#3      _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:637)
	#4      _Future._propagateToListeners (dart:async/future_impl.dart:667)
	#5      _Future._completeWithValue (dart:async/future_impl.dart:477)
	#6      _Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:528)
	#7      _microtaskLoop (dart:async/schedule_microtask.dart:41)
	#8      _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)
	#9      _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
	#10     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)

Note that after this exception the service protocol no longer responds to requests (though the websocket is still live.
For android devices, the exception is:
E/DartVM  : vm-service: Error: Unhandled exception:
E/DartVM  : FileSystemException: Creation of temporary directory failed, path = '/data/local/tmp' (OS Error: Permission denied, errno = 13)
E/DartVM  : #0      _Directory.createTemp.<anonymous closure> (directory_impl.dart:128)
E/DartVM  : #1      _RootZone.runUnary (dart:async/zone.dart:1683)
...

@turnidge @johnmccutchan

https://codereview.chromium.org/2157013002
https://codereview.chromium.org/2156243002/


feat(dashboard):: scaffold experience

content and styling for experiences

:tada: This PR is included in version 1.9.1 :tada:
The release is available on:

GitHub release
v1.9.1

Your semantic-release bot :package::rocket:


Top level filtering by platform

Being able to do:
sh build.sh -t buildall
but specifying platform would be very useful.

@chamons  this is not something we are planning to do at this stage i'm afraid but thank you for your suggestion.


Minor code cleanup in JGroups/Infinispan subsystems

Linux Build 5996 is now running using a merge of 3bfb59ceb90c2fe4db7b2db87ca3d493d7188607

Windows Build 1109 is now running using a merge of 3bfb59ceb90c2fe4db7b2db87ca3d493d7188607

Linux with security manager Build 975 is now running using a merge of 3bfb59ceb90c2fe4db7b2db87ca3d493d7188607

Linux with security manager Build 975 outcome was SUCCESS using a merge of 3bfb59ceb90c2fe4db7b2db87ca3d493d7188607
Summary: Tests passed: 840, ignored: 319 Build time: 0:04:59

Linux Build 5996 outcome was SUCCESS using a merge of 3bfb59ceb90c2fe4db7b2db87ca3d493d7188607
Summary: Tests passed: 2929, ignored: 314 Build time: 0:47:23

Windows Build 1109 outcome was FAILURE using a merge of 3bfb59ceb90c2fe4db7b2db87ca3d493d7188607
Summary: Tests failed: 1 (1 new), passed: 2928, ignored: 314 Build time: 0:51:24
Build problems:
Failed tests detected
Failed tests
org.jboss.as.test.integration.ejb.stateful.passivation.PassivationTestCase.testPassivationMaxSize: java.lang.reflect.UndeclaredThrowableException: null
	at com.sun.proxy.$Proxy62.runTestMethod(Unknown Source)
	at org.jboss.arquillian.protocol.jmx.JMXMethodExecutor.invoke(JMXMethodExecutor.java:77)

Unrelated failure.  See https://issues.jboss.org/browse/WFLY-4100

Windows Build 1126 is now running using a merge of 3bfb59ceb90c2fe4db7b2db87ca3d493d7188607

Windows Build 1126 outcome was SUCCESS using a merge of 3bfb59ceb90c2fe4db7b2db87ca3d493d7188607
Summary: Tests passed: 2928, ignored: 314, muted: 1 Build time: 0:52:43

Windows Build 1129 is now running using a merge of e438a4c17a0eb632102c150a434134e971e9f589

Linux Build 6015 is now running using a merge of e438a4c17a0eb632102c150a434134e971e9f589

Linux with security manager Build 994 is now running using a merge of e438a4c17a0eb632102c150a434134e971e9f589

Linux with security manager Build 994 outcome was SUCCESS using a merge of e438a4c17a0eb632102c150a434134e971e9f589
Summary: Tests passed: 840, ignored: 319 Build time: 0:05:02

Windows Build 1129 outcome was SUCCESS using a merge of e438a4c17a0eb632102c150a434134e971e9f589
Summary: Tests passed: 2929, ignored: 314 Build time: 0:47:05

Linux Build 6015 outcome was SUCCESS using a merge of e438a4c17a0eb632102c150a434134e971e9f589
Summary: Tests passed: 2929, ignored: 314 Build time: 0:47:44


Find a way to display full output/error when forked process fails

As reported in this forum thread: http://glu.977617.n3.nabble.com/Glu-truncates-script-output-td4026892.html what happens is that ShellExec catches any error and throws an exception with an excerpt of the output and error (while preserving full output and error). There is currently no way to get a hold of the full output or error.

We have a similar issue. I think the current approach we (at Skyhigh Networks) should take is to catch the shell exec exception in the groovy script and have this print the tail of the python or whatever script (being called). I'm not sure it is desirable to modify the agent code to do that automatically modifying the default behavior of ShellExec. One option on the Glu Agent side could be to extend the ShellExec with a new option to throw the output of the called process with the current line number in the groovy script and the command line that was called. In that case capturing the output and present it to the stack trace is not necessarily trivial or desirable to implement directly in the agents either.


Enable Discussions for the alertmanager repo

We have(1) a(2) number(3) of issues that look more like feature requests than actual issues.
In an attempt to reduce noise and prioritise work better could we follow the same Prometheus model for discussions so that we can start encouraging folks to upvote the features they'd like to see the most in the Alertmanager?
See https://github.com/prometheus/prometheus/discussions for the current Prometheus model. The only change I'd suggest is that instead of "ideas" we have a more explicit approach and use "feature requests".

As an alternative, if the general consensus is that scanning the GH discussions might be more a best-effort thing we could simply define a feature request template like

I opened the Discussions thing for this repo.

Should I move this issue to discussions? It seems more like a feature request than an actual issue :p

Thanks @RichiH !


[material-ui] Convert Material UI components to support CSS extraction

Contribution is welcome
The focus of Material UI v6 is to support static CSS extraction, and we are excited to invite the community to be a part of it!
For short context, the static extraction is done by our in-house styling-engine package, aka Pigment CSS. You can think of it as a replacement for Emotion/Styled-components. We will need to add an intermediate path to let the components support both Pigment CSS and Emotion.
The goal of this issue is to track the progress of the work with guidance on how to contribute and check the result. Explanation about Pigment CSS is out-of-scope.
Contributing

Pick a component from the Ready-to-take section below. Tag @siriwatknp in the comment to assign to you (for example, if you take Accordion, Accordion* must be included in your PR).

Fork the repo (if you are a new contributor, please check the contributing first) and open the component implementation, e.g. packages/mui-material/src/Avatar/Avatar.js.

Change the path import of these APIs, styled, useThemeProps, keyframes to ../zero-styled:
…
- import styled from '../styles/styled';
- import useThemeProps from '../styles/useThemeProps';
+ import { styled, createUseThemeProps } from '../zero-styled';
…the rest of the imports

const useThemeProps = createUseThemeProps('MuiAvatar');

…

💡 For useThemeProps, replace it with createUseThemeProps and call the function with a string that has the same value as useThemeProps({ props: inProps, name: <string> }) in the component implementation. Take a look at the Alert PR for example.

Ensure that the Component.propTypes is followed by /* remove-proptypes */ directive.

Check the component before attaching properties, e.g. in Divider:
// packages/mui-material/src/Divider/Divider.js:222
- Divider.muiSkipListHighlight = true;
+ if (Divider) {
+   Divider.muiSkipListHighlight = true;
+ }

Update styles implementation, see Converting styles below

Converting styles
Most of the time, you will have to convert styles interpolation to variants.

Move ownerState from the root style argument callback to variants
Before:
const AccordionRoot = styled(Paper, {
 …
})({ theme, ownerState }) => ({
    ...(!ownerState.square && {
      borderRadius: 0,
      '&:first-of-type': {
        borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
        borderTopRightRadius: (theme.vars || theme).shape.borderRadius,
      },
      '&:last-of-type': {
        borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
        borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
        // Fix a rendering issue on Edge
        '@supports (-ms-ime-align: auto)': {
          borderBottomLeftRadius: 0,
          borderBottomRightRadius: 0,
        },
      },
    }),
    ...(!ownerState.disableGutters && {
      [`&.${accordionClasses.expanded}`]: {
        margin: '16px 0',
      },
    }),
  })

After:
const AccordionRoot = styled(Paper, {
 …
})({ theme }) => ({ // there must be NO `ownerState` here.
    variants: [
      {
        props: { square: false },
        style: {
          borderRadius: 0,
          '&:first-of-type': {
            borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
            borderTopRightRadius: (theme.vars || theme).shape.borderRadius,
          },
          '&:last-of-type': {
            borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
            borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
            // Fix a rendering issue on Edge
            '@supports (-ms-ime-align: auto)': {
              borderBottomLeftRadius: 0,
              borderBottomRightRadius: 0,
            },
          },
        },
      },
      {
        props: { disableGutters: false },
        style: {
          [`&.${accordionClasses.expanded}`]: {
            margin: '16px 0',
          }
        }
      }
    ]
  })

Use Object.entries(theme.palette) to populate colors
Before:
({ theme, ownerState }) => {
  return {
    ...theme.typography.body2,
    backgroundColor: 'transparent',
    display: 'flex',
    padding: '6px 16px',
    ...(ownerState.color &&
      ownerState.variant === 'standard' && {
        color: theme.vars
          ? theme.vars.palette.Alert[`${color}Color`]
          : getColor(theme.palette[color].light, 0.6),
        backgroundColor: theme.vars
          ? theme.vars.palette.Alert[`${color}StandardBg`]
          : getBackgroundColor(theme.palette[color].light, 0.9),
        [`& .${alertClasses.icon}`]: theme.vars
          ? { color: theme.vars.palette.Alert[`${color}IconColor`] }
          : {
              color: theme.palette[color].main,
            },
      }),
}

After:
({ theme, ownerState }) => {
  return {
    ...theme.typography.body2,
    backgroundColor: 'transparent',
    display: 'flex',
    padding: '6px 16px',
    variants: [
      ...Object.entries(theme.palette)
        .filter(([, value]) => value.main && value.light) // check all the used fields in the style below
        .map(([color]) => ({
          props: { colorSeverity: color, variant: 'standard' },
          style: {
            color: theme.vars
              ? theme.vars.palette.Alert[`${color}Color`]
              : getColor(theme.palette[color].light, 0.6),
            backgroundColor: theme.vars
              ? theme.vars.palette.Alert[`${color}StandardBg`]
              : getBackgroundColor(theme.palette[color].light, 0.9),
            [`& .${alertClasses.icon}`]: theme.vars
              ? { color: theme.vars.palette.Alert[`${color}IconColor`] }
              : {
                  color: theme.palette[color].main,
                },
          },
        })),
    ]
}

Example: https://github.com/mui/material-ui/pull/41230/files?diff=unified&w=0#diff-c2a97485bf897f10a4ae2116d86ea7d6eaed078be9781d4181b1a5bbf02ae170R60-R77

Render demos

pnpm install once
Run the script using node scripts/pigmentcss-render-mui-demos.mjs react-alert (replace react-alert with the component you are working on; the react-* must be one of https://mui.com/material-ui/*
Update the component and build all packages once with pnpm build. (If you update the component again, you only need to build mui-material package with pnpm --filter @mui/material run build)
cd apps/pigment-css-next-app && pnpm dev
Open localhost:3000/material-ui/react-<component> to check the result
Attach the screenshot or recording to the PR.
If you encounter any errors, please attach a screenshot of the error in the PR comment. (Feel free to open the PR even if you got an error)

Open a PR

using a title [material-ui][<Component>] Convert to support CSS extraction
Tag @siriwatknp to review
The argos CI should be green (this ensures that it still works with emotion/styled-components)

Ready-to-take Components

[x] Accordion https://github.com/mui/material-ui/pull/41221

AccordionActions
AccordionDetails
AccordionSummary

[x] Alert https://github.com/mui/material-ui/pull/41230

AlertTitle

[x] AppBar https://github.com/mui/material-ui/pull/41247
[x] Autocomplete https://github.com/mui/material-ui/pull/40330
[x] Avatar https://github.com/mui/material-ui/pull/40324
[x] AvatarGroup https://github.com/mui/material-ui/pull/41485
[x] Backdrop https://github.com/mui/material-ui/pull/41581
[x] Badge https://github.com/mui/material-ui/pull/40213

[x] render demos https://github.com/mui/material-ui/pull/41353

[x] BottomNavigation https://github.com/mui/material-ui/pull/41612

BottomNavigationAction

[x] Breadcrumbs (assigned to @aacevski) https://github.com/mui/material-ui/pull/41496
[x] Button (assigned to @siriwatknp) https://github.com/mui/material-ui/pull/41378

ButtonBase
TouchRipple

[x] ButtonGroup (assigned to @zanivan) https://github.com/mui/material-ui/pull/41666
[x] Card (assigned to @aacevski) https://github.com/mui/material-ui/pull/41580

CardActionArea
CardActions
CardContent
CardHeader
CardMedia

[ ] Checkbox (assigned to cu8code)
[x] Chip (assigned to @DiegoAndai) https://github.com/mui/material-ui/pull/41592
[ ] CircularProgress (contains keyframes, switch to template string, assigned to @siriwatknp)
[x] Divider https://github.com/mui/material-ui/pull/41366
[ ] Fab
[x] FormControl https://github.com/mui/material-ui/pull/41613

FormControlLabel

[x] FormGroup https://github.com/mui/material-ui/pull/41614
[ ] Icon (has .muiName attached)
[ ] IconButton
[x] MobileStepper https://github.com/mui/material-ui/pull/41533
[x] Modal https://github.com/mui/material-ui/pull/41483
[ ] PaginationItem
[ ] Radio
[ ] Select
[x] Stepper https://github.com/mui/material-ui/pull/41546

StepButton
StepConnector
StepContent
StepIcon
StepLabel
Step

[ ] SvgIcon
[x] Switch https://github.com/mui/material-ui/pull/41367 (@alexfauquette)
[ ] ToggleButton

ToggleButtonGroup

Will be done by a Codemod

[ ] FormHelperText
[ ] ImageList

ImageListItem
ImageListItemBar

[ ] ListItem

ListItemAvatar
ListItemButton
ListItemIcon
ListItemSecondaryAction
ListItemText
ListSubheader

[ ] Rating
[ ] Table

TableBody
TableCell
TableContainer
TableFooter
TableHead
TablePagination
TableRow
TableSortLabel

[ ] Toolbar

Waiting for 👍

[ ] Link

Need solution for extendSxProp

[ ] Typography

Need solution for extendSxProp

[ ] Dialog (contains useTheme())

DialogActions
DialogContent
DialogContentText
DialogTitle

[ ] Drawer (contains RTL logic)
[ ] Input (has .muiName attached)

InputAdornment
InputBase << needs GlobalStyles

[ ] FilledInput (has .muiName attached) https://github.com/mui/material-ui/pull/41663 @mj12albert
[ ] OutlinedInput (has .muiName attached)
[ ] TextField
[ ] TablePagination

InputLabel

[ ] Menu (contains useTheme())

MenuItem
MenuList

[ ] LinearProgress (wait for POC from CircularProgress)
[ ] Paper - uses useTheme
[ ] Skeleton (wait for POC from CircularProgress)
[ ] Snackbar (contains useTheme())

SnackbarContent

[ ] SpeedDial (contains useTheme())

SpeedDialAction
SpeedDialIcon

[ ] Tabs (contains RTL logic)

TabScrollButton
Tab

[ ] Tooltip (contains RTL logic)
[ ] Box
[ ] Stack
[ ] Container
[ ] Grid

Hey @siriwatknp on step 4 of Render demos, shouldn't it be cd apps/pigment-css-next-app && pnpm install && pnpm dev
 instead of cd apps/pigment-next-app && pnpm install && pnpm dev?

@siriwatknp would like to take Checkbox

I assigned the breadcrumbs to myself to work on them this week 👍🏼

I assigned the Breadcrumbs component to myself to work on them this week 👍🏼

@DiegoAndai the Breadcrumbs was taken by aacevski a while ago https://github.com/mui/material-ui/pull/41496

@siriwatknp would like to work on Checkbox

Assigned, thanks!

@DiegoAndai the Breadcrumbs was taken by aacevski a while ago https://github.com/mui/material-ui/pull/41496

😅
@siriwatknp is the Chip taken? If not, I can take it.

I'd like to take Popover. 🚀

is the Chip taken? If not, I can take it.

Assigned.

Next up, I'd like to work on the Card component.

Assigned.

@siriwatknp which one can I take next?

I'd like to work on the Backdrop component next. :100:

@siriwatknp which one can I take next?

Assigned ButtonGroup to you.

I'd like to work on FormControl next up. 🙌🏼

Can I pick up toolbar?

I've assigned myself Paper to work on!
For FilledInput (PR), we don't have a dedicated docs page/demo, how can we progress this? @siriwatknp

Can I pick up toolbar? @siriwatknp

Please do, thanks!

Hi @siriwatknp
I'm working on a project dependent on MUI and we would need the zero runtime CSS for a next step in the project.
We're happy to contribute with our time to the MUI repo with the rewrite if it can help to speed up the works and the new version release.
But basically wondering if us spending some extra time will actually make things faster or is there a fixed release schedule anyway?

@siriwatknp I'll take the Select-component

@siriwatknp I'll take the Select-component. Should I also change the NativeSelectInput or is that something for the Input-component.

The Input needs a GlobalStyles (not done yet). Can you pick one from the "Ready-to-take Component".

@siriwatknp I was wondering myself why the Select component was in the ready to take section. Then just assign me a component and I can work through it. Thanks

Hi @siriwatknp I'm working on a project dependent on MUI and we would need the zero runtime CSS for a next step in the project. We're happy to contribute with our time to the MUI repo with the rewrite if it can help to speed up the works and the new version release. But basically wondering if us spending some extra time will actually make things faster or is there a fixed release schedule anyway?

Thanks! We aim for May but it's not a fixed schedule. The faster we finish this issue, the faster we can do the stable release.

@siriwatknp I'll work on the ToggleButton component.

@siriwatknp I'll work on the ToggleButton component.

Thanks! assigned.

@siriwatknp I would like to work on the Radio next.

@siriwatknp I've taken the liberty to convert the PaginationItem component
#41844

@siriwatknp
cc @oliviertassinari
pinning this issue might help to attract more attention to it as currently, only https://github.com/mui/material-ui/issues/30660 is pinned, so there's plenty of space there

@siriwatknp I would like to work on the Icon next.

@siriwatknp I would like to work on the Icon next.

Hey, thanks for asking but the rest will be done by the codemod. Thank you so much!


image references file

Description
NETOBSERV-1467 - it appears we need this file to pass operand images to  be able to build pre-merge images
See this WIP PR: https://github.com/openshift/release/pull/48224, the e2e-test failed with error when trying to have flowlogs-pipeline as input.
  * could not resolve inputs: could not determine inputs for step [input:flowlogs-pipeline]: could not resolve base image from ocp/latest:flowlogs-pipeline: imagestreamtags.image.openshift.io "latest" not found

Dependencies

n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

[ ] Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
[ ] Does this PR require product documentation?

[ ] If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.

[ ] Does this PR require a product release notes entry?

[ ] If so, fill in "Release Note Text" in the JIRA.

[ ] Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.

[ ] If so, make sure it is described in the JIRA ticket.

QE requirements (check 1 from the list):

[ ] Standard QE validation, with pre-merge tests unless stated otherwise.
[ ] Regression tests only (e.g. refactoring with no user-facing change).
[x] No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

/test e2e-operator

It seems common to put this file under the manifests folder. I would suggest to do so
https://github.com/netobserv/network-observability-operator/pull/553/commits/3a1e178b9bc8f3e2e08efc7b6002eaade885ca6d
https://github.com/openshift/cluster-monitoring-operator/blob/master/manifests/image-references
https://github.com/openshift/cloud-credential-operator/blob/master/manifests/image-references

/lgtm


Simulation Class

Initializations

Initialize DFBA instance
Initialize RL instance
Initialize ModelTable instance
Initialize ResultTable instance (for logging)

Inject the RL instance into the DFBA instance


[public report]: No formatting on Marketplace and Challenge prompts

User Impacted
0xc6Ac8FC10242771eA79B1Bdbb4d72f775AF9587F
Discord ID (including number)
danner.eth
Workflow Impacted
Brainstorm
Feature Impacted
Launch Challenge
Issue description

I used line breaks and tried dashes/asterisks to see if markdown works.
Everything ending up jumbled together
would be good to expand/collapse too
https://beta.metricsdao.xyz/app/brainstorm/m/0x2a7448ed25104ee6c470b28b1772c7d2da3c93c7
see comments
Blocking
no it is not
Relevant log output
No response

markdown or HTML, anything -- want by public GTM basically end of Feb

@sebruiz saw this marked closed, is it done done?


Print the package along with the task when running jobs

Makes it easier to debug

Another thing that might help is adding some sort of red message after each failure to help when scrolling through a bunch of them, but for another PR :)

Ha! That's the NEXT thing I was going to do!


Update geom.go

Added public access to points and lengths back from dhconnely to the patrick-higgins fork.
Either this, or making p and q exposed publicly, are very helpful for a lot of use cases of the rtree structure.

Sorry, I figured this was ignored and have been modifying my branch for some experimental asynchronous things without regard for this pr. The comments are there as a history for myself of the original impl.


Adpative card version 1.5 Table is not rendering in WebChat

Is it an issue related to Adaptive Cards?
Yes, this is an Adaptive Card issue, however it only repro on Web Chat.
Is this an accessibility issue?
No
What version of Web Chat are you using?
Latest production
Which distribution are you using Web Chat from?
Bundle (webchat.js)
Which hosting environment does this issue primarily affect?
Web apps
Which browsers and platforms do the issue happened?
No response
Which area does this issue affect?
Attachment: Adaptive Card
What is the public URL for the website?
No response
Please describe the bug
Tables are a feature that surfaced in adaptive card version 1.5. But they are not rendering in WebChat. They also do not work in Test in WebChat, Emulator or Composer.
Below is the sample JSON structure of the adaptive card.
Do you see any errors in console log?
No response
How to reproduce the issue?
Test by sending above adaptive card using type Table.
What do you expect?
To render card and table correctly.
What actually happened?
Web Chat and Test in Web Chat give a friendly error:

Emulator and Composer give an empty response:

Do you have any screenshots or recordings to repro the issue?
No response
Adaptive Card JSON
{
  "type": "AdaptiveCard",
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.5",
  "body": [
    {
      "type": "Table",
      "columns": [
        {
          "width": 1
        },
        {
          "width": 1
        },
        {
          "width": 1
        }
      ],
      "rows": [
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "11",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "111",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "1111",
                  "wrap": true
                }
              ]
            }
          ]
        },
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "22",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "222",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "2222",
                  "wrap": true
                }
              ]
            }
          ]
        },
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "33",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "333",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "3333",
                  "wrap": true
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Additional context
Does not reproduce in Adaptive Cards Designer.

@compulim - Can you take a look at this?

@dmvtech The readme says that only 1.3 is supported for Bot Framework. The [Adaptative Card Designer[(https://adaptivecards.io/designer) says the same.

Any update on this issue and resolution? I'm experiencing the same issue.  Can add the attachment but it does not render in the Web Chat or Emulator, instead we see a blank bubble.

@dmvtech The readme says that only 1.3 is supported for Bot Framework. The Adaptative Card Designer says the same.

1.5 is supported now as of 4.15.8


Components requiring state can only document scoping requirements, bot developer has configure correctly

Under this new design a component indicates it needs one or more pieces of state by requiring IStatePropertyAccessor<T> parameters to its constructor. One of the points I was trying to make against this design is that it puts the burden on the bot developer to create these "properties" up front, hold on to them and somehow pass them into each piece of middleware during the configuration phase and eventually the bot (which still hasn't been sorted out AFAICT).
The bigger problem that I wanted to call out in this specific issue is that there's no way, unless you go read some documentation, to know what state scope to create an accessor under for a given component. User? Conversation? Bot? You can't tell what the requirement is just from the type information.
The side effect of this is that, if the developer creates the property under the incorrect scope, the behavior of the component will likely be completely wrong. Worse, consider a scenario where the component is expecting to store its properties in Conversation scope, but the developer registers it in Bot scope. This would likely leak information from one conversation to another which would obviously be bad.

Thanks for the feedback.  We agree.  Moving to backlog for consideration

Closing as part of R10 triage.


[DEFECT] Genetic Algorithm Constraint (implicit) is ignored for 'logistic' fitness

Thank you for the defect report

[X] I am using the latest version of RAVEN.
[X] I have read the Wiki.
[X] I have created a minimum, reproducible example
that demonstrates the defect.

Defect Description

Genetic Algorithm Constraint (implicit) is ignored for 'logistic' fitness
In addition, the manual is not very clear on the Constraint formulation...there is some info in the fitness section but in the constraint section the constraint is still reported as "boolean" (see previous issue https://github.com/idaholab/raven/issues/2053)

Steps to Reproduce
N/A
Expected Behavior
usage of constraint or error at the initialization stage if constraint (implicit) is used with logistic fitness
Screenshots and Input Files
No response
OS
Linux
OS Version
No response
Dependency Manager
PIP
For Change Control Board: Issue Review

[ ] Is it tagged with a type: defect or task?
[ ] Is it tagged with a priority: critical, normal or minor?
[ ] If it will impact requirements or requirements tests, is it tagged with requirements?
[ ] If it is a defect, can it cause wrong results for users? If so an email needs to be sent to the users.
[ ] Is a rationale provided? (Such as explaining why the improvement is needed or why current code is wrong.)

For Change Control Board: Issue Closure

[ ] If the issue is a defect, is the defect fixed?
[ ] If the issue is a defect, is the defect tested for in the regression test system?  (If not explain why not.)
[ ] If the issue can impact users, has an email to the users group been written (the email should specify if the defect impacts stable or master)?
[ ] If the issue is a defect, does it impact the latest release branch? If yes, is there any issue tagged with release (create if needed)?
[ ] If the issue is being closed without a pull request, has an explanation of why it is being closed been provided?

I also have this issue, but I don't think it is related to the specific use of logistic fitness. It seems that in all cases the initialization (sampling for first generation) ignores the constraints, as a sampler outside of the optimizer is required for initialization. I've opened a TASK to see if samplers could be given constraints as well.


Lab 1.4 Deploy service looks weird with numbered task in lays

Might be better instead of using numbers for these:

Use your project
Build the project
...

To use section headers instead, like
Use your project
Build the project

PR https://github.com/RedHatGov/serverless-workshop-dashboard/pull/62

PR Merged


Images in txt2img with SAG are generated differently after generating an image in img2img.

When using SAG, images generated in txt2img after generating an image in img2img will be generated differently.
I've been able to replicate this behaviour following these steps:

Go to txt2img, enter a prompt with SAG enabled and click 'Generate'
Send generated image to img2img and generate click 'Generate'
Go back to txt2img and without changing anything, click 'Generate'

The generated image from txt2img in step 3 will be different from step 1 until either the UI is reloaded, or the app is restarted.
Example generation in txt2img after booting up A1111 UI
Model: revAnimated_v122
Prompt: cat
Negative prompt:
Sampler: DPM++ 2M SDE Karras
Steps 40
Width: 640
Height: 480
CFG scale: 7
Seed 8888
SAG scale: 0.25
SAG Threshold: 1

output:

Example generation in txt2img after generating an image img2img (Identical to previous example)
Model: revAnimated_v122
Prompt: cat
Negative prompt:
Sampler: DPM++ 2M SDE Karras
Steps 40
Width: 640
Height: 480
CFG scale: 7
Seed 8888
SAG scale: 0.25
SAG Threshold: 1

output:

Testing above was done with no other image altering extensions enabled as to make the testing as simple as possible.
This behaviour is seen across other samplers too.
Has anyone else experienced this and does anyone have any ideas?

I'm unsure who will see this first, so I'll mention @Sakura-Luna too as they've been active in trying to get SAG into A1111. Hope you don't mind.
The behaviour above is the same if I apply your own changes to the SAG python files from AUTOMATIC1111/stable-diffusion-webui/pull/10515
Do you have any ideas?


daos: remove --daos-prefix handling

This was previously deprecated and is longer needed. The new way is to use a UNS path:
daos://pool/container/path/to/stuff
Signed-off-by: Dalton Bohning<EMAIL_ADDRESS>

Thanks @adammoody !


Fix for redrawing in terminal vim, don't show useless items in quick fix list

When you run jshint in terminal vim and there aren't any issues the screen is blanked forcing you to manually run redraw. This has been fixed by calling redraw! instead of just redraw.
Don't show empty line or the number of errors in the quick fix list.
Some general cleanup.
Fixes have been tested in terminal vim (iterm2) and gui vim (macvim).

Great, and thanks @antonishen!


tiemstamp converting issue

Steps to reproduce the behavior (Required)

CREATE TABLE '...'
INSERT INTO '....'
SELECT  '....'

Expected behavior (Required)
When I use Timestamp 13 bits converted to timestamp time type (eg:2022-10-10 18:37:04.112), write to build table using Datetime, write to null value.
 receive_time = Timestamp.valueOf(LocalDateTime         .ofInstant(Instant.ofEpochMilli(tmpNode.get("receive_time").asLong), ZoneId.systemDefault()))
Real behavior (Required)
StarRocks version (Required)

You can get the StarRocks version by executing SQL select current_version()

@Aload Can you give more information here?

When I use this timestamp (12 bits) to convert to a time type (2022-02-06xxxx :xx:xx.xxx), I store it in starrocket and write all to null
val receive_time = Timestamp.valueOf(LocalDateTime .ofInstant(Instant.ofEpochMilli(tmpNode.get("receive_time").asLong), ZoneId.systemDefault()))

Please describe the problem in SQL, cause StarRocks only accepts SQL as input.

Please describe the problem in SQL, cause StarRocks only accepts SQL as input.


Canot set selected item

i have question i can't set selected item in dropdown textfield How to?

Hi @rozaqabdul656 ,
Sorry ,i didn't understand
Could you please give me more information about your requirement or share screen record .


ARROW-7836: [Rust] "allocate_aligned"/"reallocate" need to initialize memory to avoid UB

The CI failures are unrelated.  @Marwes @jturner314 are you happy with this solution?

I addressed all the comments.  @jturner314 thank you very much for all your time and help!

I'd prioritize safety over potential performance gains.

Yea, definitely my thinking too.

@andygrove, @nevi-me @sunchao can I get at least one approval from another committer to get this merged if you have a chance?


Always Encrypted Cmdlets

[x] feature
[ ] bug:

System Details
I propose the following improvments

Get-DbaMasterKey We should add these members:

CertificateExists bool if the current user can read the certificate. Probably throws an exception if the answer is maybe, such as a need to ask the Azure Key Vault
GetCertificate should return the certificate in the same object format as New-SelfSIgnedCertificate

Invoke-DbaMasterKeyRotation -Database string|SmoDatabase|SqlClientConnection [-OldKey string|Certificate|MasterKey] -NewKey string|Certificate|MasterKey [-ColumnKeys IList<string>] If you don't list the CEKs it will rotate for every column that the master key has. If you don't specify the old key, its going to replace all certificates for all master keys.
Set-SqlColumnEncryption2 A pure T-sql version of this function with more debugging and such.

hey @zippy1981 - thanks for the info! We actually have some encryption commands in the develoment branch. Can you take a look and let me know what you think of what we've got so far? We're still testing/fixing a couple, can't recall which ones tho lol. It's been a furious coding storm the past couple weeks.
PS C:\github\dbatools> Get-Command -Module dbatools -Type Function *masterKe* | select name

Name
----
Get-DbaMasterKey
New-DbaMasterKey
Remove-DbaMasterKey

PS C:\github\dbatools> Get-Command -Module dbatools -Type Function *certificate* | select name

Name
----
Export-DbaCertificate
Get-DbaCertificate
Import-DbaCertificate
New-DbaCertificate
Remove-DbaCertificate

The masterkey rotation looks cool, as does the Set-DbaColumnEncryption.

The DbaCertificate functions wont work with alwaysencrypted certificates as far as I can tell, but thats how it should be. The AlwaysEncryptedverts are  not stored in the DB.
GetDbaCertificate is pretty much what I envisioned. I'll see if SMO can pull the actual cert if the user has access to it
I'll probably close this ticket soon and open up some smaller more specific ones.

@cl updated base ticket.

Doing #5639 brings us closer to this.

The thing is the sqlerver module makes the CMKs, CEKs and encrypts the columns. So what do we want to achieve?

[ ] Get an unencrypted CEK from the DB
[ ] Get-DbaColumnMasterKeys should query sys,column_master_keys and see if it can retrieve the key (and have a -IncludeCert to actually include the Cert as a property
[ ] Invoke-DbaRotateCMK would take a Certificate or CMK as a parameter, rotate the CMK into the CEK, and then rotate the old CEK out with options to -DeleteOldCmk -DeleteOldCertificate

Also we need Azure Keyvault functionality. AzureRM is probably the best tool for that.

Cleaning up issues...
Someone wants to tackle this can re-open it.


Pylint information is not showing in VSCode

Issue Type: Bug
Setup:

Running MacOSCatalina (10.15.3)
Running VS code
Using virtual environment

Steps to reproduce:

Install Python extension in VSCode
Select python3 virtual environment as interpreter
Select Pylint as linter
Install pylint when prompted
Enable linting
Create syntax error (like removing the closing parenthesis on a class definition)
Observe no output in PROBLEMS tab

I have installed pylint in my virtualenv. I can see that it is being run correctly in the Developer tools window (using the correct virtualenv):
[Extension Host] Info Python Extension: 2020-05-19 16:18:22: Cached data exists getEnvironmentVariables, /Users/chrisgravel/dev/test_folder/manager/module/file_with_syntax_errors.py
console.ts:137 [Extension Host] Info Python Extension: 2020-05-19 16:18:22: > ~/.virtualenvs/p3/bin/python ~/.vscode/extensions/ms-python.python-2020.5.80290/pythonFiles/pyvsc-run-isolated.py pylint --indent-string="    " --max-line-length=99 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/dev/test_folder/manager/module/file_with_syntax_errors.py
console.ts:137 [Extension Host] Info Python Extension: 2020-05-19 16:18:22: cwd: ~/dev/test_folder
console.ts:137 [Extension Host] Info Python Extension: 2020-05-19 16:18:22: > ~/.virtualenvs/p3/bin/python ~/.vscode/extensions/ms-python.python-2020.5.80290/pythonFiles/pyvsc-run-isolated.py pylint --indent-string="    " --max-line-length=99 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/dev/test_folder/manager/module/file_with_syntax_errors.py
console.ts:137 [Extension Host] Info Python Extension: 2020-05-19 16:18:22: cwd: ~/dev/test_folder

I've tested that the command produces what I believe to be the expected output:
@chrisgravel-macbookpro[/Applications/Visual Studio Code.app/Contents/MacOS] ✔ ~/.virtualenvs/p3/bin/python ~/.vscode/extensions/ms-python.python-2020.5.80290/pythonFiles/pyvsc-run-isolated.py pylint --indent-string="    " --max-line-length=99 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/dev/test_folder/manager/module/file_with_syntax_errors.py
************* Module module.file_with_syntax_errors
12,59,error,syntax-error:invalid syntax (<unknown>, line 12)

The problem is that I don't see this output in the PROBLEMS tab of my console in Vscode.
Extension version: 2020.5.80290
VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:33:47.663Z)
OS version: Darwin x64 19.3.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
32.00GB (18.59GB free)

Process Argv
-psn_0_53261

Screen Reader
no

VM
0%

Thanks for letting us know about this, @cpagravel.  It looks like your "expected output" example is using a different venv than the log data shows.  What happens when you run that manually?  (~/.virtualenvs/keysight/bin/python -m pylint --indent-string="    " --max-line-length=99 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/dev/test_folder/manager/module/file_with_syntax_errors.py)
Also, are you using any pylint plugins or a custom pylint config?  What's in your workspace settings.json and in your pylint config file?

Hi @ericsnowcurrently thanks for getting back to me so quickly. I see how that information I provided is confusing. I tried both virtual environments. I'll edit my message with logs from the p3 virtualenv.
I am not using any pylint plugins, I only have a the single Python plugin. I had another python plugin Python for VSCode but removed it in favor of the Python plugin due to popularity and it being maintained by Microsoft.
Inside settings.json
{
  "python.pythonPath": "/Users/chrisgravel/.virtualenvs/p3/bin/python",
  "python.linting.pylintEnabled": true,
  "python.linting.enabled": true
}

Aha. The issue is my pylintrc file, the issue resolved after I removed it. Here is my .pylintrc file:
[MASTER]

# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
extension-pkg-whitelist=

# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS

# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
ignore-patterns=

# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=

# Use multiple processes to speed up Pylint.
jobs=2

# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins=pylint.extensions.docparams

# Pickle collected data for later comparisons.
persistent=yes

# Specify a configuration file.
#rcfile=

# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no

[MESSAGES CONTROL]

# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
confidence=

accept-no-raise-doc=no
accept-no-return-doc=no

# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once).You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=all

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
enable=missing-return-type-doc,missing-return-doc,missing-param-doc,missing-type-doc,missing-docstring,redundant-returns-doc,redefined-outer-name,unused-import,relative-import,unused-import,missing-raises-doc,missing-raises-type-doc

[REPORTS]

# Python expression which should return a note less than 10 (10 is the highest
# note). You have access to the variables errors warning, statement which
# respectively contain the number of errors / warnings messages and the total
# number of statements analyzed. This is used by the global evaluation report
# (RP0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)

# Template used to display messages. This is a python new-style format string
# used to format the message information. See doc for all details
#msg-template=

# Set the output format. Available formats are text, parseable, colorized, json
# and msvs (visual studio).You can also give a reporter class, eg
# mypackage.mymodule.MyReporterClass.
output-format=text

# Tells whether to display a full report or only the messages
reports=no

# Activate the evaluation score.
score=yes

[REFACTORING]

# Maximum number of nested blocks for function / method body
max-nested-blocks=5

# Minimum line length for functions/classes that require docstrings, shorter
# ones are exempt.
docstring-min-length=6

# don't require a docstring for private method or <5 lines to document return.
accept-no-return-doc=yes

[SIMILARITIES]

# Ignore comments when computing similarities.
ignore-comments=yes

# Ignore docstrings when computing similarities.
ignore-docstrings=yes

# Ignore imports when computing similarities.
ignore-imports=yes

# Minimum lines number of a similarity.
min-similarity-lines=10

[FORMAT]

# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
expected-line-ending-format=

# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines=^\s*(# )?<?https?://\S+>?$

# Number of spaces of indent required inside a hanging  or continued line.
indent-after-paren=4

# String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
# tab).
indent-string='    '

# Maximum number of characters on a single line.
max-line-length=99

# Maximum number of lines in a module
max-module-lines=1000

# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,dict-separator

# Allow the body of a class to be on the same line as the declaration if body
# contains single statement.
single-line-class-stmt=no

# Allow the body of an if to be on the same line as the test if there is no
# else.
single-line-if-stmt=no

[IMPORTS]

# Allow wildcard imports from modules that define __all__.
allow-wildcard-with-all=no

# Analyse import fallback blocks. This can be used to support both Python 2 and
# 3 compatible code, which means that the block might have code that exists
# only in one or another interpreter, leading to false positives when analysed.
analyse-fallback-blocks=no

# Deprecated modules which should not be used, separated by a comma
deprecated-modules=regsub,TERMIOS,Bastion,rexec

# Create a graph of external dependencies in the given file (report RP0402 must
# not be disabled)
ext-import-graph=

# Create a graph of every (i.e. internal and external) dependencies in the
# given file (report RP0402 must not be disabled)
import-graph=

# Create a graph of internal dependencies in the given file (report RP0402 must
# not be disabled)
int-import-graph=

# Force import order to recognize a module as part of the standard
# compatibility libraries.
known-standard-library=

# Force import order to recognize a module as part of a third party library.
known-third-party=enchant

[DESIGN]

# Maximum number of arguments for function / method
max-args=10

# Maximum number of attributes for a class (see R0902).
max-attributes=20

# Maximum number of boolean expressions in a if statement
max-bool-expr=4

# Maximum number of branch for function / method body
max-branches=40

# Maximum number of locals for function / method body
max-locals=60

# Maximum number of parents for a class (see R0901).
max-parents=7

# Maximum number of public methods for a class (see R0904).
max-public-methods=20

# Maximum number of return / yield for function / method body
max-returns=6

# Maximum number of statements in function / method body
max-statements=100

# Minimum number of public methods for a class (see R0903).
min-public-methods=0

[CLASSES]

# List of method names used to declare (i.e. assign) instance attributes.
defining-attr-methods=__init__,__new__,setUp

# List of member names, which should be excluded from the protected access
# warning.
exclude-protected=_asdict,_fields,_replace,_source,_make

# List of valid names for the first argument in a class method.
valid-classmethod-first-arg=cls

# List of valid names for the first argument in a metaclass class method.
valid-metaclass-classmethod-first-arg=mcs

[EXCEPTIONS]

# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
overgeneral-exceptions=Exception

I suspect something has changed and is no longer compatible. It would be nice if there was output somewhere to help me locate the issue.

The issue is in the disable=all statement and the enable=... statement. After disabling all messages, I selectively re-enable messages. I tried using the list from http://pylint.pycqa.org/en/latest/technical_reference/features.html#messages-control-options but it still doesn't show the syntax issue if I have the disable=all line.
In any case, I believe this isn't a VSCode issue. I think this can be closed.

Pylint does not work after i update the vscode to the newest version.

@cpagravel, thanks for the update and I'm glad you figured it out! :slightly_smiling_face:  Please let us know if we can help with anything else.

@CatNofishing, please open a new issue.


Contrail311 fixes

WebUI cassandra port parameterization, so we can use 9042 for new installation and 9160 for old ones.
According to https://github.com/Juniper/contrail-controller/wiki/RBAC we should use aaa_mode = no-auth so we can use WebUI

Amended changes proposed by @cznewt


Guidebook can't render entities that aren't 32x32

Description

It also shows some of the wrong states (such as fill layer stuff when it should just pick empty fill appearance)
Screenshots

Anything with the entity visuals itself has absolutely nothing to do with guidebooks, it's a symptom of that entity not setting up it's visuals on the client properly.

it just uses sprite views to show entities, so the lack of support for large entities is just an engine / sprite view issue. See also space-wizards/RobustToolbox/issues/925 and space-wizards/RobustToolbox/issues/3071.
And or appearance stuff, it just spawns a client-side entity in null-space and shows that. If your entity relies on server-side code to set up some appearance stuff, it won't work. E.g., this is why all the tools in the guidebook are white, because the color randomization is done server-side. Best fix is probably to just give the entity prototype reasonable default values, even if the server usually overrides them.

Anything with the entity visuals itself has absolutely nothing to do with guidebooks, it's a symptom of that entity not setting up it's visuals on the client properly. (In other words, your Oracle entity is broken)

it uses unmodified upstream solution container appearance visuals

it uses unmodified upstream solution container appearance visuals
just replace oracle-1 with oracle-0 and it should look fine.

 - type: Sprite
    netsync: false
    noRot: true
    drawdepth: Mobs
    offset: "0.0,0.5"
    sprite: Nyanotrasen/Structures/Decoration/statues.rsi
    layers:
      - state: oracle-0
      - map: ["enum.SolutionContainerLayers.Fill"]
        state: oracle-1

The sprite views should've been fixed by #15881. Note that it did have a side effect that guide book sprite views now scale with the size of the sprite of the entity, but that could be fixed by just setting the sprite view size to some fixed number.


Support none root deployment

Description
Support build and deploy dragonfly within none root user.

Create dragonfly user and group in base/manager/scheduler/dfdaemon/trainer image
Use none root user in docker compose yaml
Add dataDir config option for manager, which is used for overwrite the default value
Update several path for docker compose configuration

Related Issue

Motivation and Context
For security concern, it's better to have process running within none root user.

Screenshots (if appropriate)
Not fully understand the whole picture of draognfly and within this update the seed peer will take several minutes to become ready
2024-01-07T09:51:26.533Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:26Z", "grpc.request.deadline": "2024-01-07T09:51:27Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.056}
2024-01-07T09:51:27.652Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:27Z", "grpc.request.deadline": "2024-01-07T09:51:28Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.021}
2024-01-07T09:51:28.782Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:28Z", "grpc.request.deadline": "2024-01-07T09:51:29Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.036}
2024-01-07T09:51:29.923Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:29Z", "grpc.request.deadline": "2024-01-07T09:51:30Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.095}
2024-01-07T09:51:31.097Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:31Z", "grpc.request.deadline": "2024-01-07T09:51:32Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.068}
2024-01-07T09:51:32.215Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:32Z", "grpc.request.deadline": "2024-01-07T09:51:33Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.158}
2024-01-07T09:51:33.367Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:33Z", "grpc.request.deadline": "2024-01-07T09:51:34Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.04}
2024-01-07T09:51:33.759Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:33Z", "grpc.request.deadline": "2024-01-07T09:51:35Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.038}
2024-01-07T09:51:33.767Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:33Z", "grpc.request.deadline": "2024-01-07T09:51:35Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.024}
2024-01-07T09:51:33.772Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:33Z", "grpc.request.deadline": "2024-01-07T09:51:35Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.056}
2024-01-07T09:51:33.778Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:33Z", "grpc.request.deadline": "2024-01-07T09:51:35Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.028}
2024-01-07T09:51:34.465Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:34Z", "grpc.request.deadline": "2024-01-07T09:51:35Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.165}
2024-01-07T09:51:35.580Z	INFO	zap/server_interceptors.go:39	finished unary call with code OK	{"grpc.start_time": "2024-01-07T09:51:35Z", "grpc.request.deadline": "2024-01-07T09:51:36Z", "system": "grpc", "span.kind": "server", "grpc.service": "grpc.health.v1.Health", "grpc.method": "Check", "grpc.code": "OK", "grpc.time_ms": 0.022}
2024-01-07T09:51:35.801Z	ERROR	grpclog/grpclog.go:55	[scheduler_resolver]resolve addresses error schedulers not found
google.golang.org/grpc/internal/grpclog.ErrorDepth
	/go/pkg/mod/google.golang.org/grpc@v1.60.0-dev/internal/grpclog/grpclog.go:55
google.golang.org/grpc/grpclog.(*componentData).ErrorDepth
	/go/pkg/mod/google.golang.org/grpc@v1.60.0-dev/grpclog/component.go:46
google.golang.org/grpc/grpclog.(*componentData).Errorf
	/go/pkg/mod/google.golang.org/grpc@v1.60.0-dev/grpclog/component.go:79
d7y.io/dragonfly/v2/pkg/resolver.(*SchedulerResolver).ResolveNow
	/go/src/d7y.io/dragonfly/v2/pkg/resolver/scheduler_resolver.go:84
d7y.io/dragonfly/v2/pkg/resolver.(*SchedulerResolver).OnNotify
	/go/src/d7y.io/dragonfly/v2/pkg/resolver/scheduler_resolver.go:109
d7y.io/dragonfly/v2/client/config.(*dynconfigManager).Notify
	/go/src/d7y.io/dragonfly/v2/client/config/dynconfig_manager.go:242
d7y.io/dragonfly/v2/client/config.(*dynconfigManager).Serve
	/go/src/d7y.io/dragonfly/v2/client/config/dynconfig_manager.go:268
d7y.io/dragonfly/v2/client/daemon.(*clientDaemon).Serve.func10
	/go/src/d7y.io/dragonfly/v2/client/daemon/daemon.go:744
golang.org/x/sync/errgroup.(*Group).Go.func1
	/go/pkg/mod/golang.org/x/sync@v0.5.0/errgroup/errgroup.go:75

Status after 10 minutes of docker compose, the seed peer finally turns into ready.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation Update (if none of the other choices apply)

Checklist

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.

@gaius-qi updated as comments


Different locales for CMS and website doesn't display active tab

I've come across this with a custom CMS that sets the session locale when a user logges in (based on its preferences)
These locales are nl, de, en and are being used for the fixed translation of our modules.
On the website however the locales that are being used are for example nl_NL and en_GB so content can be filled in.
The problem is, because the session locale is "nl" but the form tab is "nl_NL" there is no tab active.
Is there a specific reason the locale of the request is being assumed as default selection?
Why not set the first tab as active?
So instead of this check:
{% if app.request.locale == locale %}

It'll be:
{% if loop.first %}

I've updated this in my own template so it works but was wondering why this isn't default behaviour.

With right locales configuration for a2lix_translation_form, with locales: [nl_NL, en_GB], no problem about me


Add skippable node in MutationObserver

I mount React component inside the Scribe container, whenever the component update it triggers the MutationObserver watching the subtree of the Scribe container.
Since the component is already encapsulate in the React tree, I don't need this extra re-render from Scribe.

@SimonDegraeve can you check that Scribe 2.1.0 implements this change correctly?