LISA exists at exception: Provider load failure

We have experiencing some instability when running LISA. The framework would exit with exception "Provider load failure". This exception is raised in state engine which makes the framework exit.
We made attempts to reproduce this issue. Looks like it is reproducible while the reproduce rate is low ( less than 1% in my tests ). We mostly observe this exception after pause/save cases, thus we assume the pause/save operations are related ( which we are not really sure ).
Since LISA has to do the vm operations quite frequently ( start-vm, get-vm etc.), this issue has been a headache for us, we are trying to address this issue somehow ( at least prevent the framework from exiting ).
We still don't have clear idea about how to address this issue, so opening this issue request to discuss. Thank you in advance!
Some excerpt in log:
11:10:13 Info : DoStartSystem( RHEL-6.10-20180301.2-x86_64-GEN2-A )
11:10:13 Info : RHEL-6.10-20180301.2-x86_64-GEN2-A is being started
11:10:14 Info : RHEL-6.10-20180301.2-x86_64-GEN2-A transitioned from StartSystem to SystemStarting
11:10:14 Info : Entering DoSystemStarting( RHEL-6.10-20180301.2-x86_64-GEN2-A )
11:10:14 Debug: vm.ipv4 = <IP_ADDRESS>
11:10:15 Debug: vm.ipv4 = <IP_ADDRESS> and ipv4 =
11:10:19 Info : Entering DoSystemStarting( RHEL-6.10-20180301.2-x86_64-GEN2-A )
11:10:19 Debug: vm.ipv4 = <IP_ADDRESS>
11:10:19 Debug: vm.ipv4 = <IP_ADDRESS> and ipv4 =
11:10:22 Info : Entering DoSystemStarting( RHEL-6.10-20180301.2-x86_64-GEN2-A )
11:10:22 Provider load failure
11:10:22     + CategoryInfo          : NotSpecified: (:) [Get-VM], VirtualizationExcept
11:10:22    ion
11:10:22     + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands
11:10:22    .GetVM
11:10:22     + PSComputerName        : 2016-Auto
11:10:22
11:10:22 Error: RHEL-6.10-20180301.2-x86_64-GEN2-A SystemStarting entered state without being in a HyperV Running state - disabling VM
11:10:22 Info : RHEL-6.10-20180301.2-x86_64-GEN2-A transitioned from SystemStarting to ForceShutDown
11:10:22 Debug: vm.ipv4 = <IP_ADDRESS>
11:10:22 Provider load failure
11:10:22     + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], Managemen
11:10:22    tException
11:10:22     + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.C
11:10:22    ommands.GetWmiObjectCommand
11:10:22     + PSComputerName        : 2016-Auto
11:10:22
11:10:22 Debug: vm.ipv4 = <IP_ADDRESS> and ipv4 =
11:10:26 Info : DoForceShutdown(RHEL-6.10-20180301.2-x86_64-GEN2-A)
11:10:26 Info :    GetTestData(done)
11:10:27 Info :    SetRunningTime(done)
11:10:27 Info : RHEL-6.10-20180301.2-x86_64-GEN2-A currentTest lasts 0 Hours, 0 Minutes, 15 seconds.
11:10:27 Info :    GetCurentSuite(Functional)
11:10:27 Info : RHEL-6.10-20180301.2-x86_64-GEN2-A transitioned from ForceShutDown to SystemDown
11:10:27 Info : Entering DoSystemDown( RHEL-6.10-20180301.2-x86_64-GEN2-A )
11:10:27 Info : RHEL-6.10-20180301.2-x86_64-GEN2-A currentTest updated to done
11:10:27 Info : RHEL-6.10-20180301.2-x86_64-GEN2-A transitioned from SystemDown to Finished
11:10:27 Info :    SaveResultToXML to (Functional,TestResults\cases-20180314-183507)
11:10:27 Info :    GetCurentSuite(Functional)
11:10:27 Info : DoStateMachine() exiting
Reproduce script:
$count =0
while ($True) {
$a = Save-VM -Name xxx
if ($? -ne $True) {break}
$a = Start-VM -Name xxx
if ($? -ne $True) {break}
$a =Get-VM -Name xxx
if ($? -ne $True) {break}
$a = Get-VMIntegrationService -VMName xxx
if ($? -ne $True) {break}
$count +=1
$count
}
Error message:
Start-VM : Provider load failure
At line:4 char:1
+ Start-VM -Name xxx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Start-VM], VirtualizationException
+ FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands.StartVM

Thank you for reporting this!
A few questions:

does the VM start eventually and does it provide KVP information?
is this particular to RHEL 6.10 or are you seeing this on other releases as well?
are you running lisa remotely on another server? Does this repro by running lisa directly on the Hyper-V server?

Thank you for reply!

does the VM start eventually and does it provide KVP information?

No, the VM did not start, it is still in saved state. If I try "start-vm" immediately after the exception raised, I am more likely to get the same exception again. But if I try start-vm after a few seconds, VM would be able to start normally.
Before this exception being raised, everything works fine, including get-intergrationservice.

is this particular to RHEL 6.10 or are you seeing this on other releases as well?

I reproduced this issue with RHEL7 just now, reproduced twice with 505 loops. It is not even a recently discovered issue. It has been existing for a long time. In my opinion, this is more like a pure host issue, I don't think guest os is even related.

are you running lisa remotely on another server? Does this repro by running lisa directly on the Hyper-V server?

I'm running LISA directly from local repo on server.
BTW, by "reproduce rate" I was referring to running the reproduce script in loop.

We met this problem 2 more times.
------------ Log Excerpt 1 ---------------------
03:21:12 Info : DoPS1TestRunning(RHEL-7.5-20180315.0-x86_64-GEN2-A)
03:21:12 Info :    GetTestData(VerifyIntegratedTimeSyncService)
03:21:12 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from PS1TestRunning to PS1TestCompleted
03:21:12 Info : DoPS1TestCompleted(RHEL-7.5-20180315.0-x86_64-GEN2-A)
03:21:12 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A Status for test VerifyIntegratedTimeSyncService = Passed
03:21:15 Info :    SetTestResult(Functional,VerifyIntegratedTimeSyncService)
03:21:15 Info :    GetTestID(VerifyIntegratedTimeSyncService)
03:21:15 Info :    GetCurentSuite(Functional)
03:21:15 Info :    GetTestData(VerifyIntegratedTimeSyncService)
03:21:15 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from PS1TestCompleted to DetermineReboot
03:21:15 Info : DoDetermineReboot(RHEL-7.5-20180315.0-x86_64-GEN2-A)
03:21:15 Info :    GetNextText(RHEL-7.5-20180315.0-x86_64-GEN2-A)
03:21:15 Debug:      vm.currentTest = VerifyIntegratedTimeSyncService
03:21:15 Debug:      vm.suite = Functional
03:21:15 Info :    GetTestData(VerifyIntegratedTimeSyncService)
03:21:15 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from DetermineReboot to ShutdownSystem
03:21:15 Info : DoShutdownSystem(RHEL-7.5-20180315.0-x86_64-GEN2-A)
03:21:15 Provider load failure
03:21:15     + CategoryInfo          : NotSpecified: (:) [Get-VM], VirtualizationExcept
03:21:15    ion
03:21:15     + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands
03:21:15    .GetVM
03:21:15     + PSComputerName        : 2016-Auto
03:21:15
03:21:15 Warn : RHEL-7.5-20180315.0-x86_64-GEN2-A did not shutdown gracefully. Forcing VM TurnOff.
03:21:15 Provider load failure
03:21:15     + CategoryInfo          : NotSpecified: (:) [Stop-VM], VirtualizationExcep
03:21:15    tion
03:21:15     + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands
03:21:15    .StopVM
03:21:15     + PSComputerName        : 2016-Auto
03:21:15
03:21:15 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from ShutdownSystem to ShuttingDown
03:21:15 Info : DoShuttingDown(RHEL-7.5-20180315.0-x86_64-GEN2-A)
03:21:15 Provider load failure
03:21:15     + CategoryInfo          : NotSpecified: (:) [Get-VM], VirtualizationExcept
03:21:15    ion
03:21:15     + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands
03:21:15    .GetVM
03:21:15     + PSComputerName        : 2016-Auto
03:21:15
03:21:15 Error: ShutDownVM cannot find the VM RHEL-7.5-20180315.0-x86_64-GEN2-A on HyperV server 2016-Auto after testing
03:21:15 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from ShuttingDown to Disabled
03:21:15 Info : DoStateMachine() exiting
03:21:15
03:21:15 Test Results Summary
------------ Log Excerpt 1 ---------------------
------------ Log Excerpt 2 ---------------------
11:55:21 Info : DoPS1TestRunning(RHEL-7.5-20180315.0-x86_64-GEN2-A)
11:55:21 Info :    GetTestData(VMHeartBeat_ISOInstallation)
11:55:21 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from PS1TestRunning to PS1TestCompleted
11:55:21 Info : DoPS1TestCompleted(RHEL-7.5-20180315.0-x86_64-GEN2-A)
11:55:21 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A Status for test VMHeartBeat_ISOInstallation = Passed
11:55:21 Info :    SetTestResult(Functional,VMHeartBeat_ISOInstallation)
11:55:21 Info :    GetTestID(VMHeartBeat_ISOInstallation)
11:55:21 Info :    GetCurentSuite(Functional)
11:55:21 Info :    GetTestData(VMHeartBeat_ISOInstallation)
11:55:21 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from PS1TestCompleted to DetermineReboot
11:55:21 Info : DoDetermineReboot(RHEL-7.5-20180315.0-x86_64-GEN2-A)
11:55:21 Info :    GetNextText(RHEL-7.5-20180315.0-x86_64-GEN2-A)
11:55:21 Debug:      vm.currentTest = VMHeartBeat_ISOInstallation
11:55:21 Debug:      vm.suite = Functional
11:55:21 Info :    GetTestData(VMHeartBeat_ISOInstallation)
11:55:21 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from DetermineReboot to ShutdownSystem
11:55:21 Info : DoShutdownSystem(RHEL-7.5-20180315.0-x86_64-GEN2-A)
11:55:28 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from ShutdownSystem to ShuttingDown
11:55:28 Info : DoShuttingDown(RHEL-7.5-20180315.0-x86_64-GEN2-A)
11:55:28 Info :    GetTestData(VMHeartBeat_ISOInstallation)
11:55:28 Info :    SetRunningTime(VMHeartBeat_ISOInstallation)
11:55:28 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A currentTest lasts 0 Hours, 0 Minutes, 47 seconds.
11:55:28 Info :    GetCurentSuite(Functional)
11:55:28 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from ShuttingDown to SystemDown
11:55:28 Info : Entering DoSystemDown( RHEL-7.5-20180315.0-x86_64-GEN2-A )
11:55:28 Info :    GetTestData(VMHeartBeat_ISOInstallation)
11:55:28 Info :    GetNextText(RHEL-7.5-20180315.0-x86_64-GEN2-A)
11:55:28 Debug:      vm.currentTest = VMHeartBeat_ISOInstallation
11:55:28 Debug:      vm.suite = Functional
11:55:28 Info :    GetTestData(Verify_LIS_Modules)
11:55:28 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A currentTest updated to Verify_LIS_Modules
11:55:28 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from SystemDown to ApplyCheckpoint
11:55:28 Info : Entering DoApplyCheckpoint( RHEL-7.5-20180315.0-x86_64-GEN2-A )
11:55:28 Info :    GetTestData(Verify_LIS_Modules)
11:55:28 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A Over-riding default snapshotName from global section to ICABase
11:55:28 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A is being reset to snapshot ICABase
11:55:28 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from ApplyCheckpoint to StartSystem
11:55:28 Info : DoStartSystem( RHEL-7.5-20180315.0-x86_64-GEN2-A )
11:55:28 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A is being started
11:55:28 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from StartSystem to SystemStarting
11:55:28 Info : Entering DoSystemStarting( RHEL-7.5-20180315.0-x86_64-GEN2-A )
11:55:28 Debug: vm.ipv4 = <IP_ADDRESS>
11:55:28 Debug: vm.ipv4 = <IP_ADDRESS> and ipv4 =
11:55:32 Info : Entering DoSystemStarting( RHEL-7.5-20180315.0-x86_64-GEN2-A )
11:55:32 Debug: vm.ipv4 = <IP_ADDRESS>
11:55:32 Debug: vm.ipv4 = <IP_ADDRESS> and ipv4 =
11:55:35 Info : Entering DoSystemStarting( RHEL-7.5-20180315.0-x86_64-GEN2-A )
11:55:35 Debug: vm.ipv4 = <IP_ADDRESS>
11:55:35 Debug: vm.ipv4 = <IP_ADDRESS> and ipv4 =
11:55:39 Info : Entering DoSystemStarting( RHEL-7.5-20180315.0-x86_64-GEN2-A )
11:55:39 Provider load failure
11:55:39     + CategoryInfo          : NotSpecified: (:) [Get-VM], VirtualizationExcept
11:55:39    ion
11:55:39     + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands
11:55:39    .GetVM
11:55:39     + PSComputerName        : 2016-Auto
11:55:39
11:55:39 Error: RHEL-7.5-20180315.0-x86_64-GEN2-A SystemStarting entered state without being in a HyperV Running state - disabling VM
11:55:39 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from SystemStarting to ForceShutDown
11:55:39 Debug: vm.ipv4 = <IP_ADDRESS>
11:55:39 Provider load failure
11:55:39     + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], Managemen
11:55:39    tException
11:55:39     + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.C
11:55:39    ommands.GetWmiObjectCommand
11:55:39     + PSComputerName        : 2016-Auto
11:55:39
11:55:39 Debug: vm.ipv4 = <IP_ADDRESS> and ipv4 =
11:55:43 Info : DoForceShutdown(RHEL-7.5-20180315.0-x86_64-GEN2-A)
11:55:43 Info :    GetTestData(done)
11:55:43 Info :    SetRunningTime(done)
11:55:43 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A currentTest lasts 0 Hours, 0 Minutes, 17 seconds.
11:55:43 Info :    GetCurentSuite(Functional)
11:55:43 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from ForceShutDown to SystemDown
11:55:43 Info : Entering DoSystemDown( RHEL-7.5-20180315.0-x86_64-GEN2-A )
11:55:43 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A currentTest updated to done
11:55:43 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from SystemDown to Finished
11:55:43 Info :    SaveResultToXML to (Functional,TestResults\cases-20180316-195346)
11:55:43 Info :    GetCurentSuite(Functional)
11:55:43 Info : DoStateMachine() exiting
------------ Log Excerpt 2 ---------------------

