WMAgent container crontab not functional

Impact of the bug
WMAgent
Describe the bug
I was already suspecting that the agent was not really renewing the user proxy inside the container, after making modifications to the crontab such that it writes the command/script output to a log file, I noticed that no log files have been created. This has been observed in 2.3.4rc6
This makes me believe that those cronjob are not being executed at all.
How to reproduce it
Create any cronjob, e.g. * * * * * touch /data/srv/wmagent/current/new_file
Expected behavior
The cronjobs are expected to run at the defined scheduled :)
It looks like one alternative to this would be to define a new file under /etc/cron.d/ with the actual content that we are currently writing to the crontab. The problem is that that directory is owned by root, so we would have to make the necessary changes (permissions) in the Dockerfile, such that the agent user can edit that file.
Additional context and error message
None

I tested using the cron.d directory but without any success. @todor-ivanov given that you are a "Debian person", please let me know if you have any suggestion.

Alan, I think it is not about placing the file but rather checking if cron daemon is up and running. Can you check that, first you need cron daemon to be installed, then the image container should start it, then you can check crontab -l to list entries in a cron daemon for that user, etc.

Good call, Valentin. It looks like the service is not really running. With this, I can advance further.

The dynamic user used in the agent isn't able to start the service though:
$ service cron start
Starting periodic command scheduler: croncron: can't open or create /var/run/crond.pid: Permission denied
 failed!

so I think the right place to start it is when building the docker image.

I modified the cronjob to:
30 * * * * /usr/local/bin/manage renew-proxy >  /data/srv/wmagent/current/logs/cron.log

and it turns out the renew task also fails with:
$ cat /data/srv/wmagent/current/logs/cron.log
manage: ERROR: Could not load WMAgent.secrets file:

That means the cronjob is not able to $WMA_SECRETS_FILE. Investigating...

Given that I have not yet succeeded in fixing this issue, I would appreciate if someone else could own this problem and get this issue resolved. I don't think I will be able to keep working on this, as other things are piling up at the beginning of the week now.

Hi @amaltaro I can take this one.

I had to read alot of stuff in the net reagrding running the cron daemon at container startup. And we are inded in bad position.

First I've figured out the cron daemon is disabled by default even if I start from debian:bullseye base image and just install cron, regardless if I start it with root or unprivileged user:

cmst1@vocms264:wmagent $ docker exec -it wmagent-base bash
root@0b6bae443075:/# /etc/init.d/cron status
cron is not running ... failed!

Logically thinking, I did examine all the  sysvinit artifacts that come with the default Debian container...

root@0b6bae443075:/# ls -la /etc/rc*.d/
/etc/rc0.d/:
total 0
drwxr-xr-x. 1 root root 22 Jun 10 12:21 .
drwxr-xr-x. 1 root root 66 Jun 10 12:27 ..
lrwxrwxrwx. 1 root root 15 Jun 10 12:21 K01exim4 -> ../init.d/exim4
lrwxrwxrwx. 1 root root 20 May 13 00:00 K01hwclock.sh -> ../init.d/hwclock.sh

/etc/rc1.d/:
total 0
drwxr-xr-x. 1 root root 22 Jun 10 12:21 .
drwxr-xr-x. 1 root root 66 Jun 10 12:27 ..
lrwxrwxrwx. 1 root root 15 Jun 10 12:21 K01exim4 -> ../init.d/exim4

/etc/rc2.d/:
total 0
drwxr-xr-x. 1 root root 37 Jun 10 12:21 .
drwxr-xr-x. 1 root root 66 Jun 10 12:27 ..
lrwxrwxrwx. 1 root root 14 Jun 10 12:21 S01cron -> ../init.d/cron
lrwxrwxrwx. 1 root root 15 Jun 10 12:21 S01exim4 -> ../init.d/exim4

...

But they are of NO use, since sysvinit (neither systemd if that matters)  is a relevant concept in Docker. We always start from the entry point, which in our case is (as Alan correctly mentions) executed  with a non privileged user.
So this is all pushing us into the two possible directions:

Start tapering even harder with the container so that we at the end mange to run cron daemon with nonpriviliged user (should be that frightening though)
Start a completely separate container for just managing  the cronjobs  as it is done for our Kubernetes deployed service.

The former approach gives few advantages in the expense of few drawbacks....

We have to again trick the containers to make them do whatever we  want.... and adding a some more complication at runtime
But we are going to be safely managing the cronjons from inside the container... which is a big benefit since those would be container service dependent, and we would avoid any (eventual) cross communication between containers (being it through extra bind mounts etc.) .

The later approach features the exact same characteristics, but with reversed statements.

Here is one trick how to kick-start the cron daemon on an already running container:
cmst1@vocms264:WMCoreDev.d $ docker exec -it -u root wmagent  bash
(WMAgent-2.3.4rc10) [root@vocms264:data]# /etc/init.d/cron status
cron is not running ... failed!
(WMAgent-2.3.4rc10) [root@vocms264:data]# /etc/init.d/cron start
Starting periodic command scheduler: cron.
(WMAgent-2.3.4rc10) [root@vocms264:data]# /etc/init.d/cron status
cron is running.
(WMAgent-2.3.4rc10) [root@vocms264:data]#

and later connecting to the container with the normal user:
cmst1@vocms264:WMCoreDev.d $ docker-wmagent
(WMAgent-2.3.4rc10) [cmst1@vocms264:current]$ /etc/init.d/cron status
cron is running.

hi @amaltaro  @vkuznet  I suggest  we use the simplest solution here, and to not over complicate neither the container setup nor the user environment inside the container. Here: https://github.com/dmwm/CMSKubernetes/pull/1506 is the PR with the explanation of the alternatives and the implementation of the simplest and most elegant of them all to my opinion. With the smallest possible change and least intrusive to both: architecture (the set of containers to be run) and the user environment. Here follows the output from the tests:
cmst1@vocms0260:wmagent $ ./wmagent-docker-run.sh  -t 2.3.4rc10 && docker logs -f wmagent
Using WMAgent version: 2.3.4rc10 under release: 2.3.4

Checking if there is no other wmagent container running and creating a link to the 2.3.4 in the host mount area.
Starting wmagent:2.3.4rc10 docker container with user: cmst1:zh
b396451961767a5a12659c926e653ba0ff4db50c4cf30dddac4f79a2e076faf1
Starting periodic command scheduler: cron.
Running WMAgent container with user: cmst1 (ID: 31961) and group: zh (ID: 1399)
Setting up bashrc for user: cmst1 under home directory: /home/cmst1
Start initialization

=======================================================
Starting WMAgent with the following initialisation data:
-------------------------------------------------------
 - WMAgent Version            : 2.3.4rc10
 - WMAgent Release Cycle      : 2.3.4
 - WMAgent User               : cmst1
 - WMAgent Root path          : /data
 - WMAgent Host               : vocms0260.cern.ch
 - WMAgent TeamName           : testbed-vocms0260
 - WMAgent Number             : 0
 - WMAgent Relational DB type : mysql
 - Python  Version            : Python 3.8.16
 - Python  Module path        : /usr/local/lib/python3.8/site-packages
=======================================================

-------------------------------------------------------
Start: Performing basic_checks
...
Starting : WorkflowUpdater
Starting WorkflowUpdater as a daemon
Log will be in /data/srv/wmagent/2.3.4/install/WorkflowUpdater
Waiting 1 seconds, to ensure daemon file is created
Done: Performing start_agent
-------------------------------------------------------
Start sleeping now ...zzz...

cmst1@vocms0260:wmagent $ docker-wmagent
(WMAgent-2.3.4rc10) [cmst1@vocms0260:current]$ /etc/init.d/cron status
cron is running.
(WMAgent-2.3.4rc10) [cmst1@vocms0260:current]$ ps auxf
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
cmst1       1224  0.1  0.0   6300  3968 pts/0    Ss   10:46   0:00 bash
cmst1       1260  0.0  0.0   8648  3328 pts/0    R+   10:47   0:00  \_ ps auxf
cmst1          1  0.0  0.0   6052  3584 ?        Ss   10:46   0:00 /bin/bash ./run.sh 2>&1
root          46  0.0  0.0   5636  2176 ?        Ss   10:46   0:00 /usr/sbin/cron
cmst1        990  0.3  0.8<PHONE_NUMBER>6 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1        999  0.2  0.8<PHONE_NUMBER>2 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1000  0.0  0.6<PHONE_NUMBER>0 ?        S    10:46   0:00  \_ python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1001  0.0  0.6<PHONE_NUMBER>0 ?        S    10:46   0:00  \_ python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1002  0.0  0.6<PHONE_NUMBER>0 ?        S    10:46   0:00  \_ python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1003  0.0  0.6<PHONE_NUMBER>0 ?        S    10:46   0:00  \_ python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1016  0.1  0.7<PHONE_NUMBER>6 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1024  0.1  0.7<PHONE_NUMBER>6 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1032  0.2  0.8<PHONE_NUMBER>2 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1049  0.1  0.7<PHONE_NUMBER>8 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1058  0.1  0.7<PHONE_NUMBER>8 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1067  0.1  0.7<PHONE_NUMBER>4 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1076  0.1  0.7<PHONE_NUMBER>0 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1086  0.1  0.7<PHONE_NUMBER>8 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1094  0.3  0.8<PHONE_NUMBER>8 ?        S    10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1103  0.2  0.8<PHONE_NUMBER>6 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1114  0.2  0.8<PHONE_NUMBER>2 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1124  0.1  0.7<PHONE_NUMBER>2 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1132  0.9  1.0<PHONE_NUMBER>8 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1202  0.2  0.8<PHONE_NUMBER>8 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1210  0.1  0.8<PHONE_NUMBER>6 ?        Sl   10:46   0:00 python /usr/local/bin/wmcoreD --start --config=/data/srv/wmagent/2.3.4/config/config.py
cmst1       1217  0.0  0.0   4284  1792 ?        S    10:46   0:00 sleep infinity

(WMAgent-2.3.4rc10) [cmst1@vocms0260:current]$ crontab -l
55 */12 * * * /usr/local/bin/manage renew-proxy
58 */12 * * * python /usr/local/deploy/checkProxy.py --proxy /data/certs/myproxy.pem --time 120 --send-mail True --mail<EMAIL_ADDRESS>*/15 * * * *  source /usr/local/deploy/restartComponent.sh > /dev/null
* * * * * echo 'http://cmst1:SomeSenha@<IP_ADDRESS>:5984/wmagent_jobdump\%2Fjobs/_design/JobDump/_view/statusByWorkflowName?limit=1' | sed -e 's|\\||g' | xargs curl -s -m 1 > /dev/null
* * * * * echo 'http://cmst1:SomeSenha@<IP_ADDRESS>:5984/wmagent_jobdump\%2Ffwjrs/_design/FWJRDump/_view/outputByJobID?limit=1' | sed -e 's|\\||g' | xargs curl -s -m 1 > /dev/null

