SPFarm throws errors with SP 2019

Details of the scenario you tried and the problem that is occurring
Trying to set up SP 2019 farm. I think it somehow worked with SharePointDsc 2.4 but what I get in 3.0 is the following:
Feature definition with Id 00bfea71-1c5e-4a24-b310-ba51c3eb7a57 failed validation, file 'BasicWebParts\feature.xml',
line 11, character 9:
The 'ActivateOnSiteMasterOverride' attribute is not declared.
    + CategoryInfo          : InvalidData: (Microsoft.Share...urationDatabase:) [], CimException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPConfigurationDatabase
    + PSComputerName        : addbweb01

Object reference not set to an instance of an object.
    + CategoryInfo          : InvalidData: (Microsoft.Share...PHelpCollection:) [], CimException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletInstallSPHelpCollection
    + PSComputerName        : addbweb01

Cannot perform security configuration because the configuration database does not exist.  You must create or join to a
configuration database before doing security configuration.
    + CategoryInfo          : InvalidData: (Microsoft.Share...esourceSecurity:) [], CimException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletInitializeSPResourceSecurity
    + PSComputerName        : addbweb01

Exception has been thrown by the target of an invocation.
    + CategoryInfo          : InvalidData: (Microsoft.Share...tInstallService:) [], CimException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletInstallService
    + PSComputerName        : addbweb01

PowerShell DSC resource MSFT_SPFarm  failed to execute Set-TargetResource functionality with error message: A
constructor was not found. Cannot find an appropriate constructor for type System.Uri.
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName        : addbweb01

The SendConfigurationApply function did not succeed.
    + CategoryInfo          : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : MI RESULT 1
    + PSComputerName        : addbweb01

Verbose logs showing the problem
https://gist.github.com/shurick81/1db4d784a054b60ba5b3375bde0af067
Suggested solution to the issue
none
The DSC configuration that is used to reproduce the issue (as detailed as possible)
$configName = "SPFarm"
Write-Host "$(Get-Date) Defining DSC"
try
{
    Configuration $configName
    {
        param(
            [Parameter(Mandatory=$true)]
            [ValidateNotNullorEmpty()]
            [PSCredential]
            $SPPassphraseCredential,
            [Parameter(Mandatory=$true)]
            [ValidateNotNullorEmpty()]
            [PSCredential]
            $SPInstallAccountCredential,
            [Parameter(Mandatory=$true)]
            [ValidateNotNullorEmpty()]
            [PSCredential]
            $SPFarmAccountCredential
        )
        Import-DscResource -ModuleName PSDesiredStateConfiguration
        Import-DscResource -ModuleName SqlServerDsc -ModuleVersion <IP_ADDRESS>
        Import-DSCResource -ModuleName SharePointDSC -ModuleVersion <IP_ADDRESS>

        Node $AllNodes.NodeName
        {

            SqlAlias SPDBAlias
            {
                Ensure              = 'Present'
                Name                = 'SPDB'
                ServerName          = "$NodeName\SPIntra01"
                UseDynamicTcpPort   = $true
            }

            SPFarm Farm
            {
                IsSingleInstance            = "Yes"
                Ensure                      = "Present"
                DatabaseServer              = "SPDB"
                FarmConfigDatabaseName      = "SP_Intra01_Config"
                AdminContentDatabaseName    = "SP_Intra01_Content_CA"
                Passphrase                  = $SPPassphraseCredential
                FarmAccount                 = $SPFarmAccountCredential
                RunCentralAdmin             = $true
                CentralAdministrationPort   = 15555
                ServerRole                  = "SingleServerFarm"
                PsDscRunAsCredential        = $SPInstallAccountCredential
                DependsOn                   = "[SqlAlias]SPDBAlias"
            }

        }
    }
}
catch
{
    Write-Host "$(Get-Date) Exception in defining DCS:"
    $_.Exception.Message
    Exit 1;
}
$securedPassword = ConvertTo-SecureString "sUp3rcomp1eX" -AsPlainText -Force
$SPPassphraseCredential = New-Object System.Management.Automation.PSCredential( "fakeaccount", $securedPassword )
$securedPassword = ConvertTo-SecureString "c0mp1Expa~~" -AsPlainText -Force
$SPInstallAccountCredential = New-Object System.Management.Automation.PSCredential( "contoso\_spadm16", $securedPassword );
$SPFarmAccountCredential = New-Object System.Management.Automation.PSCredential( "contoso\_spfrm16", $securedPassword );

$configurationData = @{ AllNodes = @(
    @{ NodeName = $env:COMPUTERNAME; PSDscAllowPlainTextPassword = $True; PsDscAllowDomainUser = $True }
) }
Write-Host "$(Get-Date) Compiling DSC"
try
{
    &$configName `
        -ConfigurationData $configurationData `
        -SPPassphraseCredential $SPPassphraseCredential `
        -SPInstallAccountCredential $SPInstallAccountCredential `
        -SPFarmAccountCredential $SPFarmAccountCredential;
}
catch
{
    Write-Host "$(Get-Date) Exception in compiling DCS:";
    $_.Exception.Message
    Exit 1;
}
Write-Host "$(Get-Date) Starting DSC"
try
{
    Start-DscConfiguration $configName -Verbose -Wait -Force;
}
catch
{
    Write-Host "$(Get-Date) Exception in starting DCS:"
    $_.Exception.Message
    Exit 1;
}
if ( $env:SPDEVOPSSTARTER_NODSCTEST -ne "TRUE" )
{
    Write-Host "$(Get-Date) Testing DSC"
    try {
        $result = Test-DscConfiguration $configName -Verbose;
        $inDesiredState = $result.InDesiredState;
        $failed = $false;
        $inDesiredState | % {
            if ( !$_ ) {
                Write-Host "$(Get-Date) Test failed"
                Exit 1;
            }
        }
    }
    catch {
        Write-Host "$(Get-Date) Exception in testing DCS:"
        $_.Exception.Message
        Exit 1;
    }
} else {
    Write-Host "$(Get-Date) Skipping tests"
}
Exit 0;

The operating system the target node is running
OsName               : Microsoft Windows Server 2016 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-bit
WindowsBuildLabEx    : 14393.2551.amd64fre.rs1_release.181004-1309
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

Version of SharePoint that is used (e.g. SharePoint 2016)
SharePoint 2019
Version and build of PowerShell the target node is running
Name                           Value
----                           -----
PSVersion                      5.1.14393.2515
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.2515
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

Version of the DSC module that was used ('dev' if using current dev branch)
<IP_ADDRESS> from galery.