And one more time:
07:53:37 Info : DoPS1TestRunning(RHEL-7.5-20180315.0-x86_64-GEN2-A)
07:53:37 Info :    GetTestData(VHDxResizeOver2TB_IDE)
07:53:37 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from PS1TestRunning to PS1TestCompleted
07:53:37 Info : DoPS1TestCompleted(RHEL-7.5-20180315.0-x86_64-GEN2-A)
07:53:37 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A Status for test VHDxResizeOver2TB_IDE = Failed
07:53:37 Info :    SetTestResult(Functional,VHDxResizeOver2TB_IDE)
07:53:37 Info :    GetTestID(VHDxResizeOver2TB_IDE)
07:53:37 Info :    GetCurentSuite(Functional)
07:53:37 Info :    GetTestData(VHDxResizeOver2TB_IDE)
07:53:37 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from PS1TestCompleted to DetermineReboot
07:53:37 Info : DoDetermineReboot(RHEL-7.5-20180315.0-x86_64-GEN2-A)
07:53:37 Info :    GetNextText(RHEL-7.5-20180315.0-x86_64-GEN2-A)
07:53:37 Debug:      vm.currentTest = VHDxResizeOver2TB_IDE
07:53:37 Debug:      vm.suite = Functional
07:53:37 Info :    GetTestData(VHDxResizeOver2TB_IDE)
07:53:37 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from DetermineReboot to ShutdownSystem
07:53:37 Info : DoShutdownSystem(RHEL-7.5-20180315.0-x86_64-GEN2-A)
07:53:37 Provider load failure
07:53:37     + CategoryInfo          : NotSpecified: (:) [Get-VM], VirtualizationExcept
07:53:37    ion
07:53:37     + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands
07:53:37    .GetVM
07:53:37     + PSComputerName        : 2016-Auto
07:53:37
07:53:37 Warn : RHEL-7.5-20180315.0-x86_64-GEN2-A did not shutdown gracefully. Forcing VM TurnOff.
07:53:37 Provider load failure
07:53:37     + CategoryInfo          : NotSpecified: (:) [Stop-VM], VirtualizationExcep
07:53:37    tion
07:53:37     + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands
07:53:37    .StopVM
07:53:37     + PSComputerName        : 2016-Auto
07:53:37
07:53:37 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from ShutdownSystem to ShuttingDown
07:53:37 Info : DoShuttingDown(RHEL-7.5-20180315.0-x86_64-GEN2-A)
07:53:37 Provider load failure
07:53:37     + CategoryInfo          : NotSpecified: (:) [Get-VM], VirtualizationExcept
07:53:37    ion
07:53:37     + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands
07:53:37    .GetVM
07:53:37     + PSComputerName        : 2016-Auto
07:53:37
07:53:37 Error: ShutDownVM cannot find the VM RHEL-7.5-20180315.0-x86_64-GEN2-A on HyperV server 2016-Auto after testing
07:53:37 Info : RHEL-7.5-20180315.0-x86_64-GEN2-A transitioned from ShuttingDown to Disabled
07:53:37 Info : DoStateMachine() exiting
07:53:37
07:53:37 Test Results Summary

It seems multi tasking might be one factor that causes this problem. We were trying to reproduce this issue on another VM, and the running framework exited again.
I tried to run the reproduce script with a vm not booted into a OS ( staying on grub menu ), and I was able to reproduce this issue too. So I guess OS on VM is not related.

Might be a long shot but worth testing - https://github.com/LIS/lis-test/issues/894
In that case the memory consumption of the lisa PS session was too hight and reaching the limit.
Can you try to monitor and increase that value?

I checked the memory limit, it is set to<PHONE_NUMBER> (max integer), which basically means unlimited, and the settings does not allow bigger value than that.
I ran 6 background jobs looping the reproduce script, the failure occurred simultaneously in the 6 jobs after about 600 loops. Multitasking might not be related  according to the result this time, sorry for the misleading info before. No significant memory increase observed during the run.
We are actually not sure about the root cause of #894 . We were facing more issues than that ( slow backup etc. ), and we finally decided to reinstall host OS on that machine, and the problems disappeared. For this time, the issue exists on at least 2 hosts tested. So I guess it is not caused by same reason as #894 .

Thanks for the info @zqwzshm
Let me also run the code snippet provided and see if I can repro this on our end.

Tested this today on a WS2016 server with the latest updates and I cannot reproduce the mentioned issue.
Got the save loop to 3500 count and it's still running fine.
Here are my env versions:
WS2016 14393.2125
PS version: 5.1.14393.2125
VM has 4GB RAM and 4 cores, and it runs RHEL 7.3 with an upstream kernel.
Did some searching and found an old post that might help with troubleshooting this in your env, maybe it helps:
https://blogs.technet.microsoft.com/heyscriptingguy/2012/09/12/use-powershell-to-troubleshoot-provider-load-failure/

Thank you very much for your help! And sorry for replying so late. I had been distracted by some other work.
I tried to reproduce this issue on 4 servers, and it turns out that it is not reproducible on all the servers:
Server 1: Reproduced
Hyper-V Server Core. There are about 30 VMs on the host, and 6 are running
Server 2: Reproduced
Hyper-V Server Core, There are about 30 VMs on the host, and 6 are running
Server 3: NOT Reporoduced
Hyper-V Server Core, rather idle, 5 VM on the host, 2 are running
Server 3: NOT Reporoduced
WS2016 Standard (with GUI), a local test machine, 8GB memory, 4 cores, no VM running.
Looks like work load is related, idle servers are less likely to encounter this issue.
Since I am only able to reproduce this issue on server core, which does not have GUI (and event viewer naturally), I actually struggled for a while to get the trace and debug events via powershell. Anyway, it logged heavily during the run (the save/start/get-vm script), and there are a lot of errors even before the "Provider Load Failure" exception occurred. However, I am not seeing any special error event at the exact point the exception occurred.
Did a little digging into the errors, looks like svchost process was trying to access WMI and got error return. Did not do further digging since this is getting into system level. We might look for some simple workaround like rerunning cases about save/start half-manually. Any better idea?
Thank you very much!
Got events via following powershell commands:
Get-WinEvent -ProviderName Microsoft-Windows-Hyper-V*
Get-WinEvent -ProviderName Microsoft-Windows-WMI-Activity -MaxEvents 10000
Get-WinEvent -LogName Microsoft-Windows-WMI-Activity/Trace -Oldest
Get-WinEvent -LogName Microsoft-Windows-WMI-Activity/Debug -Oldest
hv-events.txt
wmi-events.txt
wmi-trace.txt
wmi-debug.txt

Looks like there's not much we can actually do about it. Auto rerun would be a straightforward solution. This is one reason of the feature request #963 . Since you are not hitting this issue, we'll do auto rerun locally.
Thank you very much for your help!


Added code for Prefix Expression Evaluation

Description of Change
Added code for Prefix Expression Evaluation using Stacks

What changes exactly you want. would u let me know? @Panquesito7

What changes exactly you want. would u let me know? @Panquesito7

Some of them are:

Use proper documentation
Do not use bad practices such as using namespace std;
Make the code up to our standards.

Once you read our standards and/or see the typical structure of a program you will understand how to make it. 🙂