It is clearly seen that

The cron daemon is running
The process is started with root
The crontab is correctly populated

@todor-ivanov it looks like something is missing to get this working for Fermilab agents, as both the backfil and the production I deployed this week are reporting low proxy lifetime in WMStats, e.g.:
    agent: cmsgwms-submit12.***(2.3.4)
    agent last updated: 2024/7/12 (Fri) 18:44:01 UTC : 0 h 5 m
    data last updated: 0 h 6 m
    status: Proxy expiration warning;
    team: production
    proxy warning: Agent proxy '/data/certs/myproxy.pem' must be renewed ASAP. Its time left is: 117.39 hours;

I am renewing those manually right now, but can you please investigate this in the beginning of the next week?
I am reopening this ticket to properly keep track of this.

@todor-ivanov the FNAL agents were low in proxy lifetime (~70h), which made me to manually update the user proxy. Upon updating it, I noticed that the proxy was still to expire on Jul 25(!).
Something was seriously wrong, so I recreated my proxy in the MyProxy server and now the FNAL agents are able to fetch a longer term proxy (expiration on Jul 30).
I guess I have recreated only the "amaltaroFNAL" myproxy entry in the past few weeks, leaving the CERN and FNAL out-of-sync and causing these issues. Said that, I am almost sure that this is actually not an issue, sorry for the time you wasted on this.
Tomorrow we can cross-check it, if submit13 has an expiration time later than:
notAfter=Jul 30 02:32:42 2024 GMT

then it means crontab is actually functional and there is nothing to be corrected.

Thanks  for letting me know @amaltaro. Lets see how it goes with submit1{2,3} tomorrow.

It turns out I had to manually renew my proxy in submit12 and submit13 over the weekend. So the shorter lifetime in the myproxy server was not the actual cause of these issues.
The cronjob is not functional and this investigation needs to be resumed.

So, if I use crontab as root, cron works. But as cmsdataops, it won't.
For some reason, cron sends Authentication failure messages.
This is related to not being able to su as the user.
(WMAgent-2.3.4) [root@cmsgwms-submit12:data]# su cmsdataops
su: Authentication failure

Note at CERN, we don't have that problem with cmst1
(WMAgent-2.3.4) [root@vocms0281:tmp]# su - cmst1
-bash: /root/.bash_profile: Permission denied
cmst1@vocms0281:/home/cmst1$

Perhaps it's related to differences in the /etc/sudoers between those 2 nodes:
https://github.com/dmwm/CMSKubernetes/blob/master/docker/pypi/wmagent/wmagent-docker-run.sh#L111
?

@amaltaro Yes, it looks like setuid may work a bit different from XFS vs EXT4 (/data is mounted in an ext4 partition at CERN, and XFS at FNAL) and /etc/shadow from the host would need to be readable inside the container to pass the su authentication.
I don't think doing host system changes is the way, so instead, I made some changes in order to use the system's cron.d rather that the user's crontab,
So, we would have something like this inside /etc/cron.d/wmagent
55 */12 * * * sudo -u cmsdataops date -Im >> /data/srv/wmagent/2.3.4/logs/renew-proxy.log && /usr/local/bin/manage renew-proxy 2>&1 >> /data/srv/wmagent/2.3.4/logs/renew-proxy.log

Rather than /var/spool/cron/crontabs/cmsdataops
55 */12 * * * sudo -u cmsdataops date -Im >> /data/srv/wmagent/2.3.4/logs/renew-proxy.log && /usr/local/bin/manage renew-proxy 2>&1 >> /data/srv/wmagent/2.3.4/logs/renew-proxy.log

The difference is that in the first method, cron will not use su in order to spawn the process, but sudo -u instead. This works around the Authentication error issue.
I don't see any other way to fix this without requiring host system environment changes.

@LinaresToine Do you. know if it's viable to grant cmst0 sudo access to the nodes?
The reason is that we need to move  cron jobs from the regular user to the system's cron.d in the docker containers, and it would be nice to have the same deployment in Tier0. Otherwise, we would need to maintain 2 different methods (one for user crontab for Tier0, and one for cron.d  lines + sudo for docker deploymenets).

Hello @khurtado. I am not sure that is possible. I'll mention @germanfgv and @jeyserma, probably they can give you a more detailed answer.

Hello @khurtado,
Do you think this is necessary even if T0 is deploying in a virtual environment rather than in a docker container? I believe it is not convenient for us to have cmst0 with sudo access on our VMs

@LinaresToine Yes, the virtual environment does not matter for the cron deployment. Technically, T0 does not have issues with crontab at present. The problem is docker-based containers do and we need sudo access to use cron.d instead. So now we have 2 options:

To maintain 2 different cron deployment methods: one for T0 and one for the standard wmagents (sudo + cron.d for docker+wmagent, and crontab for T0)
To give cmst0 account sudo access so we can use the same deployment method for all of them.

If you feel strongly against giving sudo access to T0 for e.g.: security reasons, we would go for option 1. The reason we asked though, is because cmst1 account usually does have sudo access, so this request would in principle take both accounts to the same kind of system access level.
@amaltaro If there is anything I am missing to add please feel free to chime in.

Thank you @khurtado for your input. To answer the question in the end of your comment, we first login as cmst0 and then deploy the agent.
As for the options you are proposing, the T0 team prefers to keep going with option 1, however, I also believe it's better if we can discuss this online. Would you bring this up during the T0 meeting on Tuesday?

@LinaresToine After trying several things, I managed to find a simple way to fix the crontab issue inside docker containers, which us to remain with the user-based crontab method in standard wmagents (CERN and FNAL) and without modifications in the T0 environment.
Therefore, please disregard this request, as no changes would be needed.

@khurtado I just tried to deploy a new agent at CERN and I had this error:
Starting periodic command scheduler: cron.
chpasswd: (user cmst1) pam_chauthtok() failed, error:
Authentication token manipulation error
chpasswd: (line 1, user cmst1) password not changed

I understood this had been tested both at CERN and FNAL, but maybe you did it in a different setup(?).
In any case, I am reopening this ticket as further understanding/changes are required to accommodate the provided changes (at least) at CERN. Can you please look into this?

Issue closed with
https://github.com/dmwm/CMSKubernetes/pull/1538
and
https://github.com/dmwm/CMSKubernetes/pull/1543
Thanks!


Conditionals

Implement conditionals.
This will need to have a way to still parse the file but not include certain things inside of de-activated conditional blocks.

Waiting on #3 and #4 before I want to implement this.


Multiple large lists inside single container

I have scenario where container has 3 sections containing large lists. Also this sections have sticky header. All 3 sections have same parent container scroll. How can I use ngInfiniteScroll for this case ?

Each list will have to have its own scroll. Do you have a https://codepen.io/pen/

But I have requirement where I can't use multiple scroll container. I will create a codepen for this


Add White frowning face (megafrown)

http://emojipedia.org/white-frowning-face/
and
http://www.unicode.org/emoji/charts/full-emoji-list.html#2639
I'm not sure what a good name for the emoji is. I choose megafrown because that
is listed as the alternate. Perhaps "frowning_face", "white_frowning_face", or
maybe just "frown" would be better?

I'd prefer not to choose a name arbitrarily. Consult http://emoji.codes


Wrong font width

Which operating system does the issue occur on?
Arch Linux
If on linux, are you using X11 or Wayland?
X11
Alacritty version:
from AUR

For this screenshot i use Iosevka-ss03, but with other fonts gaps between chars much bigger.

That looks like the default monospace font. You might want to double check your config. I use arch and it works fine for me.

It looks like Iosevka (i.e. see @ symbol). Same issue there.
@meskarune did you also use Iosevka font?

@averrin Workaround is here. https://gist.github.com/mikoim/498dfcdd39439316e3eb9b8897914302

@averrin, have you gotten a chance to test master after #1029? This appears to be the only thing holding back the 0.2 release.

I can confirm that https://github.com/jwilm/alacritty/pull/1029 fixed this

Closing this because it seems fixed. If this exact issue still exists, you can reopen the issue or just open a new one.


Update creator.py

Removed some unuseful lines, especially when importing all the libraries (didn't check all the libraries, could be more)
Fixed the os.clear. i prefer this way.

Totally agree. Will merge it to mater now


A potentially dangerous Request.Path value was detected from the client

Extension version: 0.0.25
VSCode Version: 1.58.0 (Universal)
OS: MacOS

Steps to Reproduce:

try the login steps by configuring as specified in the documentation and create your PAT and configure it
When navigating to the Extension Tab and expanding the main trees you will see the following error in notifications and in the "Output" window:
"message":"A potentially dangerous Request.Path value was detected from the client (:).","typeName":"System.Web.HttpException, System.Web","typeKey":"HttpException","errorCode":0,"eventId":0}

By the looks of it this looks great but I have not been able to get this to connect at all. Any help would be appreciated

Can you share the logs from Output Window -> Azdo Pull Request tab
On Fri, 9 Jul 2021, 07:09 juanmlarios, @.***> wrote:

Extension version: 0.0.25
VSCode Version: 1.58.0 (Universal)
OS: MacOS

Steps to Reproduce:

try the login steps by configuring as specified in the
documentation and create your PAT and configure it
When navigating to the Extension Tab and expanding the main trees
you will see the following error in notifications and in the "Output"
window:
"message":"A potentially dangerous Request.Path value was detected
from the client (:).","typeName":"System.Web.HttpException,
System.Web","typeKey":"HttpException","errorCode":0,"eventId":0}

By the looks of it this looks great but I have not been able to get this
to connect at all. Any help would be appreciated
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ankitbko/vscode-pull-request-azdo/issues/57, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAYFYJGEPIRR2O2V6CVRTO3TWZHMNANCNFSM5AB2BQCA
.

thanks @ankitbko
[Info] AzdoRepository> Fetching pull requests for search: {"status":1} failed: Error: {"$id":"1","innerException":null,"message":"A potentially dangerous Request.Path value was detected from the client (:).","typeName":"System.Web.HttpException, System.Web","typeKey":"HttpException","errorCode":0,"eventId":0}
[Info] Review> Queuing additional validate state

Can you share your extension configuration please
On Fri, 9 Jul 2021, 21:22 juanmlarios, @.***> wrote:

thanks @ankitbko https://github.com/ankitbko
[Info] AzdoRepository> Fetching pull requests for search: {"status":1}
failed: Error: {"$id":"1","innerException":null,"message":"A potentially
dangerous Request.Path value was detected from the client
(:).","typeName":"System.Web.HttpException,
System.Web","typeKey":"HttpException","errorCode":0,"eventId":0}
[Info] Review> Queuing additional validate state
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ankitbko/vscode-pull-request-azdo/issues/57#issuecomment-877283920,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAYFYJGJ24FAPJLFQRJCHI3TW4LKBANCNFSM5AB2BQCA
.

Workspace settings:
// When true, the option to delete the local branch will be selected by default when deleting a branch from a pull request.
"azdoPullRequests.defaultDeletionMethod.selectLocalBranch": true,

// When true, the option to delete the remote will be selected by default when deleting a branch from a pull request.
"azdoPullRequests.defaultDeletionMethod.selectRemote": true,

// The method to use when merging pull requests.
"azdoPullRequests.defaultMergeMethod": "Squash",

// The commit used to calculate diff against PR's HEAD.
//  - mergebase: Use the merge base of PR
//  - head: Use the target branch's HEAD
"azdoPullRequests.diffBase": "mergebase",

// The layout to use when displaying changed files list.
"azdoPullRequests.fileListLayout": "tree",

// The setting `azdoPullRequests.includeRemotes` has been deprecated. Use `azdoPullRequests.remotes` to configure what remotes are shown.
// By default we only support remotes created by users. If you want to see pull requests from remotes this extension created for pull requests, change this setting to 'all'.
"azdoPullRequests.includeRemotes": "default",

// Logging for Azure Devops Pull Request extension. The log is emitted to the output channel named as Azure Devops Pull Request.
"azdoPullRequests.logLevel": "info",

//
"azdoPullRequests.orgUrl": "",

//
"azdoPullRequests.projectName": "",

// The description used when creating pull requests.
//  - template: Use a pull request template, or use the commit description if no templates were found
//  - commit: Use the latest commit message
//  - custom: Specify a custom description
//  - ask: Ask which of the above methods to use
"azdoPullRequests.pullRequestDescription": "template",

// The title used when creating pull requests.
//  - commit: Use the latest commit message
//  - branch: Use the branch name
//  - custom: Specify a custom title
//  - ask: Ask which of the above methods to use
"azdoPullRequests.pullRequestTitle": "ask",

// List of remotes, by name, to fetch pull requests from.
"azdoPullRequests.remotes": [
	"origin",
	"upstream"
],

// Enable usage data and errors to be sent to a Azure Appinsights online service
"azdoPullRequests.telemetry.enabled": true,

User Settings: replaced org, project, and myPAT
"azdoPullRequests.orgUrl": "https://dev.azure.com/<org>",
"azdoPullRequests.projectName": "https://dev.azure.com/<org>/<project>",
"vscode-pull-requests-azure-devops.collection": "https://dev.azure.com/<org>",
"vscode-pull-requests-azure-devops.access-token": "[myPAT]",
"vscode-pull-requests-azure-devops.project": "https://dev.azure.com/<org>/<project>",
"azureFunctions.showProjectWarning": false

Can you change this setting as follows and try again "azdoPullRequests.projectName": "<project>"

it works! thank you for your help and for this awesome extension. It is so useful!


Entity not available: camera.map_data

Since updating my Roborock S5 to Valetudo 2021.11, the integration gives me Entity not available: camera.map_data
Rebooting server or vacuum does not help.
Clearing cache or using fresh browser does not help.
Tested also different Lovelace configs for the card, still no go...

The camera.map_data has data in MQTT (checked with mqtt-explorer), and is accessible in Home Assistant.
I'm Using:

Home Assistant 2021.11.2
Valetudo 2021.11
Valetudo Map Card v2021-08-12 via HACS

Any ideas or is this a bug?

What does your MQTT config like for your vacuum? And what is camera.map_data looking like?

MQTT settings for the vacuum in Home Assistant:

MQTT settings in Valetudo:

camera.map_data image just shows the use this card message.
Map data:

Anything in the browser console when on the screen that contains this card?

Nothing special:

What's your card config?

type: custom:valetudo-map-card
entity: camera.map_data
vacuum_entity: vacuum.kees
rotate: 0
crop:
  top: 0
  bottom: 0
  left: 0
  right: 0
min_height: 0

Hmm... that should be correct. No clue why it's not working.
Only thing I'm noticing is that I'm on Home Assistant 2021.11.0 myself, I'll try to update Home Assistant just to check if they broke something again.

Hmm, nope, it still works for me. I really have no clue then :( Maybe try the Valetudo Telegram channel? Maybe someone there has a smart idea :(

No problem, I'll try to troubleshoot some more. Thanks for the quick responses. :-)

Fixed! Seems to have been a problem on my side:
Wanted to reinstall the add-on one more time to start fresh while troubleshooting.
HACS said that it uninstalled it, but I found that the files were still in /config/www/community/, so I rm -r'ed them from disk.
Reinstalled via HACS, hit CTRL-F5, and voila, card works...
No idea on how or why, but it is solved.


Autocompletion doesn't work (pipenv)

Environment data

Language Server version:  2022.8.20 (pyright 888eb243)
OS and version:Ubuntu 22.04 LTS on Windows 10 x86_64
Python version (& distribution if applicable, e.g. Anaconda): Python 3.9.13, pipenv, version 2022.6.7

Info
Hi! Thank you for your work, you're doing a great job.
But to completely switch to VSCODE, I miss the prompts of the improts.
I have this problem on both the latest Fedora and WSL, I have tried all the prompts I found on the internet and they have not solved my problem.
Such as:
https://github.com/microsoft/pylance-release/issues/673
https://stackoverflow.com/questions/50389852/visual-studio-code-intellisense-not-working
https://dev.to/climentea/how-to-solve-pylance-missing-imports-in-vscode-359b
TL;DR:
Import works pretty bad, the same pyright in neovim handles all the problems that arise with pylance vscode.
The project is big, some of the logs at the bottom are cut off, which are repeated and there is just an indexing of the project files.
Expected behavior

Import hints from libraries in the environment (such as Django) should work as a quick fix.
Improt model hints from nearby modules should work automatically as a quick fix

.vscode/settings.json:
{
    "python.pythonPath": "/home/hodunov/.local/share/virtualenvs/FleetCentre-kIcWcTIr/bin/python",
    "python.defaultInterpreterPath": "/home/hodunov/.local/share/virtualenvs/FleetCentre-kIcWcTIr/bin/python",
    "python.languageServer": "Pylance",
    "python.analysis.extraPaths": [
        "/home/hodunov/.local/share/virtualenvs/FleetCentre-kIcWcTIr/lib/python3.9/site-packages"
    ],
}

Actual behavior

The import hint for libraries installed in Pipenv does not work at all, while the interpreter is installed correctly and go to defenition works flawlessly if the path is already spelt out for the library:

example:
from django.db import models
does not underline, go to defenition works.
but if you remove the import, it won't show up when you hover over models.
class MyAwesomeClass(models.Model):

Just as bad work tips on imports from the project itself.

Either they do not see everything, or there are no import prompts until I open the file in which the class I need.
Logs
attached as a file, as they are large
pylance-logs.txt

for 1.  By default we only index top level imports due to perf issues. to override and to go further into django you can customize indexing.
   ["", 1],     <-default library indexing
   ["django", 3],  <- 3 levels

ie.
    "python.analysis.packageIndexDepths":[
        ["", 1],
        ["django", 3],
    ],

more info here. https://github.com/microsoft/pylance-release/issues/2991#issuecomment-1176560066

Closing old issue. If this is still a problem, please reopen with the information requested. thanks

@hodunov You might want to add this line to settings.json as well:
"python.analysis.autoImportCompletions": true

(its default is false)


Crash when trying to use Programmable Zipline Trolley

Hi !
The game crashes when we try to interract with a zipline controller.
Here's the crashlog :
__RenaiTransportation__/script/GUIs.lua:79: attempt to index field 'preferences' (a nil value)
stack traceback:
	__RenaiTransportation__/script/GUIs.lua:79: in function 'ShowZiplineTerminalGUI'
	__RenaiTransportation__/script/event/click.lua:108: in function <__RenaiTransportation__/script/event/click.lua:3>```

Looks like I had a conditional check set to AND instead of OR which may have been a problem if you are playing on a new joining a save for the first time with people who already had a world. Made a quick tweak and I think it should be fixed now on 1.1.8

Thanks, I check it and I keep you aware aspa ! 🙏🏻

Everything's working fine ! Thanks !

👌


Fixed import to use torchscript flag.

Codecov Report

Merging #899 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #899   +/-   ##
=======================================
  Coverage   79.03%   79.03%
=======================================
  Files          34       34
  Lines        6234     6234
=======================================
  Hits         4927     4927
  Misses       1307     1307

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 067923d...e1e2ab3. Read the comment docs.


Listen only on the unix socket during init

Healthchecks that used pg_isready -p 5432 were incorrectly flagging
the container as being healthy during initialization phase since
healthchecks are being run inside the container itself, so
listen_addresses='localhost' was not enough. The port 65432 was
chosen at random.

If we do change this, I'd rather just switch it to -c listen_addresses='' so that it only listens on the socket and will be less likely to break users. Then users can implement their healthchecks to connect via ip or <IP_ADDRESS> as we have in the example postgres healthcheck.

If the list is empty, the server does not listen on any IP interface at all, in which case only Unix-domain sockets can be used to connect to it.
https://www.postgresql.org/docs/current/static/runtime-config-connection.html

I've removed localhost from the listen_addresses as you suggested. I'm happy with this approach since it seems to have the same behaviour.

I see the CI fails randomly due to keyservers so I'll push a commit that implements the approach detailed here.

Let's not complicate this PR with unrelated gpg changes please. https://github.com/docker-library/official-images/issues/4252#issuecomment-381783035

OK, I removed the keyserver commit. You probably need to rerun the failing jobs manually.

(Builds in progress are duplicates -- the functionality has been tested sufficiently by other builds. :+1:)

Pretty good, you've broken our initialization scripts used TCP connection. And we were forced to find the reason why our builds become failed in registry for about two hours...
Yes, we have taken unix socket as a workaround, BUT, there's no "local trust" entries in default pg_hba file, and we use other roles besides postgres, so the only fix is to add missing lines manually:
{
    echo
    echo 'local all all trust'
} >> "$PGDATA/pg_hba.conf"
pg_ctl -D "$PGDATA" reload

@red-defender, there is local trust by default. Here is the contents of the default pg_hba.conf:
# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file.  A short
# synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access.  Records take one of these forms:
#
# local      DATABASE  USER  METHOD  [OPTIONS]
# host       DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
# hostssl    DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
# hostnossl  DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
#
# (The uppercase items must be replaced by actual values.)
#
# The first field is the connection type: "local" is a Unix-domain
# socket, "host" is either a plain or SSL-encrypted TCP/IP socket,
# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a
# plain TCP/IP socket.
#
# DATABASE can be "all", "sameuser", "samerole", "replication", a
# database name, or a comma-separated list thereof. The "all"
# keyword does not match "replication". Access to replication
# must be enabled in a separate record (see example below).
#
# USER can be "all", a user name, a group name prefixed with "+", or a
# comma-separated list thereof.  In both the DATABASE and USER fields
# you can also write a file name prefixed with "@" to include names
# from a separate file.
#
# ADDRESS specifies the set of hosts the record matches.  It can be a
# host name, or it is made up of an IP address and a CIDR mask that is
# an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that
# specifies the number of significant bits in the mask.  A host name
# that starts with a dot (.) matches a suffix of the actual host name.
# Alternatively, you can write an IP address and netmask in separate
# columns to specify the set of hosts.  Instead of a CIDR-address, you
# can write "samehost" to match any of the server's own IP addresses,
# or "samenet" to match any address in any subnet that the server is
# directly connected to.
#
# METHOD can be "trust", "reject", "md5", "password", "scram-sha-256",
# "gss", "sspi", "ident", "peer", "pam", "ldap", "radius" or "cert".
# Note that "password" sends passwords in clear text; "md5" or
# "scram-sha-256" are preferred since they send encrypted passwords.
#
# OPTIONS are a set of options for the authentication in the format
# NAME=VALUE.  The available options depend on the different
# authentication methods -- refer to the "Client Authentication"
# section in the documentation for a list of which options are
# available for which authentication methods.
#
# Database and user names containing spaces, commas, quotes and other
# special characters must be quoted.  Quoting one of the keywords
# "all", "sameuser", "samerole" or "replication" makes the name lose
# its special character, and just match a database or username with
# that name.
#
# This file is read on server startup and when the server receives a
# SIGHUP signal.  If you edit the file on a running system, you have to
# SIGHUP the server for the changes to take effect, run "pg_ctl reload",
# or execute "SELECT pg_reload_conf()".
#
# Put your actual configuration here
# ----------------------------------
#
# If you want to allow non-local connections, you need to add more
# "host" records.  In that case you will also need to make PostgreSQL
# listen on a non-local interface via the listen_addresses
# configuration parameter, or via the -i or -h command line switches.

# CAUTION: Configuring the system for local "trust" authentication
# allows any local user to connect as any PostgreSQL user, including
# the database superuser.  If you do not trust all your local users,
# use another authentication method.

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             <IP_ADDRESS>/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     trust
host    replication     all             <IP_ADDRESS>/32            trust
host    replication     all             ::1/128                 trust

host all all all md5

(The last two lines being added by the entrypoint when a password is supplied via POSTGRES_PASSWORD.)

@yosifkit Really, you are right, I'm used to production installations. :innocent:

@nmpacheco I just tried this locally with the latest postgres:
docker run --rm -it -e POSTGRES_USER=newuser POSTGRES_DB=newdb postgres

Then inside the container I executed:
psql -U newuser -d newdb

And inside I listed the databases:
newdb=# \l
                                 List of databases
   Name    |  Owner   | Encoding |  Collate   |   Ctype    |   Access privileges
-----------+----------+----------+------------+------------+-----------------------
 newdb     | postgres | UTF8     | en_US.utf8 | en_US.utf8 |
 postgres  | postgres | UTF8     | en_US.utf8 | en_US.utf8 |
 template0 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres          +
           |          |          |            |            | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres          +
           |          |          |            |            | postgres=CTc/postgres
(4 rows)

Are you doing some other initlaizations in your image? Maybe this helps you:
https://github.com/docker-library/postgres/issues/441#issuecomment-388115290

@sdwolfz you're right! I was using a swarm stack compose file that also sets PGHOST to <IP_ADDRESS> as part of the environment for the postgres service. I'll have to check why I need that.
Thanks!

How are you supposed to connect to postgres_fdw as a non-superuser during init phase when postgres only listens on socket?

Note: I believe that unfortunately, this change significantly complicates using the Tiger loader in PostGIS (https://postgis.net/docs/Loader_Generate_Script.html), which emits a shell script that only knows how to connect to the server via TCP/IP.
Probably too many layers of indirection removed from this project to care, but noting it on this merge so that other people who encounter the issue may be aware.


Model extends another allow property to become optional

 model Base {
  s: string;
}

model Foo extends Base {
  s?: string;
}

Playground Link
The same thing with template constrain fail which was fixed last sprint but seem like this case remain https://github.com/microsoft/typespec/pull/3290
Playground

P2


Invalid content-type when posting missing keys

When the saveMissing option is configured to save any missing keys, the POST request is send as text/plain. This should be application/json to work correctly.

As a workaround, you can specify the header on the requestOptions

I think the "workaround" is the correct solution here


Testing helpers

Recreating #5 because the transfer of repository ownership messed things up.
See also https://github.com/quarkiverse/quarkiverse-github-app/pull/60

Thanks!


[Improvement][Server] Improve dependent task unit tests

What is the purpose of the pull request
Improve dependent task unit tests
This pr is just about DependentTaskTest.java and closes the outdated pr #3442
The getTaskLogPath changes of MasterBaseTaskExecThread.java and MasterTaskExecThreadTest.java have been removed by the same author hsupu with the merged pr #3629.
Brief change log

Improve dependent task unit tests

Verify this pull request
This pull request is already covered by existing tests, such as (please describe tests).

Codecov Report

Merging #4911 (ca17246) into dev (54fc458) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev    #4911      +/-   ##
============================================
- Coverage     46.89%   46.88%   -0.01%
+ Complexity     3624     3622       -2
============================================
  Files           567      567
  Lines         23810    23810
  Branches       2742     2742
============================================
- Hits          11166    11164       -2
- Misses        11634    11635       +1
- Partials       1010     1011       +1

Impacted Files
Coverage Δ
Complexity Δ

...er/master/dispatch/host/assign/RandomSelector.java
77.77% <0.00%> (-5.56%)
3.00% <0.00%> (-1.00%)

...olphinscheduler/server/utils/DependentExecute.java
60.52% <0.00%> (-1.32%)
16.00% <0.00%> (-1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54fc458...ca17246. Read the comment docs.


Add folder location for transcript files, the input field is not editable

Version
4.2.146766
Describe the bug
I can't type or paste into the folder path when editing transcript locations.
To Reproduce
Steps to reproduce the behavior:

Go to files
Click on "Choose Location"
try to type or paste into the edit fields
you can't edit them

Expected behavior
input boxes should support input.
Screenshots
If applicable, add screenshots to help explain your problem.

[bug]

@mewa1024 we want to not make it look like this input field in tom's screenshot is editable. can you provide guidance on how we could adjust the UI to avoid this expectation? we could expand the browse click surface to include the input, avoiding the cursor behavior, or we could style it something other than an input box altogether?


use inputs rather than hard coded lists or sets

on many of the controls I am seeing a hardcoded list of ports, etc. to make the profile have the ability to account for organizational adjustments - aka 'overlays' - move these sets to shared inputs in the inspec.yml so that organizations can tailor their profiles easily should they add or perhaps remove allowed ports, accounts, etc. more easily and not having to modify the controls.

https://github.com/mitre/microsoft-windows-10-stig-baseline/blob/jb-windows10-controls-enhancements/inspec.yml
For example, the above allows us to easily update for environments etc.

https://github.com/mitre/microsoft-windows-10-stig-baseline/blob/jb-windows10-controls-enhancements/inspec.yml
For example, the above allows us to easily update for environments etc.

This repo seems private / or non-existent. Can you please point to similar examples?

That branch has been merged into master just hop to master and you'll see
the example
On Thu, Apr 9, 2020, 12:13 AM Konrad Schieban<EMAIL_ADDRESS>wrote:

https://github.com/mitre/microsoft-windows-10-stig-baseline/blob/jb-windows10-controls-enhancements/inspec.yml
For example, the above allows us to easily update for environments etc.
This repo seems private / or non-existent. Can you please point to similar
examples?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/inspec-gcp-pci-profile/issues/9#issuecomment-611317741,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALK42DVJ7NMWDYFDLG3F33RLVDOZANCNFSM4LTZB2IA
.

This was fixed in https://github.com/GoogleCloudPlatform/inspec-gcp-pci-profile/pull/18


Standardizing info achitecture across the landing pages (index.rst)

Call for revisiting all the landing pages (index.rst) and edit the content if necessary.

@derivation @lzdanski
Docs that we mainly need to focus on

[ ] Rewiring Circuits
[ ] Terra Parallel tools

closing as with the new organization this is not needed.


Address book: quick links to filter searches

Possible: select list of CC, division, site, etc.

Filter lists added: office location and cost centre.


Update info about certificates

See https://coderefinery.org/2022-03-22-workshop/#credits

Added info in end of intro :+1:


Add an option to run Hubble gRPC server embeded in Cilium process

Right now Hubble runs in a separate container and receive monitor events via unix domain socket. Also, it maintains a copy of Cilium state like fqdn cache, ip cache, endpoint list, and identity cache.
While there are some advantages in running Hubble separately from Cilium, lit would be nice to have an option to run Hubble embedded in Cilium process to reduce CPU/memory overhead.

regarding the CLI, a standalone binary is quite a bit larger than adding a sub-command to cilium binary (+ ~20MB). just wanted to see if this is acceptable. cc @tgraf
# cilium binary size without observe subcommand.
-rwxr-xr-x 1 root root 45M Mar  2 18:10 /usr/bin/cilium

# cilium binary size with observe subcommand.
-rwxr-xr-x 1 root root 47M Mar  2 18:33 /usr/bin/cilium

# hubble binary size without serve subcommand.
-rwxr-xr-x  1 michi  staff    25M Mar  2 10:34 hubble

@michi-covalent Are there any remaining items here or can we close out this issue now?

let's close it


Add initial Fortran/C Interoperability Mechanism

We should be able to use the interoperability features from Fortran - this adds a new system test which hopefully covers the main ways this can work and allows Fab to recognise and cope with them.  There are a few pitfalls creeping in here which we may want to think about (for example a "symbol" name and a "fortran program unit" name are treated as "unique" from the perspective of the database, but technically you can have a symbol and program unit with the same name without issue).  But for now this lodges the basics of the behaviour we need

Think this should be ready to look at now


There is no timestamp for the log message in the Output window after importing a document into a collection

OS: All
Build Version: 20231007.1
Regression: Not a regression
Repro steps:

Make sure the setting "Azure Databases: Enable Output Timestamps" is checked.
Create a Mongo DB account -> Create a database -> Create a collection.
Right click the collection -> Click "Import Document into a Collection..." -> Select a .Json file -> Import.
Check whether there is a timestamp for the log message in the Output window.

Expect:
There is a timestamp for the log message in the Output window.

Actual:
There is no timestamp for the log message in the Output window.

More Info:
This issue also reproduces after creating a new function query or Stored Procedure Query for the PostgreSQL account.

This is because these messages are written using an API that doesn't respect the timestamp setting.


ShapeKeys on Character animation not exporting correctly.

Hello,
I have a character animation based on ARMATURE and SHAPEKEYS(for eyelids, facial expressions, etc.) When I export it to GTLF, the armature animation works well, but the shape keys don't work (the eyelids not blink, the expression doesn't change).
I am attaching the blender file, and gtlf:
https://drive.google.com/drive/folders/1QIXlqVYGJXM6VmARLe7ERWmxhwtnBrcX
Please help. Stuck in a project.
Thanks

Hello,
I can't see any error here.
Viewing in https://gltf-viewer.donmccurdy.com/, you can see armature animation, but also other ones, that are shapekey animations.
Don't hesitate to refer to documentation (https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html) if you want to merge all animations into a single one, using NLA
Closing. Don't hesitate to comment and reopen if I miss something


Add detail to the monitoring API documentation

Updates to the documentation for the monitoring rest API, adding parameters and the /gatewayz endpoint.  I didn't include /stackz since it's not very useful to users without maintainer direction, but can add it if you'd like.
The rendered page is here.
Signed-off-by: Colin Sullivan<EMAIL_ADDRESS>

I've updated this PR from comments and cleaned a few more things up...   Another quick review would be great.

lgtm - thanks @ColinSullivan1


RegressionUse lock instead of tryLock to get the jobManager lock

Proposed changes
Issue Number: close #20240
tryLock only can be used in retriable schedule. But in some ddl stmt, the executor must have to get the lock.
If it can't get the lock, the executor should wait forever.


shell: append overlays

fixes #21
Makes it so the overlays of the default channel are included in the devshell - not installed, but available in modules

bors r+


Implement logging system

Raylib has its own logging system, but this does not allow the user to send new logs, so we need to implement our own, probably using SLF4J

Closed by 63806bb


Interpret SoC constraints defined as non instantaneous sensors

Description
I think this is the best I can do without addressing the distinction between resolution and frequency pretty much from the ground up in timely-beliefs, which would be a bigger project.
Related Items

https://github.com/FlexMeasures/flexmeasures/pull/996#discussion_r1521681986
Requires https://github.com/SeitaBV/timely-beliefs/pull/171

Could you please change the version of timely-beliefs to 2.2.0 (I think that one includes the new resampling strategy)? I think this will fix the image build process error. Also, I'd like to see if the test pass.

Done. (It was already changed, so I just had to rerun the failed check. The remaining checks that fail are failing on coveralls.)


[SE-0101] Migration

Depends on https://github.com/apple/swift/pull/3854
SE-0101 removes sizeof, sizeofValue and related functions from the stdlib.
This PR is migrating them to newly introduced MemoryLayout<T> values.

One small comment, LGTM otherwise.

SHOOT! I didn't mean to merge this one.

@rintaro , can you re-open? my apologies for the bogus early-merge.

OK, I will reopen this with reflecting @gribozavr's comment. (.size to .stride)


The small bug with multiclass xgboost

This check:
CHECK(preds.size() == (static_cast<size_t>(param_.num_class) * info.labels.size()))
<< "SoftmaxMultiClassObj: label size and pred size does not match";
means that number of training examples should be divided by the number of classes (if I understood correctly). For example, if number of classes is 10, then number of training examples should be divided by 10. Of course, it is not true in the majority of cases. Is it a bug? Thanks!

it is not, preds.size() gives the total number of probability entries. Which equals num_training * num_class.

Ok, I see, thanks! Actually, when I run xgboost from python on dataset with 1024389 training examples and num_class = 100, it gives error:
XGBoostError: [21:26:57] src/objective/multiclass_obj.cc:43: Check failed: preds.size() == (static_cast<size_t>(param_.num_class) * info.labels.size()) SoftmaxMultiClassObj: label size and pred size does not match
When I reduce the number of training examples to 1024300, it works fine. I suppose this is a memory problem then. My laptop cannot fit 1024389*100 matrix in the memory. Is it possible that I got such error because of this?

This could happen if your laptop is 32 bit and the predict vector size exceed integer range

Hi I am getting the same issue. @tqchen
https://stackoverflow.com/questions/45261638/xgboosterror-b191258-src-metric-rank-metric-cc89-check-failed-preds-si

@diefimov i was getting the same issue. The problem was the eval_metrics in my case. 'AUC' doesnt work with  multi-class i believe. i simple changed the metrics and my code worked.

@shang-vikas  what did you change your metric to from 'auc' which fixed the issue?

Changing the metric to "mlogloss" or "merror" fixed the issue for me.

I have converted my sparse matrices to csc_matrix format as suggested here: https://github.com/dmlc/xgboost/issues/1238#issuecomment-351976852
I have this error using sparse matrices:
[18:11:10] dmlc-core/include/dmlc/././logging.h:235: [18:11:10] src/objective/multiclass_obj.cc:43: Check failed: preds.size() == (static_cast<size_t>(param_.num_class) * info.labels.size()) SoftmaxMultiClassObj: label size and pred size does not match
Traceback (most recent call last):
  File "xgboost_word_importance.py", line 165, in <module>
    clf = train_xgboost(X_train, X_test, y_train, y_test, n_classes)
  File "xgboost_word_importance.py", line 140, in train_xgboost
    clf = xgb.train(params, xgb_train)
  File "/home/myuser/anaconda3/lib/python3.6/site-packages/xgboost/training.py", line 205, in train
    xgb_model=xgb_model, callbacks=callbacks)
  File "/home/myuser/anaconda3/lib/python3.6/site-packages/xgboost/training.py", line 76, in _train_internal
    bst.update(dtrain, i, obj)
  File "/home/myuser/anaconda3/lib/python3.6/site-packages/xgboost/core.py", line 806, in update
    _check_call(_LIB.XGBoosterUpdateOneIter(self.handle, iteration, dtrain.handle))
  File "/home/myuser/anaconda3/lib/python3.6/site-packages/xgboost/core.py", line 127, in _check_call
    raise XGBoostError(_LIB.XGBGetLastError())
xgboost.core.XGBoostError: b'[18:11:10] src/objective/multiclass_obj.cc:43: Check failed: preds.size() == (static_cast<size_t>(param_.num_class) * info.labels.size()) SoftmaxMultiClassObj: label size and pred size does not match'

Seems some rows of X_train are all zeros, can it be a problem?
Code for training:
def is_valid_sparse_matrix(data):
	for i in range(data.shape[0]):
		if(data.getrow(i).count_nonzero() == 0):
			return False

	return True

def train_xgboost(X_train, X_test, y_train, y_test, n_classes):
	params = {}
	params['objective'] = 'multi:softmax'
	params['silent'] = 1
	params['nthread'] = multiprocessing.cpu_count()
	params['num_class'] = n_classes

	print('X_train.shape', X_train.shape) #
	print('X_test.shape', X_test.shape) #
	print('y_train.shape', y_train.shape) #
	print('y_test.shape', y_test.shape) #
	print('np.unique(y_train)', np.unique(y_train)) #
	print('np.unique(y_test)', np.unique(y_test)) #

	print('type(X_train)', type(X_train)) #
	print('type(X_test)', type(X_test)) #
	print('type(y_train)', type(y_train)) #
	print('type(y_test)', type(y_test)) #

	#Convert to CSC sparse matrix format https://github.com/dmlc/xgboost/issues/1238
	X_train = scipy.sparse.csc_matrix(X_train)
	X_test = scipy.sparse.csc_matrix(X_test)

	print('type(X_train)', type(X_train)) #
	print('type(X_test)', type(X_test)) #
	print('type(y_train)', type(y_train)) #
	print('type(y_test)', type(y_test)) #

	#if(not is_valid_sparse_matrix(X_train)):
	#	print('X_train is not valid!')
	#	sys.exit()
	#if(not is_valid_sparse_matrix(X_test)):
	#	print('X_train is not valid!')
	#	sys.exit()

	xgb_train = xgb.DMatrix(X_train, label=y_train)
	xgb_test = xgb.DMatrix(X_test, label=y_test)

	clf = xgb.train(params, xgb_train)

	y_pred = clf.predict(xgb_test)

	acc = accuracy_score(y_test, y_pred)
	print('acc', acc*100.0,'%')
	f1 = f1_score(y_test, y_pred)
	print('f1_score', f1)

	return clf

Output:
X_train.shape (701, 52708)
X_test.shape (176, 52708)
y_train.shape (701,)
y_test.shape (176,)
np.unique(y_train) [0 1]
np.unique(y_test) [0 1]
type(X_train) <class 'scipy.sparse.csr.csr_matrix'>
type(X_test) <class 'scipy.sparse.csr.csr_matrix'>
type(y_train) <class 'numpy.ndarray'>
type(y_test) <class 'numpy.ndarray'>
type(X_train) <class 'scipy.sparse.csc.csc_matrix'>
type(X_test) <class 'scipy.sparse.csc.csc_matrix'>
type(y_train) <class 'numpy.ndarray'>
type(y_test) <class 'numpy.ndarray'>

Minimum example to reproduce error:
import xgboost as xgb
import numpy as np
import scipy
import sys
import multiprocessing

X_train = scipy.sparse.csc_matrix((4, 3), dtype=np.float32)
X_test = scipy.sparse.csc_matrix((5, 3), dtype=np.float32)

y_train = np.ones((4, ), dtype=np.int32)
y_test = np.ones((5, ), dtype=np.int32)

def is_valid_sparse_matrix(data):
	for i in range(data.shape[0]):
		if(data.getrow(i).count_nonzero() == 0):
			return False

	return True

def train_xgboost(X_train, X_test, y_train, y_test, n_classes):
	params = {}
	params['objective'] = 'multi:softmax'
	params['silent'] = 1
	params['nthread'] = multiprocessing.cpu_count()
	params['num_class'] = n_classes

	print('X_train.shape', X_train.shape) #
	print('X_test.shape', X_test.shape) #
	print('y_train.shape', y_train.shape) #
	print('y_test.shape', y_test.shape) #
	print('np.unique(y_train)', np.unique(y_train)) #
	print('np.unique(y_test)', np.unique(y_test)) #

	print('type(X_train)', type(X_train))
	print('type(X_test)', type(X_test))
	print('type(y_train)', type(y_train))
	print('type(y_test)', type(y_test))

	#if(not is_valid_sparse_matrix(X_train)):
	#	print('X_train is not valid!')
	#	sys.exit()
	#if(not is_valid_sparse_matrix(X_test)):
	#	print('X_train is not valid!')
	#	sys.exit()

	xgb_train = xgb.DMatrix(X_train, label=y_train)
	xgb_test = xgb.DMatrix(X_test, label=y_test)

	clf = xgb.train(params, xgb_train)

	y_pred = clf.predict(xgb_test)

	acc = accuracy_score(y_test, y_pred)
	print('acc', acc*100.0,'%')
	f1 = f1_score(y_test, y_pred)
	print('f1_score', f1)

	return clf

train_xgboost(X_train, X_test, y_train, y_test, 2)

Output:
X_train.shape (4, 3)
X_test.shape (5, 3)
y_train.shape (4,)
y_test.shape (5,)
np.unique(y_train) [1]
np.unique(y_test) [1]
type(X_train) <class 'scipy.sparse.csc.csc_matrix'>
type(X_test) <class 'scipy.sparse.csc.csc_matrix'>
type(y_train) <class 'numpy.ndarray'>
type(y_test) <class 'numpy.ndarray'>
[18:45:58] dmlc-core/include/dmlc/././logging.h:235: [18:45:58] src/objective/multiclass_obj.cc:43: Check failed: preds.size() == (static_cast<size_t>(param_.num_class) * info.labels.size()) SoftmaxMultiClassObj: label size and pred size does not match
Traceback (most recent call last):
  File "xgboost_fail.py", line 71, in <module>
    train_xgboost(X_train, X_test, y_train, y_test, 2)
  File "xgboost_fail.py", line 59, in train_xgboost
    clf = xgb.train(params, xgb_train)
  File "/home/user/miniconda3/lib/python3.6/site-packages/xgboost/training.py", line 205, in train
    xgb_model=xgb_model, callbacks=callbacks)
  File "/home/user/miniconda3/lib/python3.6/site-packages/xgboost/training.py", line 76, in _train_internal
    bst.update(dtrain, i, obj)
  File "/home/user/miniconda3/lib/python3.6/site-packages/xgboost/core.py", line 806, in update
    _check_call(_LIB.XGBoosterUpdateOneIter(self.handle, iteration, dtrain.handle))
  File "/home/user/miniconda3/lib/python3.6/site-packages/xgboost/core.py", line 127, in _check_call
    raise XGBoostError(_LIB.XGBGetLastError())
xgboost.core.XGBoostError: b'[18:45:58] src/objective/multiclass_obj.cc:43: Check failed: preds.size() == (static_cast<size_t>(param_.num_class) * info.labels.size()) SoftmaxMultiClassObj: label size and pred size does not match'


Pasting to shared folder/mapped drive doesn't trigger refresh

Hi,
when pasting to a shared folder or a mapped drive is not causing refresh of the windows as it is done on a local folder, and there is no progress windows shown. It is a problem when pasting large files (WIM file 10Gb ie).
v <IP_ADDRESS>

@boscorelly When you paste many items, does the StatusCenter show a banner during the process?

@yaichenbaum the issue related is yes linked, but there is no problem when pasting files to local drive
@duke7553 i can't answer : v0.17 is no more workink on network path, i have this error when accessing a shared folder :
Value does not fall within expected range.

Related to #2080.

Version <IP_ADDRESS> also happening this issue, current location not refreshed after pasting files, I needed to refresh manually to see new pasted files.

This also happens when you have 2 network shares open as different tabs and drag (move) a file between them.
Neither list refreshes, automatically.
JJ

This also happens when you have 2 network shares open as different tabs and drag (move) a file between them.
Neither list refreshes, automatically.
JJ

A related issue I've experienced is that if I try to create a folder on a network drive, I manually have to refresh before I see the new folder. Should that be logged separately?

@ylefebvre It's probably a similar issue, but can you open a separate issue so we can track it?

@osieltorres This issue should be resolved with #4999.


Carthage install broken

When trying to build JASON with latest version of Carthage and Xcode installed, it always fails with this error:
*** Building scheme "JASON iOS" in JASON.xcodeproj
/usr/bin/xcrun xcodebuild -project /Users/milanstevanovic/Developer/ios-cop/Overstats/Overstats/Carthage/Checkouts/JASON/JASON.xcodeproj -scheme "JASON iOS" -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean buildBuild settings from command line:
    BITCODE_GENERATION_MODE = bitcode
    CARTHAGE = YES
    CODE_SIGN_IDENTITY =
    CODE_SIGNING_REQUIRED = NO
    ONLY_ACTIVE_ARCH = NO
    SDKROOT = iphoneos10.0

=== CLEAN TARGET JASON iOS OF PROJECT JASON WITH CONFIGURATION Release ===

Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

** CLEAN FAILED **

The following build commands failed:
	Check dependencies
(1 failure)
=== BUILD TARGET JASON iOS OF PROJECT JASON WITH CONFIGURATION Release ===

Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

** BUILD FAILED **

The following build commands failed:
	Check dependencies
(1 failure)
A shell task (/usr/bin/xcrun xcodebuild -project /Users/milanstevanovic/Developer/ios-cop/Overstats/Overstats/Carthage/Checkouts/JASON/JASON.xcodeproj -scheme "JASON iOS" -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** CLEAN FAILED **

The following build commands failed:
	Check dependencies
(1 failure)
** BUILD FAILED **

The following build commands failed:
	Check dependencies
(1 failure)

Hi @milanstevanovic ,
What does your Cartfile looks like?
I just pushed the v3.0 tag, so github "delba/JASON" "~> 3.0" should work now.
Let me know :)

Hi @delba ,
Guess I was using the old version (2.2), with github "delba/JASON" >= 3.0 everything is working fine, thank you for your help. 👍


near-operation-file preset depends on relay-compiler@12, which doesn't support GraphQL 16

Hi.
The latest releases of GraphQL code generator packages added GraphQL 16 support. But near-operation-file preset depends on relay-compiler@12, which doesn't support GraphQL 16:
<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>
According to https://github.com/facebook/relay/issues/3705 and https://github.com/ardatan/graphql-tools/issues/4070 I see, that GraphQL 16 support for near-operation-file preset is a complex feature, since the new relay-compiler@13 migrated to Rust and @graphql-tools/relay-operation-optimizer can't work with it like it did before.
Are there any plans to add GraphQL 16 support for near-operation-file preset in the nearest future?

I am curious why this preset says it's compatible with GraphQL 16 despite the underlying dependency chain not supporting GraphQL 16.
I didn't see any specific problems after the upgrade, but I am a bit wary of using relay-compiler@12 with graphql@16 when its own devs say it's not compatible.

Any updates on this?

It is compatible with GraphQL v16 and it is just peer dependency definition. You can ignore dependency warnings until we figure that out.

this should have been fixed with the latest version of graphql-tools: https://github.com/ardatan/graphql-tools/discussions/4070#discussioncomment-2915012

@Urigo Yes, now there are no warnings about peer dependencies.


CLOUD-59888 Mesos does not supports IMAGE therfore the exception shal…

…l be handled gracefully
@doktoric

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/cloudbreak-pull-request/2697/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/mock-integration-test/188/


ci: reduce the content put in the workspace

Description
Removing some unnecessary files from the workspace.
Basically, we only need the two distribution folders, to be able to build dev docker images.

I rebased this one @phiz71 and the diff looks great 😂

🤣  it was just a test, i'm not sure it improves a lot the process.


[5771] Add prosopite gem for 1+N query detection

Context
We are currently investigating a few 1+N queries that have been flagged in Sentry. We don't have a means of detecting 1+N queries as part of our CI/build process. We've tried to implement this with bullet in the past but it's proved to be too noisy.
Changes proposed in this pull request
This PR adds the prosopite gem to try it out as a bullet alternative.
Guidance to review
This PR is not ready to merge because there are a number of test failures now that prosopite has been added. We need to take a view on whether prosopite is worthwhile adding before taking time to fix the failures.
It looks like there are a couple of drawbacks with prosopite, though they can likely be overcome.
Firstly I found the error messages a little unhelpful because the call stack appears to be truncated, e.g.
N+1 queries detected:
[499](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5737133505/job/15548320856?pr=3482#step:11:500)
  SELECT "academic_cycles".* FROM "academic_cycles" WHERE (end_date >= '2023-08-02 09:39:14.490563' AND start_date <= '2023-08-02 09:39:14.490563') ORDER BY "academic_cycles"."id" ASC LIMIT $1
[500](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5737133505/job/15548320856?pr=3482#step:11:501)
  SELECT "academic_cycles".* FROM "academic_cycles" WHERE (end_date >= '2023-08-02 09:39:14.491982' AND start_date <= '2023-08-02 09:39:14.491982') ORDER BY "academic_cycles"."id" ASC LIMIT $1
[501](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5737133505/job/15548320856?pr=3482#step:11:502)
Call stack:
[502](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5737133505/job/15548320856?pr=3482#step:11:503)
  app/models/academic_cycle.rb:30:in `for_date'
[503](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5737133505/job/15548320856?pr=3482#step:11:504)
  app/models/academic_cycle.rb:34:in `current'

In this case the call stack is only 2 deep, and it's hard to see where this code is being invoked from. It turns out this is because the call stack is 'cleaned up' in the gem using ActiveSupport::BacktraceCleaner. This doesn't seem to be a configuration option but there is probably a workaround here.
There seem to be quite a few false positives cropping when running prosopite in our test suite. e.g.
N+1 queries detected:
[23](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5738576657/job/15552542149?pr=3482#step:11:24)
  SELECT "sessions".* FROM "sessions" WHERE "sessions"."session_id" = $1 ORDER BY "sessions"."id" ASC LIMIT $2
[24](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5738576657/job/15552542149?pr=3482#step:11:25)
  SELECT "sessions".* FROM "sessions" WHERE "sessions"."session_id" = $1 ORDER BY "sessions"."id" ASC LIMIT $2
[25](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5738576657/job/15552542149?pr=3482#step:11:26)
Call stack:
[26](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5738576657/job/15552542149?pr=3482#step:11:27)
  app/models/dfe_sign_in_user.rb:29:in `load_from_session'
[27](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5738576657/job/15552542149?pr=3482#step:11:28)
  app/controllers/application_controller.rb:47:in `sign_in_user'
[28](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5738576657/job/15552542149?pr=3482#step:11:29)
  app/controllers/application_controller.rb:53:in `current_user'
[29](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5738576657/job/15552542149?pr=3482#step:11:30)
  app/controllers/application_controller.rb:66:in `authenticated?'
[30](https://github.com/DFE-Digital/register-trainee-teachers/actions/runs/5738576657/job/15552542149?pr=3482#step:11:31)
  app/controllers/application_controller.rb:79:in `authenticate'

In this example we are calling DfESignInUser#load_from_session multiple times within the same test. So it's not a classic 1+N query, more like a missed opportunity to cache a database query. (I don't think you can fix these by just adding an includes on some query). So it may be that we have to introduce caching or add these cases to the white list of 'allowed 1+Ns'.
Important business

[x] Does this PR introduce any PII fields that need to be overwritten or deleted in db/scripts/sanitise.sql?
[x] Does this PR change the database schema? If so, have you updated the config/analytics.yml file and considered whether you need to send 'import_entity' events?
[x] Do we need to send any updates to DQT as part of the work in this PR?
[x] Does this PR need an ADR?

NB: Please notify the #twd_data_insights team and ask for a review if new fields are being added to analytics.yml

Closing in favour of https://github.com/DFE-Digital/register-trainee-teachers/pull/3488


Animation smoothing broken for Basilisk Knights (incl. superior and quest variants) and Sotetseg.

Please check if your issue is not a duplicate by searching existing issues
Describe the bug
I wasn't able to check up on Sotetseg in-game, but I remember the "swirly magic" around his arms being broken with animation smoothing, I did search and didn't find anything suggesting this one was ever fixed. Similarly, the melee attack of Basilisk Knights (including the Basilisk Sentinel, Typhor and Vritra) where they slam the ground will make them freak out.
To Reproduce
Go to any of the NPC's listed above with animation smoothing turned on.
Expected behavior
For the boys to not have a seizure when trying to kill me.
Environment (please complete the following information):

OS: Windows 11 (But was the same in Windows 10, so unrelated to the problem)
RuneLite version: 1.7.16
Launcher version: 2.0.2

Additional context
Similar problem to what has happened with many other animations with smoothing on prior, like Hellhounds and Viggora's Chainmace, etc.

Can you include gifs/videos of this?

Can you include gifs/videos of this?

Basilisk: https://youtu.be/agE3rLKCFy4?t=339
Sotetseg apparently did get fixed? Very strange considering smoothing is still turned on for him, so nothing was ever changed on RuneLite's part, but maybe Jagex altered his animation at this point.


Uncaught Error: spawn /Users/kraft/Library/Application Support/com.github.atom.ShipIt/update.x5tO...

Open app.

I had just opened it via the context menu in Finder, which opened fine with an existing workspace of files from another project. I closed all tabs, then exit (so I could reopen and have the project files available). The second open led to the error.
Atom Version: 1.0.6
System: Mac OS X 10.10.5
Thrown From: Atom Core
Stack Trace
Uncaught Error: spawn /Users/kraft/Library/Application Support/com.github.atom.ShipIt/update.x5tOpGL/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper ENOENT
At events.js:141

Error: spawn /Users/kraft/Library/Application Support/com.github.atom.ShipIt/update.x5tOpGL/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper ENOENT
    at exports._errnoException (util.js:734:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1035:32)
    at child_process.js:1127:20
    at process._tickCallback (node.js:357:13)
    at EventEmitter.ipc.sendSync (/Users/kraft/Library/Application Support/com.github.atom.ShipIt/update.x5tOpGL/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/ipc.js:21:31)
    at BrowserWindow.RemoteMemberFunction [as getPosition] (/Users/kraft/Library/Application Support/com.github.atom.ShipIt/update.x5tOpGL/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/remote.js:110:29)
    at Atom.module.exports.Atom.getWindowDimensions (/Users/kraft/Library/Application Support/com.github.atom.ShipIt/update.x5tOpGL/Atom.app/Contents/Resources/app.asar/src/atom.js:558:29)
    at Atom.module.exports.Atom.storeDefaultWindowDimensions (/Users/kraft/Library/Application Support/com.github.atom.ShipIt/update.x5tOpGL/Atom.app/Contents/Resources/app.asar/src/atom.js:591:25)
    at /Users/kraft/Library/Application Support/com.github.atom.ShipIt/update.x5tOpGL/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:104:21
    at handler (/Users/kraft/Library/Application Support/com.github.atom.ShipIt/update.x5tOpGL/Atom.app/Contents/Resources/app.asar/src/space-pen-extensions.js:115:32)

Commands

Config
{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ],
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store"
    ]
  },
  "editor": {
    "fontSize": 16,
    "invisibles": {}
  }
}

Installed Packages
# User
No installed packages

# Dev
No dev packages

Closing as a duplicate of #7399, please subscribe there for updates.


chore(release): v1.1.8 🎉

:robot: I have created a release beep boop
1.1.8 (2023-09-22)
Bug Fixes

deps: bump event-stream-pubsub to latest (5a2532e)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/mhetrics/app-usage-events-react/releases/tag/v1.1.8 :sunflower:


you can try disabling this check with -IgnoreFileChecks Using COPY-DBADatabase

I work on an PS script to refrsh coping of Databases from my Production Environment to my Test Environment. The two Environmnet are in different Domain and both domains have access to the Fileshare. The process work fine when I'm testing it in the same Environment. I'm getting the attached error message.
Here's the error message.
you can try disabling this check with -IgnoreFileChecks
I've attached a screen shot of the error.
If possible can you reply to my e-mail account<EMAIL_ADDRESS>

Any ideas on this issue? I'm using the 'Copy-DbaDatabase'  command and I'm gettgin the following error message.
PS C:\Users\lfritz>         Copy-DbaDatabase -Source $Database.FromServer -Destination $Database.ToServer -Database $Database.Database_Name -BackupRestore -WithReplace -SharedPath $SourceBackupFolder -ErrorAction Stop
echo 'Copy DB from target to source'
WARNING: [10:46:12][Copy-DbaDatabase] Error validating unc path: Exception calling "GetHostEntry" with "1" argument(s): "No such host is known"
Copy DB from target to source
PS C:\Users\lfritz>
I know my parameters are set correct because I doing a backup of the Database on target before I try and refresh it from Production.
Keep in mind I'm working with two different domain Production and Dev. And both environment have full access to the Fileshare.
Any help would be great.

Are you running this from one of the servers or a separate machine/desktop?

Greetings,
It is very unlikely that this is an error with dbatools. There is something going on with the resolution of your UNC path from the destination SQL Server. Please try using the Fully Qualified Domain Name (FQDN) of the file share (share.ad.local instead of share). And please log into your destination SQL Server and ensure you can access that share from the SQL Server service account.

Closing but willing to reopen if logs/screenshots prove my assumptions are incorrect.


Replace Users table on Admin/Users.razor with Blazor QuickGrid

This sounds easy enough has anyone else offered to do this @csharpfritz


Crash with cofh world on startup on Modpack

Describe the bug
A clear and concise description of what the bug is.

Remember that a great explanation leads to a greater understanding

Reproducibility
Please try to reproduce the issue with as few other mods as possible. Then check one of the following checkboxes according to your results. To check a checkbox, replace the space between the square brackets with an x (like this [x]) or create the issue and check the checkbox by clicking on it.

[ ] I reproduced this issue with as few other mods as possible installed.
[ ] I am unable to reproduce this issue consistently.
[X] I am able only to get the issue in My Modpack

To Reproduce
Steps to reproduce the behavior:

Download https://legacy.curseforge.com/minecraft/modpacks/mystics-monstrosity-v6-0-modified-fork
Add Alfeim + Update red core + remove phosphor
Open the game
wait some seconds , get crash

Expected behavior
Don't crash
Logs or/and crash reports
latest.log
Versions

Alfeim: Alfheim-1.0
Forge: 1.12.2 - <IP_ADDRESS>60
Java: zulu<IP_ADDRESS>-ca-jdk8.0.372-linux_x64
Java JVM: Zulu

Specification:

OS: EndeavourOS(Arch linux)
CPU: I5 10400F
GPU: RTX 3060
RAM Allocated: 12GB

All of these info below are not necessary but may become necessary depending on the issue

CPU Speed: Processor Base Frequency 2.90 GHz Max Turbo Frequency 4.30 GHz
CPU Core: 6
CPU Threads: 12
RAM Size: 32GB
RAM Speed: 2666MHZ
Storage Type: 1TO SSD
GPU VRAM: 12GB

Will be fixed today
Note to myself:
Instead of doing cringe inject, just AT it in Alfheim.


[dropSpecialCharacters]="true"

There's an issue in the original project about this problem, and there are instructions to deal with it. They could be implemented in this fork.
Migrated from original project (https://github.com/cesarrew/ng2-currency-mask/issues/103)
Orignal request by @ErickXavier, @michellehorn
Is it possible to have an option so the model has no special Characters?
Something like: [dropSpecialCharacters]="true"
Example:
when you see R$ 199.999,10 the model itself is 19999910.
Response from @ErickXavier
I added the support, just waiting on the merge: (https://github.com/cesarrew/ng2-currency-mask/pull/104)

Added a pull-request:
https://github.com/christopheelkhoury/ng2-currency-mask/pull/24


README.md: update Homebrew instructions

Homebrew has automatically tapped fully-qualified third-party formula paths for quite a while now.
Also, the homebrew- prefix is redundant.

Thank you for your contribution


[Editor] Add a toggle button to show/hide all the highlights (bug 1867740)

/botio-linux preview

One question, based on testing the preview, however this may not be something that we want to implement:
Do we want to enable "Show all" unconditionally, when Highlighting mode is enabled (e.g. via the toolbar)?

One question, based on testing the preview, however this may not be something that we want to implement: Do we want to enable "Show all" unconditionally, when Highlighting mode is enabled (e.g. via the toolbar)?

Good question and another came in my mind: what should we do when showAll is off and the user leaves the Highlighting mode ?
Let ask to @caseyr28 what he thinks about that.

One question, based on testing the preview, however this may not be something that we want to implement: Do we want to enable "Show all" unconditionally, when Highlighting mode is enabled (e.g. via the toolbar)?

I think in the future having a better affordance for the state of tools and annotations makes sense. This should be a part of the longer term UX debt improvements as there are many ways to solve this, and I would want to ensure scalability.

Good question and another came in my mind: what should we do when showAll is off and the user leaves the Highlighting mode ?

I think the flow now works; a user that toggles visibility off and disables the tool can enable the tool and either toggle visible, or begin highlighting and have visibility=true. I think this should be the same for when a user creates a highlight via selecting text/in-content. One caveat is that the toggle button may not be enough affordance to indicate state, which IMO relays back to the first question.

/botio integrationtest


aws-c-sdkutils: 0.1.2 -> 0.1.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/aws-c-sdkutils/versions.
meta.description for aws-c-sdkutils is: "AWS SDK utility library"
meta.homepage for aws-c-sdkutils is: "https://github.com/awslabs/aws-c-sdkutils"
meta.changelog for aws-c-sdkutils is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.1.3 with grep in /nix/store/j8aj5gippk99ilbymsz4hyvhx7ziaxh0-aws-c-sdkutils-0.1.3
found 0.1.3 in filename of file in /nix/store/j8aj5gippk99ilbymsz4hyvhx7ziaxh0-aws-c-sdkutils-0.1.3

Rebuild report (if merged into master) (click to expand)

272 total rebuild path(s)

272 package rebuild(s)

First fifty rebuilds by attrpath
appvm
arrow-cpp
arrow-glib
aws-c-auth
aws-c-s3
aws-c-sdkutils
aws-crt-cpp
aws-sdk-cpp
bundix
cabal2nix
cached-nix-shell
cachix
colmena
comma
common-updater-scripts
crate2nix
crystal2nix
dep2nix
dydisnix
fusionInventory
gnome.gnome-packagekit
gnome.gnome-software
gnome.simple-scan
go2nix
haskellPackages.cabal2nix-unstable
haskellPackages.cachix
haskellPackages.hercules-ci-agent
haskellPackages.hercules-ci-cli
haskellPackages.hercules-ci-cnix-expr
haskellPackages.hercules-ci-cnix-store
haskellPackages.nix-paths
haskellPackages.nvfetcher
haskellPackages.update-nix-fetchgit
hci
hercules-ci-agent
home-assistant-component-tests.environment_canada
home-manager
hydra_unstable
intensity-normalization
libnixxml
libsForQt5.discover
libsForQt5.packagekit-qt
libsForQt512.discover
libsForQt512.packagekit-qt
libsForQt514.discover
libsForQt514.packagekit-qt
libsForQt515.discover
libsForQt515.packagekit-qt
lispPackages.quicklisp-to-nix
lispPackages.quicklisp-to-nix-system-info

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/j8aj5gippk99ilbymsz4hyvhx7ziaxh0-aws-c-sdkutils-0.1.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A aws-c-sdkutils https://github.com/r-ryantm/nixpkgs/archive/f63904976fdb2fb8e515c8031b13d8f589dc7a16.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/j8aj5gippk99ilbymsz4hyvhx7ziaxh0-aws-c-sdkutils-0.1.3
ls -la /nix/store/j8aj5gippk99ilbymsz4hyvhx7ziaxh0-aws-c-sdkutils-0.1.3/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @r-burns for testing.

@ofborg eval
@ofborg build


Occasionally there will be a failure

OS

Win10 17763.678

Problem

After the computer restarts,Or is it waken up from the sleep state of the computer
Or is it waken up from the sleep state of the computer,Restart the software to solve the problem
Incidental incident, no law is found for the time being

ScreenShot

Not Chris, but can confirm this isn't happening on my system. I can see that you are using another third-party app to display the network activity and CPU usage in the taskbar -- out of curiosity what's the name of the app, it looks quite nice? Also, could you please test without said application, to see if it's interfering with FalconX

@user00101010
I don't know if it counts as advertising. If it does, I can delete it
TrafficMonitor

Seems like your taskbar's Redraw gets enabled. Causing the taskbar to update and go to it's origin position. TrafficMonitor is monitoring your traffic "of course" and outputs it to it's own toolbar in the taskbar causing the taskbar to update (Enabling the taskbar's Redraw).

Maybe it’s not clear enough for me to describe

This issue has little to do with TrafficMonitor, and it doesn't even matter.

Software failure only because the resource manager is restarted
Here is a bat code that can restart the resource manager, you can try

@echo off
taskkill /f /im explorer.exe
CD /d %userprofile%\AppData\Local
DEL IconCache.db /a
start explorer.exe
echo END

Does it also happen without restarting Explorer.exe?
If Explorer.exe gets killed or restarted then FalconX loses it's handle's and won't be able to move it until you restart FalconX.
I will test your script as soon as i have more time too. And will try to fix it...

As you can see now in the new update <IP_ADDRESS> you can see it restarts automatically when explorer.exe got killed.

Test can, thank you
Give a suggestion, the interface can stretch, It’s better if the content can fill the interface.
In the picture, after the interface is stretched, there will be a large blank.
,

Allright :)
Will be fixed in <IP_ADDRESS>
Here is the Pre-Release
https://chrisandriessen.nl/web/downloads/falconx/Pre-Release/Pre-Release <IP_ADDRESS>.zip

hum....
In fact, these are optimization items.
There's no need for you to rush
You can optimize slowly
This software is great.


"ui_accept" InputEvent not working when code generated

I'm trying to push some custom action events to use some default buttons behaviour. Since there was no problem about "ui_left/right/up/down/escape", I cant manage to make "ui_accept" work. This is the code I use:
var event = InputEvent()
event.type = InputEvent.ACTION
event.set_as_action( "ui_accept", true )
get_tree().input_event( event )

It seems to me that there is some bug that I cant find. Corrent me if I'm wrong.

do you have a control focused? ui_accept will do nothing if no control has input focus

try doing:
some_control.grab_focus()
and then send the ui_accept
On Tue, May 19, 2015 at 9:11 PM, Juan Linietsky<EMAIL_ADDRESS>wrote:

do you have a control focused? ui_accept will do nothing if no control has
input focus
—
Reply to this email directly or view it on GitHub
https://github.com/okamstudio/godot/issues/1941#issuecomment-103702426.

--
OkamStudio

Is there something special about ui_accept?

There is always one button with grabbed focus on it in my scene. It starts with already grabbed focus on the first button - I do it manualy in the code. I tried even clicking on the button, and releasing it outside to grab the focus, but no change. As I mentioned, there is no problem with other ui actions, like ui_left/right/up/down/escape, so I can already freely nivigate my menu through. I've even tried to look into button class source - but I cant see why does it happen. Does my code work for you?

Well... I've found the bug - but in Godot itself.
In BaseButton implementetion, in _input_event method, there is a switch(p_event.type). The problem is, that current implementation accepts ui_accept only when event is KEY typed - not ACTION. It's quite strange, cose there is a this check inside:
if (p_event.is_action("ui_accept"))

while in that switch case there is a chack if event is KEY typed, so it's a paradox. After changing this case to ACTION it works fine, but the default mappings stopped to work, because of how are they done ( they are KEY actions this action added - it shouldn't be done that way. Should it? )
It quite messy out there about this. Netherless I've found what it was all about. It just can't work.

Ok. The issue can be fixed quite easy. Checked it on both Windows and Linux. Working fine. I've made a pull request for that:
https://github.com/okamstudio/godot/pull/2007

Pull request marged. Bug fixed.


running onnx format model , met this rebuild error

I tried to use onnx format model according to README.md in directory Onnxruntime. And  I have been finished step 1 ,export model to onnx and step 2 ,build. But when I tried to test step 3 ,testing, I met this error.
F0718 17:00:21.503589 355018 params.h:131] Please rebuild with cmake options 'DONNX=ON'.


Not show up in the tabs

Unlike sd-model-downloader, sd-hub doesn't show up in the tabs on forge
Also I've been getting this error when starting up:
Installing requirements for CivitAI Browser
*** Error running install.py for extension X:\forge\webui\extensions\sd-hub.
*** Command: "X:\forge\system\python\python.exe" "X:\forge\webui\extensions\sd-hub\install.py"
*** Error code: 1
*** stderr: Traceback (most recent call last):
***   File "X:\forge\webui\extensions\sd-hub\install.py", line 135, in <module>
***     _install_req_2()
***   File "X:\forge\webui\extensions\sd-hub\install.py", line 118, in _install_req_2
***     if _sub(['apt', pkg_cmds['apt']]):
***   File "X:\forge\webui\extensions\sd-hub\install.py", line 17, in _sub
***     subprocess.run(
***   File "subprocess.py", line 501, in run
***   File "subprocess.py", line 969, in __init__
***   File "subprocess.py", line 1438, in _execute_child
*** FileNotFoundError: [WinError 2] The system cannot find the file specified

it won't work on local windows


Documents help

Describe the issue
I have messed up RFC documents trying to update my network, so that all messages will come through actually. I believe my area home location was blocked and trying to get more information. No one will FU to my inquiries. I want forms back to default and help understanding why my home location address is blocked
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

This is indistinguishable from spam. If there is a real issue behind this contact<EMAIL_ADDRESS>


[FEATURE REQ] Azure Function EventHub allow passing of the PartitionKey in the EventData ctor

Library name
Azure.Messaging.EventHubs
Please describe the feature.
It would be great if could pass a PartitionKey while creating a new EventData object.
This would allow the use of user defined partition keys when adding message via the EventHub output binding's IAsyncCollector.AddAsync method.
This is desirable over the use of EventHubProducerClient.SendAsync due to the fact that IAsyncCollector.AddAsync will queue the message and batch behind the scenes in parallel, whereas EventHubProducerClient.SendAsync needs to be awaited on each send of a single message or a batch.
The two mechanisms behave quite differently from each other and we've seen large performance gains while using the IAsyncCollector and IAsyncCollector.Flush compared to EventHubProducerClient.SendAsync.
IAsyncCollector collector = from output binding
EventData message = new EventData(data);
await collector.AddAsync(message);      <-- returns immediately and is sent in parallel
...
more stuff
...
await collector.Flush();      <-- waits for remaining messages to send

vs
EventHubProducerClient client = from output binding
EventData message = new EventData(data);
await client.SendAsync(message);      <-- waits for the send operation before returning

This is similar to some of the comments in https://github.com/Azure/azure-sdk-for-net/issues/28245 but it's not the same as the issue itself.
We've done some testing using the EventHubsModelFactory.EventData testing method and verified the partition key when set via this method appears to be used correctly by IAsyncCollector and the events do in fact send and arrive downstream in the correct batches with the set partition.
Clearly we can't use this testing and mocking method for production though.
Or maybe there's another way to use the IAsyncCollector?
Thanks :-)

Hi @fuzzlebuck.   Thank you for reaching out and we regret that you're experiencing difficulties.    The PartitionKey property of EventData is a broker-owned field that is populated only for events read from Event Hubs.   It is intentionally not possible to set a partition key on an event created otherwise.
The implementation of the async collector appears to be incorrect, relying on what was a bug in the previous generation of the Event Hubs client library.  Because of this, partition keys are unable to be used with the collector, despite it attempting to manage batches correctly to do so.   To support this will require a new AddAsync overload that accepts a partition key alongside the event.
I'm not sure why this was previously overlooked, but I agree that it's a bug that should be fixed.   We'll move this into the backlog as a bug and see about scheduling it.

//cc: @JoshLove-msft, @m-redding

This has been addressed via #33858.   The release is tracked in #33919 and has been tentatively scheduled for our March window.   Assuming that nothing requires the release to be rescheduled, the updated package should be available in the second week of March.

Amazing! Thank you! :-)


Changed writing from   "allowedDeviationXy" (schema) to "allowedDeviationXY" (as written in specification)

As in the specification always   "allowedDeviationXY" in 1.1 and 2.0 was used the team decided to change it also in the schema.
Decision was taken 9.3.23 in the VDA5050 team

We decided to use the variable name "allowedDeviationXY" as it is specified in the PDF version. This was fixed in pull request #208.


Base64 encoded images

hi
Does the FFImageLoading support base64 encode images?

You can convert the base64 back to a byte array and load from a stream.
On Mon, Nov 14, 2016 at 8:44 AM, angelinaflorence<EMAIL_ADDRESS>wrote:

hi
Does the FFImageLoading support base64 encode images?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/luberda-molinet/FFImageLoading/issues/379, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVIgLM9BjLrFbTeUMgX-aWVgu-dVIdrBks5q-IHhgaJpZM4Kxdnz
.

Also don't forget to use CustomCacheKey when doing that to use caching capabilities properly.