Here is the full output: https://gist.github.com/shurick81/e191f540f68017cf2bf935322048f74f
I also added some debug output so we can see what commands throw what errors:
		Write-Verbose -Message ("Starting New-SPConfigurationDatabase")
                    New-SPConfigurationDatabase @executeArgs

                    $farmAction = "CreatedFarm"
                }
                finally
                {
                    Remove-SPDscConfigDBLock -SQLServer $params.DatabaseServer `
                                            -Database $params.FarmConfigDatabaseName
                }
            }

            # Run common tasks for a new server
		Write-Verbose -Message ("Starting Install-SPHelpCollection")
            Install-SPHelpCollection -All | Out-Null
		Write-Verbose -Message ("Starting Initialize-SPResourceSecurity")
            Initialize-SPResourceSecurity | Out-Null
		Write-Verbose -Message ("Starting Install-SPService")
            Install-SPService | Out-Null
		Write-Verbose -Message ("Starting Install-SPFeature")
            Install-SPFeature -AllExistingFeatures -Force | Out-Null

Thanks, the issue was caused by installing client SDK on the server: https://github.com/shurick81/sp-devops-starter/blob/f1662056fb26a990baa88ea39553ee8e79bfec9d/infrastructure/images/devbin-spclient.ps1. When I removed this part from the provisioning, everything started working as it should. It has nothing to do with SharePoint developer so I close the issue.


Check for NoneType instead of -1.

Thanks a lot for writing this script! I used it to upload the results from the HTTP Archive Almanac Fonts chapter to Google Sheets.
When I tried to run the script it kept failing on these two lines. It seems something has changed and None is now returned when a sheet is not found. I'm not sure if that's because the Google Sheets API client was updated or because I'm running a slightly newer version of Python. Regardless, checking for None fixed the issue for me.

Thank you @bramstein. The previous solution only worked on Python 2 while your solution works well on both Python 2 and Python 3. 🙏


service stops working after several hours - looking for help

Hi there and first of all a very big THX for this wonderful software.
I´m running the mbusd on a rpi 3b with a iobroker slave. I´m reading my solar charge controllers wich are connected via RS485 and it worked just fine for month until i had to replace the SD-Card and reinstall alsmost everything.
On the new OS the service works for hours and then connectionproblems occur.
It can only be solved by restarting the service with
sudo systemctl status<EMAIL_ADDRESS>The Logfile is very big >100MB until the error occures, so i try to paste relevant lines only (hope so)
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: state now is CONN_HEADER
22 Dec 2021 16:39:16 conn_loop(): select(): max_sd = 5, t_out = 000000:099128
22 Dec 2021 16:39:16 conn_loop(): select() returns 1
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: state now is CONN_RQST_FUNC
22 Dec 2021 16:39:16 conn_loop(): select(): max_sd = 5, t_out = 000000:098355
22 Dec 2021 16:39:16 conn_loop(): select() returns 1
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: read request fc 3
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: state now is CONN_RQST_TAIL
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: request: [03][03][90][14][00][01]
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: state now is CONN_TTY
22 Dec 2021 16:39:16 conn_loop(): select(): max_sd = 4, t_out = 000000:097506
22 Dec 2021 16:39:16 conn_loop(): select() returns 0
22 Dec 2021 16:39:16 tty: state now is TTY_RQST
22 Dec 2021 16:39:16 conn_loop(): select(): max_sd = 4, t_out = 000059:000000
22 Dec 2021 16:39:16 conn_loop(): select() returns 1
22 Dec 2021 16:39:16 tty: written 8 bytes
22 Dec 2021 16:39:16 tty: request written (total 8 bytes)
22 Dec 2021 16:39:16 tty: state now is TTY_RESP
22 Dec 2021 16:39:16 tty: estimated 7 bytes, waiting 501301 usec
22 Dec 2021 16:39:16 conn_loop(): select(): max_sd = 4, t_out = 000000:501301
22 Dec 2021 16:39:16 conn_loop(): select() returns 1
22 Dec 2021 16:39:16 tty: read 7 bytes
22 Dec 2021 16:39:16 tty: rx offset is 0
22 Dec 2021 16:39:16 tty: read 7 bytes of 7, offset 0
22 Dec 2021 16:39:16 tty: state now is TTY_PROC
22 Dec 2021 16:39:16 tty: response read (total 7 bytes, offset 0 bytes)
22 Dec 2021 16:39:16 tty: response is correct
22 Dec 2021 16:39:16 tty: response: [02][04][02][00][00][fd][30]
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: state now is CONN_RESP
22 Dec 2021 16:39:16 tty: state now is TTY_PAUSE
22 Dec 2021 16:39:16 conn_loop(): select(): max_sd = 6, t_out = 000000:100000
22 Dec 2021 16:39:16 conn_loop(): select() returns 1
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: state now is CONN_HEADER
22 Dec 2021 16:39:16 conn_loop(): select(): max_sd = 6, t_out = 000000:099701
22 Dec 2021 16:39:16 conn_loop(): select() returns 1
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: state now is CONN_RQST_FUNC
22 Dec 2021 16:39:16 conn_loop(): select(): max_sd = 6, t_out = 000000:098162
22 Dec 2021 16:39:16 conn_loop(): select() returns 1
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: read request fc 3
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: state now is CONN_RQST_TAIL
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: request: [02][03][91][07][00][01]
22 Dec 2021 16:39:16 conn[<IP_ADDRESS>]: state now is CONN_TTY
22 Dec 2021 16:39:16 conn_loop(): select(): max_sd = 4, t_out = 000000:097590
22 Dec 2021 16:39:16 conn_loop(): select() returns 0
22 Dec 2021 16:39:16 tty: state now is TTY_RQST
22 Dec 2021 16:39:16 conn_loop(): select(): max_sd = 4, t_out = 000060:000000
22 Dec 2021 16:39:16 conn_loop(): select() returns 1
22 Dec 2021 16:39:16 tty: written 8 bytes
22 Dec 2021 16:39:16 tty: request written (total 8 bytes)
22 Dec 2021 16:39:16 tty: state now is TTY_RESP
22 Dec 2021 16:39:16 tty: estimated 7 bytes, waiting 501301 usec
22 Dec 2021 16:39:16 conn_loop(): select(): max_sd = 4, t_out = 000000:501301
22 Dec 2021 16:39:17 conn_loop(): select() returns 1
22 Dec 2021 16:39:17 tty: read 7 bytes
22 Dec 2021 16:39:17 tty: rx offset is 0
22 Dec 2021 16:39:17 tty: read 7 bytes of 7, offset 0
22 Dec 2021 16:39:17 tty: state now is TTY_PROC
22 Dec 2021 16:39:17 tty: response read (total 7 bytes, offset 0 bytes)
22 Dec 2021 16:39:17 tty: response is correct
22 Dec 2021 16:39:17 tty: response: [03][03][02][16][10][ce][28]
22 Dec 2021 16:39:17 conn[<IP_ADDRESS>]: state now is CONN_RESP
22 Dec 2021 16:39:17 tty: state now is TTY_PAUSE
22 Dec 2021 16:39:17 conn_loop(): select(): max_sd = 5, t_out = 000000:100000
22 Dec 2021 16:39:17 conn_loop(): select() returns 1
22 Dec 2021 16:39:17 conn[<IP_ADDRESS>]: state now is CONN_HEADER
22 Dec 2021 16:39:17 conn_loop(): select(): max_sd = 5, t_out = 000000:099643
22 Dec 2021 16:39:17 conn_loop(): select() returns 1
22 Dec 2021 16:39:17 conn[<IP_ADDRESS>]: state now is CONN_RQST_FUNC
22 Dec 2021 16:39:17 conn_loop(): select(): max_sd = 5, t_out = 000000:098743
22 Dec 2021 16:39:17 conn_loop(): select() returns 1
22 Dec 2021 16:39:17 conn[<IP_ADDRESS>]: read request fc 4
22 Dec 2021 16:39:17 conn[<IP_ADDRESS>]: state now is CONN_RQST_TAIL
22 Dec 2021 16:39:17 conn[<IP_ADDRESS>]: request: [03][04][30][02][00][02]
22 Dec 2021 16:39:17 conn[<IP_ADDRESS>]: state now is CONN_TTY
22 Dec 2021 16:39:17 conn_loop(): select(): max_sd = 4, t_out = 000000:098365
22 Dec 2021 16:39:17 conn_loop(): select() returns 0
22 Dec 2021 16:39:17 tty: state now is TTY_RQST
22 Dec 2021 16:39:17 conn_loop(): select(): max_sd = 4, t_out = 000060:000000
22 Dec 2021 16:39:17 conn_loop(): select() returns 1
22 Dec 2021 16:39:17 tty: written 8 bytes
22 Dec 2021 16:39:17 tty: request written (total 8 bytes)
22 Dec 2021 16:39:17 tty: state now is TTY_RESP
22 Dec 2021 16:39:17 tty: estimated 7 bytes, waiting 501301 usec
22 Dec 2021 16:39:17 conn_loop(): select(): max_sd = 4, t_out = 000000:501301
22 Dec 2021 16:39:17 conn_loop(): select() returns 1
22 Dec 2021 16:39:17 tty: read 7 bytes
22 Dec 2021 16:39:17 tty: rx offset is 0
22 Dec 2021 16:39:17 tty: read 7 bytes of 7, offset 0
22 Dec 2021 16:39:17 tty: state now is TTY_PROC
22 Dec 2021 16:39:17 tty: response read (total 7 bytes, offset 0 bytes)
22 Dec 2021 16:39:17 tty: response is correct
22 Dec 2021 16:39:17 tty: response: [02][03][02][03][00][fc][b4]
22 Dec 2021 16:39:17 conn[<IP_ADDRESS>]: state now is CONN_RESP
22 Dec 2021 16:39:17 tty: state now is TTY_PAUSE
22 Dec 2021 16:39:17 conn_loop(): select(): max_sd = 6, t_out = 000000:100000
22 Dec 2021 16:39:17 conn_loop(): select() returns 1

Do you have any idea what the problem may be?
Any help is appreshiated!
The next log is connectiion attempt to the service without restarting it:
23 Dec 2021 02:55:20 conn_loop(): select() returns 0
23 Dec 2021 02:55:20 conn_loop(): select(): max_sd = 4, t_out = 000060:000000
23 Dec 2021 02:56:20 conn_loop(): select() returns 0
23 Dec 2021 02:56:20 conn_loop(): select(): max_sd = 4, t_out = 000060:000000
23 Dec 2021 02:57:20 conn_loop(): select() returns 0
23 Dec 2021 02:57:20 conn_loop(): select(): max_sd = 4, t_out = 000060:000000
23 Dec 2021 02:57:48 conn_loop(): select() returns 1
23 Dec 2021 02:57:48 conn_open(): accepting connection from <IP_ADDRESS>
23 Dec 2021 02:57:48 queue_new_elem(): length now is 1
23 Dec 2021 02:57:48 conn[<IP_ADDRESS>]: state now is CONN_HEADER
23 Dec 2021 02:57:48 conn_loop(): select(): max_sd = 5, t_out = 000060:000000
23 Dec 2021 02:57:48 conn_loop(): select() returns 1
23 Dec 2021 02:57:48 conn[<IP_ADDRESS>]: state now is CONN_RQST_FUNC
23 Dec 2021 02:57:48 conn_loop(): select(): max_sd = 5, t_out = 000060:000000
23 Dec 2021 02:57:48 conn_loop(): select() returns 1
23 Dec 2021 02:57:48 conn[<IP_ADDRESS>]: read request fc 2
23 Dec 2021 02:57:48 conn[<IP_ADDRESS>]: state now is CONN_RQST_TAIL
23 Dec 2021 02:57:48 conn[<IP_ADDRESS>]: request: [02][02][20][00][00][01]
23 Dec 2021 02:57:48 conn[<IP_ADDRESS>]: state now is CONN_TTY
23 Dec 2021 02:57:48 tty: state now is TTY_RQST
23 Dec 2021 02:57:48 conn_loop(): select(): max_sd = 4, t_out = 000060:000000
23 Dec 2021 02:57:48 conn_loop(): select() returns 1
23 Dec 2021 02:57:48 tty: written 8 bytes
23 Dec 2021 02:57:48 tty: request written (total 8 bytes)
23 Dec 2021 02:57:48 tty: state now is TTY_RESP
23 Dec 2021 02:57:48 tty: estimated 6 bytes, waiting 501214 usec
23 Dec 2021 02:57:48 conn_loop(): select(): max_sd = 4, t_out = 000000:501214
23 Dec 2021 02:57:49 conn_loop(): select() returns 0
23 Dec 2021 02:57:49 tty: response timeout
23 Dec 2021 02:57:49 tty: attempt to retry request (1 of 3)
23 Dec 2021 02:57:49 tty: state now is TTY_RQST
23 Dec 2021 02:57:49 tty: written 8 bytes
23 Dec 2021 02:57:49 tty: request written (total 8 bytes)
23 Dec 2021 02:57:49 tty: state now is TTY_RESP
23 Dec 2021 02:57:49 tty: estimated 6 bytes, waiting 501214 usec
23 Dec 2021 02:57:49 conn_loop(): select(): max_sd = 4, t_out = 000000:501214
23 Dec 2021 02:57:49 conn_loop(): select() returns 0
23 Dec 2021 02:57:49 tty: response timeout
23 Dec 2021 02:57:49 tty: attempt to retry request (2 of 3)
23 Dec 2021 02:57:49 tty: state now is TTY_RQST
23 Dec 2021 02:57:49 tty: written 8 bytes
23 Dec 2021 02:57:49 tty: request written (total 8 bytes)
23 Dec 2021 02:57:49 tty: state now is TTY_RESP
23 Dec 2021 02:57:49 tty: estimated 6 bytes, waiting 501214 usec
23 Dec 2021 02:57:49 conn_loop(): select(): max_sd = 4, t_out = 000000:501214
23 Dec 2021 02:57:50 conn_loop(): select() returns 0
23 Dec 2021 02:57:50 tty: response timeout
23 Dec 2021 02:57:50 tty: attempt to retry request (3 of 3)
23 Dec 2021 02:57:50 tty: state now is TTY_RQST
23 Dec 2021 02:57:50 tty: written 8 bytes
23 Dec 2021 02:57:50 tty: request written (total 8 bytes)
23 Dec 2021 02:57:50 tty: state now is TTY_RESP
23 Dec 2021 02:57:50 tty: estimated 6 bytes, waiting 501214 usec
23 Dec 2021 02:57:50 conn_loop(): select(): max_sd = 4, t_out = 000000:501214
23 Dec 2021 02:57:50 conn_loop(): select() returns 0
23 Dec 2021 02:57:50 tty: response timeout
23 Dec 2021 02:57:50 conn[<IP_ADDRESS>]: state now is CONN_RESP
23 Dec 2021 02:57:50 tty: state now is TTY_PAUSE
23 Dec 2021 02:57:50 conn_loop(): select(): max_sd = 5, t_out = 000000:100000
23 Dec 2021 02:57:50 conn_loop(): select() returns 1
23 Dec 2021 02:57:50 conn[<IP_ADDRESS>]: state now is CONN_HEADER
23 Dec 2021 02:57:50 conn_loop(): select(): max_sd = 5, t_out = 000000:099726
23 Dec 2021 02:57:50 conn_loop(): select() returns 0
23 Dec 2021 02:57:50 tty: state now is TTY_READY
23 Dec 2021 02:57:50 conn_loop(): select(): max_sd = 5, t_out = 000059:000000
23 Dec 2021 02:57:53 conn_loop(): select() returns 1
23 Dec 2021 02:57:53 conn_close(): closing connection from <IP_ADDRESS>
23 Dec 2021 02:57:53 queue_delete_elem(): length now is 0
23 Dec 2021 02:57:53 conn_loop(): select(): max_sd = 4, t_out = 000060:000000
23 Dec 2021 02:58:53 conn_loop(): select() returns 0
23 Dec 2021 02:58:53 conn_loop(): select(): max_sd = 4, t_out = 000060:000000
23 Dec 2021 02:59:53 conn_loop(): select() returns 0
23 Dec 2021 02:59:53 conn_loop(): select(): max_sd = 4, t_out = 000060:000000
23 Dec 2021 03:00:53 conn_loop(): select() returns 0
23 Dec 2021 03:00:53 conn_loop(): select(): max_sd = 4, t_out = 000060:000000
23 Dec 2021 03:01:54 conn_loop(): select() returns 0
23 Dec 2021 03:01:54 conn_loop(): select(): max_sd = 4, t_out = 000060:000000

thanks!

Hello @octane321!
Could you provide some additional info about your setup? Which OS version, iobroker and serial adapter hardware did you run successfully before, and what is changed after?

Hi @3cky
thanx for your quick reply
OS: Raspbian 11 (bullseye)
Node.js v14.18.2
NPM 6.14.15
js-controller v3.3.21
The serial adapter is this one https://www.ebay.de/itm/142659997743
The hardware didn´t change - its the same as before
Only new SD-Card and fresh OS install.
THX!

The serial adapter is this one https://www.ebay.de/itm/142659997743

It's FT232RL based, right?

sudo systemctl status<EMAIL_ADDRESS>
AFAIK, FT232RL linux device name should be ttyUSB0. So why service references ttyXR_EP0 device name?

Sorry, i should have mentioned this.
i have more than one of these USB-RS485 converters connected and to identify the right one, i had to add a udev rule depending on the USB Port where the adapter is connected.
so this is output of /ls -lah /dev/tty*

i also tried with /dev/ttyUSB1 but it does not make a difference

Well, that explains a lot. :)
Had a look at the log file. It seems mbusd receives TCP request for single discrete input number 0x2000 read (function code 0x02) from slave device with address 0x02:

23 Dec 2021 02:57:48 conn[<IP_ADDRESS>]: request: [02][02][20][00][00][01]

and sends it to RTU device:

23 Dec 2021 02:57:48 tty: request written (total 8 bytes)

but doesn't receive any response after 3 retries:

...
23 Dec 2021 02:57:50 tty: attempt to retry request (3 of 3)
23 Dec 2021 02:57:50 tty: state now is TTY_RQST
23 Dec 2021 02:57:50 tty: written 8 bytes
23 Dec 2021 02:57:50 tty: request written (total 8 bytes)
23 Dec 2021 02:57:50 tty: state now is TTY_RESP
23 Dec 2021 02:57:50 tty: estimated 6 bytes, waiting 501214 usec
23 Dec 2021 02:57:50 conn_loop(): select(): max_sd = 4, t_out = 000000:501214
23 Dec 2021 02:57:50 conn_loop(): select() returns 0
23 Dec 2021 02:57:50 tty: response timeout

Not quite sure why this is happening. Maybe the USB adapter is silently disconnecting? Do you have any messages related to the USB subsystem in dmesg log?

You are absolutely right:
Found following message with dmesg -T
[Sa Jan  1 03:07:00 2022] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32 [Sa Jan  1 04:04:57 2022] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
i read something about it and maybe the new kernel has a bug or something....do you have any idea how i could fix the issue?
THX

You are absolutely right:
Found following message with dmesg -T
[Sa Jan  1 03:07:00 2022] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32 [Sa Jan  1 04:04:57 2022] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
i read something about it and maybe the new kernel has a bug or something....do you have any idea how i could fix the issue?
THX

Issue is solved - it was a bad USB Kable!
Working perfect again!
@3cky Thanks again for your help


How to set current month and current year as maximum month and maximum year in swift. can you please help me.

How to set current month and current year as maximum month and maximum year in swift. can you please help me.

Added in https://github.com/alexanderedge/MonthYearPicker/commit/83f59a10c7425b3f7345836a29637f91336b220b.


Test case 00715_bounding_ratio_ck233 is unstabled with optimizer + bsp enabled in CI

2024-01-24 03:32:48 00715_bounding_ratio_ck233:                                             [ fail_retry:1 ] 0.82 sec. - result differs with reference:
2024-01-24 03:32:48 --- /__w/ByConity/ByConity/ci_stateless_with_optimizer_bsp/queries/4_cnch_stateless/00715_bounding_ratio_ck233.reference	2024-01-24 03:29:12.876866973 +0000
2024-01-24 03:32:48 +++ /__w/ByConity/ByConity/ci_stateless_with_optimizer_bsp/queries/4_cnch_stateless/00715_bounding_ratio_ck233.stdout	2024-01-24 03:32:18.502630399 +0000
2024-01-24 03:32:48 @@ -1,5 +1,5 @@
2024-01-24 03:32:48  1
2024-01-24 03:32:48 -1
2024-01-24 03:32:48 +0
2024-01-24 03:32:48  1.5
2024-01-24 03:32:48  1.5
2024-01-24 03:32:48  1.5
2024-01-24 03:32:48
2024-01-24 03:32:48 Database: test_7dablj
2024-01-24 03:32:48 00715_bounding_ratio_ck233:                                             [ fail_retry:2 ] 0.81 sec. - result differs with reference:
2024-01-24 03:32:48 --- /__w/ByConity/ByConity/ci_stateless_with_optimizer_bsp/queries/4_cnch_stateless/00715_bounding_ratio_ck233.reference	2024-01-24 03:29:12.876866973 +0000
2024-01-24 03:32:48 +++ /__w/ByConity/ByConity/ci_stateless_with_optimizer_bsp/queries/4_cnch_stateless/00715_bounding_ratio_ck233.stdout	2024-01-24 03:32:19.314585633 +0000
2024-01-24 03:32:48 @@ -1,5 +1,5 @@
2024-01-24 03:32:48  1
2024-01-24 03:32:48 -1
2024-01-24 03:32:48 +0
2024-01-24 03:32:48  1.5
2024-01-24 03:32:48  1.5
2024-01-24 03:32:48  1.5
2024-01-24 03:32:48
2024-01-24 03:32:48 Database: test_1eq59w
2024-01-24 03:32:48 00715_bounding_ratio_ck233:                                             [ fail_retry:3 ] 0.75 sec. - result differs with reference:
2024-01-24 03:32:48 --- /__w/ByConity/ByConity/ci_stateless_with_optimizer_bsp/queries/4_cnch_stateless/00715_bounding_ratio_ck233.reference	2024-01-24 03:29:12.876866973 +0000
2024-01-24 03:32:48 +++ /__w/ByConity/ByConity/ci_stateless_with_optimizer_bsp/queries/4_cnch_stateless/00715_bounding_ratio_ck233.stdout	2024-01-24 03:32:24.0[743](https://github.com/ByConity/ByConity/actions/runs/7635247583/job/20801706271?pr=1083#step:16:744)23218 +0000
2024-01-24 03:32:48 @@ -1,5 +1,5 @@
2024-01-24 03:32:48  1
2024-01-24 03:32:48 -1
2024-01-24 03:32:48 +0
2024-01-24 03:32:48  1.5
2024-01-24 03:32:48  1.5
2024-01-24 03:32:48  1.5
2024-01-24 03:32:48
2024-01-24 03:32:48 Database: test_zvcmbm
2024-01-24 03:32:48 00715_bounding_ratio_ck233:                                             [ FAIL ] 0.78 sec. - result differs with reference:
2024-01-24 03:32:48 --- /__w/ByConity/ByConity/ci_stateless_with_optimizer_bsp/queries/4_cnch_stateless/00715_bounding_ratio_ck233.reference	2024-01-24 03:29:12.876866973 +0000
2024-01-24 03:32:48 +++ /__w/ByConity/ByConity/ci_stateless_with_optimizer_bsp/queries/4_cnch_stateless/00715_bounding_ratio_ck233.stdout	2024-01-24 03:32:32.865838523 +0000
2024-01-24 03:32:48 @@ -1,5 +1,5 @@
2024-01-24 03:32:48  1
2024-01-24 03:32:48 -1
2024-01-24 03:32:48 +0
2024-01-24 03:32:48  1.5
2024-01-24 03:32:48  1.5
2024-01-24 03:32:48  1.5

We have found and fixed this bug internally, and it will be merged into byconity.


Build warning - deprecated std::uncaught_exception - c++17 gcc-8 and removed c++2a gcc-8

This warning appears so many times it causes the log to be too long, and Travis stops the job.
Reference: https://en.cppreference.com/w/cpp/error/uncaught_exception
Log: https://api.travis-ci.org/v3/job/450610135/log.txt
../../boost/contract/detail/operation/public_function.hpp:144:43: warning: â€˜bool std::uncaught_exception()â€™ is deprecated [-Wdeprecated-declarations]
                 if(std::uncaught_exception()) {
                    ~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/c++/8/ios:39,
                 from /usr/include/c++/8/ostream:38,
                 from /usr/include/c++/8/iterator:64,
                 from ../../boost/iterator/iterator_traits.hpp:10,
                 from ../../boost/range/iterator_range_core.hpp:26,
                 from ../../boost/range/iterator_range.hpp:13,
                 from ../../boost/iostreams/traits.hpp:38,
                 from ../../boost/iostreams/detail/call_traits.hpp:15,
                 from ../../boost/iostreams/detail/adapter/device_adapter.hpp:22,
                 from ../../boost/iostreams/tee.hpp:18,
                 from ../../libs/contract/test/public_function/../detail/oteststream.hpp:10,
                 from ../../libs/contract/test/public_function/old_virtual.cpp:9:
/usr/include/c++/8/exception:102:8: note: declared here
   bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
        ^~~~~~~~~~~~~~~~~~
In file included from ../../boost/contract/public_function.hpp:32,
                 from ../../libs/contract/test/public_function/old_virtual.cpp:10:
../../boost/contract/detail/operation/public_function.hpp: In instantiation of â€˜void boost::contract::detail::public_function<O, VR, F, C, Args>::init() [with O = b::override_f; VR =

I'll fix this in one of the next released of Boost using __cpp_lib_uncaught_exceptions. At that time, I'll consider also the other issues logged by jeking3 (remove some Bjam warning, Boost.CI, Valgrind, etc.).

I will fix this replacing std::uncaught_exception() with "boost::core::uncaught_exceptions() > 0" as suggested by pull request #19.


filters pollute namespace

Your filter names are not really special, you should use a suffix, so it doesn't clash with existing custom filters.

@KimSchneider thanks for the PR, could you change the places where the filters are referenced as well, else the filters stop working? angular-cron-jobs/src/cronselection.html.

ah I see you did that in another PR


Add RemindCommandParserTest

Coverage increased (+0.5%) to 86.061% when pulling 0535680afe97fd0e3d616f50e64b16c9ecb80b75 on chishien:master into 4bd4d609f839259109f9d0ccc020d8a43c6e3ee6 on CS2103JUN2017-T4:master.


problem in Pdf generation for large set of data

Hi
I am using phantom html2pdf .for conversion of html to pdf. it is working finr for small set of data. if data be like 150 pages of pdf is there . it is not printing starting pages in pdf.  can you please tell me how to overcome this problem.
i need to have pdf of around 150 pages.

Hi,
since you have a lot of pages phantom may take a while for rendering them.
So please try to set options.paperSize.delay to something big like 5000, 10000 or even more.
This is the time in milliseconds until phantom-html2pdf starts rendering the pdf file. 1000ms = 1s

Hi ,
Actually my pdf contains base64 image. if i remove that image my pdf is rendering perfectly. if i keep that image and data is reduced then it is rendering with image . is there a way to solve that ?

Maybe this is to big? I think this is a phantomjs issue not one of this lib.


adds lexique data

This adds a bash script which downloads the tsv version of Lexique. It then grabs the ortho and phon transcripts (only) to match the normal data format for wikipron.

@m-sean If you're merging this PR, please use Squash and merge option:

(We can't tell if github has already cached this operation for your account on this particular repo.)


in README.md, the usage code is missing some code

version:a4eb435d78e37fbd4f70316b272f352417a3f6fe
date:2022/12/22UTC8
in readme
goldmark.New(
  &mermaid.Extender{}
  // ...
).Convert(src, out)

it should be
goldmark.New(
  goldmark.WithExtensions(&mermaid.Extender{}, ... ),
  // ...
).Convert(src, out)

Oops! Thanks for reporting. Fixing.


Dark theme is not applied on API 29

Dark theme is not applied on API 29 since BuildCompat.isAtLeastQ() (used in ThemeHelper.java) is broken and always returns false.
Environment:
compileSdkVersion 29
implementation 'androidx.appcompat:appcompat:1.1.0-alpha04'

#9

+1

+1


Fix to allow selecting triage from assessment options

 Can't select 'phone triage' option from log/schedule assessment


Chapter 5: Outadated link

The link 'official Django documentation on the admin interface' points to the oudated version of Django.

Hi @marshwiggle,
Many thanks for your input. Apologies for the delay in replying. I have fixed this, and the link now points to version 2.1 for the admin interface -- should be okay now.
Cheers,
David

PS I have added your name to the acknowledgements of the book! :)


Add python-googleapi to rosdep

This add support for apiclient and can be used instead of python-oauth2client for oauth2client.
Ran the unittests as well.

+1
It looks like fedora has an oddly named version google-ap-python-client that I think is the same.

Will tweak to add that, and explains why a quick search didn't find it initially.

Looks like that is based on just and so I think it's missing the oauth2client portion that my other entries have.  Should I still add it, or add a separate entry?

Link I meant to include in above: https://github.com/google/google-api-python-client
vs.
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/python-googleapi/trusty-proposed/files
(I've never dealt into this stuff before, so I'm only quickly inspecting what I think is the source of each)

It looks like in Ubuntu, python-googleapi depends on python-oauth2client, which means installing python-googleapi will bring in python-oauth2client:
http://packages.ubuntu.com/trusty/python-googleapi
Looking at some recent fedora builds, it looks like their equivalent of this package, google-api-python-client, depends on oauth2client-python:
http://koji.fedoraproject.org/koji/rpminfo?rpmID=7289755
Therefore I think adding the key fedora: [google-api-python-client] is fine here.

It has been updated. Thanks for double-checking @jacquelinekay, @tfoote !


yarn deploy-local failed at last step

Do you want to request a feature or report a bug?
bug*
What is the current behavior?
Failed to deploy to Graph node http://<IP_ADDRESS>:8020/: subgraph resolve error: resolve error: This Graph Node only supports manifest spec versions between 0.0.2 and 0.0.4, but subgraph xxxxx uses 0.0.5
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
I have the specVersion: 0.0.3 in the subgraph.yaml. after I deploy-local, the error message is above and the specVersion modified to 0.0.5
What is the expected behavior?
should not change the specVersion or show what cause this specVersion update, then I can fix it.

Hi! This is because automigrations were applied in the latest graph-cli version which are not yet supported by graph-node (0.26.0). The latest graph-cli (0.30.1) fixes these automigrations, so graph-node should be happy. If you want to use features that are only available with specVersion 0.0.5, you can use the most recent graph-node docker tag, but be warned that this is not a stable released version. Closing, thanks!


Is there  a draggable widget like that in Visual Studio?

I would like let user to diy layout by dragging widgets, like image in this question: https://stackoverflow.com/questions/42691260/drag-and-drop-docking.
Is this feature feasible?

This is a native feature. You can try to use https://pub.dev/packages/desktop_drop or any other plugins that implement this feature!


chore(colors): update palette and support some new charting colors

fixes https://github.com/patternfly/patternfly-next/issues/922

Deploy preview for pf-next ready!
Built with commit 139fac17e823bac0fdfd01b7933990416f90fe78
https://deploy-preview-923--pf-next.netlify.com


Fix multi instance ips metadata passing

supercedes #13843

:thinking: :bug: You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test?
Courtesy of your friendly test nag.

/assign @howardjohn

/lgtm
Need to update test though

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: howardjohn, hzxuzhonghu
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: nmittler
If they are not already assigned, you can assign the PR to them by writing /assign @nmittler in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

istioctl/OWNERS [howardjohn]
pkg/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/assign @nmittler
/lgtm

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: howardjohn, hzxuzhonghu
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: nmittler
If they are not already assigned, you can assign the PR to them by writing /assign @nmittler in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

istioctl/OWNERS [howardjohn]
pkg/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

With this change, I'm seeing duplicate clusters on a k8s cluster:
"pilot_duplicate_envoy_clusters": {
            "inbound|15020|mgmt-15020|mgmtCluster": {
                "proxy": "a-v1-7869666645-pg2sh.echo-1-55507",
                "message": "Duplicate cluster inbound|15020|mgmt-15020|mgmtCluster found while pushing CDS"
            },
            "inbound|3333|mgmt-3333|mgmtCluster": {
                "proxy": "a-v1-7869666645-pg2sh.echo-1-55507",
                "message": "Duplicate cluster inbound|3333|mgmt-3333|mgmtCluster found while pushing CDS"
            },
            "inbound|8080|mgmt-8080|mgmtCluster": {
                "proxy": "a-v1-7869666645-pg2sh.echo-1-55507",
                "message": "Duplicate cluster inbound|8080|mgmt-8080|mgmtCluster found while pushing CDS"
            }
        }

This seems due to this line:
meta[model.NodeMetadataInstanceIPs] = strings.Join(nodeIPs, ",")

For some reason nodeIPs has duplicates ... not sure why, perhaps you could take a look?
The reason we didn't get duplicates before was that we were always falling into the default case and extracting the IP from the nodeID.
It may be sufficient to simply eliminate any duplicate IPs.

The original Pr (https://github.com/istio/istio/pull/13843) had a deduping check.
It would be good to figure out why there are duplicates though if possible

Let me have a look at the duplicate clusters

I found the cause:  INSTANCE_IP is an env with value of podip, which is duplicate with GetPrivateIPs.
And then in pilot, it gen duplicate mgmtCluster
			if len(proxyIP) != 0 {
				role.IPAddresses = append(role.IPAddresses, proxyIP)
			} else {
				envIP := instanceIPVar.Get()
				if len(envIP) > 0 {
					role.IPAddresses = append(role.IPAddresses, envIP)
				}
			}

New changes are detected. LGTM label has been removed.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: howardjohn, hzxuzhonghu
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: nmittler
If they are not already assigned, you can assign the PR to them by writing /assign @nmittler in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

istioctl/OWNERS [howardjohn]
pilot/OWNERS [howardjohn,hzxuzhonghu]
pkg/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hzxuzhonghu: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
446916e2a2a0c8b075e69ea36c170acb1a81ffa5
link
/test istio-presubmit-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@hzxuzhonghu: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
446916e2a2a0c8b075e69ea36c170acb1a81ffa5
link
/test istio-presubmit-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test all

@hzxuzhonghu: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/integ-telemetry-local-presubmit-tests.sh
446916e2a2a0c8b075e69ea36c170acb1a81ffa5
link
/test integ-telemetry-local-presubmit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hzxuzhonghu: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/integ-telemetry-local-presubmit-tests.sh
446916e2a2a0c8b075e69ea36c170acb1a81ffa5
link
/test integ-telemetry-local-presubmit-tests-master

prow/integ-telemetry-k8s-presubmit-tests.sh
446916e2a2a0c8b075e69ea36c170acb1a81ffa5
link
/test integ-telemetry-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@hzxuzhonghu: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/integ-telemetry-k8s-presubmit-tests.sh
446916e2a2a0c8b075e69ea36c170acb1a81ffa5
link
/test integ-telemetry-k8s-presubmit-tests-master

prow/integ-mixer-k8s-presubmit-tests.sh
446916e2a2a0c8b075e69ea36c170acb1a81ffa5
link
/test integ-mixer-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hzxuzhonghu: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/integ-telemetry-k8s-presubmit-tests.sh
446916e2a2a0c8b075e69ea36c170acb1a81ffa5
link
/test integ-telemetry-k8s-presubmit-tests-master

prow/integ-mixer-k8s-presubmit-tests.sh
446916e2a2a0c8b075e69ea36c170acb1a81ffa5
link
/test integ-mixer-k8s-presubmit-tests-master

prow/istio-pilot-multicluster-e2e.sh
446916e2a2a0c8b075e69ea36c170acb1a81ffa5
link
/test istio-pilot-multicluster-e2e-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Absolutely, the tests do not cover multi ips case. I will try to add some cases

@nmittler We already have unit tests TestGolden,  but they all use wrong meta ISTIO_META_INSTANCE_IPS, ``ISTIO_META_`  prefix should never occur in metadata keys

@hzxuzhonghu: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
446916e2a2a0c8b075e69ea36c170acb1a81ffa5
link
/test istio-pilot-multicluster-e2e-master

prow/integ-mixer-k8s-presubmit-tests.sh
252935b90243aba6cb32890e180df1169a941d7f
link
/test integ-mixer-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: howardjohn, hzxuzhonghu, nmittler
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

istioctl/OWNERS [howardjohn,nmittler]
pilot/OWNERS [howardjohn,hzxuzhonghu,nmittler]
pkg/OWNERS [nmittler]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hzxuzhonghu: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-unit-tests.sh
011e2ecd237a9cd0484e09e73817ab8b34b81b9a
link
/test istio-unit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test istio-unit-tests-master

@hzxuzhonghu: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-bookInfoTests-v1alpha3.sh
011e2ecd237a9cd0484e09e73817ab8b34b81b9a
link
/test e2e-bookInfoTests-envoyv2-v1alpha3-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test e2e-bookInfoTests-envoyv2-v1alpha3-master

@hzxuzhonghu: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e_pilotv2_auth_sds.sh
011e2ecd237a9cd0484e09e73817ab8b34b81b9a
link
/test istio_auth_sds_e2e-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test istio_auth_sds_e2e-master

@hzxuzhonghu: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e_pilotv2_auth_sds.sh
011e2ecd237a9cd0484e09e73817ab8b34b81b9a
link
/test istio_auth_sds_e2e-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test istio_auth_sds_e2e-master


Make the details of user's visit , downloads, places Dynamic

In bottom of the website it displayed a section

this is static data .
Making this data dynamic means updating this data after every user's visit or download.

i want to work on this can you please assign this to me

@RahulSharma4329  are you still working on this
.


Wrong lambda parameter names?

The parameter order in the UsingEntity overloads is right and then left (even though the type parameters are left and then right (edit: oops, no they're not, the type parameters are right and then left, too; I figured that out later)).
However the examples use the letters l (L) and then r, instead of r and then l (L). The left and right -ness is already extremely confusing, before being reversed in the parameters (ie: right first), and then even more so with the wrong or misleading examples.
Note that I think the passed arguments are otherwise correct, it is just the naming of the lambda parameter that is backwards, giving the indication that the order is left and then right, when it is the reverse.
Thanks
EDIT:
Actually I am not 100% sure about the type parameters either.
I was under the impression that in the code:
modelBuilder.Entity<T1>().HasMany(one => one.Twos).WithMany(two => two.Ones)...

That T1/one was the "left" entity and T2/two was the "right" entity, but I see now that that is the opposite of the types that I get in the resulting CollectionCollectionBuilder. So I'm not really sure what is or isn't correct here.
After some more fiddling I guess it was me that was naming the type paramters TLeft and TRight in my extension method, but otherwise yes, the CollectionCollectionBuilder type parameters are also in "reverse" order, being right and then left. Once I realized that both the parameters and the type parameters are right first and left second, everything works.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 9234f104-802f-8ee0-8a54-ff3b8f49857e
Version Independent ID: 9234f104-802f-8ee0-8a54-ff3b8f49857e
Content: Many-to-many relationships - EF Core
Content Source: entity-framework/core/modeling/relationships/many-to-many.md
Product: entity-framework
Technology: entity-framework-core
GitHub Login: @ajcvickers
Microsoft Alias: avickers

@DaveCousineau This is being tracked by #4339. I agree the naming is very confusing here; it's going to require some investigation.


[#4027] Refactor for custom header support

Codecov Report

Merging #4118 into master will increase coverage by 0.01%.
The diff coverage is 57.73%.

@@            Coverage Diff             @@
##           master    #4118      +/-   ##
==========================================
+ Coverage   41.21%   41.23%   +0.01%
==========================================
  Files        2343     2346       +3
  Lines       73864    73912      +48
  Branches     9995    10002       +7
==========================================
+ Hits        30441    30475      +34
- Misses      40609    40632      +23
+ Partials     2814     2805       -9

Impacted Files
Coverage Δ

...navercorp/pinpoint/thrift/io/TCommandRegistry.java
84.61% <ø> (ø)
:arrow_up:

...orp/pinpoint/thrift/io/AgentEventTBaseLocator.java
0% <0%> (ø)
:arrow_up:

.../com/navercorp/pinpoint/io/header/v2/HeaderV2.java
0% <0%> (ø)

...avercorp/pinpoint/thrift/io/FlinkTBaseLocator.java
0% <0%> (ø)
:arrow_up:

...corp/pinpoint/thrift/io/HeaderTBaseSerializer.java
64.28% <100%> (-6.31%)
:arrow_down:

...rp/pinpoint/thrift/io/HeaderTBaseDeserializer.java
100% <100%> (+16.66%)
:arrow_up:

...orp/pinpoint/thrift/io/HeaderTBaseSerializer2.java
100% <100%> (ø)
:arrow_up:

...com/navercorp/pinpoint/thrift/io/TCommandType.java
59.18% <100%> (-0.82%)
:arrow_down:

...ercorp/pinpoint/thrift/io/DefaultTBaseLocator.java
36.47% <100%> (-0.74%)
:arrow_down:

...corp/pinpoint/io/header/ByteArrayHeaderReader.java
33.96% <33.96%> (ø)

... and 19 more

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 aaec23f...05bcd1b. Read the comment docs.


Create MajorProject

Hackathon Submission: <PROJECT_NAME>
Name of Team Lead
Enter your full name

GitHub handles of Team Members
Enter the GitHub handles of all your team members (including yourself) as separate bullet points

Are all of your team members registered on our Hackathon Signup page?
This is a mandatory step for all participants to be considered eligible for judging

[x] Yes
[ ] No

Rules and Code of Conduct
By submitting this PR, you agree to follow our Rules and Code of Conduct.

[x] Yes

Anything Else?
Any other feedback, queries or information you would like to share with us?

@SubhodeepRoy17 please ensure you add the relevant details to your submission before the end of the hackathon

Closing this PR for lacking any hackathon relevant work


ntfs-3g: build fails

@Bridouz
from ntfs-3g/build:
#!/bin/sh -e

./configure
    --prefix=/usr

Backslash at the end of ./configure line is missing.

Sigh. I've taken over this package.


feat(ast): remove generator property from Function

ArrowFunction doesn't support generator. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*

Current dependencies on/for this PR:

main

PR #2260   👈

This stack of pull requests is managed by Graphite.


Implementing AES encryption and Decryption In Java

Writing sample(s):
https://www.section.io/engineering-education/authors/geoffrey-omukuba/
Proposed title of the article
Implementing AES encryption and Decryption In Python
Proposed article introduction
Data encryption is an important feature of data protection. There are different methods of data encryption and decryption methods used to encrypt and decrypt data to enhance the safety of data transmitted.
In this article, we will look at AES as a method of data encryption and decryption. AES, Advanced Encryption Standard is a block cipher encryption and decryption algorithm that process a block of 128 bits of data using secret keys of 128, 192, or 256 bits.
In this article, we will be discussing how this algorithm can be implemented in Java and how it is processed
Key takeaways

the concept of the AES algorithm
how to implement this algorithm in java
How java processes this algorithm

Article quality
This article intends to take the reader through the concept of the AES Algorithm, how to implement it in java, and also how java language processes this encryption algorithm.
References
N/A

Good topic @Geo-free - approved. Please make sure your article is unique and adds value to what is available online.


Firefox: Publisher panel shows two scrollbars

Bug Description
originally noted by @spacedmonkey

(I see) two scrollbars on publisher document section

Expected Behaviour

Steps to Reproduce

Screenshots

Additional Context

Plugin Version:
WordPress Version:
Operating System:
Browser:

Sorry, completely missed the Firefox part there which was kind of the main point 🤦
I can also see a second scrollbar for publishing in FF, even though it's below the main scrollbar, not next to it as in your case.


Unexpected termination on looping cypher query - could not find rte

Have encountered an intriguing issue with loading a table with a large number of rows into Apache AGE. The process is looping through PL/pgSQL.
The looping terminates with the following message.
SQL Error [42703]: ERROR: could   not find rte for a01a724103fbb3d059b8387bf043dbc8     Where: PL/pgSQL function analysis.create_trips(text,text,text,text,text,text,integer,text,integer)   line 5 at EXECUTE

The database version is PostgreSQL 15.4 (Debian 15.4-2.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit.
The Apache AGE version is 1.4.0 for PG15 built from the repository.
The error results from the following process.
SELECT create_graph('transport_network');

CREATE OR REPLACE FUNCTION analysis.create_trips
(graph_name text,
service_key text,service_id text, trip_id text, trip_headsign text, route_id text, direction_id int, shape_id text, wheelchair_accessible int)
returns text
LANGUAGE plpgsql
VOLATILE
as $trips$
declare
nodename text := graph_name || '.' || 'trips';
BEGIN
execute
format ('select * from cypher(''%1$s'', $$match (v:routes {id: %6$s})
create(v)-[:USES]->
(t:trips
{service_key: %2$s, service_id: %3$s, id: %4$s, headsign: %5$s, route_id: %6$s, direction_id: %7$s, shape_id: %8$s,
wheelchair_accessible: %9$s})$$) as (t agtype);',
quote_ident(graph_name),
quote_ident(service_key),quote_ident(service_id),
quote_ident(trip_id),quote_ident(trip_headsign),
quote_ident(route_id),to_char(direction_id,'9'),quote_ident(shape_id),to_char(wheelchair_accessible,'9'));
return nodename;
END
$trips$
;

select create_vlabel('transport_network','trips');

do $$
declare temprow record;
graph_name text:='transport_network';
counter integer := 0 ;
begin
for temprow in select service_key, service_id, trip_id from allservices.trips
order by service_key,trip_id
loop
counter := counter+1; -- Prevent replication of row
perform
analysis.create_trips
(graph_name,
a.service_key, a.service_id,
a.trip_id, a.trip_headsign,
a.route_id, a.direction_id, a.shape_id,
a.wheelchair_accessible)
from
(select row_number() over (order by service_key,trip_id) as row_num,
service_key, service_id,
trip_id, trip_headsign,
route_id, direction_id, shape_id,
coalesce(wheelchair_accessible,0) as wheelchair_accessible from allservices.trips) a
where a.row_num=counter
;
end loop;
end; $$;

In this case the string after the rte in the error message refers to the service_key value in the table allservices.trips.
The first instance of the record in this instance is.

row_num
service_key
service_id
trip_id
trip_headsign
route_id
direction_id
shape_id
wheelchair_accessible

7741
a01a724103fbb3d059b8387bf043dbc8
FR
307
Gunghalin Pl
X1
0
1002
1

The attributes of the table being processed are:

Total size with indexes: 60MB
Number of rows 231,131

Further investigation has determined that the process continues until row 123,486 of the 231,131 rows in the table.
Would be interested to know what could be the cause of this hard limit on processing the table as there is no obvious reason for it.

@I33Buckler Have you tried against the master branch which is also at PostgreSQL 15?

@I33Buckler Have you tried against the master branch which is also at PostgreSQL version 15?

Yes.
I have version 1.4.0 installed from the master branch.

name
default_version
installed_version

age
1.4.0
1.4.0

@I33Buckler Is it always failing on the same row? What happens if you remove that row?

@I33Buckler Is it always failing on the same row? What happens if you remove that row?

Fails in exactly the same row number regardless of content.

@I33Buckler Is the rte not found always the same or different?

@I33Buckler Is the rte not found always the same or different?

The RTE value depends on the content of service_key in the effected row

@I33Buckler If you are able to restart it, from where it left off, does it error at the same location? Or, the same distance from where it started?

@I33Buckler If you are able to restart it, from where it left off, does it error at the same location? Or, the same distance from where it started?

At the same location.

@I33Buckler I think what I meant to say was, if it fails at row_num 7741 what happens if you have it run to 7740 and then start the next run from 7741 to 7741+7740 and increments of 7740 there afterwards?

@I33Buckler I think what I meant to say was, if it fails at row_num 7741 what happens if you have it run to 7740 and then start the next run from 7741 to 7741+7740 and increments of 7740 there afterwards?

Sorry for the confusion.
The issue is actually at row 123486. The previous instance was identified as 7741 because I matched by service_key rather than row number so the processed table was not sorted to match 1:1 with the table temprow.
After ensuring 1:1 row match between temprow and allservices.trips it was discovered that the actual row number effected was 123486.
As noted at https://github.com/apache/age/issues/1260#issuecomment-1751540744 splitting the table up to row 123486 resulted in successful processing. It was when row 123487 was introduced into the AGE graph table that the error occured.

@I33Buckler Btw, just for clarification, what do you mean by "splitting the table" or "splitting the process into separate tables"? The input table loading the same graph database?

In the first instance of the I processed the table ALLSERVICES.TRIPS as a single table. This was where the error was experienced.
First step was to identify where the error occured. Ensuring that the TEMPROW table and ALLSERVICES.TRIPS were matched 1:1 in the loop the row number 123487 was identified as the location.
To examine this error I then separated ALLSERVICES.TRIPS into TRIPS1 and TRIPS2 where TRIPS1 contained rows 1 to 123486 from ALLSERVICES.TRIPS.
I processed TRIPS1 in the loop which inserted into the graph table 'Transport Analysis'.Trips.
This process succeeded.
I then applied the process to TRIPS2 with the result being immediate failure suggesting the graph table could not accept an additional row.

@I33Buckler As part of debugging indexes, I've created graphs with over 1 million rows, in the same graph, with the same label, and containing properties. So, I don't think this is a limit based on the number of rows. Additionally, if it were, it would likely land on an obvious base 2 number.
We need to break this down by removing items that might be extraneous. What happens if you reduce by 1 the number of parameters, and thus the number of properties, to the create_trips function? Try removing each parameter, while keeping the rest, to see if a specific parameter may be an issue?

pg_ctrl restart

Thank you for the suggestion.
Restarting the server did not solve the problem.
However, it introduced an additional error in the process.
Running the following code block
do $$
declare temprow record;
		graph_name text:='transport_network';
		counter integer := 123486 ;
begin
for temprow in select service_key, trip_id from trips2 order by service_key,trip_id
loop
counter := counter+1; -- Prevent replication of row
perform
	public.create_trips
	(graph_name,a.service_key, a.service_id,a.trip_id, a.trip_headsign,a.route_id, a.direction_id, a.shape_id,a.wheelchair_accessible)
	from
	(select * from trips2 where row_num=counter) a
;
end loop;
end; $$

Resulted in
ERROR: unhandled cypher(cstring) function call
  Detail: transport_network
  Where: SQL statement "select * from cypher('transport_network', $$match (v:routes {id: "X1"})
			create(v)-[:USES]->
			(t:trips
			{service_key: a01a724103fbb3d059b8387bf043dbc8, service_id: "FR", id: "307", headsign: "Gungahlin Pl", route_id: "X1", direction_id:  0, shape_id: "1002",
					wheelchair_accessible:  1})$$) as (t agtype);"
PL/pgSQL function create_trips(text,text,text,text,text,text,integer,text,integer) line 5 at EXECUTE
SQL statement "SELECT
	public.create_trips
	(graph_name,a.service_key, a.service_id,a.trip_id, a.trip_headsign,a.route_id, a.direction_id, a.shape_id,a.wheelchair_accessible)
	from
	(select * from trips2 where row_num=counter) a"
PL/pgSQL function inline_code_block line 9 at PERFORM

I ran the process again with the following result.
ERROR: could not find rte for a01a724103fbb3d059b8387bf043dbc8
  Where: PL/pgSQL function create_trips(text,text,text,text,text,text,integer,text,integer) line 5 at EXECUTE
SQL statement "SELECT
	public.create_trips
	(graph_name,a.service_key, a.service_id,a.trip_id, a.trip_headsign,a.route_id, a.direction_id, a.shape_id,a.wheelchair_accessible)
	from
	(select * from trips2 where row_num=counter) a"
PL/pgSQL function inline_code_block line 9 at PERFORM

Hmmmm,... maybe there is an issue with stored procedures.

@I33Buckler After the restart did you load the extension before running that query? As you stated rerunning it appeared to not generate that error again.

@I33Buckler Also, did you try reducing the number of parameters, as mentioned above, to see if that has an impact? I'm trying to think of ways to condense this down to a smaller, repeatable issue.

@I33Buckler I'm also thinking it might be best if we try to reproduce this locally. It will save a lot of back and forth. How can we create the dataset that you have?

@I33Buckler I'm also thinking it might be best if we try to reproduce this locally. It will save a lot of back and forth. How can we create the dataset that you have?
I can provide you with the tables and the query at a shared link.

@I33Buckler The pg_dump requires the table definitions (creates) in order to load them. Did you miss adding some definition files by chance?
Also, could you also give access to @rafsun42

@I33Buckler The pg_dump requires the table definitions (creates) in order to load them. Did you miss adding some definition files by chance? Or, I could be doing it incorrectly,...
Also, could you also give access to @rafsun42

Thanks. Had the wrong configuration.

It seems quote_ident is not working as expected for some trips2.service_key.
(pg-15.4) agedev=# SELECT quote_ident(service_key) FROM trips1 LIMIT 1;
            quote_ident
------------------------------------
 "01a5f85d9dd4392c29c0cf9040cd324f"
(1 row)

(pg-15.4) agedev=# SELECT quote_ident(service_key) FROM trips2 LIMIT 1;
           quote_ident
----------------------------------
 a01a724103fbb3d059b8387bf043dbc8
(1 row)

If a01a724103fbb3d059b8387bf043dbc8 is not wrapped, cypher thinks it is a variable.

@I33Buckler I think the data might have some bad characters in it.

@I33Buckler Here's why -
/*
 * quote_identifier                     - Quote an identifier only if needed
 *
 * When quotes are needed, we palloc the required space; slightly
 * space-wasteful but well worth it for notational simplicity.
 */
const char *
quote_identifier(const char *ident)
{
        /*
         * Can avoid quoting if ident starts with a lowercase letter or underscore
         * and contains only lowercase letters, digits, and underscores, *and* is
         * not any SQL keyword.  Otherwise, supply quotes.
         */

@I33Buckler There is a global variable that can change this behavior -
        if (quote_all_identifiers)
                safe = false;

/* Globals exported by this file */
int                     quote_all_identifiers = 0;

See the following for more information -
https://www.postgresql.org/docs/current/runtime-config-compatible.html

@I33Buckler updated comments above.

@I33Buckler There is a function quote_literal but that uses single quotes instead, not double.

@I33Buckler There is a function quote_literal but that uses single quotes instead, not double.

Thank you for the responses.
Was not immediately obvious from the error message.
The service_key is a field that was created from an MD5 hash to create a reference for some attributes in the source data that were unexpectedly not unique.
The information provided is helpful.

Have changed the quote_ident() function to format() to ensure the service_key value is quoted.
format('"%s"',service_key),

This now results in the operation terminating with the following message.
ERROR: syntax error at or near ","
  Where: PL/pgSQL function create_trips(text,text,text,text,text,text,integer,text,integer) line 5 at EXECUTE
SQL statement "SELECT
	public.create_trips
	(graph_name, a.service_key, a.service_id,a.trip_id, a.trip_headsign,a.route_id, a.direction_id, a.shape_id,a.wheelchair_accessible)
	from
	(select * from trips where row_num=counter) a"
PL/pgSQL function inline_code_block line 9 at PERFORM`

Issue now resolved using format() to assign quotes
A small issue of NULL in the field trip_headsign easily resolved.
Applied format as below
format('"%s"',service_key)

@I33Buckler Error messages can be misleading at times. Although, in this particular case, I'm not sure if any specific error message would have been able to help. The lack of quotes on that parameter seemed to change the cypher command structure making it something that was technically legal but didn't make sense when executed.
We will keep it in mind, though, and try to see if there might be a way to better address these.


tests-d2d fonts

Tests relating to text seem to output different hashes for Windows and Linux during testing.
Possible problems

Different Default Fonts

Windows and Linux has a different set of fonts
However, trying to load the same fonts on Linux, the fonts still differ, so either this isn't the only issue, or the fonts aren't exactly the same.

GPU/GPU Driver differences

This seems to be most likely. I just tested it on my laptop (also running Linux) and the test hashes were different from what I got when running it on my desktop.

Laptop: Optimus drivers for NVIDIA GTX 1050ti GPU and Intel i7 8th gen CPU with integrated graphics
Desktop: NVIDIA Drivers for NVIDIA RTX 3050

Since the issue seems like it might be due to the GPU/GPU Drivers, I'm not quite sure how to fix this test case other than only running it in a VM with standard drivers.

Leave the issue open.  Maybe updated the test output so that the "known won't work on other platforms" tests are grouped together with a heading like "These may fail on platforms others than those the test result CRC was generated for".  Then, you can make sure they keep working for you.  We could also add a second set of CRCs, mine, so at least you and me can run the tests.  I think in a professional environment, they would probably set up different dedicated test machines.  We are not going to do that.  I can't think of a generic solution.


[Bug]: BaseSolver.solve() multiprocessing is broken on system's defaulting to spawn context

PyBaMM Version
24.1
Python Version
3.11
Describe the bug
Multiprocessing inputs within BaseSolver.solve() is broken on operating systems that default to spawn (Windows, MacOS) instead of fork (Linux). A minimal working example is shown below; however, when run inside a Jupyter notebook, the code completes without problem, which seems to be how it didn't get caught in tests. I suspect this is due to the difference in call structure, i.e. jupyter might wrap the cells in main(). The code in question is: https://github.com/pybamm-team/PyBaMM/blob/c204bdd891d886c955b01bc14049ace5167ed2c3/pybamm/solvers/base_solver.py#L915
Modifying this to with mp.get_context("fork").Pool(processes=nproc) as p: appears to solve the issue; however, as of python 3.14, fork is being depreciated for spawn or forkserver.
Linking https://github.com/pybop-team/PyBOP/pull/283
Steps to Reproduce
MWE:
import pybamm
import numpy as np

# create the model
model = pybamm.lithium_ion.DFN()

# set the default model parameters
param = model.default_parameter_values

# change the current function to be an input parameter
param["Current function [A]"] = "[input]"

simulation = pybamm.Simulation(model, parameter_values=param)

# solve the model at the given time points, passing the current as an input
t_eval = np.linspace(0, 600, 300)
current_dict = [{"Current function [A]": x} for x in range(1,3)]
sol = simulation.solve(t_eval, inputs=current_dict)

Relevant log output
RuntimeError:
        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.

        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.

        To fix this issue, refer to the "Safe importing of main module"
        section in https://docs.python.org/3/library/multiprocessing.html

One possible fix for this can be found by wrapping the top-level script in a main() function; however, it's not the cleanest solution for end-users. This can completed as,
import pybamm
import numpy as np

def main():
    # create the model
    model = pybamm.lithium_ion.DFN()

    # set the default model parameters
    param = model.default_parameter_values

    # change the current function to be an input parameter
    param["Current function [A]"] = "[input]"

    simulation = pybamm.Simulation(model, parameter_values=param)

    # solve the model at the given time points, passing the current as an input
    t_eval = np.linspace(0, 600, 300)
    current_dict = [{"Current function [A]": x} for x in range(1,3)]
    sol = simulation.solve(t_eval, inputs=current_dict)
    return sol
if __name__ == "__main__":
    sol = main()

If we are happy to move away from multiprocessing, ray has a drop in replacement to mp.Pool that appears to solve this issue. This would require adding it as a dependancy though.
Adding this drop-in allows the above MWE to complete without error.
from ray.util.multiprocessing import Pool
with Pool(processes=nproc) as p:

@martinjrobins @jsbrittain @tinosulzer I'll start implementing this if it seems reasonable. Open to other suggestions!

Hi, @BradyPlanden – thanks for investigating a solution and while I'm not sure whether it addresses everything at hand, I did want to highlight that ray has faced a lot of segfaults and compatibility concerns on many new and old systems alike because their wheels do not conform to the PEP 599 manylinux2014 policy (https://github.com/ray-project/ray/issues/18506) since many years now, so if there is a way around this or if there exists a different library that can handle this, it would be great to use that, or we can hope that these issues are fixed with the upcoming manylinux_2_28 standard. However, if it can be an optional dependency, that should be okay too – another concern with adding it as a required dependency is that the size of their wheels is quite big, which will directly impact PyBaMM's download size (we've been having some discussions about download sizes in #3913, which has some additional info). Out of the rest of our dependencies, just JAX has wheels as large, but users can opt out of installing it since it is an optional dependency.

Sounds good to me, this should definitely be an optional dependency

Thanks for the replies @tinosulzer @agriyakhetarpal.
Turns out fork is just being depreciated as the default on linux machines starting in 3.14. So an easy fix to this one is to just construct the pool with fork as mentioned in the original comment. No need to add more dependancies 😄

Yeah I like sticking with multiprocessing over adding more dependencies


Redis - Revise and correct methods that potentially can return null values

monix-redis is built on top of lettuce, and some of their methods can return a null values instead of the expected one, which makes it unsafe and not reliable.
An example of this is the hget from the Hash api (this one is already corrected, but there are more, and the idea was to identify these methods that can potentially return null and wrap them with Option.
Currently the methods have unit-tested under test, on the other handit contains functional tests that runs agains a redis docker container. But these just cover a few examples.
A way of ensuring that no null values are returned would be to add functional tests that handles different scenarios.
So in case of hget , it would return null when called for a key and field that does not exist.
A good way to find the methods that returns values is by directly checking the underlying api documentation.

I'd like to handle this issue. It looks like the desired solution is to just use Task.fromReactivePublisher directly, bypassing the fromMono logic? I tried this on RedisSortedSet#bzpopmax and it seems to work (here). If so I will track down the rest of the nil returning APIs and submit a PR!

Hello @ttymck,
Thanks for your interest in the project :)
That's a good example 👍   Although MonoOps is not necessary I believe.
I know this change it is not needed in all the methods but for some of them is, and the thing is that just by looking at the documentation we don't know whether the signature might return an empty Mono or not.
Maybe a good approach approach would be to write integration tests for the different redis modules and each of the operations, currently, there is only one integration test suite RedisIntegrationTest that just covers a few of them.

@ttymck what do you think?

Maybe a good approach for the moment would be to write integration tests for the different redis modules and each of the operations, currently, there is only one integration test suite RedisIntegrationTest that just covers a few of them.

@paualarco i can definitely do that. Would you want separate (flat) test suites i.e. RedisSortedSetIntegrationTest, etc or one structured free/word spec?

@ttymck as you can see, all the modules in the project use the Spec suffix for normal tests Suite for the integration ones. Could you follow that convention? The Redis ones are an exception at the moment, we should sync it with the rest :P

@paualarco i started with an integration suite for RedisSortedSet operations that can return nil: RedisSortedSetSuite.scala
please let me know if I'm heading in the right direction, and I can add suites for the other modules.

Left a comment, and a question, still not sure if we should return None in those cases, maybe better to stick with a failed task.

@paualarco I feel I've misunderstood the objective of this issue. I will see if there is a better first task for me to get familiar with this project.

@ttymck sorry for confusing you, I was a bit too :/
have reverted the example integration test for hget, since I think we should only return a failed task rather than an empty option. https://github.com/monix/monix-connect/issues/480
closing this issue now, have created new ones for writing integration test for each of the redis submodules,
feel free to ask more info if the the requirement is not clear :)

@paualarco understood, I'll take a look at the integration tests 😄


Default queries gets dropped if specifying queries

Q
A

Bug?
maybe

New Feature?
no

Version
6.3.3

Actual Behavior
When defining default parameters when creating a client and then using that client to define additional parameters. The default parameters defined get's dropped.
Expected Behavior
I expected to keep the default parameters and only overwrite a default parameter if I define the same key with a different value than the default parameter. I also expect a default parameter to be dropped if I define the same key with a null value.
Steps to Reproduce
<?php
require('vendor/autoload.php');

use GuzzleHttp\Client;

$client = new GuzzleHttp\Client([
    'base_uri' => 'https://example.com/',
    'query' => [ 'version' => 'project-version-name' ],
    'headers' => [
        'X-Internal-Header' => 'my-internal-header',
    ],
]);

// Actual behavior is that the default query parameters get replaced when I specify query parameters here.
$response = $client->request('GET', 'some-path-under-base', [
    'query' => [ 'some-query-param' => 'query-value' ],
]);

// This is the workaround I found but it seems to be very unnecessary and easy to miss to cause errors
$response = $client->request('GET', 'some-path-under-base', [
    'query' => $client->getConfig('query') + [ 'some-query-param' => 'query-value' ],
]);

This wasn't an issue before 6.x. And I'm doing a big migration.
The actual drop of the default parameters happens here:
https://github.com/guzzle/guzzle/blob/master/src/Client.php#L236

As far as I can see, this is a duplicate of #2149. Please see my answer there.


Error running mgn initalise lambda

I am running the mgn initialise lambda and get the following error
[ERROR] ValueError: not enough values to unpack (expected 2, got 1)
Traceback (most recent call last):
  File "/var/task/index.py", line 51, in lambda_handler
    stagingTags = convert_list_to_dict(tags)
  File "/var/task/index.py", line 12, in convert_list_to_dict
    k,v = tag.split(":", 1)

I am running mgn-initalise as a separate cloudformation (IAM roles was previously created via a separate terraform script) and got the above error - I suspect tags are not optional.

Also pReplicationSecurityGroupIds is mandatory which is a bit strange as I have the option of setting pCreateReplicationSecurityGroup


Notify queue processor about cross cluster tasks

What changed?

Notify queue processor about cross-cluster tasks

Why?

Need to trigger a DB load for cross-cluster tasks when they are generated

How did you test it?

Potential risks

Release notes

Documentation Changes

Pull Request Test Coverage Report for Build c33415f7-885f-40b2-84c8-4785e561fb4d

8 of 26 (30.77%)  changed or added relevant lines in 2 files are covered.
213 unchanged lines in 7 files lost coverage.
Overall coverage increased (+0.04%) to 56.797%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

service/history/historyEngine.go
5
23
21.74%

Files with Coverage Reduction
New Missed Lines
%

service/history/execution/mutable_state_task_refresher.go
1
74.4%

common/membership/rpServiceResolver.go
2
73.58%

common/task/fifoTaskScheduler.go
5
84.54%

service/history/replication/task_executor.go
5
58.54%

service/history/task/transfer_active_task_executor.go
29
70.76%

common/util.go
58
50.82%

service/frontend/accessControlledHandler.go
113
62.42%

Totals

Change from base Build e87caaaf-cb4f-4a2b-b34e-157c5854b244:
0.04%

Covered Lines:
77868

Relevant Lines:
137099

💛  - Coveralls


Fix auto release changelog

lerna-changelog is not working correctly. It is being triggered in the GitHub Actions, so the configuration must be off.

https://github.com/changesets/changesets


Update artifact files

Pull Request Test Coverage Report for Build 837

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.758%

Totals

Change from base Build 825:
0.0%

Covered Lines:
307

Relevant Lines:
307

💛  - Coveralls


register_form_field_override not working as expected

The register_form_field_override function is not working as expected for models.TextField. I will highlight what I was trying to do as an example.
Steps to Reproduce

Install django-countable-field==1.3
Add 'countable_field' to INSTALLED_APPS in settings.py
Define custom widget class:

from countable_field.widgets import CountableWidget
from wagtail.admin.widgets.auto_height_text import AdminAutoHeightTextInput

class CountableAdminAutoHeightTextInput(AdminAutoHeightTextInput, CountableWidget):
    def __init__(self, attrs=None):
        print('in CountableAdminAutoHeightTextInput.__init__')
        attrs = attrs or {}
        attrs['data-count'] = 'characters'
        super().__init__(attrs)

Override TextField in an AppConfig (my file is named core.models):

from django.apps import AppConfig
from django.db.models import TextField

class CoreConfig(AppConfig):
    name = 'core'

    def ready(self):
        from wagtail.admin.forms.models import register_form_field_override
        from core.models import CountableAdminAutoHeightTextInput  # This may be different if your widget class is defined elsewhere
        register_form_field_override(
            TextField,
            override={'widget': CountableAdminAutoHeightTextInput},
        )

Create a Page (or an inherited class) in the CMS. The search description field is a text field so it should have an active character count. In addition to not showing the character count, my print statement in CountableAdminAutoHeightTextInput.init is not showing in the console so I think my override is not getting picked up. I'm wondering if Wagtail's own override is taking precedence over mine.

This was working on Wagtail 2.16.13 using a more manual method of modifying DIRECT_FORM_FIELD_OVERRIDES and overriding AdminPageForm with a custom subclass so that my change to that variable got picked up.
Please let me know if I'm doing anything incorrectly! I was attempting to use the new method after an upgrade to Wagtail 4, but it's not working as expected.

I have confirmed that this issue can be reproduced as described on a fresh Wagtail project: no

Technical details

Python version: 3.8.13
Django version: 4.0.10
Wagtail version: 4.1.5
Django Countable Field version: 1.3
Browser version: Chrome 112

@RandomJo Does it work if you pass exact_class=True as an argument on register_form_field_override? I think you'll need that to ensure that it overrides the AdminAutoHeightTextInput widget registered by Wagtail - that's what sets it up as the equivalent of DIRECT_FORM_FIELD_OVERRIDES, rather than FORM_FIELD_OVERRIDES. (You'll probably also need your 'core' app to appear after wagtail.admin in INSTALLED_APPS.)

Hey! Using exact_class=True did the trick! Moving 'core' to appear after 'wagtail.admin` in INSTALLED_APPS didn't matter either way, interestingly.
So, I guess I'm confused as to why exact_class=True works. Here's the documentation:

exact_class – If true, the override will only take effect for model fields that are of the exact type given by model_field_class, and not a subclass of it.

That makes it sound like using exact class is more discriminating, not less discriminating. Is it simply because Wagtail already has an override for TextField that uses exact class?
Regardless, thank you very much!

Yep, exactly - Wagtail registers AdminAutoHeightTextInput with exact_class=True (to ensure that it's applied to plain text fields but not rich text), and that takes priority over any definitions with exact_class=False.


[ISSUE #2328] Add parameter validation to ACL

What is the purpose of the change
issue #2328
Brief changelog
1.check topicPerms and groupPerms, When updating ACL configuration file.
2.add unit test.
Verifying this change
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Coverage increased (+0.008%) to 51.586% when pulling 3401ba5783ae86e9d8d890935d7178aba5849658 on Git-Yang:enhanced_acl into 03c1f11d6bc3034daca519de043fd4d2f69bb047 on apache:develop.

Codecov Report

Merging #2418 (7848895) into develop (88add9d) will decrease coverage by 0.15%.
The diff coverage is 92.30%.

@@              Coverage Diff              @@
##             develop    #2418      +/-   ##
=============================================
- Coverage      47.65%   47.50%   -0.16%
+ Complexity      4512     4502      -10
=============================================
  Files            552      552
  Lines          36509    36521      +12
  Branches        4830     4833       +3
=============================================
- Hits           17399    17349      -50
- Misses         16880    16949      +69
+ Partials        2230     2223       -7

Impacted Files
Coverage Δ
Complexity Δ

...a/org/apache/rocketmq/acl/common/AclConstants.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

...che/rocketmq/acl/plain/PlainPermissionManager.java
70.50% <66.66%> (+0.27%)
39.00 <0.00> (ø)

...ava/org/apache/rocketmq/acl/common/Permission.java
92.68% <100.00%> (+2.36%)
26.00 <7.00> (+7.00)

...rocketmq/broker/filtersrv/FilterServerManager.java
20.00% <0.00%> (-14.29%)
5.00% <0.00%> (-2.00%)

...pache/rocketmq/test/listener/AbstractListener.java
66.66% <0.00%> (-7.41%)
9.00% <0.00%> (-1.00%)

...in/java/org/apache/rocketmq/test/util/MQAdmin.java
38.88% <0.00%> (-5.56%)
7.00% <0.00%> (-1.00%)

...apache/rocketmq/remoting/netty/ResponseFuture.java
85.00% <0.00%> (-5.00%)
16.00% <0.00%> (-2.00%)

...ache/rocketmq/broker/topic/TopicConfigManager.java
54.44% <0.00%> (-4.64%)
13.00% <0.00%> (-3.00%)

...org/apache/rocketmq/common/stats/StatsItemSet.java
43.28% <0.00%> (-4.48%)
17.00% <0.00%> (-1.00%)

...ketmq/common/protocol/body/ConsumerConnection.java
95.83% <0.00%> (-4.17%)
13.00% <0.00%> (-1.00%)

... and 15 more

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 88add9d...7848895. Read the comment docs.


”Vânători”, ”Archita”, ”Feleag”, ”Mureni”, ”Șoard” are listed in the drop-down menu

Description:
When user writes ”Vânători”, ”Archita”, ”Feleag”, ”Mureni”, ”Șoard” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Vânători"

Expected results
The location appears in the drop-down menu as "Sat Vânători, MUREȘ (Vânători)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Archita"

Expected results
The location appears in the drop-down menu as "Sat Archita, MUREȘ (Vânători)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Feleag"

Expected results
The location appears in the drop-down menu as "Sat Feleag, MUREȘ (Vânători)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Write in the search bar "Mureni"

Expected results
The location appears in the drop-down menu as "Sat Mureni, MUREȘ (Vânători)".

Step 8
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 9
Write in the search bar "Șoard"

Expected results
The location appears in the drop-down menu as "Sat Șoard, MUREȘ (Vânători)".


Any examples for MariaDB/MySQL master slave replication?

I have resulted to having two global objection models. One for reads (slave) and one for writes (master). I did see multi-tenancy in the docs. Isn't that more for "on the fly" db connections. Any ideas on how to architect and manage read write connections with objection?

Sorry I haven't answered this. I actually had to google the topic, since I have never really used MySQL in production work.
So basically you can only have one model, lets say Movie and then you can simply bind it the the given database connection. Where you do this, is up to you and objection.js has no opinions about it. Here's how it works:
const master = Knex(masterConfig);
const slave = Knex(slaveConfig);

class Movie extends Model {
  static tableName = 'Movie';
}

const MasterMovie = Movie.bindKnex(master);
const SlaveMovie = Movie.bindKnex(slave); // Not the best name :|

await MasterMovie.query().insert({foo: 'bar'});
let movie = await SlaveMovie.query().where('foo', '=', 'bar');

What bindKnex actually does is that it creates a subclass of Movie and sets its database connection.

Did you solve this? If so, please close this.

Hi @koskimas,
Yes this is working but the server respond very slow when in heavy traffic (in case of heavy load utilization of CPU and mysql is ~16%).
Thanks

Hi @erwaseem123 may i know why it overloaded the server CPU ya?


Deploy OpenWhisk API Gateway

OpenShift resources to deploy OpenWhisk API Gateway to Openshift

@jcrossley3 - renamed the files to .yml

@bbrowning - i have fixed all the comments that you had. Please review and merge when you are at it . Currently there will be one parameter REDIS_HOST whose values I need to have fully qualified because of minishift bug https://github.com/minishift/minishift/issues/2070, once that bug is fixed we can remove the FQDN of REDIS_HOST

Opened new PR https://github.com/projectodd/openwhisk-openshift/pull/4 and will track it there.


⚠ Test Homepage has degraded performance

In d9db965, Test Homepage (https://test.h-edu.cz) experienced degraded performance:

HTTP code: 500
Response time: 11616 ms

Resolved: Test Homepage performance has improved in 80478f4.


Missing dependencies and contributors

Comment:
In the file recipe/meta.yaml, some information is inconsistent with the PyPi package :

recipe-maintainers : missing tmorzadec
requirements : run : missing numpy>= 1.21

Would be interesting for next release.

resolved in PR 13 and 14


fix: replace left with insetInlineStart

Currently floatingStyles returned from useFloating is overwriting placement styles and preventing -start to truly adapt to RTL layouts.
See https://github.com/TypeCellOS/BlockNote/pull/922#issuecomment-2233768520

This won't work correctly. Looking at the issue you can disable the auto RTL logic in two ways:

Putting direction: ltr styles on the floating element (you can then undo that with direction: rtl on a wrapper inside for its content if necessary)
Overwriting the platform.isRTL method to always return false (for this instance)

@atomiks ah you're right. It's the floatingStyles.transform that's actually positioning it.


Module Settings Appear for Players

Environment Details

Foundry Core Version: 0.7.9
System & Version: PF1e 0.77.23
OS & Browser: Windows 10, Firefox
Hosting: Self hosted

Describe the bug
The module settings for GM Screen appear for players, even though the GM Screen is not accessible for them.
To Reproduce

Log in as a user with Player permissions.
Open the Module Settings dialog.
The GM Screen section appears alongside other player-configurable module settings.

Expected behavior
The GM Screen section should not be present.

It is expected that a subset of settings be available to players as this allows them to control how they want the Player Screen to appear if the GM has a tab shared with the players.
This image highlights which setting should show up for players as well as the GM. If there are some which show up for players that aren't marked here as "user settings" that is a bug.

My mistake! I haven't messed with the settings since the player-shared tabs came into existence and didn't even know that was a feature now.


python3 compatibility changes

Hi Hugh,
Thanks for submitting this pull request!
Our next release (neon 1.5) will be releasing very soon with Python3 support, so I am going to close this pull request for now.

Cool.  Sounds good :-)


add top level make files and auto-tester targets

There's already a posix.mak.  This adds a win32.mak.  Having a top level make file removes another of the oddities about the dmd package so that it more closely resembles what most people expect to find.
I haven't setup targets for the win32.mak beyond the two for the auto-tester.  I'm trying to avoid that debate for some other pull.

It looks like either this is not passing the make targets down correctly, or the autotester is not calling this correctly on posix.  Recent dmd builds show make -C src -f posix.mak with no auto-tester-build, and ddmd is not being built.  Windows works fine.


Product Reference Buttons have Incorrect Links

The buttons built into the product reference section have incorrect links on select product pages
Affected pages are:
https://main--mammotome--hlxsites.hlx.page/us/en/products/breast-biopsy-markers/biomarc
https://main--mammotome--hlxsites.hlx.page/us/en/products/breast-biopsy-markers/hydromark
https://main--mammotome--hlxsites.hlx.page/us/en/products/breast-biopsy-markers/
https://main--mammotome--hlxsites.hlx.page/us/en/products/breast-biopsy-markers/mammomark-comark
https://main--mammotome--hlxsites.hlx.page/us/en/products/breast-biopsy-markers/mammostar
Request information button linking to: https://main--mammotome--hlxsites.hlx.page/us/en/products/contact/ (404 error) instead of https://main--mammotome--hlxsites.hlx.page/us/en/contact/
Product Support button linking to: https://main--mammotome--hlxsites.hlx.page/us/en/products/product-support (404 error) instead of https://main--mammotome--hlxsites.hlx.page/us/en/product-support
Product Document buttons working correctly.
The URLs have /products/ that shouldn't be there.

@kelseywilliams751 - good catch! The urls for these are configurable via the placeholders excel but I forgot to set that up for the default language (i.e., us/en). That is done now, however, that uncovered a bug in the product reference which is fixed via #429
Thanks for reporting!


PSP Version?

Where is psp version
I don't find?

The source code for the PSP version can be found here: https://github.com/evanbowman/blind-jump-portable/blob/master/source/platform/psp/psp_platform.cpp
I do not post release ROMs for the PSP version yet, because I haven't finished programming the sound, so there is no audio.

Ok


Add selection controls size tokens to Figma set

With how browsers round css pixels and fluid sizing we get skewed circles.
We have thus decided to add a separate token set using only rem values for sizing as they will not fluctuate as much due to viewport sizes.
Suggest naming these sizing tokens something with selection controls, ref: https://m1.material.io/components/selection-controls.html#
Suggest token sizes using

size
rem
base@16px

small
1.5rem
24px

medium
1.75rem
28px

large
2rem
32px

Decisions from #1444 might change this

This will be solved as part of #1444


[Docs]: Docs weird navigation bar behavior(bottom)

What type of suggestions?
Wrong Information
What page is concerned?
any page
What is the issue?
Details on the image:
If you open the docs at http://localhost:8000/kubefirst/local/install/ and then scroll down to go to the bottom "navigation bar", and keep cleaning to the next page in the right, once we reach common pages, navigation will think you are moving at the gitlab section, not the local section.
This may be misleading for users, and create confusion.

Actions:

[ ] Is there a fix for it?  (search for the source of the bug)
[ ] If not, should we remove it? (Discuss removal with the team)

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Not on mkdocs anymore.


ArmSCII-8 support

As per issue #105. I went with your idea to use gen_index.py, as that seemed like an easy enough approach even with my limited Python experience.

Thank you! The PR is very clear and I have no further comment to offer. :-)