apt repo module

Need the ability to add a repo and specify a key

Sorry just got back from vacation.
I may have time this weekend to add this feature.
Regards.

Configi could use add-apt-repository or do it by itself.
Still trying to figure out the best way.

Alternative impls:
Chef's apt_repository: https://github.com/chef/chef/blob/master/lib/chef/provider/apt_repository.rb
Puppet's apt::source: https://github.com/puppetlabs/puppetlabs-apt/blob/master/manifests/source.pp
Puppet's apt::key: https://github.com/puppetlabs/puppetlabs-apt/blob/master/manifests/key.pp
Puppet's apt::ppa: https://github.com/puppetlabs/puppetlabs-apt/blob/master/manifests/ppa.pp

Thanks.  Added ppa module. Just used add-apt-repository like in Puppet apt::ppa.
Example:
https://github.com/Configi/configi/blob/master/test/ppa_present.lua
The update parameter determines if an apt-get update is run after adding the repository. By default it does not run.


Updates documentation

Re-organizes structure to be more inline with configuration process
Adds docs for case types, severities, and priorities
Updates several docs

@kevgliss not sure what you had in mind for https://github.com/Netflix/dispatch/issues/2276, but I can take care of it on this one if you tell me where should I take the screenshot.


Display current page name

Hi, I need to display the currently open page name somewhere to be visible without having to open the modal. Can it be achieved in some way? Thanks.
Also it would be very helpful to have a confirmation dialog when deleting a page.

You can get the current page name by using editor.Storage.getCurrentStorage().currentName).  Will look into adding a confirmation dialog or at least a way to configure one.


Multiple entries for PurgeContent

Please add support to enter multiple values for PurgeContent as this supported by Unpublish-AzureRmCdnEndpointContent command.

Very good idea! I'll add that asap!

The version 2.1.0 on the marketplace contains the new feature.


Define and Expose a CDS-Based Travel Data Model

Tutorial URL: https://developers.sap.com/tutorials/abap-environment-data-model.html
Please specify the step you are referring to: 6
Which credentials need to be used here? I could not log in.

Hi @Nuube ,
in step 4.6 you need to logon with your trial user, which you created earlier in following tutorial: https://developers.sap.com/tutorials/abap-environment-trial-onboarding.html
It needs to be the same user + pw like your SAP Cloud Foundry Trial user.
Best regards,
Merve

Hi @MichaelCzcz ,
we can close this ticket.
Best regards,
Merve


Error when using non-standard image sizes (e.g., 138x138) with TransNeXt Tiny model

I am currently working with your TransNeXt model, specifically the tiny variant. When I use an image size that is not 224 (e.g., 138), I encounter an error in the attention_native.py file. The specific error occurs at the following line:
q_norm_scaled = (q_norm + self.query_embedding) * F.softplus(self.temperature) * self.seq_length_scale
The error message is:
RuntimeError: The size of tensor a (256) must match the size of tensor b (289) at non-singleton dimension 2
It seems that the issue is related to the input image size not being compatible with the model parameters. I have attempted to adjust the self.seq_length_scale, the get_seqlen_and_mask function, and the line in transnext.py that specifies img_size // (2 ** (i + 2), but these attempts have not resolved the issue.
Could you please provide guidance on how to modify the model to accept input sizes such as 138x138?
Thank you for your assistance.

Thank you for your question. Currently, the code assumes the input resolution dimensions are multiples of 32, which is a common practice for preprocessing input image sizes in training code for tasks such as detection and segmentation. To avoid modifying the code, you can resize your image to the nearest multiple of 32, such as 128x128, which should work fine.
If you want to use arbitrary input resolutions, you will need to modify the code to pre-calculate the actual feature sizes and pool sizes for each layer. Below is a modified version of the model initialization that accommodates different input sizes:
class TransNeXt(nn.Module):
    '''
    The parameter "img size" is primarily utilized for generating relative spatial coordinates,
    which are used to compute continuous relative positional biases. As this TransNeXt implementation does not support multi-scale inputs,
    it is recommended to set the "img size" parameter to a value that is exactly the same as the resolution of the inference images.
    It is not advisable to set the "img size" parameter to a value exceeding 800x800.
    The "pretrain size" refers to the "img size" used during the initial pre-training phase,
    which is used to scale the relative spatial coordinates for better extrapolation by the MLP.
    For models trained on ImageNet-1K at a resolution of 224x224,
    as well as downstream task models fine-tuned based on these pre-trained weights,
    the "pretrain size" parameter should be set to 224x224.
    '''

    def __init__(self, img_size=224, pretrain_size=None, window_size=[3, 3, 3, None],
                 patch_size=16, in_chans=3, num_classes=1000, embed_dims=[64, 128, 256, 512],
                 num_heads=[1, 2, 4, 8], mlp_ratios=[4, 4, 4, 4], qkv_bias=False, drop_rate=0.,
                 attn_drop_rate=0., drop_path_rate=0., norm_layer=nn.LayerNorm,
                 depths=[3, 4, 6, 3], sr_ratios=[8, 4, 2, 1], num_stages=4, fixed_pool_size=None):
        super().__init__()
        self.num_classes = num_classes
        self.depths = depths
        self.num_stages = num_stages
        pretrain_size = pretrain_size or img_size

        dpr = [x.item() for x in torch.linspace(0, drop_path_rate, sum(depths))]  # stochastic depth decay rule
        cur = 0

        def calculate_feature_size(input_size, kernel_size, stride, padding):
            return (input_size + 2 * padding - kernel_size) // stride + 1

        layers = [
            {'kernel_size': patch_size * 2 - 1, 'stride': patch_size},
            {'kernel_size': 3, 'stride': 2},
            {'kernel_size': 3, 'stride': 2},
            {'kernel_size': 3, 'stride': 2}
        ]

        feature_sizes = []

        input_size = img_size
        for i, layer in enumerate(layers):
            kernel_size = layer['kernel_size']
            stride = layer['stride']
            padding = kernel_size // 2
            output_size = calculate_feature_size(input_size, kernel_size, stride, padding)
            feature_sizes.append(output_size)
            input_size = output_size

        for i in range(num_stages):
            # Generate relative positional coordinate table and index for each stage to compute continuous relative positional bias.
            relative_pos_index, relative_coords_table = get_relative_position_cpb(
                query_size=to_2tuple(feature_sizes[i]),
                key_size=to_2tuple(feature_sizes[-1]) if (
                        fixed_pool_size is None or sr_ratios[i] == 1) else to_2tuple(fixed_pool_size),
                pretrain_size=to_2tuple(pretrain_size // (2 ** (i + 2))))

            self.register_buffer(f"relative_pos_index{i + 1}", relative_pos_index, persistent=False)
            self.register_buffer(f"relative_coords_table{i + 1}", relative_coords_table, persistent=False)

            patch_embed = OverlapPatchEmbed(patch_size=patch_size * 2 - 1 if i == 0 else 3,
                                            stride=patch_size if i == 0 else 2,
                                            in_chans=in_chans if i == 0 else embed_dims[i - 1],
                                            embed_dim=embed_dims[i])

            block = nn.ModuleList([Block(
                dim=embed_dims[i], input_resolution=to_2tuple(feature_sizes[i]), window_size=window_size[i],
                num_heads=num_heads[i], mlp_ratio=mlp_ratios[i], qkv_bias=qkv_bias,
                drop=drop_rate, attn_drop=attn_drop_rate, drop_path=dpr[cur + j], norm_layer=norm_layer,
                sr_ratio=sr_ratios[i], fixed_pool_size=fixed_pool_size or feature_sizes[-1])
                for j in range(depths[i])])
            norm = norm_layer(embed_dims[i])
            cur += depths[i]

            setattr(self, f"patch_embed{i + 1}", patch_embed)
            setattr(self, f"block{i + 1}", block)
            setattr(self, f"norm{i + 1}", norm)

        # classification head
        self.head = nn.Linear(embed_dims[3], num_classes) if num_classes > 0 else nn.Identity()

        for n, m in self.named_modules():
            self._init_weights(m, n)

This should allow the model to handle various input sizes by calculating the appropriate feature sizes dynamically.
Of course, your input resolution should not be too small; the feature size at stage 4 should be at least larger than 1x1.

作者，您好，我想用transnext_small_384_1k_ft_1k.pth这个模型处理384大小的图像，但是模型报错，而且我按照你给出的方式修改了相关代码，但还是不能处理384*384大小的图像。我想问一下这是为啥呢？


Let WinGet search among issues/prs

Description of the new feature/enhancement
Add an option to search for information of a package in microsoft/winget-pkgs' issues and pull requests.
For contributors, a convenient search from winget's cli could lower the possibility of submitting duplicate manifests.
For users, a search in issues and pull requests could inform them about the status of the package (a new version is available and its install manifest is under review / the requested package is previously available but removed due to some reasons, etc)

Proposed technical implementation details (optional)
Add a flag to the search command to force search in issues/pull requests.
Automatically search in issues/pull requests if no match is found.

I understand why this could be useful from a maintenance point of view but I don't really see the need for such a feature to be included in the winget cli. It could be solved by a PowerShell, Python or C# program that queries the GitHub API and aggregates the results locally so that one doesn't each the query limit.

This might make sense for the community repository, but I'm not sure about third-party repositories. It is also possible someone might build a "Tool" for the winget-pkgs repository to search PRs.


[e2e]: generic push main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3879847657
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.push.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.push.main.default.slsa3.yml
Trigger: push
Branch: main
Date: Tue Jan 10 03:12:08 UTC 2023

If this still fails tonight I'll take a look, looks similar to the other breakage caused by the gazelle bump without also bumping go.

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3889313479
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.push.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.push.main.default.slsa3.yml
Trigger: push
Branch: main
Date: Wed Jan 11 03:17:40 UTC 2023
Tests are passing now. Closing this issue.


Use dtype of first batch for dtype of predicted outputs

When predicting in a loop, this PR uses the dtype of the first batch to create the container instead of always converting to floatX.
@fchollet any thoughts on the best way to implement this behavior? I have models that output integers and I would like to avoid casting back and forth.

If there are some programs that rely on floats being cast, I could do this logic: Cast to floatx if it is float32 or float64, otherwise do not change dtype.
If you want to keep current behavior, maybe we could add a flag to switch between casting to float32 or using the returned dtype.

Cheers

Alternative implementation here: https://github.com/fchollet/keras/pull/5904/files
That version converts to floatX if float32 or float64, otherwise leaves unchanged.

Closing in favor of implementation in https://github.com/fchollet/keras/pull/5904


Prepare release <IP_ADDRESS>

Preparing release <IP_ADDRESS>

@rmfitzpatrick @johnbley PTAL. This doesn't fully automate the release yet but gets it closer to that.


refactor components/NavBar

AvatarButton

Convert function declaration into a expression
Use object destructuring on props

- export function AvatarButton(props) {
+ export const AvatarButon = ({ anchorEl, onClick }) => {

LeftSide

Convert function declaration into a expression
Use object destructuring on props
Delete Fragment
Used named exports
Rename extension to jsx

- function LeftSide (props) {
- // ...
-      <React.Fragment>{props.children}</React.Fragment>
- // ...
- export default LeftSide
+ export const LeftSide = ({ children }) => {
+ // ...
+      {children}
+ // ...

NavBarContainer

Convert function declaration into a expression
Use object destructuring on props
Use named exports
Rename extension to jsx

NavBarMenu

Convert function declaration into a expression
Delete commented code
Rename extension to jsx

RightSide

Convert function declaration into a expression
Use object destructuring on props
Use named exports
Delete Fragment
Rename extension to jsx

UserNameLabel

Rename to UserNameLabel
Convert function declaration into a expression
Use object destructuring on props

Completed in #82


Failed to run the "demo" project

Running:
exercism demo

(even with the --verbose flag), fails with a message to file a bug report.

Yes, we removed demo. I thought we had a proper error message on that, but we had a typo in the deprecated endpoint, so it blew up. Fixing that now, sorry about the confusion!


Can Shapes and Text Fields Stay on Whole Pixels on Resize?

Because your padding recalculates everything, it's causing lines/strokes/shape edges to become blurry on resize. I believe this could be remedied by being super anal about maintaining everything on whole pixels, but this would be amazing. I'd just round to the nearest.

Ah cool. Yeah that's a really good point!
In some cases though – do you thing there would be people who would want the spacing etc. to be perfect, and not aligned to the pixels?
I was thinking; maybe I'll make sure it pixel-fits to whole number if the user has set 'Pixel fitting' on in Sketch preferences. Thoughts?

I’m sure that would be handy for some people. My main concern is related to
UI design and things needing sharpness. That would work for me! If it’s
extra work to follow that setting or not I wonder if it would be worth it
cs just always remaining on whole pixels. It seems the major cases for use
are for UI as I mentioned.
On Sat, Feb 24, 2018 at 10:16 AM David Williames<EMAIL_ADDRESS>wrote:

Ah cool. Yeah that's a really good point!
In some cases though – do you thing there would be people who would want
the spacing etc. to be perfect, and not aligned to the pixels?
I was thinking; maybe I'll make sure it pixel-fits to whole number if the
user has set 'Pixel fitting' on in Sketch preferences. Thoughts?
[image: screen shot 2018-02-25 at 2 14 34 am]
https://user-images.githubusercontent.com/6570446/36631776-cd15e6ca-19d1-11e8-8162-d993a06021a7.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DWilliames/paddy-sketch-plugin/issues/38#issuecomment-368235110,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AArzZBrgiOtF3PW4pmYQtZ7y8tUIGDWRks5tYCewgaJpZM4SMl5e
.

@trvsss No worries. It's totally do-able.
Just to clarify; is this purely for the positioning of the layers (e.g. their 'x' and 'y')?
Or is it also for their size too? (width, height)

I just pushed a release (v1.0.4) that should now include this. 👍
I will close this issue for now, assuming that the fix is stable — if you find that it hasn't been fixed, then please re-open this issue.
Cheers!

This is working perfectly now! Thank you!


self user highlights no longer working

Checklist

[X] I'm reporting a problem with Chatterino
[X] I've verified that I'm running the most recent nightly build or stable release
[X] I've looked for my problem on the wiki
[X] I've searched the issues and pull requests for similar looking reports

Describe your issue
my own messages are no longer being highlighted in recent nightly update
Screenshots
https://i.imgur.com/zXyu7Ov.png
works for my alt (prime badge) but not for the logged in account (artist badge)
https://i.imgur.com/55OV5kz.png
OS and Chatterino Version
Chatterino Nightly 2.3.5 (commit 683701623 modified) built on with Qt 5.15.2, Windows SDK, MSVC 193231329 Running on Windows 10 Version 2009, kernel: 10.0.22000

Can replicate - side effect of 7ccf60111d5e8ba54c070fe09d926bdff5290da5

[2022-06-7 11:54:47] #pajlada mm2pl: FeelsNotSureLady dankerino#124
[2022-06-7 11:54:48] #pajlada mm_sutilitybot: @Mm2PL https://github.com/Mm2PL/chatterino2/issues/124
[2022-06-7 11:55:00] #pajlada mm2pl: were self-highlights ever intended to work in c2?
[2022-06-7 11:55:02] #pajlada mm2pl: FeelsNotSureLady
[2022-06-7 11:55:07] #pajlada occluder: don't think so ?
[snip]
[2022-06-7 11:56:48] #pajlada pajlada: @Mm2PL, No
[2022-06-7 11:57:10] #pajlada pajlada: I know someone has asked for being able to add yourself as a user highlight

As a note, despite the above conversation I can replicate the functionality all the way back to 2.2.3, so while it may not have been intentionally added, it's been around long enough to now intentionally keep.

so while it may not have been intentionally added, it's been around long enough to now intentionally keep.

I use it myself, and definitely know some other people that do as well. It's very useful for seeing if your messages went through in fast chats and just for a general overview of how many messages you have sent recently in the scrollbar.
I missed out on testing that PR or I would have noticed earlier.

#3708 might had something to do with this. We did have a discussion in pajlada's chat at the time where we agreed this shouldn't be default behaviour

Scratch that, most likely from the highlighting changes.

#3708 might had something to do with this. We did have a discussion in pajlada's chat at the time where we agreed this shouldn't be default behaviour

Scratch that, most likely from the highlighting changes.

I believe this has been fixed by #3835
If you could, please test this out and confirm its functionality
To test a PR build, you can browse to the linked PR, click the "Checks" tab, then select the "Build" job on the left side, then scroll down to find the build that fits your platform. Note that you need to be signed into GitHub to download from that page.


HADOOP-17608. Fix NPE in TestKMS

When running all the unit tests in TestKMS by mvn test -Dtest=TestKMS instead of specifying a test case (e.g., mvn test -Dtest=TestKMS#testStartStopHttpsPseudo) , NPE occurs because there may be some active null threads or some active threads are removed after allocating the active thread list.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 53s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

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

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
35m  1s

trunk passed

+1 :green_heart:
compile
22m 25s

trunk passed with JDK Ubuntu-11.0.10+9-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
compile
19m  3s

trunk passed with JDK Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

+1 :green_heart:
checkstyle
0m 28s

trunk passed

+1 :green_heart:
mvnsite
0m 36s

trunk passed

+1 :green_heart:
javadoc
0m 31s

trunk passed with JDK Ubuntu-11.0.10+9-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javadoc
0m 29s

trunk passed with JDK Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

+1 :green_heart:
spotbugs
0m 49s

trunk passed

+1 :green_heart:
shadedclient
16m 38s

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

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 22s

the patch passed

+1 :green_heart:
compile
21m 43s

the patch passed with JDK Ubuntu-11.0.10+9-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javac
21m 43s

the patch passed

+1 :green_heart:
compile
18m 59s

the patch passed with JDK Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

+1 :green_heart:
javac
18m 59s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 26s

the patch passed

+1 :green_heart:
mvnsite
0m 35s

the patch passed

+1 :green_heart:
javadoc
0m 29s

the patch passed with JDK Ubuntu-11.0.10+9-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javadoc
0m 28s

the patch passed with JDK Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

+1 :green_heart:
spotbugs
0m 55s

the patch passed

+1 :green_heart:
shadedclient
16m 36s

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

_ Other Tests _

+1 :green_heart:
unit
3m 37s

hadoop-kms in the patch passed.

+1 :green_heart:
asflicense
0m 46s

The patch does not generate ASF License warnings.

164m 43s

Subsystem
Report/Notes

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

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

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

uname
Linux 0ad6e4dfded4 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 6c18b7225ae0511495b0bca02db9513a1d409882

Default Java
Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.10+9-Ubuntu-0ubuntu1.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

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

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

modules
C: hadoop-common-project/hadoop-kms U: hadoop-common-project/hadoop-kms

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

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

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

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
1m 14s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

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

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
38m 31s

trunk passed

+1 :green_heart:
compile
26m 55s

trunk passed with JDK Ubuntu-11.0.10+9-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
compile
22m 24s

trunk passed with JDK Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

+1 :green_heart:
checkstyle
0m 31s

trunk passed

+1 :green_heart:
mvnsite
0m 42s

trunk passed

+1 :green_heart:
javadoc
0m 39s

trunk passed with JDK Ubuntu-11.0.10+9-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javadoc
0m 35s

trunk passed with JDK Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

+1 :green_heart:
spotbugs
0m 56s

trunk passed

+1 :green_heart:
shadedclient
19m  0s

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

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 22s

the patch passed

+1 :green_heart:
compile
25m 55s

the patch passed with JDK Ubuntu-11.0.10+9-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javac
25m 55s

the patch passed

+1 :green_heart:
compile
23m 21s

the patch passed with JDK Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

+1 :green_heart:
javac
23m 21s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 36s

hadoop-common-project/hadoop-kms: The patch generated 0 new + 93 unchanged - 1 fixed = 93 total (was 94)

+1 :green_heart:
mvnsite
0m 42s

the patch passed

+1 :green_heart:
javadoc
0m 37s

the patch passed with JDK Ubuntu-11.0.10+9-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javadoc
0m 39s

the patch passed with JDK Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

+1 :green_heart:
spotbugs
1m 10s

the patch passed

+1 :green_heart:
shadedclient
19m 13s

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

_ Other Tests _

+1 :green_heart:
unit
4m 19s

hadoop-kms in the patch passed.

+1 :green_heart:
asflicense
0m 59s

The patch does not generate ASF License warnings.

192m 46s

Subsystem
Report/Notes

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

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

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

uname
Linux b35cfb5c0aab 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / e20f7ea4427cab0ae63ac362ba3a22780fcbff6d

Default Java
Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.10+9-Ubuntu-0ubuntu1.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_282-8u282-b08-0ubuntu1~20.04-b08

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

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

modules
C: hadoop-common-project/hadoop-kms U: hadoop-common-project/hadoop-kms

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

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

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

This message was automatically generated.

Thanks @aajisaka  for the update. +1, I will merge it shortly.


Fix bug where TextAreas were editable

Closes #76

Codecov Report

Merging #95 into master will not change coverage.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##             master      #95   +/-   ##
=========================================
  Coverage     32.33%   32.33%
  Complexity      517      517
=========================================
  Files           170      170
  Lines          3321     3321
  Branches        335      335
=========================================
  Hits           1074     1074
  Misses         2127     2127
  Partials        120      120

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/chopchop/ui/PinBox.java
0.00% <0.00%> (ø)
0.00 <0.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 64dfb6f...73c81fc. Read the comment docs.

ez


Convert interface names to underscores in ceph-validate tasks

resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1540881#c7
Signed-off-by: Tomas Petr<EMAIL_ADDRESS>

Closing in favor of #3640


test: add more cases

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@af8ef2e). Click here to learn what that means.
The diff coverage is 72.72%.

@@            Coverage Diff            @@
##             master      #65   +/-   ##
=========================================
  Coverage          ?   76.48%
=========================================
  Files             ?       14
  Lines             ?      404
  Branches          ?       57
=========================================
  Hits              ?      309
  Misses            ?       91
  Partials          ?        4

Impacted Files
Coverage Δ

src/events/pull/index.ts
24.05% <0.00%> (ø)

src/services/sig/index.ts
87.50% <100.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 af8ef2e...b016bb3. Read the comment docs.


Feature/search suburbs

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 13

Complexity increasing per file
==============================
- src/utils.py  2
- src/handler.py  2

See the complete overview on Codacy


add @enumbatteries

Codecov Report

Merging #2 (754590a) into master (cc33132) will decrease coverage by 6.08%.
The diff coverage is 80.95%.

@@            Coverage Diff             @@
##           master       #2      +/-   ##
==========================================
- Coverage   90.00%   83.91%   -6.09%
==========================================
  Files           1        1
  Lines          80      143      +63
==========================================
+ Hits           72      120      +48
- Misses          8       23      +15

Impacted Files
Coverage Δ

src/StructHelpers.jl
83.91% <80.95%> (-6.09%)
:arrow_down:

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


Support HTTP/3

Describe the feature
https://www.eclipse.org/jetty/documentation/jetty-11/programming-guide/index.html#pg-server-http-connector-protocol-http3
Jetty has a full implementation of HTTP3 (the only other implementation I have seen since flupke).
Additional context
I described this as a feature request on Avaje Jex. Below I will quote the remainder of the comment for reference:

Motivation

Better performance (difference would be negligible right now, but once the specification has been fully standardized, it will be many times better than HTTP/2, and HTTP3 is already being used to improve performance of sites with Cloudflare, and by e.g. Google in their core products to improve responsiveness)
On the road to supporting WebTransport as well (nobody has made a proper implementation of WebTransport in any language except Go, but for QUIC, kwik exists, which flupke uses as well)

WebTransport will boost the performance of WebSockets by using QUIC as well, just like HTTP/3 is (HTTP/3 has other reasons to boost performance as well).
WebTransport will finally rid people of the suffering of WebRTC, and allow for UDP data streaming for e.g. audio packets, game movement, etc, or for anything that requires this unsafe data streaming (and this will boost performance as well by increasing sheer throughput by not having the behemoth of dependencies on our backends, we could finally have the four wishes in our fever dreams of encryption, congestion control, CORS/consent and a damn simple specification).

Drawbacks

HTTP/3 has limited support, being majorly supported by Chrome (87+ on desktop, 111+ on Android) & Firefox (88+ on desktop, 110+ on Android), but with zero support from Safari (by extension, zero iOS support). While we could theoretically do the approach documented by Jetty with the alternate service header, I have mixed opinions about making this "temporary" solution a default rather than enforcing first-class support for HTTP/3 on peoples' sites; you can see how on the Cloudflare Quic test, your first connection ends up always being a HTTP/2 one before your client caches the support for HTTP/3. All supporting browsers support this header by default so this does work as a solution nontheless.
WebTransport (not included with this issue but again, for the future? Jex doesn't even have WebSockets yet...) is even less supported working only on Chrome (97+ on desktop, 111+ on Android); no other browsers support it.
Is there demand for this outside of me?

Since HTTP/3 relies on TLS to work this feature will be part of the SSL plugin. I've attempted to implement it but Jetty's implementation is not mature and completely dependant on quiche, as well as inconsistent in the SSL configuration.
I don't have a timeline but it does not seem like a priority for Jetty's team.

Update, there's a PR open that might fix a bug that's keeping me from doing so: https://github.com/eclipse/jetty.project/pull/9490
I'll try and help them push it, but still, I have no timeframe to give.

Even if it'll be merged, this change seems to be moved to Jetty 12.x. Jetty 12 enforces Java 17+, so it's a breaking change that could be addressed only in the next major version, atm probably Javalin 6.x.

Even if it'll be merged, this change seems to be moved to Jetty 12.x. Jetty 12 enforces Java 17+, so it's a breaking change that could be addressed only in the next major version, atm probably Javalin 6.x.

It can easily be back ported to jetty 11, since it's still supported.


LOVE this extension, question about grep_string

Is it possible to use this for grep_string instances/uses, not just for live_grep?

Glad you like it!
I'm not sure I 100% follow. What from egrepify would you want for grep_string? I assume you refer to how results are presented. However, that does not work as rg groups matches by file which fzf-native does not do.
Plus, egrepify is practically the reason why I do not use grep_string.
Closing this as unplanned since I do not see an actionable item here.

@fdschmidt93
That is TOTALLY fair and understandable.
You're right, I didn't put any context around that at all.
You nailed it though, wanting the formatting of results and the filtering for moments where you might grep for visually selected text. I didn't see it in the docs, is there a way to start live_grep off with a starting string?

Any telescope picker takes a default_text argument with which a search string can be initialized.
Here's how I do it in my dotfiles for visual selection: https://github.com/fdschmidt93/dotfiles/blob/c4c2dc208e84164e50bece2d033e62468a20eb6f/nvim/.config/nvim/lua/fds/mappings.lua#L55-L71

Thanks for your time, and for the code examples.


copied and started to coment the function ufd_convertXML line by line

It has conflict with previous pull request. I will close this one.


Update micrometer and jackson and rebuild licenses

This should supersede #1522 and #1519

Let's keep the jackson version same as in the upstream for the release


Update specifying-custom-build-tools.md

Address #272 to correct time relation for build.

Microsoft authors of articles need to make updates through the private repository so the updates can be staged and validated by the current validation rules. After you review staging and fix all validation issues, you can add the sign-off comment to let the PR reviewers know the updates are ready to be merged.It's easy to access the private repo version of your articles in GitHub. Just add -pr to the URL, as follows:
Public repo URL: https://github.com/Microsoft/azure-docs/blob/master/articles/azure-portal-overview.md
Private repo URL: https://github.com/Microsoft/azure-docs-pr/blob/master/articles/azure-portal-overview.md
We have closed this pull request. Please resubmit the updates through the private repo. If you need perms to the private repo, see the contributor guide instructions


Using AAD and preventing access to specific pages

I'm making a technical documentation site (which uses mkdocs) that I've successfully deployed to SWA. My goal now is to:

⛔ Completely restrict anonymous access
✋ Only allow specific users within our Azure tenant to log on
📂 Prevent specific users of seeing certain subfolders

To make things simple, consider the example below which represents the markdown content (which gets rendered to HTML):
.
├── index.md
├── fruits
│   ├── apples.md
│   └──  ...
├── veggies
│   ├── tomatoes.md
│   └──  ...
└──  ...

1. ⛔ Completely restrict anonymous access
I'm blocking all built-in providers, except for AAD. Is the below snippet sufficient? Or do I also need to set up an app registration as is mentioned in the docs, under Custom authentication?
...
        {
            "route": "/login",
            "serve": "/.auth/login/aad"
        },
        {
            "route": "/.auth/login/apple",
            "statusCode": 404
        },
        {
            "route": "/.auth/login/facebook",
            "statusCode": 404
        },
        {
            "route": "/.auth/login/github",
            "statusCode": 404
        },
        {
            "route": "/.auth/login/google",
            "statusCode": 404
        },
        {
            "route": "/.auth/login/twitter",
            "statusCode": 404
        },
...

2. ✋ Only allow specific users within our Azure tenant to log on
Let's say I have 2 roles which I have set up under Settings > Role management in the portal. I've invited the necessary users and have assigned them one of the following roles:

roleX: able to see all pages
roleY: users in this role absolutely hate their veggies and should not be able to see any content under /veggies/* (see 3.)

I don't need to do anything with the built-in authenticated or anonymous roles, right?
3. 📂 Prevent specific users of seeing certain subfolders
Would the below snippet be sufficient to get this to work?
...
        {
            "route": "/*",
            "serve": "/index.html",
            "allowedRoles": [
                "roleX",
                "roleY"
            ]
        },
        {
            "route": "/fruits/*",
            "allowedRoles": [
                "roleX",
                "roleY"
            ]
        },
        {
            "route": "/veggies/*",
            "allowedRoles": [
                "roleX"
            ]
        }
...

If I would create more custom roles in the future, can I use the built-in authenticated role which would match automatically match any custom role I've created?
Thanks!

I'm looking to implement a similar setup for some internal docs as well. I've been running into an issue where despite gating all routes to require an allowed role of staff using the * wildcard, the site still seems to be public on all routes :thinking:.
Any help from azure staff on this will be much appreciated!


HTTP/2 not properly supported for PUT requests

Proposal
When writing a wiremock test that tests a PUT request via Spring's RestClient that uses the JDK 11 HttpClient as the underlying client, I get java.io.EOFException: EOF reached while reading error.
By explicitly configuring to use HTTP 1.1 instead of HTTP/2, the error no longer happens.
See https://stackoverflow.com/questions/78151993/eof-reached-while-reading-with-spring-restclient-and-wiremock-using-jdkclienth for my SO post about the issue.
Reproduction steps
There is a reproducer project at https://github.com/wimdeblauwe/restclient-jdk-issue
References
No response

If I'm not mistaken there are no implementations of HTTP/2 without TLS. So my guess is that you set up a http stub that is served with HTTP/1.1. So it might be Java HttpClient's bug for not downgrading to HTTP/1.1 on non-TLS connection or not handling failed upgrade attempt properly. Or maybe underlying Jetty is not configured to use h2c for not-TLS HTTP/2 connections (probably need some configuration to enable it).
Actually, your code can be changed to use only one ClientHttpRequestFactory:
        return RestClient.builder()
                .requestFactory(new JdkClientHttpRequestFactory(HttpClient.newBuilder()
                        .version(HttpClient.Version.HTTP_1_1)
                        .build()))
                .baseUrl(properties.baseUrl())
                .build();

and it works.

The point is that Wiremock is that HTTP stub and forcing HTTP/1.1 should not be needed.

Well, I can only add that I could not reproduce error by using plain Jdk HttpClient like this:
        var httpClient = HttpClient.newHttpClient();
        HttpResponse<String> response = httpClient.send(HttpRequest.newBuilder()
                        .uri(new URI(runtimeInfo.getHttpBaseUrl() + "/something"))
                        .header("Content-Type", "application/json")
                        .PUT(HttpRequest.BodyPublishers.ofString("{ \"data\": \"test\" }"))
                        .build(),
                HttpResponse.BodyHandlers.ofString()
        );

Same using sendAsync(). Maybe error has something to do with Spring RestClient usage of HttpClient.

The Spring RestClient is nothing more then a wrapper, however internally it will use a Streaming Request and not a plain String.
Rewriting the code to use that makes it fail even with a plain HttpClient.
var client = HttpClient.newHttpClient();

var publisher = HttpRequest.BodyPublishers.ofInputStream(() -> {
      try {
        var input = new PipedInputStream();
        var output = new PipedOutputStream(input);
        new ObjectMapper().writeValue(output, new SomeRequest(16));
        return input;
      } catch (Exception ex) {
        throw new RuntimeException(ex);
      }
    });

var request = HttpRequest.newBuilder().
  .uri(URI.create(runtimeInfo.getHttpBaseUrl() + "/something"))
  .header("Content-Type", "application/json")
  .PUT(HttpRequest.BodyPublishers.fromPublisher(publisher))
  .build();

var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());

https://github.com/wiremock/wiremock/issues/2461
This issue seems to discuss/elaborate the issue. Apparently HTTP/2 with an InputStream body is only supported on HTTPS.

Same issue here #2585, the reason it can be hard to reproduce is that it is also linked to the size of the request.

From a quick tcpdump session, as far as I can tell after WireMock has sent the 101 Upgrade response to HTTP/2 the client starts sending encrypted data despite us still being on a plain text connection.
The reproducer test passes if you set the app's base URL to use HTTPS and disable certificate validation.
I'm not sure there's much we can do here apart from add the option to disable HTTP/2 so that no upgrade happens.

On further inspection, this isn't encryption related but definitely seems to be triggered by the combination of upgrade + PUT + chunked encoded request body.
Seems this is undefined behaviour as far as Jetty is concerned unfortunately:
https://github.com/jetty/jetty.project/issues/3235

HTTP/2 toggles added: 363e2ff7ea3ed3b1db16744f1a0dd1b894561e04

https://github.com/jetty/jetty.project/issues/11588


Instructions for Generating Dependency Trees for CTB

Hi,
I have followed distance-parser to preprocess the CTB data, but what are the exact steps for generating dependency trees (They only do constituency parsing)? Thank you!

I tried to follow the instructions here for converting CTB to dependency trees. However, I have 1832 errors out of 17498 training trees when using Stanford Parser 3.3.0. The number of errors reduces to 124 when using Stanford Parser 3.9.2. I would appreciate it if sufficient details can be released to reproduce the CTB numbers in the paper. Thanks!

Same issue


Refactor thumbnail creation to use celery

Avoid bug where thumbnail is trying to be created but the layer instance is not saved yet.

@ismailsunni @Gustry please review

I though it was better to create our own django signal emitted after the DB INSERT. But I just tried your PR and it works. LGTM


New package: InvariantMeasures v0.1.0

Registering package: InvariantMeasures
Repository: https://github.com/orkolorko/InvariantMeasures.jl
Created by: @orkolorko
Version: v0.1.0
Commit:<PHONE_NUMBER>274971aafb09cdf1ba2e9a6c3c842a
Reviewed by: @orkolorko
Reference: https://github.com/orkolorko/InvariantMeasures.jl/commit/4902795017274971aafb09cdf1ba2e9a6c3c842a#commitcomment-48808544

I changed the version number, as stated by the Registrator warning.


[WIP] Dialog import/export - add versioning, migrate load_values_on_init

Continuation of ManageIQ/manageiq-schema#357, and https://github.com/ManageIQ/manageiq/pull/18600 (and ManageIQ/ui-components#376).
This changes import and export of service dialogs so that:

newly exported dialogs have an extra export_version field, set to DialogImportService::CURRENT_DIALOG_VERSION (currently 2)
importing a dialog looks for export_version, defaulting to 1 if not found, and passes it through the chain of build_dialog_tabs -> build_dialog_groups -> build_dialog_fields -> import_field.
DialogFieldImporter#import_field now updates load_values_on_init when importing a version 1 export.

Related to
https://bugzilla.redhat.com/show_bug.cgi?id=1684575
https://bugzilla.redhat.com/show_bug.cgi?id=1684567

@miq-bot add_label wip
missing tests

@miq-bot add_label automate, hammer/no

Thanks, hopefully finishing the tests today/tomorrow

@miq-bot remove_label wip
I think this should be ready, including tests now :)

One more TODO: @gmcculloug mentioned a preference for release numbers in the version, instead of just integers..

Updated to use "5.10" as the default version for old dialogs, and "5.11" as the current one.
The code should be able to correctly deal with "5.11.2" if needed, using Gem::Version to compare versions.

@eclarizio, @gmcculloug  Sorry this took so long, should be ready now :)

Once travis is green (after the binding.pry is removed), this looks good to go +1

Travis is green, the binding.pry is removed, all looks good --> merging .


fix initialization with async attribute

Client(api_key=MY_KEY, async=True) was totally ignored, now it should correctly initialize an async client when you pass async=True.

thanks!


Why is the plugin still overwriting my original EssentialsX's original directives even though I've disabled the directive?

Why is the plugin still overwriting my original EssentialsX's original directives even though I've disabled the directive?
How do I completely turn off specific features I want?
disabled_commands: ['/home']
https://user-images.githubusercontent.com/70073452/230730948-bb29ec55-ecba-438a-b8c2-1def03558c6d.mp4
Plugin Version: 4.1.1
Server Version: This server is running Paper version git-Paper-307 (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT) (Git: 476ef25)
config.yml
# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
# ┃       HuskHomes Config       ┃
# ┃    Developed by William278   ┃
# ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
# ┣╸ Information: https://william278.net/project/huskhomes
# ┗╸ Documentation: https://william278.net/docs/huskhomes
language: en-gb
check_for_updates: true
debug_logging: false
database:
  # Database connection settings
  type: SQLITE
  mysql:
    credentials:
      host: localhost
      port: 3306
      database: HuskHomes
      username: root
      password: pa55w0rd
      parameters: ?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
    connection_pool:
      # MySQL connection pool properties
      size: 12
      idle: 12
      lifetime: 1800000
      keepalive: 30000
      timeout: 20000
  table_names:
    saved_position_data: huskhomes_saved_positions
    position_data: huskhomes_position_data
    home_data: huskhomes_homes
    warp_data: huskhomes_warps
    teleport_data: huskhomes_teleports
    player_data: huskhomes_users
general:
  # General plugin settings
  max_homes: 10
  max_public_homes: 10
  stack_permission_limits: true
  permission_restrict_warps: false
  overwrite_existing_homes_warps: true
  teleport_warmup_time: 5
  teleport_warmup_display: ACTION_BAR
  teleport_request_expiry_time: 60
  strict_tpa_here_requests: true
  allow_unicode_names: false
  allow_unicode_descriptions: true
  back_command_return_by_death: true
  back_command_save_teleport_event: false
  list_items_per_page: 12
  asynchronous_teleports: true
  play_sound_effects: true
  sound_effects:
    teleportation_warmup: block.note_block.banjo
    teleportation_complete: entity.enderman.teleport
    teleportation_cancelled: entity.item.break
cross_server:
  # Enable teleporting across proxied servers. Requires MySQL
  enabled: false
  messenger_type: PLUGIN_MESSAGE
  cluster_id: ''
  global_spawn:
    enabled: false
    warp_name: Spawn
  global_respawning: false
  redis_credentials:
    host: localhost
    port: 6379
    password: ''
    use_ssl: false
rtp:
  # Random teleport (/rtp) command settings
  cooldown_length: 10
  radius: 5000
  spawn_radius: 500
  distribution_mean: 0.75
  distribution_deviation: 2.0
  restricted_worlds:
  - world_nether
  - world_the_end
economy:
  # Charge for certain actions (requires Vault)
  enabled: false
  # Use this currency for payments (works only with RedisEconomy), defaults to Vault currency
  redis_economy_name: vault
  free_home_slots: 5
  costs:
    back_command: 0.0
    additional_home_slot: 100.0
    random_teleport: 25.0
    make_home_public: 50.0
map_hook:
  # Display public homes/warps on web maps (DYNMAP, BLUEMAP)
  enabled: false
  map_plugin: DYNMAP
  show_public_homes: true
  show_warps: true
# Disabled commands (e.g. ['/home', '/warp'] to disable /home and /warp)
disabled_commands: ['/home']

HuskHomes on Minecraft 1.19.3< runs as a Spigot plugin. Spigot does not provide API for programatically registering commands, so the command will still register but just display a "disabled message".
Please create command alises in command.yml to point /home --> /essentials:home (link)
OR
Update your Minecraft Server to Paper 1.19.4. HuskHomes on Paper 1.19.4 will run as a Paper plugin, which does allow for this. Thus, disabled commands won't be registered and Essentials commands will work by default.

HuskHomes on Minecraft 1.19.3< runs as a Spigot plugin. Spigot does not provide API for programatically registering commands, so the command will still register but just display a "disabled" message.
Please create command alises in command.yml to point /home -> /essentials:home (link) -- and do this for every command.
OR
Update your Minecraft Server to Paper 1.19.4. HuskHomes on Paper 1.19.4 will run as a Paper plugin, which does allow for this. Thus, disabled commands won't be registered and Essentials commands will work by default.

I used the second way, tried to upgrade the version to 1.19.4, but instead of solving the problem, it got worse...
Now with the same configuration, the command cannot be disabled, I try to specify the EssentialsX home command directly inside the directive is also overridden as huskhomes...
https://user-images.githubusercontent.com/70073452/230733589-8b6841ef-5af9-4f3b-b844-1e5910b1ccd5.mp4
Plugin Version: 4.1.1
Server Version: This server is running Paper version git-Paper-499 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: 29b17a8)

Send your commands.yml

Send your commands.yml and HuskHomes config.yml, it looks like you've set some weird aliases

config.yml
# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
# ┃       HuskHomes Config       ┃
# ┃    Developed by William278   ┃
# ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
# ┣╸ Information: https://william278.net/project/huskhomes
# ┗╸ Documentation: https://william278.net/docs/huskhomes
language: en-gb
check_for_updates: true
debug_logging: false
database:
  # Database connection settings
  type: SQLITE
  mysql:
    credentials:
      host: localhost
      port: 3306
      database: HuskHomes
      username: root
      password: pa55w0rd
      parameters: ?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
    connection_pool:
      # MySQL connection pool properties
      size: 12
      idle: 12
      lifetime: 1800000
      keepalive: 30000
      timeout: 20000
  table_names:
    saved_position_data: huskhomes_saved_positions
    position_data: huskhomes_position_data
    home_data: huskhomes_homes
    warp_data: huskhomes_warps
    teleport_data: huskhomes_teleports
    player_data: huskhomes_users
general:
  # General plugin settings
  max_homes: 10
  max_public_homes: 10
  stack_permission_limits: true
  permission_restrict_warps: false
  overwrite_existing_homes_warps: true
  teleport_warmup_time: 5
  teleport_warmup_display: ACTION_BAR
  teleport_request_expiry_time: 60
  strict_tpa_here_requests: true
  allow_unicode_names: false
  allow_unicode_descriptions: true
  back_command_return_by_death: true
  back_command_save_teleport_event: false
  list_items_per_page: 12
  asynchronous_teleports: true
  play_sound_effects: true
  sound_effects:
    teleportation_warmup: block.note_block.banjo
    teleportation_complete: entity.enderman.teleport
    teleportation_cancelled: entity.item.break
cross_server:
  # Enable teleporting across proxied servers. Requires MySQL
  enabled: false
  messenger_type: PLUGIN_MESSAGE
  cluster_id: ''
  global_spawn:
    enabled: false
    warp_name: Spawn
  global_respawning: false
  redis_credentials:
    host: localhost
    port: 6379
    password: ''
    use_ssl: false
rtp:
  # Random teleport (/rtp) command settings
  cooldown_length: 10
  radius: 5000
  spawn_radius: 500
  distribution_mean: 0.75
  distribution_deviation: 2.0
  restricted_worlds:
  - world_nether
  - world_the_end
economy:
  # Charge for certain actions (requires Vault)
  enabled: false
  # Use this currency for payments (works only with RedisEconomy), defaults to Vault currency
  redis_economy_name: vault
  free_home_slots: 5
  costs:
    back_command: 0.0
    additional_home_slot: 100.0
    random_teleport: 25.0
    make_home_public: 50.0
map_hook:
  # Display public homes/warps on web maps (DYNMAP, BLUEMAP)
  enabled: false
  map_plugin: DYNMAP
  show_public_homes: true
  show_warps: true
# Disabled commands (e.g. ['/home', '/warp'] to disable /home and /warp)
disabled_commands: ['/home', '/warp']

commands.yml
command-block-overrides: []
ignore-vanilla-permissions: false
aliases:
  icanhasbukkit:
  - version $1-

try /huskhomes:home -- does it work? I'm confused here, since it seems like it's displaying some random locale for some reason and I can't reproduce this at all

try /huskhomes:home -- does it work? I'm confused here, since it seems like it's displaying some random locale for some reason and I can't reproduce this at all

I type /huskhomes:home and it doesn't work, he only has /huskhomes:homes
https://user-images.githubusercontent.com/70073452/230756153-ac6ca9bd-ebf1-47ee-aa45-90570ec16671.mp4

Okay, so it would seem then you have another plugin installed with a /home command? Try a restart, make sure you don't have any aliases defined and have a look for which plugins you have installed that are providing /home commands

Okay, so it would seem then you have another plugin installed with a /home command? Try a restart, make sure you don't have any aliases defined and have a look for which plugins you have installed that are providing /home commands

From my testing, this command cannot be disabled as long as both EssentialsX and HuskHomes are installed. This is all tested with all config.yml and commands.yml keeping the above settings
EssentialsX Version: 2.20.0-dev+52-c716fc8
EssentialsXSpawn Version: 2.20.0-dev+52-c716fc8

Could you make use of /lp verbose to examine which checks are being made when you run a command? Perhaps LuckPerms' checks are imposing some sort of issue here. It's worth mentioning that in modern versions of Minecraft, the game will act as though a command didn't exist, rather than display a permission error message when a user lacks a prerequisite permission.

您可以使用 來/lp verbose檢查運行命令時進行了哪些檢查嗎？也許 LuckPerms 的支票在這裡造成了某種問題。值得一提的是，在現代版本的 Minecraft 中，遊戲會像_命令不存在_一樣運行，而不是在用戶缺少先決條件權限時顯示權限錯誤消息。

Could you make use of /lp verbose to examine which checks are being made when you run the command? Perhaps LuckPerms' checks are imposing some sort of issue here. It's worth mentioning that in modern versions of Minecraft, the game will act as though a command didn't exist, rather than display a permission error message when a user lacks a prerequisite permission.

https://user-images.githubusercontent.com/70073452/230775194-6691c35e-9946-4714-ae0f-97ae741ff834.mp4

It seems like the /home command on your server is weirdly firing the respawnEvent, which just simply shouldn't happen.
I'm not sure why this is occurring for you. Are there any other plugins on your server that provide a /home command? It seems like what's happening here is Essentials is processing the command, doing the checks, and running some sort of unexpected behaviour.

It seems like the /home command on your server is weirdly firing the respawnEvent, which just simply shouldn't happen.
I'm not sure why this is occurring for you. Are there any other plugins on your server that provide a /home command? It seems like what's happening here is Essentials is processing the command, doing the checks, and running some sort of unexpected behaviour.

My server is currently only running these plugins and nothing else

Have you tried without EssentialsSpawn but with Essentials?

Have you tried without EssentialsSpawn but with Essentials?

problem still exists

Tested without luckperms:

Tested with luckperms;

Simply put -- I'm not able to reproduce this :/ Try making sure everything is up-to-date and maybe redo your permissions? It's possible that's messing something up.

Tested without luckperms:
Tested with luckperms;
Simply put -- I'm not able to reproduce this :/ Try making sure everything is up-to-date and maybe redo your permissions? It's possible that's messing something up.
Specifically, there were quite a few upstream changes introduced in Paper 499-501, so maybe try updating to latest paper?

I have updated my PaperMC to 501 and completely reworked the permissions, and I found that the problem seems to be that when I give the player the * permission, the command disable will not work, is this normal?
Server Version: This server is running Paper version git-Paper-501 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: 9cda284)
LuckPerms permission change
/lp user <UserName> permission set * true

While it's bizarre that it's doing what it's doing, I don't recommend giving the * node

While it's bizarre that it's doing what it's doing, I don't recommend giving the * node

So will this be fixed? Or will it be put on hold for now?

Well, I'm not sure if it's actually HuskHomes at fault here really, or an edge-case feature of EssX with LP where * activates some sort of super-override mode.


doc improvement for tf.math.asin and tf.math.atan

PR for issue #26492

Do we not have acos?
Assuming we do, the same change needs to be made there as well I assume.

Actually, I have fixed acos in #26017. Would you be able to look at that PR as well? It has been pending for a long time.
As for the changes, will writing something like...
"Note: The output of tf.math.asin will lie within the invertible range of sine i.e. [-pi/2, pi/2] "
...be enough or should I add another usage example that demonstrates this?

I think the wording changes you propose are good.
This comment also applies to #26017, can you make the same change to cos (except of course the range is different)?

Alright, I've specified the range for all the three operations.

@martinwicke will you be able to approve #26017 as well if that PR is fine?


Limits on Excluded domains and senders?

Are there limits on the number of Excluded Senders or Excluded domains?  If so can we get them documented in the description of each of these parameters of the command?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 15695a77-5d00-89d9-fba9-74de36ffd4cf
Version Independent ID: 0e0863e8-82e8-0709-4204-bb406266b2f9
Content: Set-AntiPhishPolicy (ExchangePowerShell)
Content Source: exchange/exchange-ps/exchange/Set-AntiPhishPolicy.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

@cablechewer, according to regular content, the limit is approx. 1000 entries per list.
I updated the parameter descriptions in New- and Set- accordingly.
Thanks for the feedback.
Closing


TypeError: 'NoneType' object is not subscriptable

Your Reply to the Human Prompter: Sure, I can help you with that!
Current Focus: Developing a Tic-Tac-Toe game using Python.
Plan:

[ ] Step 1: Research and understand the rules and logic of the Tic-Tac-Toe game.
[ ] Step 2: Set up the Python development environment on your machine.
[ ] Step 3: Create a blank 3x3 grid to represent the Tic-Tac-Toe board.
[ ] Step 4: Implement the logic to alternate turns between two players (X and O).
[ ] Step 5: Allow players to input their moves on the grid.
[ ] Step 6: Check for winning conditions after each move.
[ ] Step 7: Implement a function to check for a draw if no player wins.
[ ] Step 8: Display the updated board after each move.
[ ] Step 9: Continue the game until a player wins or it ends in a draw.
[ ] Step 10: Display the end result (win/draw) and ask if players want to play again.

Summary: To create a Tic-Tac-Toe game in Python, we need to research the game rules, set up the development environment, implement the game logic including player input and turn alternation, check for winning conditions, and display the game board. Testing will involve ensuring the game runs smoothly without bugs, and the final game should allow for continuous play. Dependencies include understanding basic Python syntax and data structures, as well as implementing the grid logic for the game board. Potential challenges may arise in handling user input and managing game states effectively.
==================================================
{'developing', 'toe', 'python', 'game', 'tic'}
Token usage: 1160
Token usage: 1206
I need to research the rules of Tic-Tac-Toe and set up the Python environment first. Then I can start creating the game logic and interface for players to input their moves.
==================================================
Token usage: 2121
Token usage: 2178
{'queries': ['Tic-Tac-Toe game rules and logic explanation Python', 'Python development environment setup guide for beginners', '3x3 grid implementation in Python for Tic-Tac-Toe game'], 'ask_user': ''}
==================================================
Exception in thread Thread-167 (<lambda>):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/broadifi/Desktop/work/ai_soft/devika/devika.py", line 49, in <lambda>
    target=lambda: Agent(base_model=base_model).execute(prompt, project_name)
  File "/home/broadifi/Desktop/work/ai_soft/devika/src/agents/agent.py", line 333, in execute
    search_results = self.search_queries(queries, project_name)
  File "/home/broadifi/Desktop/work/ai_soft/devika/src/agents/agent.py", line 84, in search_queries
    link = bing_search.get_first_link()
  File "/home/broadifi/Desktop/work/ai_soft/devika/src/browser/search.py", line 24, in get_first_link
    return self.query_result["webPages"]["value"][0]["url"]
TypeError: 'NoneType' object is not subscriptable

For me too.. I don't have a bing API key nor can I really get one.

Had the same issue, can we use Tavily or Serapi APIs?

fetch the latest changes


[WIP] Rewrite the rust-installer in Rust

For rust-lang/rust#41569, this branch rewrites almost all of rust-installer in Rust.  The existing shell scripts are cut down to shims invoking cargo run, but otherwise they still accept the exact same options as before.  Only the actual install script and the testing script are still written in shell, and all of those tests do pass as-is.
It's not clear to me if this will be wanted as an evolution of rust-installer, or dropped in directly to the Rust sources, but having a PR here should let people start reviewing it either way.  My next step is to see if this will serve as a drop-in replacement in Rust, Cargo, etc., and then we can see about porting rustbuild dist.rs to use this directly as a library.

Awesome, thanks so much for this @cuviper! Everything looks quite solid to me. I really like how we've still got a test suite in this repository, and I like the strategy here as well. I think we'll want to keep the test suite no matter what, and it's not necessarily critical to rewrite it just yet, I was mostly interested in the tarball-creation logic which just tends to be easier if it's cross-platform.
Note that we probably don't have to worry about updating the Cargo repository's rust-installer submodule, I've been meaning to phase that out now that it's all included in rust-lang/rust. In that sense I think the next steps would be:

Land this
Update the submodule in rust-lang/rust
Add a src/tools/foo which depends on the library support in the rust-installer submodule
Update src/bootstrap/dist.rs to invoke the src/tools/foo command instead of the shell scripts in rust-intaller.sh

Does that sounds reasonable? Or did you have different plans in mind perhaps?

Note that we probably don't have to worry about updating the Cargo repository's rust-installer submodule, I've been meaning to phase that out now that it's all included in rust-lang/rust.

On the distro side, we still build cargo from its own source rpm, so I would at least hope that "make install" continues to work -- but that definitely doesn't need to use a full rust-installer.  This is a tangent though, so if there's more to discuss here, let's spin off a cargo issue.

Add a src/tools/foo which depends on the library support in the rust-installer submodule
Update src/bootstrap/dist.rs to invoke the src/tools/foo command instead of the shell scripts in rust-intaller.sh

I had thought to just make dist.rs call the library directly.  Is there a benefit to having it go through an external tool?
And FWIW, a basic tool already exists in the new src/main.rs here, which is what the script shims are using.  How would you want a new tool to look?

I had thought to just make dist.rs call the library directly. Is there a benefit to having it go through an external tool?

Ah my only thinking here is that this'd mean the libs would be a dependency of rustbuild itself, and rustbuild is the gate into compiling everything in the rust-lang/rust repo. If we add all the deps (semi-weighty here) it may make rust compilations more difficult to get working on all platforms all the time.
Basically I'd imagine that less-than-100% (maybe not even half?) of builds in rust-lang/rust don't actually end up using dist logic at all, so requiring those libs to build, for example, flate2/xz2/etc may just be a bit too onerous. By deferring the logic to a separate build we can at least cut out those deps from builds that don't end up invoking dist logic.
I think, however, it's always possible to add more deps to rustbuild, it'll just be a long road uphill unfortunately.

And FWIW, a basic tool already exists in the new src/main.rs here, which is what the script shims are using. How would you want a new tool to look?

Nah it seems fine to me! Either a custom tool or the one here should work great.

Ah my only thinking here is that this'd mean the libs would be a dependency of rustbuild itself, and rustbuild is the gate into compiling everything in the rust-lang/rust repo. If we add all the deps (semi-weighty here) it may make rust compilations more difficult to get working on all platforms all the time.

Ah, that makes total sense.  External tool it is!

r? @brson
(would like to review before merging)

lgtm
The remove_dir_all module should probably be replaced with the remove_dir_all crate.

I saw the remove_dir_all crate exists, but with so few downloads I didn't feel comfortable using it.  It really seems like something libstd should solve itself...


[SPARK-31612][SQL][DOCS] SQL Reference clean up

What changes were proposed in this pull request?
SQL Reference cleanup
Why are the changes needed?
To complete SQL Reference
Does this PR introduce any user-facing change?
updated sql-ref-syntax-qry.html
before

after

How was this patch tested?
Manually build and check

Test build #122109 has started for PR 28417 at commit 92bda1b.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/26783/
Test PASSed.

cc @gatorsmile @maropu
In the first round of clean-up, I will focus on syntax and typos. After I finish this, I will remove all the html syntax following this PR https://github.com/apache/spark/pull/28414. Then change HTML tables to MD tables following this PR https://github.com/apache/spark/pull/28415
I have added a couple of <code> </code> in this PR, because when I did this, I didn't know we will remove html syntax. I will just leave these <code> </code>, will remove all the html syntax in the second round of clean-up.

Test build #122109 has finished for PR 28417 at commit 92bda1b.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/122109/
Test PASSed.

Test build #122114 has started for PR 28417 at commit 5b8b221.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/26788/
Test PASSed.

Test build #122114 has finished for PR 28417 at commit 5b8b221.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/122114/
Test PASSed.

Thanks! Merged to master/3.0.

Thanks! @maropu @srowen

Ur, plz add what's cleaned up in the PR description.

Updated.


Add icon with png layer where height and width are != 0

cc: @danmosemsft

LGTM..don't you need to increment version in nuspec? I have info on the onenote

LGTM..don't you need to increment version in nuspec? I have info on the onenote

Oh yeah you're right. I will update that and also I'm planing on add another ico for the OE.

Updated nuspec and added icon causing overflow


Conformance tests against MTChannelBasedBroker

It is useful to allow for running REKT conformance tests with a different implementation as well. For example, MTChannelBasedBroker backed by KafkaChannel which was developed in knative-sandbox/eventing-kafka.
With this PR, it is possible to run them by:
export BROKER_CLASS="MTChannelBasedBroker"
go test -tags=e2e -timeout=100m -run TestBrokerConformance ./test/e2e_new

Proposed Changes

Remove the restriction to run tests only with Kafka and NamespacedKafka broker class.
Provide additional configmap element for (channel-template-spec) when the type is MTChannelBasedBroker

Release Note

Docs

/test unit-tests_eventing-kafka-broker_main

/test unit-tests

/retest

/retest

/test channel-integration-tests-sasl-ssl

/retest-required

/retest-required


Dependency on babel-polyfill

Hello, it looks like your fork is dependant on Array.prototype.values, so you need to polyfill it. Could you add require("babel-polyfill") to start of your module, please?

@dodas Will do so :-)

@dodas On second look, I'm not even sure why that is using Array.prototype.values, since for...of can iterate over Arrays directly.

Yeah, I wasn't sure why it's there too. Tried now, works OK without it.

@dodas Probably some code I wrote in a rush. That memoize function is also bugged, albeit in a harmless fashion.

@dodas After some consideration I'm not going to directly add a require("babel-polyfill") to the code for two reasons:

It would explicitly force users to transpile with Babel, as opposed to allowing usage with other transpilation platforms.
Eventually, ES6 and ES6 modules will (hopefully) be supported directly by all active runtime environments and thus a dependency on a polyfill will be unnecessary.

What I will do, however, is add a note in the README.md file detailing that a transpilation environment and ES6 polyfill will be necessary for usage in non-compliant environments.
Is that okay?

Addressed by #7


401 Unauthorized when trying to login to Apache HTTPS Server

Hello, studio-b12!
I use following software:
OS: Windows 10 x64
Golang: 1.10.1
I trying to use your app to connect to my WebDav sever (Apache HTTPS Server), via following commands in cmd:
set ROOT=mywebdav.lan
set USER=user
set PASSWORD=password

gowebdav -X LS /user

and expect to see my files and folders in /user folder:
folder-1
folder-2
folder-3
file.txt

but instead I got following:
ReadDir /data/: 401 Unauthorized - PROPFIND /data/

My server works good and I have no problem to connect to it via Google Chrome.
How can I fix this?
Thanks in advance.

Hello!
Do you use latest master version? I fixed the similar issue a few days ago. As I see this fix isn't released yet and stored only in master.

I set up a Radicale instance (uses Basic Auth), and I get the same error (with master). I'm currently looking into it.

This issue is caused by the OPTIONS request not requiring authorization. This means we'll have to check for a 401 status code at every request, or possibly try a PROPFIND / upon initial connection.

@misha-plus , yes, I use latest version from master

@chuckwagoncomputing , OPTIONS request is carrying out from options() function:
func (c *Client) options(path string) (*http.Response, error) {
	return c.req("OPTIONS", path, nil, func(rq *http.Request) {
		rq.Header.Add("Depth", "0")
	})
}

which calls c.req() function, which trying to do c.auth.Authorize(c, method, path)

That is correct. c.auth.Authorize will not work unless the authorization method has been set, which currently happens in Connect() in client.go, after the call to options() has succeeded. I'm moving it to req().

in my case c.options() returns 200 OK, and now I am trying to find the bug

yes, problem that authorization was not set in method c.connect()
it was not set because c.options() returns 200 OK, and in this line:
	if /*rs.StatusCode == 401 &&*/ c.auth.Type() == "NoAuth" {

application decide that server does not require authorization

I create following method:
func (c *Client) propfindTest() (*http.Response, error) {

	body :=
	`<d:propfind xmlns:d='DAV:'>
		<d:prop>
			<d:displayname/>
			<d:resourcetype/>
			<d:getcontentlength/>
			<d:getcontenttype/>
			<d:getetag/>
			<d:getlastmodified/>
		</d:prop>
	</d:propfind>`

        // "/qqq" is some existing folder on the webdav server. If folder will not exist,
        // "405 Not allowed" will be returned
	return c.req("PROPFIND", "/qqq", strings.NewReader(body), func(rq *http.Request) {
		rq.Header.Add("Depth", "0")
		rq.Header.Add("Content-Type", "text/xml;charset=UTF-8")
		rq.Header.Add("Accept", "application/xml,text/xml")
		rq.Header.Add("Accept-Charset", "utf-8")
		rq.Header.Add("Accept-Encoding", "")
	})
}

to use it instead of c.options() within c.connect, because PROPFIND requires authorization
Also, I modify c.connect() method:
func (c *Client) Connect() error {
	rs, err := c.propfindTest()
	if err != nil {
		return err
	}

	err = rs.Body.Close()
	if err != nil {
		return err
	}

	if rs.StatusCode == 401 && c.auth.Type() == "NoAuth" {
		if strings.Index(rs.Header.Get("Www-Authenticate"), "Digest") > -1 {
			c.auth = &DigestAuth{c.auth.User(), c.auth.Pass(), digestParts(rs)}
		} else if strings.Index(rs.Header.Get("Www-Authenticate"), "Basic") > -1 {
			c.auth = &BasicAuth{c.auth.User(), c.auth.Pass()}
		} else {
			return newPathError("Authorize", c.root, rs.StatusCode)
		}
		c.auth.Authorize(c, c.auth.User(), c.auth.Pass())
		return c.Connect()
	} else if rs.StatusCode == 401 {
		return newPathError("Authorize", c.root, rs.StatusCode)
	} else if rs.StatusCode != 200 /*|| (rs.Header.Get("Dav") == "" && rs.Header.Get("DAV") == "")*/ {
		return newPathError("Connect", c.root, rs.StatusCode)
	}

	return nil
}

but I still get 401 Unauthorized

Your approach does not work because the first time propfindTest runs it is unauthorized, and returns an error. Because it returns an error, Connect() returns early and never reaches the part where it checks the return value, authorizes, and tries again.

hello participants,
thank you for your investigations and for solving the issue.
@MrVine nice bug report! I'll use this as a template.
I'd like to improve the fix to keep the modification inside the client, because it's a client issue / improvement, and I'd love to keep the request as small as possible.
at the moment i have no clue how to do this in a nice way.
furthermore the connect call in the cmd (and client) seems to be useless. we could remove them. any concerns, what do you think?


Alignment issues on Safari

I think we had this reported before, but it remains an issue: the different circles don't align on Safari.

See, e.g., http://localhost:3000/block/thk_3 for the Score, and https://tst.amsterdammusiclab.nl/block/thk_mozart for the Autoplay component.

It seems that this issue does not occur anymore in the current develop version.

#1281 did not fix it. It moved the circle up to invisible areas 😠 Will try another fix

Nope.... (acc after deploy)

Nope.... (acc after deploy)

But now it is fixed! I think... per #1291